diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index b14f4d48c7..fae151a2d2 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -8,6 +8,7 @@ api_status.go
api_tenancy.go
api_users.go
api_virtualization.go
+api_vpn.go
api_wireless.go
client.go
configuration.go
@@ -17,7 +18,13 @@ docs/ASNRangeRequest.md
docs/ASNRequest.md
docs/Aggregate.md
docs/AggregateFamily.md
+docs/AggregateFamilyLabel.md
+docs/AggregateFamilyValue.md
docs/AggregateRequest.md
+docs/Authentication.md
+docs/AuthenticationCipher.md
+docs/AuthenticationType.md
+docs/AuthenticationType1.md
docs/AvailableASN.md
docs/AvailableIP.md
docs/AvailablePrefix.md
@@ -26,15 +33,23 @@ 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
@@ -45,6 +60,8 @@ 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
@@ -55,10 +72,15 @@ docs/ConfigTemplate.md
docs/ConfigTemplateRequest.md
docs/ConsolePort.md
docs/ConsolePortRequest.md
+docs/ConsolePortRequestSpeed.md
docs/ConsolePortSpeed.md
+docs/ConsolePortSpeedLabel.md
+docs/ConsolePortSpeedValue.md
docs/ConsolePortTemplate.md
docs/ConsolePortTemplateRequest.md
docs/ConsolePortType.md
+docs/ConsolePortTypeLabel.md
+docs/ConsolePortTypeValue.md
docs/ConsoleServerPort.md
docs/ConsoleServerPortRequest.md
docs/ConsoleServerPortTemplate.md
@@ -66,6 +88,8 @@ docs/ConsoleServerPortTemplateRequest.md
docs/Contact.md
docs/ContactAssignment.md
docs/ContactAssignmentPriority.md
+docs/ContactAssignmentPriorityLabel.md
+docs/ContactAssignmentPriorityValue.md
docs/ContactAssignmentRequest.md
docs/ContactGroup.md
docs/ContactGroupRequest.md
@@ -77,12 +101,24 @@ docs/CoreAPI.md
docs/CustomField.md
docs/CustomFieldChoiceSet.md
docs/CustomFieldChoiceSetBaseChoices.md
+docs/CustomFieldChoiceSetBaseChoicesLabel.md
+docs/CustomFieldChoiceSetBaseChoicesValue.md
docs/CustomFieldChoiceSetRequest.md
docs/CustomFieldFilterLogic.md
+docs/CustomFieldFilterLogicLabel.md
+docs/CustomFieldFilterLogicValue.md
docs/CustomFieldRequest.md
docs/CustomFieldType.md
-docs/CustomFieldUiVisibility.md
+docs/CustomFieldTypeLabel.md
+docs/CustomFieldTypeValue.md
+docs/CustomFieldUiEditable.md
+docs/CustomFieldUiEditableLabel.md
+docs/CustomFieldUiEditableValue.md
+docs/CustomFieldUiVisible.md
+docs/CustomFieldUiVisibleLabel.md
+docs/CustomFieldUiVisibleValue.md
docs/CustomLink.md
+docs/CustomLinkButtonClass.md
docs/CustomLinkRequest.md
docs/Dashboard.md
docs/DashboardRequest.md
@@ -90,32 +126,58 @@ 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/DcimAPI.md
+docs/DcimDevicesRenderConfigCreateFormatParameter.md
docs/Device.md
docs/DeviceAirflow.md
+docs/DeviceAirflowLabel.md
+docs/DeviceAirflowValue.md
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/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/EventRule.md
+docs/EventRuleActionType.md
+docs/EventRuleActionTypeLabel.md
+docs/EventRuleActionTypeValue.md
+docs/EventRuleRequest.md
docs/ExportTemplate.md
docs/ExportTemplateRequest.md
docs/ExtrasAPI.md
docs/FHRPGroup.md
docs/FHRPGroupAssignment.md
docs/FHRPGroupAssignmentRequest.md
+docs/FHRPGroupProtocol.md
docs/FHRPGroupRequest.md
docs/FrontPort.md
docs/FrontPortRearPort.md
@@ -124,33 +186,90 @@ docs/FrontPortRequest.md
docs/FrontPortTemplate.md
docs/FrontPortTemplateRequest.md
docs/FrontPortType.md
+docs/FrontPortTypeLabel.md
+docs/FrontPortTypeValue.md
docs/GenericObject.md
docs/GenericObjectRequest.md
docs/Group.md
docs/GroupRequest.md
+docs/IKEPolicy.md
+docs/IKEPolicyMode.md
+docs/IKEPolicyModeLabel.md
+docs/IKEPolicyModeValue.md
+docs/IKEPolicyRequest.md
+docs/IKEPolicyVersion.md
+docs/IKEPolicyVersionLabel.md
+docs/IKEPolicyVersionValue.md
+docs/IKEProposal.md
+docs/IKEProposalAuthenticationAlgorithm.md
+docs/IKEProposalAuthenticationAlgorithmLabel.md
+docs/IKEProposalAuthenticationAlgorithmValue.md
+docs/IKEProposalAuthenticationMethod.md
+docs/IKEProposalAuthenticationMethodLabel.md
+docs/IKEProposalAuthenticationMethodValue.md
+docs/IKEProposalEncryptionAlgorithm.md
+docs/IKEProposalEncryptionAlgorithmLabel.md
+docs/IKEProposalEncryptionAlgorithmValue.md
+docs/IKEProposalGroup.md
+docs/IKEProposalGroupLabel.md
+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
+docs/IPRangeStatusLabel.md
+docs/IPRangeStatusValue.md
+docs/IPSecPolicy.md
+docs/IPSecPolicyRequest.md
+docs/IPSecProfile.md
+docs/IPSecProfileMode.md
+docs/IPSecProfileModeLabel.md
+docs/IPSecProfileModeValue.md
+docs/IPSecProfileRequest.md
+docs/IPSecProposal.md
+docs/IPSecProposalRequest.md
docs/ImageAttachment.md
docs/ImageAttachmentRequest.md
docs/Interface.md
docs/InterfaceDuplex.md
+docs/InterfaceDuplexLabel.md
+docs/InterfaceDuplexValue.md
docs/InterfaceMode.md
+docs/InterfaceModeLabel.md
+docs/InterfaceModeValue.md
docs/InterfacePoeMode.md
+docs/InterfacePoeModeLabel.md
+docs/InterfacePoeModeValue.md
docs/InterfacePoeType.md
+docs/InterfacePoeTypeLabel.md
+docs/InterfacePoeTypeValue.md
docs/InterfaceRequest.md
+docs/InterfaceRequestDuplex.md
docs/InterfaceRfChannel.md
+docs/InterfaceRfChannelLabel.md
+docs/InterfaceRfChannelValue.md
docs/InterfaceRfRole.md
+docs/InterfaceRfRoleLabel.md
+docs/InterfaceRfRoleValue.md
docs/InterfaceTemplate.md
docs/InterfaceTemplatePoeMode.md
docs/InterfaceTemplatePoeType.md
docs/InterfaceTemplateRequest.md
+docs/InterfaceTemplateRequestPoeMode.md
+docs/InterfaceTemplateRequestPoeType.md
+docs/InterfaceTemplateRequestRfRole.md
docs/InterfaceTemplateRfRole.md
docs/InterfaceType.md
+docs/InterfaceTypeLabel.md
+docs/InterfaceTypeValue.md
docs/InventoryItem.md
docs/InventoryItemRequest.md
docs/InventoryItemRole.md
@@ -160,17 +279,25 @@ docs/InventoryItemTemplateRequest.md
docs/IpamAPI.md
docs/Job.md
docs/JobStatus.md
+docs/JobStatusLabel.md
+docs/JobStatusValue.md
docs/JournalEntry.md
docs/JournalEntryKind.md
+docs/JournalEntryKindLabel.md
+docs/JournalEntryKindValue.md
docs/JournalEntryRequest.md
docs/L2VPN.md
docs/L2VPNRequest.md
docs/L2VPNTermination.md
docs/L2VPNTerminationRequest.md
docs/L2VPNType.md
+docs/L2VPNTypeLabel.md
+docs/L2VPNTypeValue.md
docs/Location.md
docs/LocationRequest.md
docs/LocationStatus.md
+docs/LocationStatusLabel.md
+docs/LocationStatusValue.md
docs/Manufacturer.md
docs/ManufacturerRequest.md
docs/Module.md
@@ -184,6 +311,8 @@ 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/NestedCable.md
@@ -219,8 +348,14 @@ 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/NestedInterface.md
docs/NestedInterfaceRequest.md
docs/NestedInterfaceTemplate.md
@@ -276,6 +411,10 @@ 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
@@ -296,6 +435,8 @@ docs/NestedWirelessLink.md
docs/NestedWirelessLinkRequest.md
docs/ObjectChange.md
docs/ObjectChangeAction.md
+docs/ObjectChangeActionLabel.md
+docs/ObjectChangeActionValue.md
docs/ObjectPermission.md
docs/ObjectPermissionRequest.md
docs/PaginatedASNList.md
@@ -331,14 +472,20 @@ docs/PaginatedDeviceBayTemplateList.md
docs/PaginatedDeviceRoleList.md
docs/PaginatedDeviceTypeList.md
docs/PaginatedDeviceWithConfigContextList.md
+docs/PaginatedEventRuleList.md
docs/PaginatedExportTemplateList.md
docs/PaginatedFHRPGroupAssignmentList.md
docs/PaginatedFHRPGroupList.md
docs/PaginatedFrontPortList.md
docs/PaginatedFrontPortTemplateList.md
docs/PaginatedGroupList.md
+docs/PaginatedIKEPolicyList.md
+docs/PaginatedIKEProposalList.md
docs/PaginatedIPAddressList.md
docs/PaginatedIPRangeList.md
+docs/PaginatedIPSecPolicyList.md
+docs/PaginatedIPSecProfileList.md
+docs/PaginatedIPSecProposalList.md
docs/PaginatedImageAttachmentList.md
docs/PaginatedInterfaceList.md
docs/PaginatedInterfaceTemplateList.md
@@ -386,6 +533,9 @@ docs/PaginatedTagList.md
docs/PaginatedTenantGroupList.md
docs/PaginatedTenantList.md
docs/PaginatedTokenList.md
+docs/PaginatedTunnelGroupList.md
+docs/PaginatedTunnelList.md
+docs/PaginatedTunnelTerminationList.md
docs/PaginatedUserList.md
docs/PaginatedVLANGroupList.md
docs/PaginatedVLANList.md
@@ -393,11 +543,13 @@ docs/PaginatedVMInterfaceList.md
docs/PaginatedVRFList.md
docs/PaginatedVirtualChassisList.md
docs/PaginatedVirtualDeviceContextList.md
+docs/PaginatedVirtualDiskList.md
docs/PaginatedVirtualMachineWithConfigContextList.md
docs/PaginatedWebhookList.md
docs/PaginatedWirelessLANGroupList.md
docs/PaginatedWirelessLANList.md
docs/PaginatedWirelessLinkList.md
+docs/ParentChildStatus.md
docs/PatchedCableTerminationRequest.md
docs/PatchedCircuitTypeRequest.md
docs/PatchedClusterGroupRequest.md
@@ -415,8 +567,10 @@ docs/PatchedRackRoleRequest.md
docs/PatchedRoleRequest.md
docs/PatchedSavedFilterRequest.md
docs/PatchedTagRequest.md
+docs/PatchedTunnelGroupRequest.md
docs/PatchedVLANGroupRequest.md
docs/PatchedWebhookRequest.md
+docs/PatchedWebhookRequestHttpMethod.md
docs/PatchedWritableASNRangeRequest.md
docs/PatchedWritableASNRequest.md
docs/PatchedWritableAggregateRequest.md
@@ -428,6 +582,8 @@ docs/PatchedWritableClusterRequest.md
docs/PatchedWritableConfigContextRequest.md
docs/PatchedWritableConfigTemplateRequest.md
docs/PatchedWritableConsolePortRequest.md
+docs/PatchedWritableConsolePortRequestSpeed.md
+docs/PatchedWritableConsolePortRequestType.md
docs/PatchedWritableConsolePortTemplateRequest.md
docs/PatchedWritableConsoleServerPortRequest.md
docs/PatchedWritableConsoleServerPortTemplateRequest.md
@@ -435,20 +591,39 @@ docs/PatchedWritableContactAssignmentRequest.md
docs/PatchedWritableContactGroupRequest.md
docs/PatchedWritableContactRequest.md
docs/PatchedWritableCustomFieldChoiceSetRequest.md
+docs/PatchedWritableCustomFieldChoiceSetRequestBaseChoices.md
docs/PatchedWritableCustomFieldRequest.md
+docs/PatchedWritableCustomFieldRequestFilterLogic.md
+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/PatchedWritableDeviceWithConfigContextRequest.md
+docs/PatchedWritableEventRuleRequest.md
docs/PatchedWritableExportTemplateRequest.md
docs/PatchedWritableFHRPGroupAssignmentRequest.md
docs/PatchedWritableFrontPortRequest.md
docs/PatchedWritableFrontPortTemplateRequest.md
+docs/PatchedWritableIKEPolicyRequest.md
+docs/PatchedWritableIKEPolicyRequestVersion.md
+docs/PatchedWritableIKEProposalRequest.md
+docs/PatchedWritableIKEProposalRequestAuthenticationAlgorithm.md
+docs/PatchedWritableIKEProposalRequestGroup.md
docs/PatchedWritableIPAddressRequest.md
+docs/PatchedWritableIPAddressRequestRole.md
+docs/PatchedWritableIPAddressRequestStatus.md
docs/PatchedWritableIPRangeRequest.md
+docs/PatchedWritableIPRangeRequestStatus.md
+docs/PatchedWritableIPSecPolicyRequest.md
+docs/PatchedWritableIPSecPolicyRequestPfsGroup.md
+docs/PatchedWritableIPSecProfileRequest.md
+docs/PatchedWritableIPSecProposalRequest.md
docs/PatchedWritableInterfaceRequest.md
+docs/PatchedWritableInterfaceRequestMode.md
docs/PatchedWritableInterfaceTemplateRequest.md
docs/PatchedWritableInventoryItemRequest.md
docs/PatchedWritableInventoryItemTemplateRequest.md
@@ -463,62 +638,99 @@ docs/PatchedWritableModuleTypeRequest.md
docs/PatchedWritableObjectPermissionRequest.md
docs/PatchedWritablePlatformRequest.md
docs/PatchedWritablePowerFeedRequest.md
+docs/PatchedWritablePowerFeedRequestPhase.md
+docs/PatchedWritablePowerFeedRequestStatus.md
+docs/PatchedWritablePowerFeedRequestSupply.md
+docs/PatchedWritablePowerFeedRequestType.md
docs/PatchedWritablePowerOutletRequest.md
+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
+docs/PatchedWritableWirelessLANRequestStatus.md
docs/PatchedWritableWirelessLinkRequest.md
docs/Platform.md
docs/PlatformRequest.md
docs/PowerFeed.md
docs/PowerFeedPhase.md
+docs/PowerFeedPhaseLabel.md
docs/PowerFeedRequest.md
docs/PowerFeedStatus.md
+docs/PowerFeedStatusLabel.md
docs/PowerFeedSupply.md
+docs/PowerFeedSupplyLabel.md
docs/PowerFeedType.md
+docs/PowerFeedTypeLabel.md
docs/PowerOutlet.md
docs/PowerOutletFeedLeg.md
+docs/PowerOutletFeedLegLabel.md
+docs/PowerOutletFeedLegValue.md
docs/PowerOutletRequest.md
+docs/PowerOutletRequestFeedLeg.md
+docs/PowerOutletRequestType.md
docs/PowerOutletTemplate.md
docs/PowerOutletTemplateRequest.md
docs/PowerOutletType.md
+docs/PowerOutletTypeLabel.md
docs/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
+docs/PrefixStatusLabel.md
+docs/PrefixStatusValue.md
docs/Provider.md
docs/ProviderAccount.md
docs/ProviderAccountRequest.md
@@ -528,15 +740,23 @@ docs/ProviderRequest.md
docs/RIR.md
docs/RIRRequest.md
docs/Rack.md
+docs/RackFace.md
docs/RackOuterUnit.md
+docs/RackOuterUnitLabel.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/RackWidth.md
+docs/RackWidthLabel.md
+docs/RackWidthValue.md
docs/RearPort.md
docs/RearPortRequest.md
docs/RearPortTemplate.md
@@ -550,8 +770,10 @@ docs/RouteTargetRequest.md
docs/SavedFilter.md
docs/SavedFilterRequest.md
docs/SchemaAPI.md
+docs/SchemaRetrieveFormatParameter.md
docs/Service.md
docs/ServiceProtocol.md
+docs/ServiceProtocolLabel.md
docs/ServiceRequest.md
docs/ServiceTemplate.md
docs/ServiceTemplateRequest.md
@@ -567,10 +789,23 @@ docs/Tenant.md
docs/TenantGroup.md
docs/TenantGroupRequest.md
docs/TenantRequest.md
+docs/Termination.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
+docs/TunnelTerminationRoleLabel.md
docs/User.md
docs/UserRequest.md
docs/UsersAPI.md
@@ -587,21 +822,33 @@ docs/VirtualChassisRequest.md
docs/VirtualDeviceContext.md
docs/VirtualDeviceContextRequest.md
docs/VirtualDeviceContextStatus.md
+docs/VirtualDeviceContextStatusLabel.md
+docs/VirtualDisk.md
+docs/VirtualDiskRequest.md
docs/VirtualMachineWithConfigContext.md
docs/VirtualMachineWithConfigContextRequest.md
docs/VirtualizationAPI.md
+docs/VpnAPI.md
docs/Webhook.md
docs/WebhookRequest.md
docs/WirelessAPI.md
+docs/WirelessChannel.md
docs/WirelessLAN.md
docs/WirelessLANAuthCipher.md
+docs/WirelessLANAuthCipherLabel.md
+docs/WirelessLANAuthCipherValue.md
docs/WirelessLANAuthType.md
+docs/WirelessLANAuthTypeLabel.md
+docs/WirelessLANAuthTypeValue.md
docs/WirelessLANGroup.md
docs/WirelessLANGroupRequest.md
docs/WirelessLANRequest.md
docs/WirelessLANStatus.md
+docs/WirelessLANStatusLabel.md
+docs/WirelessLANStatusValue.md
docs/WirelessLink.md
docs/WirelessLinkRequest.md
+docs/WirelessRole.md
docs/WritableASNRangeRequest.md
docs/WritableASNRequest.md
docs/WritableAggregateRequest.md
@@ -627,12 +874,18 @@ 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
+docs/WritableIKEProposalRequest.md
docs/WritableIPAddressRequest.md
docs/WritableIPRangeRequest.md
+docs/WritableIPSecPolicyRequest.md
+docs/WritableIPSecProfileRequest.md
+docs/WritableIPSecProposalRequest.md
docs/WritableInterfaceRequest.md
docs/WritableInterfaceTemplateRequest.md
docs/WritableInventoryItemRequest.md
@@ -670,12 +923,15 @@ 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
@@ -684,11 +940,17 @@ go.mod
go.sum
model_aggregate.go
model_aggregate_family.go
+model_aggregate_family_label.go
+model_aggregate_family_value.go
model_aggregate_request.go
model_asn.go
model_asn_range.go
model_asn_range_request.go
model_asn_request.go
+model_authentication.go
+model_authentication_cipher.go
+model_authentication_type.go
+model_authentication_type_1.go
model_available_asn.go
model_available_ip.go
model_available_prefix.go
@@ -697,15 +959,23 @@ 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
@@ -715,6 +985,8 @@ 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
@@ -725,10 +997,15 @@ model_config_template.go
model_config_template_request.go
model_console_port.go
model_console_port_request.go
+model_console_port_request_speed.go
model_console_port_speed.go
+model_console_port_speed_label.go
+model_console_port_speed_value.go
model_console_port_template.go
model_console_port_template_request.go
model_console_port_type.go
+model_console_port_type_label.go
+model_console_port_type_value.go
model_console_server_port.go
model_console_server_port_request.go
model_console_server_port_template.go
@@ -736,6 +1013,8 @@ model_console_server_port_template_request.go
model_contact.go
model_contact_assignment.go
model_contact_assignment_priority.go
+model_contact_assignment_priority_label.go
+model_contact_assignment_priority_value.go
model_contact_assignment_request.go
model_contact_group.go
model_contact_group_request.go
@@ -746,12 +1025,24 @@ model_content_type.go
model_custom_field.go
model_custom_field_choice_set.go
model_custom_field_choice_set_base_choices.go
+model_custom_field_choice_set_base_choices_label.go
+model_custom_field_choice_set_base_choices_value.go
model_custom_field_choice_set_request.go
model_custom_field_filter_logic.go
+model_custom_field_filter_logic_label.go
+model_custom_field_filter_logic_value.go
model_custom_field_request.go
model_custom_field_type.go
-model_custom_field_ui_visibility.go
+model_custom_field_type_label.go
+model_custom_field_type_value.go
+model_custom_field_ui_editable.go
+model_custom_field_ui_editable_label.go
+model_custom_field_ui_editable_value.go
+model_custom_field_ui_visible.go
+model_custom_field_ui_visible_label.go
+model_custom_field_ui_visible_value.go
model_custom_link.go
+model_custom_link_button_class.go
model_custom_link_request.go
model_dashboard.go
model_dashboard_request.go
@@ -759,30 +1050,56 @@ 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_dcim_devices_render_config_create_format_parameter.go
model_device.go
model_device_airflow.go
+model_device_airflow_label.go
+model_device_airflow_value.go
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_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_event_rule.go
+model_event_rule_action_type.go
+model_event_rule_action_type_label.go
+model_event_rule_action_type_value.go
+model_event_rule_request.go
model_export_template.go
model_export_template_request.go
model_fhrp_group.go
model_fhrp_group_assignment.go
model_fhrp_group_assignment_request.go
+model_fhrp_group_protocol.go
model_fhrp_group_request.go
model_front_port.go
model_front_port_rear_port.go
@@ -791,26 +1108,68 @@ model_front_port_request.go
model_front_port_template.go
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
+model_ike_policy.go
+model_ike_policy_mode.go
+model_ike_policy_mode_label.go
+model_ike_policy_mode_value.go
+model_ike_policy_request.go
+model_ike_policy_version.go
+model_ike_policy_version_label.go
+model_ike_policy_version_value.go
+model_ike_proposal.go
+model_ike_proposal_authentication_algorithm.go
+model_ike_proposal_authentication_algorithm_label.go
+model_ike_proposal_authentication_algorithm_value.go
+model_ike_proposal_authentication_method.go
+model_ike_proposal_authentication_method_label.go
+model_ike_proposal_authentication_method_value.go
+model_ike_proposal_encryption_algorithm.go
+model_ike_proposal_encryption_algorithm_label.go
+model_ike_proposal_encryption_algorithm_value.go
+model_ike_proposal_group.go
+model_ike_proposal_group_label.go
+model_ike_proposal_group_value.go
+model_ike_proposal_request.go
model_image_attachment.go
model_image_attachment_request.go
model_interface.go
model_interface_duplex.go
+model_interface_duplex_label.go
+model_interface_duplex_value.go
model_interface_mode.go
+model_interface_mode_label.go
+model_interface_mode_value.go
model_interface_poe_mode.go
+model_interface_poe_mode_label.go
+model_interface_poe_mode_value.go
model_interface_poe_type.go
+model_interface_poe_type_label.go
+model_interface_poe_type_value.go
model_interface_request.go
+model_interface_request_duplex.go
model_interface_rf_channel.go
+model_interface_rf_channel_label.go
+model_interface_rf_channel_value.go
model_interface_rf_role.go
+model_interface_rf_role_label.go
+model_interface_rf_role_value.go
model_interface_template.go
model_interface_template_poe_mode.go
model_interface_template_poe_type.go
model_interface_template_request.go
+model_interface_template_request_poe_mode.go
+model_interface_template_request_poe_type.go
+model_interface_template_request_rf_role.go
model_interface_template_rf_role.go
model_interface_type.go
+model_interface_type_label.go
+model_interface_type_value.go
model_inventory_item.go
model_inventory_item_request.go
model_inventory_item_role.go
@@ -820,23 +1179,46 @@ 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
+model_ip_range_status_label.go
+model_ip_range_status_value.go
+model_ip_sec_policy.go
+model_ip_sec_policy_request.go
+model_ip_sec_profile.go
+model_ip_sec_profile_mode.go
+model_ip_sec_profile_mode_label.go
+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_job.go
model_job_status.go
+model_job_status_label.go
+model_job_status_value.go
model_journal_entry.go
model_journal_entry_kind.go
+model_journal_entry_kind_label.go
+model_journal_entry_kind_value.go
model_journal_entry_request.go
model_l2_vpn.go
model_l2_vpn_request.go
model_l2_vpn_termination.go
model_l2_vpn_termination_request.go
model_l2_vpn_type.go
+model_l2_vpn_type_label.go
+model_l2_vpn_type_value.go
model_location.go
model_location_request.go
model_location_status.go
+model_location_status_label.go
+model_location_status_value.go
model_manufacturer.go
model_manufacturer_request.go
model_module.go
@@ -850,6 +1232,8 @@ 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_cable.go
@@ -885,6 +1269,8 @@ 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_interface.go
model_nested_interface_request.go
model_nested_interface_template.go
@@ -893,6 +1279,10 @@ 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
@@ -942,6 +1332,10 @@ 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
@@ -962,6 +1356,8 @@ model_nested_wireless_link.go
model_nested_wireless_link_request.go
model_object_change.go
model_object_change_action.go
+model_object_change_action_label.go
+model_object_change_action_value.go
model_object_permission.go
model_object_permission_request.go
model_paginated_aggregate_list.go
@@ -997,12 +1393,15 @@ model_paginated_device_bay_template_list.go
model_paginated_device_role_list.go
model_paginated_device_type_list.go
model_paginated_device_with_config_context_list.go
+model_paginated_event_rule_list.go
model_paginated_export_template_list.go
model_paginated_fhrp_group_assignment_list.go
model_paginated_fhrp_group_list.go
model_paginated_front_port_list.go
model_paginated_front_port_template_list.go
model_paginated_group_list.go
+model_paginated_ike_policy_list.go
+model_paginated_ike_proposal_list.go
model_paginated_image_attachment_list.go
model_paginated_interface_list.go
model_paginated_interface_template_list.go
@@ -1011,6 +1410,9 @@ model_paginated_inventory_item_role_list.go
model_paginated_inventory_item_template_list.go
model_paginated_ip_address_list.go
model_paginated_ip_range_list.go
+model_paginated_ip_sec_policy_list.go
+model_paginated_ip_sec_profile_list.go
+model_paginated_ip_sec_proposal_list.go
model_paginated_job_list.go
model_paginated_journal_entry_list.go
model_paginated_l2_vpn_list.go
@@ -1052,9 +1454,13 @@ model_paginated_tag_list.go
model_paginated_tenant_group_list.go
model_paginated_tenant_list.go
model_paginated_token_list.go
+model_paginated_tunnel_group_list.go
+model_paginated_tunnel_list.go
+model_paginated_tunnel_termination_list.go
model_paginated_user_list.go
model_paginated_virtual_chassis_list.go
model_paginated_virtual_device_context_list.go
+model_paginated_virtual_disk_list.go
model_paginated_virtual_machine_with_config_context_list.go
model_paginated_vlan_group_list.go
model_paginated_vlan_list.go
@@ -1064,6 +1470,7 @@ model_paginated_webhook_list.go
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_patched_cable_termination_request.go
model_patched_circuit_type_request.go
model_patched_cluster_group_request.go
@@ -1081,8 +1488,10 @@ model_patched_rir_request.go
model_patched_role_request.go
model_patched_saved_filter_request.go
model_patched_tag_request.go
+model_patched_tunnel_group_request.go
model_patched_vlan_group_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
@@ -1094,6 +1503,8 @@ model_patched_writable_cluster_request.go
model_patched_writable_config_context_request.go
model_patched_writable_config_template_request.go
model_patched_writable_console_port_request.go
+model_patched_writable_console_port_request_speed.go
+model_patched_writable_console_port_request_type.go
model_patched_writable_console_port_template_request.go
model_patched_writable_console_server_port_request.go
model_patched_writable_console_server_port_template_request.go
@@ -1101,23 +1512,42 @@ 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
+model_patched_writable_custom_field_request_filter_logic.go
+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_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
+model_patched_writable_ike_policy_request_version.go
+model_patched_writable_ike_proposal_request.go
+model_patched_writable_ike_proposal_request_authentication_algorithm.go
+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
model_patched_writable_ip_range_request.go
+model_patched_writable_ip_range_request_status.go
+model_patched_writable_ip_sec_policy_request.go
+model_patched_writable_ip_sec_policy_request_pfs_group.go
+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
@@ -1129,62 +1559,99 @@ 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
+model_patched_writable_power_feed_request_supply.go
+model_patched_writable_power_feed_request_type.go
model_patched_writable_power_outlet_request.go
+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
model_patched_writable_wireless_link_request.go
model_platform.go
model_platform_request.go
model_power_feed.go
model_power_feed_phase.go
+model_power_feed_phase_label.go
model_power_feed_request.go
model_power_feed_status.go
+model_power_feed_status_label.go
model_power_feed_supply.go
+model_power_feed_supply_label.go
model_power_feed_type.go
+model_power_feed_type_label.go
model_power_outlet.go
model_power_outlet_feed_leg.go
+model_power_outlet_feed_leg_label.go
+model_power_outlet_feed_leg_value.go
model_power_outlet_request.go
+model_power_outlet_request_feed_leg.go
+model_power_outlet_request_type.go
model_power_outlet_template.go
model_power_outlet_template_request.go
model_power_outlet_type.go
+model_power_outlet_type_label.go
model_power_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
+model_prefix_status_label.go
+model_prefix_status_value.go
model_provider.go
model_provider_account.go
model_provider_account_request.go
@@ -1192,15 +1659,23 @@ model_provider_network.go
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_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_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
@@ -1215,8 +1690,10 @@ model_route_target.go
model_route_target_request.go
model_saved_filter.go
model_saved_filter_request.go
+model_schema_retrieve_format_parameter.go
model_service.go
model_service_protocol.go
+model_service_protocol_label.go
model_service_request.go
model_service_template.go
model_service_template_request.go
@@ -1230,10 +1707,23 @@ model_tenant.go
model_tenant_group.go
model_tenant_group_request.go
model_tenant_request.go
+model_termination.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
+model_tunnel_termination_role_label.go
model_user.go
model_user_request.go
model_virtual_chassis.go
@@ -1241,6 +1731,9 @@ model_virtual_chassis_request.go
model_virtual_device_context.go
model_virtual_device_context_request.go
model_virtual_device_context_status.go
+model_virtual_device_context_status_label.go
+model_virtual_disk.go
+model_virtual_disk_request.go
model_virtual_machine_with_config_context.go
model_virtual_machine_with_config_context_request.go
model_vlan.go
@@ -1253,15 +1746,23 @@ model_vrf.go
model_vrf_request.go
model_webhook.go
model_webhook_request.go
+model_wireless_channel.go
model_wireless_lan.go
model_wireless_lan_auth_cipher.go
+model_wireless_lan_auth_cipher_label.go
+model_wireless_lan_auth_cipher_value.go
model_wireless_lan_auth_type.go
+model_wireless_lan_auth_type_label.go
+model_wireless_lan_auth_type_value.go
model_wireless_lan_group.go
model_wireless_lan_group_request.go
model_wireless_lan_request.go
model_wireless_lan_status.go
+model_wireless_lan_status_label.go
+model_wireless_lan_status_value.go
model_wireless_link.go
model_wireless_link_request.go
+model_wireless_role.go
model_writable_aggregate_request.go
model_writable_asn_range_request.go
model_writable_asn_request.go
@@ -1287,16 +1788,22 @@ 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
+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
@@ -1330,9 +1837,12 @@ 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
@@ -1351,5 +1861,6 @@ test/api_status_test.go
test/api_tenancy_test.go
test/api_users_test.go
test/api_virtualization_test.go
+test/api_vpn_test.go
test/api_wireless_test.go
utils.go
diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION
index 73a86b1970..4b49d9bb63 100644
--- a/.openapi-generator/VERSION
+++ b/.openapi-generator/VERSION
@@ -1 +1 @@
-7.0.1
\ No newline at end of file
+7.2.0
\ No newline at end of file
diff --git a/.openapi-generator/config.yaml b/.openapi-generator/config.yaml
index 61b2e80715..9a93345ba1 100644
--- a/.openapi-generator/config.yaml
+++ b/.openapi-generator/config.yaml
@@ -15,3 +15,4 @@ globalProperty:
additionalProperties:
disallowAdditionalPropertiesIfNotPresent: "false"
packageVersion: "3"
+ enumClassPrefix: true
diff --git a/Dockerfile b/Dockerfile
index c7519e140f..675d44b7de 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,6 @@
-ARG GO_VERSION=1.21.1-alpine3.18
-ARG GOIMPORTS_VERSION=0.12.0
-ARG DELVE_VERSION=1.21.0
+ARG GO_VERSION=1.21.5-alpine3.18
+ARG GOIMPORTS_VERSION=0.16.1
+ARG DELVE_VERSION=1.22.0
## Base image
diff --git a/Makefile b/Makefile
index 6d4f7b56e3..9412ce3756 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ define set_env
sed $(if $(IS_DARWIN),-i "",-i) -e "s/^#*\($(1)=\).*/$(if $(2),,#)\1$(2)/" .env
endef
-EXEC := docker compose exec app
+EXEC := docker compose exec main
# Environment recipes
.PHONY: default
@@ -33,6 +33,7 @@ shell:
build:
$(EXEC) ./scripts/set-versions.sh $(NETBOX_VERSION) $(NETBOX_DOCKER_VERSION)
./scripts/fetch-spec.sh $$(cat api/netbox_version) $$(cat api/netbox_docker_version)
+ $(EXEC) ./scripts/fix-spec.sh
./scripts/generate-code.sh
$(EXEC) go mod tidy
$(EXEC) goimports -w .
diff --git a/api/netbox_version b/api/netbox_version
index b72762837e..7c69a55dbb 100644
--- a/api/netbox_version
+++ b/api/netbox_version
@@ -1 +1 @@
-3.6.2
+3.7.0
diff --git a/api/openapi.yaml b/api/openapi.yaml
index fa0b765a86..df6c440cb0 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: NetBox REST API
- version: 3.6.2 (3.6)
+ version: 3.7.0 (3.7)
license:
name: Apache v2 License
paths:
@@ -14,10 +14,12 @@ paths:
name: cable_end
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cable_end__n
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cabled
schema:
@@ -481,11 +483,13 @@ paths:
name: term_side
schema:
type: string
+ x-spec-enum-id: 95b8fcc737f355d0
title: Termination
- in: query
name: term_side__n
schema:
type: string
+ x-spec-enum-id: 95b8fcc737f355d0
title: Termination
- in: query
name: updated_by_request
@@ -884,6 +888,90 @@ paths:
operationId: circuits_circuit_types_list
description: Get a list of circuit type objects.
parameters:
+ - in: query
+ name: color
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__empty
+ schema:
+ type: boolean
+ - in: query
+ name: color__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -2175,7 +2263,7 @@ paths:
type: array
items:
type: integer
- description: ProviderAccount (ID)
+ description: Provider account (ID)
explode: true
style: form
- in: query
@@ -2184,7 +2272,7 @@ paths:
type: array
items:
type: integer
- description: ProviderAccount (ID)
+ description: Provider account (ID)
explode: true
style: form
- in: query
@@ -2211,7 +2299,7 @@ paths:
type: array
items:
type: integer
- description: ProviderNetwork (ID)
+ description: Provider network (ID)
explode: true
style: form
- in: query
@@ -2220,7 +2308,7 @@ paths:
type: array
items:
type: integer
- description: ProviderNetwork (ID)
+ description: Provider network (ID)
explode: true
style: form
- in: query
@@ -2342,6 +2430,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 63c838134a022200
explode: true
style: form
- in: query
@@ -2350,6 +2439,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 63c838134a022200
explode: true
style: form
- in: query
@@ -4414,6 +4504,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -5678,6 +5852,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: enabled
schema:
@@ -6582,6 +6840,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: e33887d83efcc138
explode: true
style: form
- in: query
@@ -6590,6 +6849,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: e33887d83efcc138
explode: true
style: form
- in: query
@@ -6652,11 +6912,13 @@ paths:
name: cable_end
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
title: End
- in: query
name: cable_end__n
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
title: End
- in: query
name: id
@@ -7027,6 +7289,15 @@ paths:
operationId: dcim_cables_list
description: Get a list of cable objects.
parameters:
+ - in: query
+ name: circuittermination_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: color
schema:
@@ -7043,6 +7314,24 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: consoleport_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: consoleserverport_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -7111,6 +7400,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: device
schema:
@@ -7128,6 +7501,15 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: frontport_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -7186,6 +7568,15 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: interface_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: label
schema:
@@ -7395,10 +7786,12 @@ paths:
name: length_unit
schema:
type: string
+ x-spec-enum-id: e64ce3a2c5997172
- in: query
name: length_unit__n
schema:
type: string
+ x-spec-enum-id: e64ce3a2c5997172
- name: limit
required: false
in: query
@@ -7439,6 +7832,33 @@ paths:
description: Which field to use when ordering the results.
schema:
type: string
+ - in: query
+ name: powerfeed_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: poweroutlet_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: powerport_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: q
schema:
@@ -7461,6 +7881,15 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: rearport_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: site
schema:
@@ -7484,6 +7913,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: fbc2f302c08be50d
explode: true
style: form
- in: query
@@ -7492,6 +7922,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: fbc2f302c08be50d
explode: true
style: form
- in: query
@@ -7624,6 +8055,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: e671018e64196f8d
explode: true
style: form
- in: query
@@ -7632,8 +8064,14 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: e671018e64196f8d
explode: true
style: form
+ - in: query
+ name: unterminated
+ schema:
+ type: boolean
+ description: Unterminated
- in: query
name: updated_by_request
schema:
@@ -7969,6 +8407,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: devicetype_id
schema:
@@ -8246,10 +8768,12 @@ paths:
name: type
schema:
type: string
+ x-spec-enum-id: c5f7197b7211818a
- in: query
name: type__n
schema:
type: string
+ x-spec-enum-id: c5f7197b7211818a
- in: query
name: updated_by_request
schema:
@@ -8486,10 +9010,12 @@ paths:
name: cable_end
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cable_end__n
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cabled
schema:
@@ -9339,6 +9865,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: c5f7197b7211818a
description: Physical port type
explode: true
style: form
@@ -9348,6 +9875,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: c5f7197b7211818a
description: Physical port type
explode: true
style: form
@@ -9711,6 +10239,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: devicetype_id
schema:
@@ -9988,10 +10600,12 @@ paths:
name: type
schema:
type: string
+ x-spec-enum-id: c5f7197b7211818a
- in: query
name: type__n
schema:
type: string
+ x-spec-enum-id: c5f7197b7211818a
- in: query
name: updated_by_request
schema:
@@ -10228,10 +10842,12 @@ paths:
name: cable_end
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cable_end__n
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cabled
schema:
@@ -11081,6 +11697,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: c5f7197b7211818a
description: Physical port type
explode: true
style: form
@@ -11090,6 +11707,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: c5f7197b7211818a
description: Physical port type
explode: true
style: form
@@ -11453,6 +12071,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: devicetype_id
schema:
@@ -13844,10 +14546,12 @@ paths:
name: airflow
schema:
type: string
+ x-spec-enum-id: 58e389e240a5e53d
- in: query
name: airflow__n
schema:
type: string
+ x-spec-enum-id: 58e389e240a5e53d
- in: query
name: console_ports
schema:
@@ -13964,11 +14668,99 @@ paths:
description: Default platform (ID)
explode: true
style: form
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: device_bays
schema:
type: boolean
description: Has device bays
+ - in: query
+ name: exclude_from_utilization
+ schema:
+ type: boolean
- in: query
name: has_front_image
schema:
@@ -14454,6 +15246,7 @@ paths:
name: subdevice_role
schema:
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.
@@ -14461,6 +15254,7 @@ paths:
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
if this device type is neither a parent nor a child.
@@ -14605,10 +15399,12 @@ paths:
name: weight_unit
schema:
type: string
+ x-spec-enum-id: 7c1876f422815884
- in: query
name: weight_unit__n
schema:
type: string
+ x-spec-enum-id: 7c1876f422815884
tags:
- dcim
security:
@@ -14840,10 +15636,12 @@ paths:
name: airflow
schema:
type: string
+ x-spec-enum-id: 58e389e240a5e53d
- in: query
name: airflow__n
schema:
type: string
+ x-spec-enum-id: 58e389e240a5e53d
- in: query
name: asset_tag
schema:
@@ -15100,6 +15898,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: device_bays
schema:
@@ -15145,11 +16027,13 @@ paths:
name: face
schema:
type: string
+ x-spec-enum-id: d2fb9b3f75158b83
title: Rack face
- in: query
name: face__n
schema:
type: string
+ x-spec-enum-id: d2fb9b3f75158b83
title: Rack face
- in: query
name: has_oob_ip
@@ -16117,6 +17001,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 8d8971779f16ee18
explode: true
style: form
- in: query
@@ -16125,6 +17010,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 8d8971779f16ee18
explode: true
style: form
- in: query
@@ -16782,6 +17668,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: devicetype_id
schema:
@@ -17061,6 +18031,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 0276d1110ada597a
explode: true
style: form
- in: query
@@ -17069,6 +18040,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 0276d1110ada597a
explode: true
style: form
- in: query
@@ -17307,10 +18279,12 @@ paths:
name: cable_end
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cable_end__n
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cabled
schema:
@@ -18240,6 +19214,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 0276d1110ada597a
explode: true
style: form
- in: query
@@ -18248,6 +19223,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 0276d1110ada597a
explode: true
style: form
- in: query
@@ -18625,6 +19601,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: devicetype_id
schema:
@@ -18907,6 +19967,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 2f2fe6dcdc7772bd
explode: true
style: form
- in: query
@@ -18915,6 +19976,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 2f2fe6dcdc7772bd
explode: true
style: form
- in: query
@@ -18923,6 +19985,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 74bd3be4012f6da9
explode: true
style: form
- in: query
@@ -18931,6 +19994,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 74bd3be4012f6da9
explode: true
style: form
- in: query
@@ -18944,6 +20008,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: d2772dbea88b0fb1
title: Wireless role
explode: true
style: form
@@ -18953,6 +20018,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: d2772dbea88b0fb1
title: Wireless role
explode: true
style: form
@@ -18962,6 +20028,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 2787c414ccfa93fd
explode: true
style: form
- in: query
@@ -18970,6 +20037,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 2787c414ccfa93fd
explode: true
style: form
- in: query
@@ -19226,10 +20294,12 @@ paths:
name: cable_end
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cable_end__n
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cabled
schema:
@@ -19506,6 +20576,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 47eab9b1a65a1e21
nullable: true
explode: true
style: form
@@ -19515,6 +20586,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 47eab9b1a65a1e21
nullable: true
explode: true
style: form
@@ -19924,11 +20996,13 @@ paths:
name: mode
schema:
type: string
+ x-spec-enum-id: 79109bd9dbb73a3c
description: IEEE 802.1Q tagging strategy
- in: query
name: mode__n
schema:
type: string
+ x-spec-enum-id: 79109bd9dbb73a3c
description: IEEE 802.1Q tagging strategy
- in: query
name: modified_by_request
@@ -20137,6 +21211,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 2f2fe6dcdc7772bd
explode: true
style: form
- in: query
@@ -20145,6 +21220,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 2f2fe6dcdc7772bd
explode: true
style: form
- in: query
@@ -20153,6 +21229,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 74bd3be4012f6da9
explode: true
style: form
- in: query
@@ -20161,6 +21238,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 74bd3be4012f6da9
explode: true
style: form
- in: query
@@ -20246,6 +21324,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: aac33cc237adc8f9
title: Wireless channel
explode: true
style: form
@@ -20255,6 +21334,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: aac33cc237adc8f9
title: Wireless channel
explode: true
style: form
@@ -20380,6 +21460,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: d2772dbea88b0fb1
title: Wireless role
explode: true
style: form
@@ -20389,6 +21470,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: d2772dbea88b0fb1
title: Wireless role
explode: true
style: form
@@ -20643,6 +21725,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 2787c414ccfa93fd
explode: true
style: form
- in: query
@@ -20651,6 +21734,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 2787c414ccfa93fd
explode: true
style: form
- in: query
@@ -21304,6 +22388,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -22008,6 +23176,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: devicetype_id
schema:
@@ -24810,6 +26062,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: e363a8ddb138be50
explode: true
style: form
- in: query
@@ -24818,6 +26071,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: e363a8ddb138be50
explode: true
style: form
- in: query
@@ -25981,6 +27235,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: devicetype_id
schema:
@@ -27621,6 +28959,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -28077,10 +29499,12 @@ paths:
name: weight_unit
schema:
type: string
+ x-spec-enum-id: 7c1876f422815884
- in: query
name: weight_unit__n
schema:
type: string
+ x-spec-enum-id: 7c1876f422815884
tags:
- dcim
security:
@@ -28460,6 +29884,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: device_id
schema:
@@ -28807,6 +30315,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
@@ -28815,6 +30324,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
@@ -29900,10 +31410,12 @@ paths:
name: cable_end
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cable_end__n
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cabled
schema:
@@ -29980,6 +31492,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -30274,10 +31870,12 @@ paths:
name: phase
schema:
type: string
+ x-spec-enum-id: 994bc0696f4df57f
- in: query
name: phase__n
schema:
type: string
+ x-spec-enum-id: 994bc0696f4df57f
- in: query
name: power_panel_id
schema:
@@ -30433,6 +32031,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
@@ -30441,16 +32040,19 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
name: supply
schema:
type: string
+ x-spec-enum-id: 1b6d99616ca6412b
- in: query
name: supply__n
schema:
type: string
+ x-spec-enum-id: 1b6d99616ca6412b
- in: query
name: tag
schema:
@@ -30545,10 +32147,12 @@ paths:
name: type
schema:
type: string
+ x-spec-enum-id: 093a164236819eb8
- in: query
name: type__n
schema:
type: string
+ x-spec-enum-id: 093a164236819eb8
- in: query
name: updated_by_request
schema:
@@ -30931,6 +32535,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: devicetype_id
schema:
@@ -30957,6 +32645,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
description: Phase (for three-phase feeds)
explode: true
style: form
@@ -30966,6 +32655,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
description: Phase (for three-phase feeds)
explode: true
style: form
@@ -31226,10 +32916,12 @@ paths:
name: type
schema:
type: string
+ x-spec-enum-id: 5be1814581544db3
- in: query
name: type__n
schema:
type: string
+ x-spec-enum-id: 5be1814581544db3
- in: query
name: updated_by_request
schema:
@@ -31466,10 +33158,12 @@ paths:
name: cable_end
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cable_end__n
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cabled
schema:
@@ -31746,6 +33440,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
description: Phase (for three-phase feeds)
explode: true
style: form
@@ -31755,6 +33450,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
description: Phase (for three-phase feeds)
explode: true
style: form
@@ -32337,6 +34033,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 5be1814581544db3
description: Physical port type
explode: true
style: form
@@ -32346,6 +34043,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 5be1814581544db3
description: Physical port type
explode: true
style: form
@@ -32763,6 +34461,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -33496,6 +35278,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: devicetype_id
schema:
@@ -33831,10 +35697,12 @@ paths:
name: type
schema:
type: string
+ x-spec-enum-id: 0612e2fb273da8ee
- in: query
name: type__n
schema:
type: string
+ x-spec-enum-id: 0612e2fb273da8ee
- in: query
name: updated_by_request
schema:
@@ -34129,10 +35997,12 @@ paths:
name: cable_end
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cable_end__n
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cabled
schema:
@@ -35040,6 +36910,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 0612e2fb273da8ee
description: Physical port type
explode: true
style: form
@@ -35049,6 +36920,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 0612e2fb273da8ee
description: Physical port type
explode: true
style: form
@@ -37176,6 +39048,90 @@ paths:
name: desc_units
schema:
type: boolean
+ - 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: facility_id
schema:
@@ -37702,10 +39658,12 @@ paths:
name: outer_unit
schema:
type: string
+ x-spec-enum-id: 86a846b6c40f495e
- in: query
name: outer_unit__n
schema:
type: string
+ x-spec-enum-id: 86a846b6c40f495e
- in: query
name: outer_width
schema:
@@ -38063,6 +40021,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 0c556d55dc1baa13
explode: true
style: form
- in: query
@@ -38071,6 +40030,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 0c556d55dc1baa13
explode: true
style: form
- in: query
@@ -38169,6 +40129,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: e32aaa89a223f2ea
explode: true
style: form
- in: query
@@ -38177,6 +40138,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: e32aaa89a223f2ea
explode: true
style: form
- in: query
@@ -38304,16 +40266,19 @@ paths:
name: weight_unit
schema:
type: string
+ x-spec-enum-id: 7c1876f422815884
- in: query
name: weight_unit__n
schema:
type: string
+ x-spec-enum-id: 7c1876f422815884
- in: query
name: width
schema:
type: array
items:
type: integer
+ x-spec-enum-id: 9b322795f297a9c3
description: Rail-to-rail width
explode: true
style: form
@@ -38323,6 +40288,7 @@ paths:
type: array
items:
type: integer
+ x-spec-enum-id: 9b322795f297a9c3
description: Rail-to-rail width
explode: true
style: form
@@ -38729,6 +40695,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: devicetype_id
schema:
@@ -39066,6 +41116,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 0276d1110ada597a
explode: true
style: form
- in: query
@@ -39074,6 +41125,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 0276d1110ada597a
explode: true
style: form
- in: query
@@ -39312,10 +41364,12 @@ paths:
name: cable_end
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cable_end__n
schema:
type: string
+ x-spec-enum-id: 1db84f9b93b261c8
- in: query
name: cabled
schema:
@@ -40303,6 +42357,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 0276d1110ada597a
explode: true
style: form
- in: query
@@ -40311,6 +42366,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 0276d1110ada597a
explode: true
style: form
- in: query
@@ -43065,6 +45121,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: e363a8ddb138be50
explode: true
style: form
- in: query
@@ -43073,6 +45130,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: e363a8ddb138be50
explode: true
style: form
- in: query
@@ -43465,6 +45523,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: domain
schema:
@@ -44282,6 +46424,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: device
schema:
@@ -44551,6 +46777,42 @@ paths:
description: Which field to use when ordering the results.
schema:
type: string
+ - in: query
+ name: primary_ip4_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Primary IPv4 (ID)
+ explode: true
+ style: form
+ - in: query
+ name: primary_ip4_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Primary IPv4 (ID)
+ explode: true
+ style: form
+ - in: query
+ name: primary_ip6_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Primary IPv6 (ID)
+ explode: true
+ style: form
+ - in: query
+ name: primary_ip6_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Primary IPv6 (ID)
+ explode: true
+ style: form
- in: query
name: q
schema:
@@ -44562,6 +46824,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: ee1ef02def7a91ab
explode: true
style: form
- in: query
@@ -44570,6 +46833,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: ee1ef02def7a91ab
explode: true
style: form
- in: query
@@ -45623,6 +47887,90 @@ paths:
format: date-time
explode: true
style: form
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: device_type_id
schema:
@@ -47215,11 +49563,13 @@ paths:
name: base_choices
schema:
type: string
+ x-spec-enum-id: cf0efb5195f85007
description: Base set of predefined choices (optional)
- in: query
name: base_choices__n
schema:
type: string
+ x-spec-enum-id: cf0efb5195f85007
description: Base set of predefined choices (optional)
- in: query
name: choice
@@ -47957,12 +50307,14 @@ paths:
name: filter_logic
schema:
type: string
+ x-spec-enum-id: a958350ae21c10ee
description: Loose matches any instance of a given string; exact matches the
entire field.
- 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.
- in: query
@@ -48286,6 +50638,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 22e3a64138d10046
description: The type of data this custom field holds
explode: true
style: form
@@ -48295,19 +50648,36 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 22e3a64138d10046
description: The type of data this custom field holds
explode: true
style: form
- in: query
- name: ui_visibility
+ name: ui_editable
schema:
type: string
- description: Specifies the visibility of custom field in the UI
+ x-spec-enum-id: 1065673147e26bb5
+ description: Specifies whether the custom field value can be edited in the
+ UI
- in: query
- name: ui_visibility__n
+ name: ui_editable__n
schema:
type: string
- description: Specifies the visibility of custom field in the UI
+ x-spec-enum-id: 1065673147e26bb5
+ description: Specifies whether the custom field value can be edited in the
+ UI
+ - in: query
+ name: ui_visible
+ schema:
+ type: string
+ x-spec-enum-id: cd2cf94af56de747
+ description: Specifies whether the custom field is displayed in the UI
+ - 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
- in: query
name: weight
schema:
@@ -49386,11 +51756,100 @@ paths:
responses:
'204':
description: No response body
- /api/extras/export-templates/:
+ /api/extras/event-rules/:
get:
- operationId: extras_export_templates_list
- description: Get a list of export template objects.
+ operationId: extras_event_rules_list
+ description: Get a list of event rule objects.
parameters:
+ - in: query
+ name: action_object_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: action_object_id__empty
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: action_object_id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: action_object_id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: action_object_id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: action_object_id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: action_object_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: action_object_type
+ schema:
+ type: string
+ - in: query
+ name: action_object_type__n
+ schema:
+ type: string
+ - in: query
+ name: action_type
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: a08300d86473de6e
+ explode: true
+ style: form
+ - in: query
+ name: action_type__n
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: a08300d86473de6e
+ explode: true
+ style: form
- in: query
name: content_type_id
schema:
@@ -49495,47 +51954,16 @@ paths:
schema:
type: string
- in: query
- name: data_file_id
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Data file (ID)
- explode: true
- style: form
- - in: query
- name: data_file_id__n
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Data file (ID)
- explode: true
- style: form
- - in: query
- name: data_source_id
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Data source (ID)
- explode: true
- style: form
- - in: query
- name: data_source_id__n
+ name: created
schema:
type: array
items:
- type: integer
- nullable: true
- description: Data source (ID)
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: data_synced
+ name: created__empty
schema:
type: array
items:
@@ -49544,11 +51972,7 @@ paths:
explode: true
style: form
- in: query
- name: data_synced__empty
- schema:
- type: boolean
- - in: query
- name: data_synced__gt
+ name: created__gt
schema:
type: array
items:
@@ -49557,7 +51981,7 @@ paths:
explode: true
style: form
- in: query
- name: data_synced__gte
+ name: created__gte
schema:
type: array
items:
@@ -49566,7 +51990,7 @@ paths:
explode: true
style: form
- in: query
- name: data_synced__lt
+ name: created__lt
schema:
type: array
items:
@@ -49575,7 +51999,7 @@ paths:
explode: true
style: form
- in: query
- name: data_synced__lte
+ name: created__lte
schema:
type: array
items:
@@ -49584,7 +52008,7 @@ paths:
explode: true
style: form
- in: query
- name: data_synced__n
+ name: created__n
schema:
type: array
items:
@@ -49592,6 +52016,11 @@ paths:
format: date-time
explode: true
style: form
+ - in: query
+ name: created_by_request
+ schema:
+ type: string
+ format: uuid
- in: query
name: description
schema:
@@ -49676,6 +52105,10 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: enabled
+ schema:
+ type: boolean
- in: query
name: id
schema:
@@ -49734,12 +52167,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:
@@ -49841,6 +52342,47 @@ paths:
schema:
type: string
description: Search
+ - in: query
+ name: tag
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: type_create
+ schema:
+ type: boolean
+ - in: query
+ name: type_delete
+ schema:
+ type: boolean
+ - in: query
+ name: type_job_end
+ schema:
+ type: boolean
+ - in: query
+ name: type_job_start
+ schema:
+ type: boolean
+ - in: query
+ name: type_update
+ schema:
+ type: boolean
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
tags:
- extras
security:
@@ -49851,21 +52393,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedExportTemplateList'
+ $ref: '#/components/schemas/PaginatedEventRuleList'
description: ''
post:
- operationId: extras_export_templates_create
- description: Post a list of export template objects.
+ operationId: extras_event_rules_create
+ description: Post a list of event rule objects.
tags:
- extras
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableExportTemplateRequest'
+ $ref: '#/components/schemas/WritableEventRuleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableExportTemplateRequest'
+ $ref: '#/components/schemas/WritableEventRuleRequest'
required: true
security:
- cookieAuth: []
@@ -49875,11 +52417,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ExportTemplate'
+ $ref: '#/components/schemas/EventRule'
description: ''
put:
- operationId: extras_export_templates_bulk_update
- description: Put a list of export template objects.
+ operationId: extras_event_rules_bulk_update
+ description: Put a list of event rule objects.
tags:
- extras
requestBody:
@@ -49888,12 +52430,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ExportTemplateRequest'
+ $ref: '#/components/schemas/EventRuleRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ExportTemplateRequest'
+ $ref: '#/components/schemas/EventRuleRequest'
required: true
security:
- cookieAuth: []
@@ -49905,11 +52447,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ExportTemplate'
+ $ref: '#/components/schemas/EventRule'
description: ''
patch:
- operationId: extras_export_templates_bulk_partial_update
- description: Patch a list of export template objects.
+ operationId: extras_event_rules_bulk_partial_update
+ description: Patch a list of event rule objects.
tags:
- extras
requestBody:
@@ -49918,12 +52460,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ExportTemplateRequest'
+ $ref: '#/components/schemas/EventRuleRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ExportTemplateRequest'
+ $ref: '#/components/schemas/EventRuleRequest'
required: true
security:
- cookieAuth: []
@@ -49935,11 +52477,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ExportTemplate'
+ $ref: '#/components/schemas/EventRule'
description: ''
delete:
- operationId: extras_export_templates_bulk_destroy
- description: Delete a list of export template objects.
+ operationId: extras_event_rules_bulk_destroy
+ description: Delete a list of event rule objects.
tags:
- extras
requestBody:
@@ -49948,12 +52490,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ExportTemplateRequest'
+ $ref: '#/components/schemas/EventRuleRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ExportTemplateRequest'
+ $ref: '#/components/schemas/EventRuleRequest'
required: true
security:
- cookieAuth: []
@@ -49961,16 +52503,16 @@ paths:
responses:
'204':
description: No response body
- /api/extras/export-templates/{id}/:
+ /api/extras/event-rules/{id}/:
get:
- operationId: extras_export_templates_retrieve
- description: Get a export template object.
+ operationId: extras_event_rules_retrieve
+ description: Get a event rule object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this export template.
+ description: A unique integer value identifying this event rule.
required: true
tags:
- extras
@@ -49982,17 +52524,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ExportTemplate'
+ $ref: '#/components/schemas/EventRule'
description: ''
put:
- operationId: extras_export_templates_update
- description: Put a export template object.
+ operationId: extras_event_rules_update
+ description: Put a event rule object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this export template.
+ description: A unique integer value identifying this event rule.
required: true
tags:
- extras
@@ -50000,10 +52542,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableExportTemplateRequest'
+ $ref: '#/components/schemas/WritableEventRuleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableExportTemplateRequest'
+ $ref: '#/components/schemas/WritableEventRuleRequest'
required: true
security:
- cookieAuth: []
@@ -50013,17 +52555,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ExportTemplate'
+ $ref: '#/components/schemas/EventRule'
description: ''
patch:
- operationId: extras_export_templates_partial_update
- description: Patch a export template object.
+ operationId: extras_event_rules_partial_update
+ description: Patch a event rule object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this export template.
+ description: A unique integer value identifying this event rule.
required: true
tags:
- extras
@@ -50031,10 +52573,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableExportTemplateRequest'
+ $ref: '#/components/schemas/PatchedWritableEventRuleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableExportTemplateRequest'
+ $ref: '#/components/schemas/PatchedWritableEventRuleRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -50043,17 +52585,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ExportTemplate'
+ $ref: '#/components/schemas/EventRule'
description: ''
delete:
- operationId: extras_export_templates_destroy
- description: Delete a export template object.
+ operationId: extras_event_rules_destroy
+ description: Delete a event rule object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this export template.
+ description: A unique integer value identifying this event rule.
required: true
tags:
- extras
@@ -50063,67 +52605,13 @@ paths:
responses:
'204':
description: No response body
- /api/extras/export-templates/{id}/sync/:
- post:
- operationId: extras_export_templates_sync_create
- description: Provide a /sync API endpoint to synchronize an object's data from
- its associated DataFile (if any).
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- description: A unique integer value identifying this export template.
- required: true
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/WritableExportTemplateRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/WritableExportTemplateRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ExportTemplate'
- description: ''
- /api/extras/image-attachments/:
+ /api/extras/export-templates/:
get:
- operationId: extras_image_attachments_list
- description: Get a list of image attachment objects.
+ operationId: extras_export_templates_list
+ description: Get a list of export template objects.
parameters:
- - in: query
- name: content_type
- schema:
- type: string
- - in: query
- name: content_type__n
- schema:
- type: string
- in: query
name: content_type_id
- schema:
- type: integer
- - in: query
- name: content_type_id__n
- schema:
- type: integer
- - in: query
- name: created
- schema:
- type: string
- format: date-time
- - in: query
- name: id
schema:
type: array
items:
@@ -50132,11 +52620,16 @@ paths:
explode: true
style: form
- in: query
- name: id__empty
+ name: content_type_id__empty
schema:
- type: boolean
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: id__gt
+ name: content_type_id__gt
schema:
type: array
items:
@@ -50145,7 +52638,7 @@ paths:
explode: true
style: form
- in: query
- name: id__gte
+ name: content_type_id__gte
schema:
type: array
items:
@@ -50154,7 +52647,7 @@ paths:
explode: true
style: form
- in: query
- name: id__lt
+ name: content_type_id__lt
schema:
type: array
items:
@@ -50163,7 +52656,7 @@ paths:
explode: true
style: form
- in: query
- name: id__lte
+ name: content_type_id__lte
schema:
type: array
items:
@@ -50172,7 +52665,7 @@ paths:
explode: true
style: form
- in: query
- name: id__n
+ name: content_type_id__n
schema:
type: array
items:
@@ -50180,164 +52673,386 @@ paths:
format: int32
explode: true
style: form
- - name: limit
- required: false
- in: query
- description: Number of results to return per page.
+ - in: query
+ name: content_types
schema:
- type: integer
+ type: string
- in: query
- name: name
+ 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: data_file_id
schema:
type: array
items:
- type: string
+ type: integer
+ nullable: true
+ description: Data file (ID)
explode: true
style: form
- in: query
- name: name__empty
- schema:
- type: boolean
- - in: query
- name: name__ic
+ name: data_file_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ nullable: true
+ description: Data file (ID)
explode: true
style: form
- in: query
- name: name__ie
+ name: data_source_id
schema:
type: array
items:
- type: string
+ type: integer
+ nullable: true
+ description: Data source (ID)
explode: true
style: form
- in: query
- name: name__iew
+ name: data_source_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ nullable: true
+ description: Data source (ID)
explode: true
style: form
- in: query
- name: name__isw
+ name: data_synced
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: name__n
+ name: data_synced__empty
+ schema:
+ type: boolean
+ - in: query
+ name: data_synced__gt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: name__nic
+ name: data_synced__gte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: name__nie
+ name: data_synced__lt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: name__niew
+ name: data_synced__lte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: name__nisw
+ name: data_synced__n
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: object_id
+ name: description
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: object_id__empty
+ name: description__empty
schema:
type: boolean
- in: query
- name: object_id__gt
+ name: description__ic
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: object_id__gte
+ name: description__ie
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: object_id__lt
+ name: description__iew
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: object_id__lte
+ name: description__isw
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: object_id__n
+ name: description__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
+ - in: query
+ name: description__nic
schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - in: query
+ name: name
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__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
@@ -50355,21 +53070,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedImageAttachmentList'
+ $ref: '#/components/schemas/PaginatedExportTemplateList'
description: ''
post:
- operationId: extras_image_attachments_create
- description: Post a list of image attachment objects.
+ operationId: extras_export_templates_create
+ description: Post a list of export template objects.
tags:
- extras
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/ImageAttachmentRequest'
+ $ref: '#/components/schemas/WritableExportTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/ImageAttachmentRequest'
+ $ref: '#/components/schemas/WritableExportTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -50379,11 +53094,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ImageAttachment'
+ $ref: '#/components/schemas/ExportTemplate'
description: ''
put:
- operationId: extras_image_attachments_bulk_update
- description: Put a list of image attachment objects.
+ operationId: extras_export_templates_bulk_update
+ description: Put a list of export template objects.
tags:
- extras
requestBody:
@@ -50392,12 +53107,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ImageAttachmentRequest'
+ $ref: '#/components/schemas/ExportTemplateRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ImageAttachmentRequest'
+ $ref: '#/components/schemas/ExportTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -50409,11 +53124,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ImageAttachment'
+ $ref: '#/components/schemas/ExportTemplate'
description: ''
patch:
- operationId: extras_image_attachments_bulk_partial_update
- description: Patch a list of image attachment objects.
+ operationId: extras_export_templates_bulk_partial_update
+ description: Patch a list of export template objects.
tags:
- extras
requestBody:
@@ -50422,12 +53137,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ImageAttachmentRequest'
+ $ref: '#/components/schemas/ExportTemplateRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ImageAttachmentRequest'
+ $ref: '#/components/schemas/ExportTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -50439,11 +53154,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ImageAttachment'
+ $ref: '#/components/schemas/ExportTemplate'
description: ''
delete:
- operationId: extras_image_attachments_bulk_destroy
- description: Delete a list of image attachment objects.
+ operationId: extras_export_templates_bulk_destroy
+ description: Delete a list of export template objects.
tags:
- extras
requestBody:
@@ -50452,12 +53167,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ImageAttachmentRequest'
+ $ref: '#/components/schemas/ExportTemplateRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ImageAttachmentRequest'
+ $ref: '#/components/schemas/ExportTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -50465,16 +53180,16 @@ paths:
responses:
'204':
description: No response body
- /api/extras/image-attachments/{id}/:
+ /api/extras/export-templates/{id}/:
get:
- operationId: extras_image_attachments_retrieve
- description: Get a image attachment object.
+ operationId: extras_export_templates_retrieve
+ description: Get a export template object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this image attachment.
+ description: A unique integer value identifying this export template.
required: true
tags:
- extras
@@ -50486,17 +53201,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ImageAttachment'
+ $ref: '#/components/schemas/ExportTemplate'
description: ''
put:
- operationId: extras_image_attachments_update
- description: Put a image attachment object.
+ operationId: extras_export_templates_update
+ description: Put a export template object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this image attachment.
+ description: A unique integer value identifying this export template.
required: true
tags:
- extras
@@ -50504,10 +53219,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ImageAttachmentRequest'
+ $ref: '#/components/schemas/WritableExportTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/ImageAttachmentRequest'
+ $ref: '#/components/schemas/WritableExportTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -50517,17 +53232,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ImageAttachment'
+ $ref: '#/components/schemas/ExportTemplate'
description: ''
patch:
- operationId: extras_image_attachments_partial_update
- description: Patch a image attachment object.
+ operationId: extras_export_templates_partial_update
+ description: Patch a export template object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this image attachment.
+ description: A unique integer value identifying this export template.
required: true
tags:
- extras
@@ -50535,10 +53250,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedImageAttachmentRequest'
+ $ref: '#/components/schemas/PatchedWritableExportTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedImageAttachmentRequest'
+ $ref: '#/components/schemas/PatchedWritableExportTemplateRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -50547,17 +53262,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ImageAttachment'
+ $ref: '#/components/schemas/ExportTemplate'
description: ''
delete:
- operationId: extras_image_attachments_destroy
- description: Delete a image attachment object.
+ operationId: extras_export_templates_destroy
+ description: Delete a export template object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this image attachment.
+ description: A unique integer value identifying this export template.
required: true
tags:
- extras
@@ -50567,35 +53282,67 @@ paths:
responses:
'204':
description: No response body
- /api/extras/journal-entries/:
+ /api/extras/export-templates/{id}/sync/:
+ post:
+ operationId: extras_export_templates_sync_create
+ description: Provide a /sync API endpoint to synchronize an object's data from
+ its associated DataFile (if any).
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this export template.
+ required: true
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableExportTemplateRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableExportTemplateRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ExportTemplate'
+ description: ''
+ /api/extras/image-attachments/:
get:
- operationId: extras_journal_entries_list
- description: Get a list of journal entry objects.
+ operationId: extras_image_attachments_list
+ description: Get a list of image attachment objects.
parameters:
- in: query
- name: assigned_object_id
+ name: content_type
schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
+ type: string
- in: query
- name: assigned_object_id__empty
+ name: content_type__n
schema:
- type: boolean
+ type: string
- in: query
- name: assigned_object_id__gt
+ name: content_type_id
schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
+ type: integer
- in: query
- name: assigned_object_id__gte
+ name: content_type_id__n
+ schema:
+ type: integer
+ - in: query
+ name: created
+ schema:
+ type: string
+ format: date-time
+ - in: query
+ name: id
schema:
type: array
items:
@@ -50604,7 +53351,11 @@ paths:
explode: true
style: form
- in: query
- name: assigned_object_id__lt
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
schema:
type: array
items:
@@ -50613,7 +53364,7 @@ paths:
explode: true
style: form
- in: query
- name: assigned_object_id__lte
+ name: id__gte
schema:
type: array
items:
@@ -50622,7 +53373,7 @@ paths:
explode: true
style: form
- in: query
- name: assigned_object_id__n
+ name: id__lt
schema:
type: array
items:
@@ -50631,142 +53382,99 @@ paths:
explode: true
style: form
- in: query
- name: assigned_object_type
- schema:
- type: string
- - in: query
- name: assigned_object_type__n
- schema:
- type: string
- - in: query
- name: assigned_object_type_id
+ name: id__lte
schema:
type: array
items:
type: integer
+ format: int32
explode: true
style: form
- in: query
- name: assigned_object_type_id__n
+ name: id__n
schema:
type: array
items:
type: integer
+ format: int32
explode: true
style: form
- - in: query
- name: created_after
- schema:
- type: string
- format: date-time
- - in: query
- name: created_before
- schema:
- type: string
- format: date-time
- - in: query
- name: created_by
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
schema:
- type: array
- items:
- type: string
- description: User (name)
- explode: true
- style: form
+ type: integer
- in: query
- name: created_by__n
+ name: name
schema:
type: array
items:
type: string
- description: User (name)
explode: true
style: form
- in: query
- name: created_by_id
+ name: name__empty
schema:
- type: array
- items:
- type: integer
- nullable: true
- description: User (ID)
- explode: true
- style: form
+ type: boolean
- in: query
- name: created_by_id__n
+ name: name__ic
schema:
type: array
items:
- type: integer
- nullable: true
- description: User (ID)
+ type: string
explode: true
style: form
- in: query
- name: created_by_request
- schema:
- type: string
- format: uuid
- - in: query
- name: id
+ name: name__ie
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__empty
- schema:
- type: boolean
- - in: query
- name: id__gt
+ name: name__iew
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__gte
+ name: name__isw
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__lt
+ name: name__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__lte
+ name: name__nic
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__n
+ name: name__nie
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: kind
+ name: name__niew
schema:
type: array
items:
@@ -50774,7 +53482,7 @@ paths:
explode: true
style: form
- in: query
- name: kind__n
+ name: name__nisw
schema:
type: array
items:
@@ -50782,79 +53490,63 @@ paths:
explode: true
style: form
- in: query
- name: last_updated
+ name: object_id
schema:
type: array
items:
- type: string
- format: date-time
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: last_updated__empty
+ name: object_id__empty
schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
+ type: boolean
- in: query
- name: last_updated__gt
+ name: object_id__gt
schema:
type: array
items:
- type: string
- format: date-time
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: last_updated__gte
+ name: object_id__gte
schema:
type: array
items:
- type: string
- format: date-time
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: last_updated__lt
+ name: object_id__lt
schema:
type: array
items:
- type: string
- format: date-time
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: last_updated__lte
+ name: object_id__lte
schema:
type: array
items:
- type: string
- format: date-time
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: last_updated__n
+ name: object_id__n
schema:
type: array
items:
- type: string
- format: date-time
+ type: integer
+ format: int32
explode: true
style: form
- - name: limit
- required: false
- in: query
- description: Number of results to return per page.
- schema:
- type: integer
- - in: query
- name: modified_by_request
- schema:
- type: string
- format: uuid
- name: offset
required: false
in: query
@@ -50872,27 +53564,6 @@ paths:
schema:
type: string
description: Search
- - in: query
- name: tag
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: tag__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: updated_by_request
- schema:
- type: string
- format: uuid
tags:
- extras
security:
@@ -50903,21 +53574,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedJournalEntryList'
+ $ref: '#/components/schemas/PaginatedImageAttachmentList'
description: ''
post:
- operationId: extras_journal_entries_create
- description: Post a list of journal entry objects.
+ operationId: extras_image_attachments_create
+ description: Post a list of image attachment objects.
tags:
- extras
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableJournalEntryRequest'
+ $ref: '#/components/schemas/ImageAttachmentRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableJournalEntryRequest'
+ $ref: '#/components/schemas/ImageAttachmentRequest'
required: true
security:
- cookieAuth: []
@@ -50927,11 +53598,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/JournalEntry'
+ $ref: '#/components/schemas/ImageAttachment'
description: ''
put:
- operationId: extras_journal_entries_bulk_update
- description: Put a list of journal entry objects.
+ operationId: extras_image_attachments_bulk_update
+ description: Put a list of image attachment objects.
tags:
- extras
requestBody:
@@ -50940,12 +53611,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntryRequest'
+ $ref: '#/components/schemas/ImageAttachmentRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntryRequest'
+ $ref: '#/components/schemas/ImageAttachmentRequest'
required: true
security:
- cookieAuth: []
@@ -50957,11 +53628,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntry'
+ $ref: '#/components/schemas/ImageAttachment'
description: ''
patch:
- operationId: extras_journal_entries_bulk_partial_update
- description: Patch a list of journal entry objects.
+ operationId: extras_image_attachments_bulk_partial_update
+ description: Patch a list of image attachment objects.
tags:
- extras
requestBody:
@@ -50970,12 +53641,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntryRequest'
+ $ref: '#/components/schemas/ImageAttachmentRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntryRequest'
+ $ref: '#/components/schemas/ImageAttachmentRequest'
required: true
security:
- cookieAuth: []
@@ -50987,11 +53658,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntry'
+ $ref: '#/components/schemas/ImageAttachment'
description: ''
delete:
- operationId: extras_journal_entries_bulk_destroy
- description: Delete a list of journal entry objects.
+ operationId: extras_image_attachments_bulk_destroy
+ description: Delete a list of image attachment objects.
tags:
- extras
requestBody:
@@ -51000,12 +53671,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntryRequest'
+ $ref: '#/components/schemas/ImageAttachmentRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntryRequest'
+ $ref: '#/components/schemas/ImageAttachmentRequest'
required: true
security:
- cookieAuth: []
@@ -51013,16 +53684,16 @@ paths:
responses:
'204':
description: No response body
- /api/extras/journal-entries/{id}/:
+ /api/extras/image-attachments/{id}/:
get:
- operationId: extras_journal_entries_retrieve
- description: Get a journal entry object.
+ operationId: extras_image_attachments_retrieve
+ description: Get a image attachment object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this journal entry.
+ description: A unique integer value identifying this image attachment.
required: true
tags:
- extras
@@ -51034,17 +53705,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/JournalEntry'
+ $ref: '#/components/schemas/ImageAttachment'
description: ''
put:
- operationId: extras_journal_entries_update
- description: Put a journal entry object.
+ operationId: extras_image_attachments_update
+ description: Put a image attachment object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this journal entry.
+ description: A unique integer value identifying this image attachment.
required: true
tags:
- extras
@@ -51052,10 +53723,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableJournalEntryRequest'
+ $ref: '#/components/schemas/ImageAttachmentRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableJournalEntryRequest'
+ $ref: '#/components/schemas/ImageAttachmentRequest'
required: true
security:
- cookieAuth: []
@@ -51065,17 +53736,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/JournalEntry'
+ $ref: '#/components/schemas/ImageAttachment'
description: ''
patch:
- operationId: extras_journal_entries_partial_update
- description: Patch a journal entry object.
+ operationId: extras_image_attachments_partial_update
+ description: Patch a image attachment object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this journal entry.
+ description: A unique integer value identifying this image attachment.
required: true
tags:
- extras
@@ -51083,10 +53754,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableJournalEntryRequest'
+ $ref: '#/components/schemas/PatchedImageAttachmentRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableJournalEntryRequest'
+ $ref: '#/components/schemas/PatchedImageAttachmentRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -51095,17 +53766,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/JournalEntry'
+ $ref: '#/components/schemas/ImageAttachment'
description: ''
delete:
- operationId: extras_journal_entries_destroy
- description: Delete a journal entry object.
+ operationId: extras_image_attachments_destroy
+ description: Delete a image attachment object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this journal entry.
+ description: A unique integer value identifying this image attachment.
required: true
tags:
- extras
@@ -51115,21 +53786,26 @@ paths:
responses:
'204':
description: No response body
- /api/extras/object-changes/:
+ /api/extras/journal-entries/:
get:
- operationId: extras_object_changes_list
- description: Retrieve a list of recent changes.
+ operationId: extras_journal_entries_list
+ description: Get a list of journal entry objects.
parameters:
- in: query
- name: action
+ name: assigned_object_id
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: action__n
+ name: assigned_object_id__empty
schema:
- type: string
+ type: boolean
- in: query
- name: changed_object_id
+ name: assigned_object_id__gt
schema:
type: array
items:
@@ -51138,11 +53814,16 @@ paths:
explode: true
style: form
- in: query
- name: changed_object_id__empty
+ name: assigned_object_id__gte
schema:
- type: boolean
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: changed_object_id__gt
+ name: assigned_object_id__lt
schema:
type: array
items:
@@ -51151,7 +53832,7 @@ paths:
explode: true
style: form
- in: query
- name: changed_object_id__gte
+ name: assigned_object_id__lte
schema:
type: array
items:
@@ -51160,7 +53841,7 @@ paths:
explode: true
style: form
- in: query
- name: changed_object_id__lt
+ name: assigned_object_id__n
schema:
type: array
items:
@@ -51169,47 +53850,82 @@ paths:
explode: true
style: form
- in: query
- name: changed_object_id__lte
+ name: assigned_object_type
+ schema:
+ type: string
+ - in: query
+ name: assigned_object_type__n
+ schema:
+ type: string
+ - in: query
+ name: assigned_object_type_id
schema:
type: array
items:
type: integer
- format: int32
explode: true
style: form
- in: query
- name: changed_object_id__n
+ name: assigned_object_type_id__n
schema:
type: array
items:
type: integer
- format: int32
explode: true
style: form
- in: query
- name: changed_object_type
+ name: created_after
schema:
type: string
+ format: date-time
- in: query
- name: changed_object_type__n
+ name: created_before
schema:
type: string
+ format: date-time
- in: query
- name: changed_object_type_id
+ name: created_by
+ schema:
+ type: array
+ items:
+ type: string
+ description: User (name)
+ explode: true
+ style: form
+ - in: query
+ name: created_by__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: User (name)
+ explode: true
+ style: form
+ - in: query
+ name: created_by_id
schema:
type: array
items:
type: integer
+ nullable: true
+ description: User (ID)
explode: true
style: form
- in: query
- name: changed_object_type_id__n
+ name: created_by_id__n
schema:
type: array
items:
type: integer
+ nullable: true
+ description: User (ID)
explode: true
style: form
+ - in: query
+ name: created_by_request
+ schema:
+ type: string
+ format: uuid
- in: query
name: id
schema:
@@ -51268,96 +53984,98 @@ paths:
format: int32
explode: true
style: form
- - name: limit
- required: false
- in: query
- description: Number of results to return per page.
- schema:
- type: integer
- in: query
- name: object_repr
+ name: kind
schema:
type: array
items:
type: string
+ x-spec-enum-id: a21af280f632fa34
explode: true
style: form
- in: query
- name: object_repr__empty
- schema:
- type: boolean
- - in: query
- name: object_repr__ic
+ name: kind__n
schema:
type: array
items:
type: string
+ x-spec-enum-id: a21af280f632fa34
explode: true
style: form
- in: query
- name: object_repr__ie
+ name: last_updated
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: object_repr__iew
+ name: last_updated__empty
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: object_repr__isw
+ name: last_updated__gt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: object_repr__n
+ name: last_updated__gte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: object_repr__nic
+ name: last_updated__lt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: object_repr__nie
+ name: last_updated__lte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: object_repr__niew
+ 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: object_repr__nisw
+ name: modified_by_request
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: string
+ format: uuid
- name: offset
required: false
in: query
@@ -51376,120 +54094,7 @@ paths:
type: string
description: Search
- in: query
- name: request_id
- schema:
- type: string
- format: uuid
- - in: query
- name: time_after
- schema:
- type: string
- format: date-time
- - in: query
- name: time_before
- schema:
- type: string
- format: date-time
- - in: query
- name: user
- schema:
- type: array
- items:
- type: string
- description: User name
- explode: true
- style: form
- - in: query
- name: user__n
- schema:
- type: array
- items:
- type: string
- description: User name
- explode: true
- style: form
- - in: query
- name: user_id
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: User (ID)
- explode: true
- style: form
- - in: query
- name: user_id__n
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: User (ID)
- explode: true
- style: form
- - in: query
- name: user_name
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: user_name__empty
- schema:
- type: boolean
- - in: query
- name: user_name__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: user_name__ie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: user_name__iew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: user_name__isw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: user_name__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: user_name__nic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: user_name__nie
+ name: tag
schema:
type: array
items:
@@ -51497,7 +54102,7 @@ paths:
explode: true
style: form
- in: query
- name: user_name__niew
+ name: tag__n
schema:
type: array
items:
@@ -51505,13 +54110,10 @@ paths:
explode: true
style: form
- in: query
- name: user_name__nisw
+ name: updated_by_request
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: string
+ format: uuid
tags:
- extras
security:
@@ -51522,18 +54124,126 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedObjectChangeList'
+ $ref: '#/components/schemas/PaginatedJournalEntryList'
description: ''
- /api/extras/object-changes/{id}/:
+ post:
+ operationId: extras_journal_entries_create
+ description: Post a list of journal entry objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableJournalEntryRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableJournalEntryRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/JournalEntry'
+ description: ''
+ put:
+ operationId: extras_journal_entries_bulk_update
+ description: Put a list of journal entry objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntryRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntryRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntry'
+ description: ''
+ patch:
+ operationId: extras_journal_entries_bulk_partial_update
+ description: Patch a list of journal entry objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntryRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntryRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntry'
+ description: ''
+ delete:
+ operationId: extras_journal_entries_bulk_destroy
+ description: Delete a list of journal entry objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntryRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntryRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/extras/journal-entries/{id}/:
get:
- operationId: extras_object_changes_retrieve
- description: Retrieve a list of recent changes.
+ operationId: extras_journal_entries_retrieve
+ description: Get a journal entry object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this object change.
+ description: A unique integer value identifying this journal entry.
required: true
tags:
- extras
@@ -51545,42 +54255,104 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ObjectChange'
+ $ref: '#/components/schemas/JournalEntry'
description: ''
- /api/extras/saved-filters/:
- get:
- operationId: extras_saved_filters_list
- description: Get a list of saved filter objects.
+ put:
+ operationId: extras_journal_entries_update
+ description: Put a journal entry object.
parameters:
- - 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
+ - in: path
+ name: id
schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: content_type_id__gte
+ type: integer
+ description: A unique integer value identifying this journal entry.
+ required: true
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableJournalEntryRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableJournalEntryRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/JournalEntry'
+ description: ''
+ patch:
+ operationId: extras_journal_entries_partial_update
+ description: Patch a journal entry object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this journal entry.
+ required: true
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableJournalEntryRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableJournalEntryRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/JournalEntry'
+ description: ''
+ delete:
+ operationId: extras_journal_entries_destroy
+ description: Delete a journal entry object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this journal entry.
+ required: true
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/extras/object-changes/:
+ get:
+ operationId: extras_object_changes_list
+ description: Retrieve a list of recent changes.
+ parameters:
+ - in: query
+ name: action
+ schema:
+ type: string
+ x-spec-enum-id: 544f9b3b28b7ce6a
+ - in: query
+ name: action__n
+ schema:
+ type: string
+ x-spec-enum-id: 544f9b3b28b7ce6a
+ - in: query
+ name: changed_object_id
schema:
type: array
items:
@@ -51589,7 +54361,11 @@ paths:
explode: true
style: form
- in: query
- name: content_type_id__lt
+ name: changed_object_id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: changed_object_id__gt
schema:
type: array
items:
@@ -51598,7 +54374,7 @@ paths:
explode: true
style: form
- in: query
- name: content_type_id__lte
+ name: changed_object_id__gte
schema:
type: array
items:
@@ -51607,7 +54383,7 @@ paths:
explode: true
style: form
- in: query
- name: content_type_id__n
+ name: changed_object_id__lt
schema:
type: array
items:
@@ -51616,67 +54392,113 @@ paths:
explode: true
style: form
- in: query
- name: content_types
+ name: changed_object_id__lte
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: content_types__ic
+ name: changed_object_id__n
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: content_types__ie
+ name: changed_object_type
schema:
type: string
- in: query
- name: content_types__iew
+ name: changed_object_type__n
schema:
type: string
- in: query
- name: content_types__isw
+ name: changed_object_type_id
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
- name: content_types__n
+ name: changed_object_type_id__n
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
- name: content_types__nic
+ name: id
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: content_types__nie
+ name: id__empty
schema:
- type: string
+ type: boolean
- in: query
- name: content_types__niew
+ name: id__gt
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: content_types__nisw
+ name: id__gte
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: description
+ name: id__lt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: description__empty
+ name: id__lte
schema:
- type: boolean
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: description__ic
+ name: id__n
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
- in: query
- name: description__ie
+ name: object_repr
schema:
type: array
items:
@@ -51684,7 +54506,11 @@ paths:
explode: true
style: form
- in: query
- name: description__iew
+ name: object_repr__empty
+ schema:
+ type: boolean
+ - in: query
+ name: object_repr__ic
schema:
type: array
items:
@@ -51692,7 +54518,7 @@ paths:
explode: true
style: form
- in: query
- name: description__isw
+ name: object_repr__ie
schema:
type: array
items:
@@ -51700,7 +54526,7 @@ paths:
explode: true
style: form
- in: query
- name: description__n
+ name: object_repr__iew
schema:
type: array
items:
@@ -51708,7 +54534,7 @@ paths:
explode: true
style: form
- in: query
- name: description__nic
+ name: object_repr__isw
schema:
type: array
items:
@@ -51716,7 +54542,7 @@ paths:
explode: true
style: form
- in: query
- name: description__nie
+ name: object_repr__n
schema:
type: array
items:
@@ -51724,7 +54550,7 @@ paths:
explode: true
style: form
- in: query
- name: description__niew
+ name: object_repr__nic
schema:
type: array
items:
@@ -51732,7 +54558,7 @@ paths:
explode: true
style: form
- in: query
- name: description__nisw
+ name: object_repr__nie
schema:
type: array
items:
@@ -51740,75 +54566,93 @@ paths:
explode: true
style: form
- in: query
- name: enabled
- schema:
- type: boolean
- - in: query
- name: id
+ name: object_repr__niew
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__empty
- schema:
- type: boolean
- - in: query
- name: id__gt
+ name: object_repr__nisw
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
- in: query
- name: id__gte
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: request_id
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: time_after
+ schema:
+ type: string
+ format: date-time
+ - in: query
+ name: time_before
+ schema:
+ type: string
+ format: date-time
+ - in: query
+ name: user
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ description: User name
explode: true
style: form
- in: query
- name: id__lt
+ name: user__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ description: User name
explode: true
style: form
- in: query
- name: id__lte
+ name: user_id
schema:
type: array
items:
type: integer
- format: int32
+ nullable: true
+ description: User (ID)
explode: true
style: form
- in: query
- name: id__n
+ name: user_id__n
schema:
type: array
items:
type: integer
- format: int32
+ nullable: true
+ description: User (ID)
explode: true
style: form
- - name: limit
- required: false
- in: query
- description: Number of results to return per page.
- schema:
- type: integer
- in: query
- name: name
+ name: user_name
schema:
type: array
items:
@@ -51816,11 +54660,11 @@ paths:
explode: true
style: form
- in: query
- name: name__empty
+ name: user_name__empty
schema:
type: boolean
- in: query
- name: name__ic
+ name: user_name__ic
schema:
type: array
items:
@@ -51828,7 +54672,7 @@ paths:
explode: true
style: form
- in: query
- name: name__ie
+ name: user_name__ie
schema:
type: array
items:
@@ -51836,7 +54680,7 @@ paths:
explode: true
style: form
- in: query
- name: name__iew
+ name: user_name__iew
schema:
type: array
items:
@@ -51844,7 +54688,7 @@ paths:
explode: true
style: form
- in: query
- name: name__isw
+ name: user_name__isw
schema:
type: array
items:
@@ -51852,7 +54696,7 @@ paths:
explode: true
style: form
- in: query
- name: name__n
+ name: user_name__n
schema:
type: array
items:
@@ -51860,7 +54704,7 @@ paths:
explode: true
style: form
- in: query
- name: name__nic
+ name: user_name__nic
schema:
type: array
items:
@@ -51868,7 +54712,7 @@ paths:
explode: true
style: form
- in: query
- name: name__nie
+ name: user_name__nie
schema:
type: array
items:
@@ -51876,7 +54720,7 @@ paths:
explode: true
style: form
- in: query
- name: name__niew
+ name: user_name__niew
schema:
type: array
items:
@@ -51884,72 +54728,158 @@ paths:
explode: true
style: form
- in: query
- name: name__nisw
+ name: user_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.
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedObjectChangeList'
+ description: ''
+ /api/extras/object-changes/{id}/:
+ get:
+ operationId: extras_object_changes_retrieve
+ description: Retrieve a list of recent changes.
+ parameters:
+ - in: path
+ name: id
schema:
type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
- schema:
- type: string
+ description: A unique integer value identifying this object change.
+ required: true
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ObjectChange'
+ description: ''
+ /api/extras/saved-filters/:
+ get:
+ operationId: extras_saved_filters_list
+ description: Get a list of saved filter objects.
+ parameters:
- in: query
- name: q
+ name: content_type_id
schema:
- type: string
- description: Search
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: shared
+ name: content_type_id__empty
schema:
- type: boolean
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: slug
+ name: content_type_id__gt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: slug__empty
+ name: content_type_id__gte
schema:
- type: boolean
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: slug__ic
+ name: content_type_id__lt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: slug__ie
+ name: content_type_id__lte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: slug__iew
+ name: content_type_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: slug__isw
+ 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: description
schema:
type: array
items:
@@ -51957,7 +54887,11 @@ paths:
explode: true
style: form
- in: query
- name: slug__n
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
schema:
type: array
items:
@@ -51965,7 +54899,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__nic
+ name: description__ie
schema:
type: array
items:
@@ -51973,7 +54907,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__nie
+ name: description__iew
schema:
type: array
items:
@@ -51981,7 +54915,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__niew
+ name: description__isw
schema:
type: array
items:
@@ -51989,7 +54923,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__nisw
+ name: description__n
schema:
type: array
items:
@@ -51997,49 +54931,43 @@ paths:
explode: true
style: form
- in: query
- name: usable
- schema:
- type: boolean
- - in: query
- name: user
+ name: description__nic
schema:
type: array
items:
type: string
- description: User (name)
explode: true
style: form
- in: query
- name: user__n
+ name: description__nie
schema:
type: array
items:
type: string
- description: User (name)
explode: true
style: form
- in: query
- name: user_id
+ name: description__niew
schema:
type: array
items:
- type: integer
- nullable: true
- description: User (ID)
+ type: string
explode: true
style: form
- in: query
- name: user_id__n
+ name: description__nisw
schema:
type: array
items:
- type: integer
- nullable: true
- description: User (ID)
+ type: string
explode: true
style: form
- in: query
- name: weight
+ name: enabled
+ schema:
+ type: boolean
+ - in: query
+ name: id
schema:
type: array
items:
@@ -52048,11 +54976,11 @@ paths:
explode: true
style: form
- in: query
- name: weight__empty
+ name: id__empty
schema:
type: boolean
- in: query
- name: weight__gt
+ name: id__gt
schema:
type: array
items:
@@ -52061,7 +54989,7 @@ paths:
explode: true
style: form
- in: query
- name: weight__gte
+ name: id__gte
schema:
type: array
items:
@@ -52070,7 +54998,7 @@ paths:
explode: true
style: form
- in: query
- name: weight__lt
+ name: id__lt
schema:
type: array
items:
@@ -52079,7 +55007,7 @@ paths:
explode: true
style: form
- in: query
- name: weight__lte
+ name: id__lte
schema:
type: array
items:
@@ -52088,7 +55016,7 @@ paths:
explode: true
style: form
- in: query
- name: weight__n
+ name: id__n
schema:
type: array
items:
@@ -52096,14 +55024,309 @@ paths:
format: int32
explode: true
style: form
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - in: query
+ name: name
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: name__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: shared
+ schema:
+ type: boolean
+ - 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: usable
+ schema:
+ type: boolean
+ - in: query
+ name: user
+ schema:
+ type: array
+ items:
+ type: string
+ description: User (name)
+ explode: true
+ style: form
+ - in: query
+ name: user__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: User (name)
+ explode: true
+ style: form
+ - in: query
+ name: user_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: User (ID)
+ explode: true
+ style: form
+ - in: query
+ name: user_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: User (ID)
+ explode: true
+ style: form
+ - in: query
+ name: weight
+ schema:
+ 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:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedSavedFilterList'
@@ -53235,180 +56458,157 @@ 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
+ name: created_by_request
schema:
type: string
+ format: uuid
- in: query
- name: content_types__niew
+ name: description
schema:
- type: string
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
- name: content_types__nisw
+ name: description__empty
schema:
- type: string
+ type: boolean
- in: query
- name: created
+ name: description__ic
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__empty
+ name: description__ie
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__gt
+ name: description__iew
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__gte
+ name: description__isw
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__lt
+ name: description__n
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__lte
+ name: description__nic
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__n
+ name: description__nie
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created_by_request
+ name: description__niew
schema:
- type: string
- format: uuid
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
- name: enabled
+ name: description__nisw
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: http_content_type
schema:
@@ -53499,6 +56699,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: a12018571a034921
explode: true
style: form
- in: query
@@ -53507,6 +56708,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: a12018571a034921
explode: true
style: form
- in: query
@@ -53745,82 +56947,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: payload_url__empty
- schema:
- type: boolean
- - in: query
- name: payload_url__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: payload_url__ie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: payload_url__iew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: payload_url__isw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: payload_url__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: payload_url__nic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: payload_url__nie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: payload_url__niew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: payload_url__nisw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- in: query
name: q
schema:
@@ -53930,26 +57056,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: type_create
- schema:
- type: boolean
- - in: query
- name: type_delete
- schema:
- type: boolean
- - in: query
- name: type_job_end
- schema:
- type: boolean
- - in: query
- name: type_job_start
- schema:
- type: boolean
- - in: query
- name: type_update
- schema:
- type: boolean
- in: query
name: updated_by_request
schema:
@@ -57290,6 +60396,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 12b9faea3a45bf37
title: Authentication type
explode: true
style: form
@@ -57299,6 +60406,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 12b9faea3a45bf37
title: Authentication type
explode: true
style: form
@@ -57370,6 +60478,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: group_id
schema:
@@ -57662,6 +60854,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 40dc831c689b4b78
explode: true
style: form
- in: query
@@ -57670,6 +60863,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 40dc831c689b4b78
explode: true
style: form
- in: query
@@ -58391,9 +61585,21 @@ paths:
type: integer
- in: query
name: mask_length
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: mask_length__gte
+ schema:
+ type: number
+ - in: query
+ name: mask_length__lte
schema:
type: number
- description: Mask length
- in: query
name: modified_by_request
schema:
@@ -58438,6 +61644,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 10fbcb4930889b0f
description: The functional role of this IP
explode: true
style: form
@@ -58447,6 +61654,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 10fbcb4930889b0f
description: The functional role of this IP
explode: true
style: form
@@ -58456,6 +61664,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 24935cfee15bd268
description: The operational status of this IP
explode: true
style: form
@@ -58465,6 +61674,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 24935cfee15bd268
description: The operational status of this IP
explode: true
style: form
@@ -59267,6 +62477,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 6388dfb94ca1cc15
description: Operational status of this range
explode: true
style: form
@@ -59276,6 +62487,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 6388dfb94ca1cc15
description: Operational status of this range
explode: true
style: form
@@ -59698,27 +62910,79 @@ paths:
items:
$ref: '#/components/schemas/IPAddress'
description: ''
- /api/ipam/l2vpn-terminations/:
+ /api/ipam/prefixes/:
get:
- operationId: ipam_l2vpn_terminations_list
- description: Get a list of L2VPN termination objects.
+ operationId: ipam_prefixes_list
+ description: Get a list of prefix objects.
parameters:
- in: query
- name: assigned_object_type
+ name: children
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: assigned_object_type__n
+ name: children__empty
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: assigned_object_type_id
+ name: children__gt
schema:
- type: integer
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: assigned_object_type_id__n
+ name: children__gte
schema:
- type: integer
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: children__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: children__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: children__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: contains
+ schema:
+ type: string
+ description: Prefixes which contain this prefix or IP
- in: query
name: created
schema:
@@ -59788,45 +63052,43 @@ paths:
type: string
format: uuid
- in: query
- name: device
+ name: depth
schema:
type: array
items:
- type: string
- nullable: true
- description: Device (name)
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: device__n
+ name: depth__empty
schema:
type: array
items:
- type: string
- nullable: true
- description: Device (name)
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: device_id
+ name: depth__gt
schema:
type: array
items:
type: integer
- description: Device (ID)
+ format: int32
explode: true
style: form
- in: query
- name: device_id__n
+ name: depth__gte
schema:
type: array
items:
type: integer
- description: Device (ID)
+ format: int32
explode: true
style: form
- in: query
- name: id
+ name: depth__lt
schema:
type: array
items:
@@ -59835,11 +63097,7 @@ paths:
explode: true
style: form
- in: query
- name: id__empty
- schema:
- type: boolean
- - in: query
- name: id__gt
+ name: depth__lte
schema:
type: array
items:
@@ -59848,7 +63106,7 @@ paths:
explode: true
style: form
- in: query
- name: id__gte
+ name: depth__n
schema:
type: array
items:
@@ -59857,104 +63115,155 @@ paths:
explode: true
style: form
- in: query
- name: id__lt
+ name: description
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__lte
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__n
+ name: description__ie
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: interface
+ name: description__iew
schema:
type: array
items:
type: string
- description: Interface (name)
explode: true
style: form
- in: query
- name: interface__n
+ name: description__isw
schema:
type: array
items:
type: string
- description: Interface (name)
explode: true
style: form
- in: query
- name: interface_id
+ name: description__n
schema:
type: array
items:
- type: integer
- description: Interface (ID)
+ type: string
explode: true
style: form
- in: query
- name: interface_id__n
+ name: description__nic
schema:
type: array
items:
- type: integer
- description: Interface (ID)
+ type: string
explode: true
style: form
- in: query
- name: l2vpn
+ name: description__nie
schema:
type: array
items:
type: string
- description: L2VPN (slug)
explode: true
style: form
- in: query
- name: l2vpn__n
+ name: description__niew
schema:
type: array
items:
type: string
- description: L2VPN (slug)
explode: true
style: form
- in: query
- name: l2vpn_id
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: family
+ schema:
+ type: number
+ - in: query
+ name: id
schema:
type: array
items:
type: integer
- description: L2VPN (ID)
+ format: int32
explode: true
style: form
- in: query
- name: l2vpn_id__n
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
schema:
type: array
items:
type: integer
- description: L2VPN (ID)
+ 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_pool
+ schema:
+ type: boolean
- in: query
name: last_updated
schema:
@@ -60024,6 +63333,27 @@ paths:
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: mark_utilized
+ schema:
+ type: boolean
+ - in: query
+ name: mask_length
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: mask_length__gte
+ schema:
+ type: number
+ - in: query
+ name: mask_length__lte
+ schema:
+ type: number
- in: query
name: modified_by_request
schema:
@@ -60041,6 +63371,22 @@ paths:
description: Which field to use when ordering the results.
schema:
type: string
+ - in: query
+ name: prefix
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: present_in_vrf
+ schema:
+ type: string
+ - in: query
+ name: present_in_vrf_id
+ schema:
+ type: string
- in: query
name: q
schema:
@@ -60051,7 +63397,17 @@ paths:
schema:
type: array
items:
- type: string
+ type: integer
+ description: Region (slug)
+ explode: true
+ style: form
+ - in: query
+ name: region__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Region (slug)
explode: true
style: form
- in: query
@@ -60060,7 +63416,54 @@ paths:
type: array
items:
type: integer
- format: int32
+ description: Region (ID)
+ explode: true
+ style: form
+ - in: query
+ name: region_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Region (ID)
+ explode: true
+ style: form
+ - in: query
+ name: role
+ schema:
+ type: array
+ items:
+ type: string
+ description: Role (slug)
+ explode: true
+ style: form
+ - in: query
+ name: role__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Role (slug)
+ explode: true
+ style: form
+ - in: query
+ name: role_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Role (ID)
+ explode: true
+ style: form
+ - in: query
+ name: role_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Role (ID)
explode: true
style: form
- in: query
@@ -60069,6 +63472,52 @@ paths:
type: array
items:
type: string
+ description: Site (slug)
+ explode: true
+ style: form
+ - in: query
+ name: site__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Site (slug)
+ explode: true
+ style: form
+ - in: query
+ name: site_group
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: site_group__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: site_group_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: site_group_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site group (ID)
explode: true
style: form
- in: query
@@ -60077,7 +63526,38 @@ paths:
type: array
items:
type: integer
- format: int32
+ nullable: true
+ description: Site (ID)
+ explode: true
+ style: form
+ - in: query
+ name: site_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Site (ID)
+ explode: true
+ style: form
+ - in: query
+ name: status
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: d38bee5f512701d9
+ description: Operational status of this prefix
+ explode: true
+ style: form
+ - in: query
+ name: status__n
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: d38bee5f512701d9
+ description: Operational status of this prefix
explode: true
style: form
- in: query
@@ -60097,70 +63577,91 @@ paths:
explode: true
style: form
- in: query
- name: updated_by_request
+ name: tenant
schema:
- type: string
- format: uuid
+ type: array
+ items:
+ type: string
+ description: Tenant (slug)
+ explode: true
+ style: form
- in: query
- name: virtual_machine
+ name: tenant__n
schema:
type: array
items:
type: string
- description: Virtual machine (name)
+ description: Tenant (slug)
explode: true
style: form
- in: query
- name: virtual_machine__n
+ name: tenant_group
schema:
type: array
items:
- type: string
- description: Virtual machine (name)
+ type: integer
+ description: Tenant Group (slug)
explode: true
style: form
- in: query
- name: virtual_machine_id
+ name: tenant_group__n
schema:
type: array
items:
type: integer
- description: Virtual machine (ID)
+ description: Tenant Group (slug)
explode: true
style: form
- in: query
- name: virtual_machine_id__n
+ name: tenant_group_id
schema:
type: array
items:
type: integer
- description: Virtual machine (ID)
+ description: Tenant Group (ID)
explode: true
style: form
- in: query
- name: vlan
+ name: tenant_group_id__n
schema:
type: array
items:
- type: string
- description: VLAN (name)
+ type: integer
+ description: Tenant Group (ID)
explode: true
style: form
- in: query
- name: vlan__n
+ name: tenant_id
schema:
type: array
items:
- type: string
- description: VLAN (name)
+ type: integer
+ nullable: true
+ description: Tenant (ID)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Tenant (ID)
explode: true
style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
- in: query
name: vlan_id
schema:
type: array
items:
type: integer
+ nullable: true
description: VLAN (ID)
explode: true
style: form
@@ -60170,6 +63671,7 @@ paths:
type: array
items:
type: integer
+ nullable: true
description: VLAN (ID)
explode: true
style: form
@@ -60209,41 +63711,57 @@ paths:
type: integer
description: VLAN number (1-4094)
- in: query
- name: vminterface
+ name: vrf
schema:
type: array
items:
type: string
- description: VM interface (name)
+ nullable: true
+ title: Route distinguisher
+ description: VRF (RD)
explode: true
style: form
- in: query
- name: vminterface__n
+ name: vrf__n
schema:
type: array
items:
type: string
- description: VM interface (name)
+ nullable: true
+ title: Route distinguisher
+ description: VRF (RD)
explode: true
style: form
- in: query
- name: vminterface_id
+ name: vrf_id
schema:
type: array
items:
type: integer
- description: VM Interface (ID)
+ nullable: true
+ description: VRF
explode: true
style: form
- in: query
- name: vminterface_id__n
+ name: vrf_id__n
schema:
type: array
items:
type: integer
- description: VM Interface (ID)
+ nullable: true
+ description: VRF
explode: true
style: form
+ - in: query
+ name: within
+ schema:
+ type: string
+ description: Within prefix
+ - in: query
+ name: within_include
+ schema:
+ type: string
+ description: Within and including prefix
tags:
- ipam
security:
@@ -60254,21 +63772,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedL2VPNTerminationList'
+ $ref: '#/components/schemas/PaginatedPrefixList'
description: ''
post:
- operationId: ipam_l2vpn_terminations_create
- description: Post a list of L2VPN termination objects.
+ operationId: ipam_prefixes_create
+ description: Post a list of prefix objects.
tags:
- ipam
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableL2VPNTerminationRequest'
+ $ref: '#/components/schemas/WritablePrefixRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableL2VPNTerminationRequest'
+ $ref: '#/components/schemas/WritablePrefixRequest'
required: true
security:
- cookieAuth: []
@@ -60278,11 +63796,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/L2VPNTermination'
+ $ref: '#/components/schemas/Prefix'
description: ''
put:
- operationId: ipam_l2vpn_terminations_bulk_update
- description: Put a list of L2VPN termination objects.
+ operationId: ipam_prefixes_bulk_update
+ description: Put a list of prefix objects.
tags:
- ipam
requestBody:
@@ -60291,12 +63809,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNTerminationRequest'
+ $ref: '#/components/schemas/PrefixRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNTerminationRequest'
+ $ref: '#/components/schemas/PrefixRequest'
required: true
security:
- cookieAuth: []
@@ -60308,11 +63826,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNTermination'
+ $ref: '#/components/schemas/Prefix'
description: ''
patch:
- operationId: ipam_l2vpn_terminations_bulk_partial_update
- description: Patch a list of L2VPN termination objects.
+ operationId: ipam_prefixes_bulk_partial_update
+ description: Patch a list of prefix objects.
tags:
- ipam
requestBody:
@@ -60321,12 +63839,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNTerminationRequest'
+ $ref: '#/components/schemas/PrefixRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNTerminationRequest'
+ $ref: '#/components/schemas/PrefixRequest'
required: true
security:
- cookieAuth: []
@@ -60338,11 +63856,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNTermination'
+ $ref: '#/components/schemas/Prefix'
description: ''
delete:
- operationId: ipam_l2vpn_terminations_bulk_destroy
- description: Delete a list of L2VPN termination objects.
+ operationId: ipam_prefixes_bulk_destroy
+ description: Delete a list of prefix objects.
tags:
- ipam
requestBody:
@@ -60351,12 +63869,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNTerminationRequest'
+ $ref: '#/components/schemas/PrefixRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNTerminationRequest'
+ $ref: '#/components/schemas/PrefixRequest'
required: true
security:
- cookieAuth: []
@@ -60364,16 +63882,16 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/l2vpn-terminations/{id}/:
+ /api/ipam/prefixes/{id}/:
get:
- operationId: ipam_l2vpn_terminations_retrieve
- description: Get a L2VPN termination object.
+ operationId: ipam_prefixes_retrieve
+ description: Get a prefix object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this L2VPN termination.
+ description: A unique integer value identifying this prefix.
required: true
tags:
- ipam
@@ -60385,17 +63903,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/L2VPNTermination'
+ $ref: '#/components/schemas/Prefix'
description: ''
put:
- operationId: ipam_l2vpn_terminations_update
- description: Put a L2VPN termination object.
+ operationId: ipam_prefixes_update
+ description: Put a prefix object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this L2VPN termination.
+ description: A unique integer value identifying this prefix.
required: true
tags:
- ipam
@@ -60403,10 +63921,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableL2VPNTerminationRequest'
+ $ref: '#/components/schemas/WritablePrefixRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableL2VPNTerminationRequest'
+ $ref: '#/components/schemas/WritablePrefixRequest'
required: true
security:
- cookieAuth: []
@@ -60416,17 +63934,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/L2VPNTermination'
+ $ref: '#/components/schemas/Prefix'
description: ''
patch:
- operationId: ipam_l2vpn_terminations_partial_update
- description: Patch a L2VPN termination object.
+ operationId: ipam_prefixes_partial_update
+ description: Patch a prefix object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this L2VPN termination.
+ description: A unique integer value identifying this prefix.
required: true
tags:
- ipam
@@ -60434,10 +63952,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableL2VPNTerminationRequest'
+ $ref: '#/components/schemas/PatchedWritablePrefixRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableL2VPNTerminationRequest'
+ $ref: '#/components/schemas/PatchedWritablePrefixRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -60446,17 +63964,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/L2VPNTermination'
+ $ref: '#/components/schemas/Prefix'
description: ''
delete:
- operationId: ipam_l2vpn_terminations_destroy
- description: Delete a L2VPN termination object.
+ operationId: ipam_prefixes_destroy
+ description: Delete a prefix object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this L2VPN termination.
+ description: A unique integer value identifying this prefix.
required: true
tags:
- ipam
@@ -60466,10 +63984,130 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/l2vpns/:
+ /api/ipam/prefixes/{id}/available-ips/:
get:
- operationId: ipam_l2vpns_list
- description: Get a list of L2VPN objects.
+ operationId: ipam_prefixes_available_ips_list
+ description: Get a IP address object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ required: true
+ tags:
+ - ipam
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/AvailableIP'
+ description: ''
+ post:
+ operationId: ipam_prefixes_available_ips_create
+ description: Post a IP address object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ required: true
+ tags:
+ - ipam
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/IPAddressRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/IPAddressRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/IPAddress'
+ description: ''
+ /api/ipam/prefixes/{id}/available-prefixes/:
+ get:
+ operationId: ipam_prefixes_available_prefixes_list
+ description: Get a prefix object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ required: true
+ tags:
+ - ipam
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/AvailablePrefix'
+ description: ''
+ post:
+ operationId: ipam_prefixes_available_prefixes_create
+ description: Post a prefix object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ required: true
+ tags:
+ - ipam
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/PrefixRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/PrefixRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Prefix'
+ description: ''
+ /api/ipam/rirs/:
+ get:
+ operationId: ipam_rirs_list
+ description: Get a list of RIR objects.
parameters:
- in: query
name: created
@@ -60623,42 +64261,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: export_target
- schema:
- type: array
- items:
- type: string
- description: Export target (name)
- explode: true
- style: form
- - in: query
- name: export_target__n
- schema:
- type: array
- items:
- type: string
- description: Export target (name)
- explode: true
- style: form
- - in: query
- name: export_target_id
- schema:
- type: array
- items:
- type: integer
- description: Export target
- explode: true
- style: form
- - in: query
- name: export_target_id__n
- schema:
- type: array
- items:
- type: integer
- description: Export target
- explode: true
- style: form
- in: query
name: id
schema:
@@ -60718,99 +64320,9 @@ paths:
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
+ name: is_private
schema:
type: boolean
- - in: query
- name: identifier__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: identifier__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: identifier__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: identifier__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: identifier__n
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: import_target
- schema:
- type: array
- items:
- type: string
- description: Import target (name)
- explode: true
- style: form
- - in: query
- name: import_target__n
- schema:
- type: array
- items:
- type: string
- description: Import target (name)
- explode: true
- style: form
- - in: query
- name: import_target_id
- schema:
- type: array
- items:
- type: integer
- description: Import target
- explode: true
- style: form
- - in: query
- name: import_target_id__n
- schema:
- type: array
- items:
- type: integer
- description: Import target
- explode: true
- style: form
- in: query
name: last_updated
schema:
@@ -61086,96 +64598,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: tenant
- schema:
- type: array
- items:
- type: string
- description: Tenant (slug)
- explode: true
- style: form
- - in: query
- name: tenant__n
- schema:
- type: array
- items:
- type: string
- description: Tenant (slug)
- explode: true
- style: form
- - in: query
- name: tenant_group
- schema:
- type: array
- items:
- type: integer
- description: Tenant Group (slug)
- explode: true
- style: form
- - in: query
- name: tenant_group__n
- schema:
- type: array
- items:
- type: integer
- description: Tenant Group (slug)
- explode: true
- style: form
- - in: query
- name: tenant_group_id
- schema:
- type: array
- items:
- type: integer
- description: Tenant Group (ID)
- explode: true
- style: form
- - in: query
- name: tenant_group_id__n
- schema:
- type: array
- items:
- type: integer
- description: Tenant Group (ID)
- explode: true
- style: form
- - in: query
- name: tenant_id
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Tenant (ID)
- explode: true
- style: form
- - in: query
- name: tenant_id__n
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Tenant (ID)
- explode: true
- style: form
- - in: query
- name: type
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: type__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- in: query
name: updated_by_request
schema:
@@ -61191,21 +64613,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedL2VPNList'
+ $ref: '#/components/schemas/PaginatedRIRList'
description: ''
post:
- operationId: ipam_l2vpns_create
- description: Post a list of L2VPN objects.
+ operationId: ipam_rirs_create
+ description: Post a list of RIR objects.
tags:
- ipam
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableL2VPNRequest'
+ $ref: '#/components/schemas/RIRRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableL2VPNRequest'
+ $ref: '#/components/schemas/RIRRequest'
required: true
security:
- cookieAuth: []
@@ -61215,11 +64637,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/L2VPN'
+ $ref: '#/components/schemas/RIR'
description: ''
put:
- operationId: ipam_l2vpns_bulk_update
- description: Put a list of L2VPN objects.
+ operationId: ipam_rirs_bulk_update
+ description: Put a list of RIR objects.
tags:
- ipam
requestBody:
@@ -61228,12 +64650,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNRequest'
+ $ref: '#/components/schemas/RIRRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNRequest'
+ $ref: '#/components/schemas/RIRRequest'
required: true
security:
- cookieAuth: []
@@ -61245,11 +64667,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPN'
+ $ref: '#/components/schemas/RIR'
description: ''
patch:
- operationId: ipam_l2vpns_bulk_partial_update
- description: Patch a list of L2VPN objects.
+ operationId: ipam_rirs_bulk_partial_update
+ description: Patch a list of RIR objects.
tags:
- ipam
requestBody:
@@ -61258,12 +64680,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNRequest'
+ $ref: '#/components/schemas/RIRRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNRequest'
+ $ref: '#/components/schemas/RIRRequest'
required: true
security:
- cookieAuth: []
@@ -61275,11 +64697,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPN'
+ $ref: '#/components/schemas/RIR'
description: ''
delete:
- operationId: ipam_l2vpns_bulk_destroy
- description: Delete a list of L2VPN objects.
+ operationId: ipam_rirs_bulk_destroy
+ description: Delete a list of RIR objects.
tags:
- ipam
requestBody:
@@ -61288,12 +64710,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNRequest'
+ $ref: '#/components/schemas/RIRRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/L2VPNRequest'
+ $ref: '#/components/schemas/RIRRequest'
required: true
security:
- cookieAuth: []
@@ -61301,16 +64723,16 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/l2vpns/{id}/:
+ /api/ipam/rirs/{id}/:
get:
- operationId: ipam_l2vpns_retrieve
- description: Get a L2VPN object.
+ operationId: ipam_rirs_retrieve
+ description: Get a RIR object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this L2VPN.
+ description: A unique integer value identifying this RIR.
required: true
tags:
- ipam
@@ -61322,17 +64744,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/L2VPN'
+ $ref: '#/components/schemas/RIR'
description: ''
put:
- operationId: ipam_l2vpns_update
- description: Put a L2VPN object.
+ operationId: ipam_rirs_update
+ description: Put a RIR object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this L2VPN.
+ description: A unique integer value identifying this RIR.
required: true
tags:
- ipam
@@ -61340,10 +64762,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableL2VPNRequest'
+ $ref: '#/components/schemas/RIRRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableL2VPNRequest'
+ $ref: '#/components/schemas/RIRRequest'
required: true
security:
- cookieAuth: []
@@ -61353,17 +64775,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/L2VPN'
+ $ref: '#/components/schemas/RIR'
description: ''
patch:
- operationId: ipam_l2vpns_partial_update
- description: Patch a L2VPN object.
+ operationId: ipam_rirs_partial_update
+ description: Patch a RIR object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this L2VPN.
+ description: A unique integer value identifying this RIR.
required: true
tags:
- ipam
@@ -61371,10 +64793,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableL2VPNRequest'
+ $ref: '#/components/schemas/PatchedRIRRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableL2VPNRequest'
+ $ref: '#/components/schemas/PatchedRIRRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -61383,17 +64805,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/L2VPN'
+ $ref: '#/components/schemas/RIR'
description: ''
delete:
- operationId: ipam_l2vpns_destroy
- description: Delete a L2VPN object.
+ operationId: ipam_rirs_destroy
+ description: Delete a RIR object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this L2VPN.
+ description: A unique integer value identifying this RIR.
required: true
tags:
- ipam
@@ -61403,79 +64825,11 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/prefixes/:
+ /api/ipam/roles/:
get:
- operationId: ipam_prefixes_list
- description: Get a list of prefix objects.
+ operationId: ipam_roles_list
+ description: Get a list of role objects.
parameters:
- - in: query
- name: children
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: children__empty
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: children__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: children__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: children__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: children__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: children__n
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: contains
- schema:
- type: string
- description: Prefixes which contain this prefix or IP
- in: query
name: created
schema:
@@ -61544,69 +64898,6 @@ paths:
schema:
type: string
format: uuid
- - in: query
- name: depth
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: depth__empty
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: depth__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: depth__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: depth__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: depth__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: depth__n
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- in: query
name: description
schema:
@@ -61691,10 +64982,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: family
- schema:
- type: number
- in: query
name: id
schema:
@@ -61753,10 +65040,6 @@ paths:
format: int32
explode: true
style: form
- - in: query
- name: is_pool
- schema:
- type: boolean
- in: query
name: last_updated
schema:
@@ -61826,46 +65109,13 @@ paths:
description: Number of results to return per page.
schema:
type: integer
- - in: query
- name: mark_utilized
- schema:
- type: boolean
- - in: query
- name: mask_length
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: mask_length__gte
- schema:
- type: number
- - in: query
- name: mask_length__lte
- schema:
- type: number
- in: query
name: modified_by_request
schema:
type: string
format: uuid
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
- schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
- schema:
- type: string
- in: query
- name: prefix
+ name: name
schema:
type: array
items:
@@ -61873,186 +65123,128 @@ paths:
explode: true
style: form
- in: query
- name: present_in_vrf
- schema:
- type: string
- - in: query
- name: present_in_vrf_id
- schema:
- type: string
- - in: query
- name: q
- schema:
- type: string
- description: Search
- - in: query
- name: region
- schema:
- type: array
- items:
- type: integer
- description: Region (slug)
- explode: true
- style: form
- - in: query
- name: region__n
+ name: name__empty
schema:
- type: array
- items:
- type: integer
- description: Region (slug)
- explode: true
- style: form
+ type: boolean
- in: query
- name: region_id
+ name: name__ic
schema:
type: array
items:
- type: integer
- description: Region (ID)
+ type: string
explode: true
style: form
- in: query
- name: region_id__n
+ name: name__ie
schema:
type: array
items:
- type: integer
- description: Region (ID)
+ type: string
explode: true
style: form
- in: query
- name: role
+ name: name__iew
schema:
type: array
items:
type: string
- description: Role (slug)
explode: true
style: form
- in: query
- name: role__n
+ name: name__isw
schema:
type: array
items:
type: string
- description: Role (slug)
explode: true
style: form
- in: query
- name: role_id
+ name: name__n
schema:
type: array
items:
- type: integer
- nullable: true
- description: Role (ID)
+ type: string
explode: true
style: form
- in: query
- name: role_id__n
+ name: name__nic
schema:
type: array
items:
- type: integer
- nullable: true
- description: Role (ID)
+ type: string
explode: true
style: form
- in: query
- name: site
+ name: name__nie
schema:
type: array
items:
type: string
- description: Site (slug)
explode: true
style: form
- in: query
- name: site__n
+ name: name__niew
schema:
type: array
items:
type: string
- description: Site (slug)
explode: true
style: form
- in: query
- name: site_group
+ name: name__nisw
schema:
type: array
items:
- type: integer
- description: Site group (slug)
+ type: string
explode: true
style: form
- - in: query
- name: site_group__n
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
schema:
- type: array
- items:
- type: integer
- description: Site group (slug)
- explode: true
- style: form
- - in: query
- name: site_group_id
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
schema:
- type: array
- items:
- type: integer
- description: Site group (ID)
- explode: true
- style: form
+ type: string
- in: query
- name: site_group_id__n
+ name: q
schema:
- type: array
- items:
- type: integer
- description: Site group (ID)
- explode: true
- style: form
+ type: string
+ description: Search
- in: query
- name: site_id
+ name: slug
schema:
type: array
items:
- type: integer
- nullable: true
- description: Site (ID)
+ type: string
explode: true
style: form
- in: query
- name: site_id__n
+ name: slug__empty
schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Site (ID)
- explode: true
- style: form
+ type: boolean
- in: query
- name: status
+ name: slug__ic
schema:
type: array
items:
type: string
- description: Operational status of this prefix
explode: true
style: form
- in: query
- name: status__n
+ name: slug__ie
schema:
type: array
items:
type: string
- description: Operational status of this prefix
explode: true
style: form
- in: query
- name: tag
+ name: slug__iew
schema:
type: array
items:
@@ -62060,7 +65252,7 @@ paths:
explode: true
style: form
- in: query
- name: tag__n
+ name: slug__isw
schema:
type: array
items:
@@ -62068,191 +65260,66 @@ paths:
explode: true
style: form
- in: query
- name: tenant
+ name: slug__n
schema:
type: array
items:
type: string
- description: Tenant (slug)
explode: true
style: form
- in: query
- name: tenant__n
+ name: slug__nic
schema:
type: array
items:
type: string
- description: Tenant (slug)
explode: true
style: form
- in: query
- name: tenant_group
+ name: slug__nie
schema:
type: array
items:
- type: integer
- description: Tenant Group (slug)
+ type: string
explode: true
style: form
- in: query
- name: tenant_group__n
+ name: slug__niew
schema:
type: array
items:
- type: integer
- description: Tenant Group (slug)
+ type: string
explode: true
style: form
- in: query
- name: tenant_group_id
+ name: slug__nisw
schema:
type: array
items:
- type: integer
- description: Tenant Group (ID)
+ type: string
explode: true
style: form
- in: query
- name: tenant_group_id__n
+ name: tag
schema:
type: array
items:
- type: integer
- description: Tenant Group (ID)
+ type: string
explode: true
style: form
- in: query
- name: tenant_id
+ name: tag__n
schema:
type: array
items:
- type: integer
- nullable: true
- description: Tenant (ID)
+ type: string
explode: true
style: form
- in: query
- name: tenant_id__n
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Tenant (ID)
- explode: true
- style: form
- - in: query
- name: updated_by_request
+ name: updated_by_request
schema:
type: string
format: uuid
- - in: query
- name: vlan_id
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: VLAN (ID)
- explode: true
- style: form
- - in: query
- name: vlan_id__n
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: VLAN (ID)
- explode: true
- style: form
- - in: query
- name: vlan_vid
- schema:
- type: integer
- description: VLAN number (1-4094)
- - in: query
- name: vlan_vid__empty
- schema:
- type: integer
- description: VLAN number (1-4094)
- - in: query
- name: vlan_vid__gt
- schema:
- type: integer
- description: VLAN number (1-4094)
- - in: query
- name: vlan_vid__gte
- schema:
- type: integer
- description: VLAN number (1-4094)
- - in: query
- name: vlan_vid__lt
- schema:
- type: integer
- description: VLAN number (1-4094)
- - in: query
- name: vlan_vid__lte
- schema:
- type: integer
- description: VLAN number (1-4094)
- - in: query
- name: vlan_vid__n
- schema:
- type: integer
- description: VLAN number (1-4094)
- - in: query
- name: vrf
- schema:
- type: array
- items:
- type: string
- nullable: true
- title: Route distinguisher
- description: VRF (RD)
- explode: true
- style: form
- - in: query
- name: vrf__n
- schema:
- type: array
- items:
- type: string
- nullable: true
- title: Route distinguisher
- description: VRF (RD)
- explode: true
- style: form
- - in: query
- name: vrf_id
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: VRF
- explode: true
- style: form
- - in: query
- name: vrf_id__n
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: VRF
- explode: true
- style: form
- - in: query
- name: within
- schema:
- type: string
- description: Within prefix
- - in: query
- name: within_include
- schema:
- type: string
- description: Within and including prefix
tags:
- ipam
security:
@@ -62263,21 +65330,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedPrefixList'
+ $ref: '#/components/schemas/PaginatedRoleList'
description: ''
post:
- operationId: ipam_prefixes_create
- description: Post a list of prefix objects.
+ operationId: ipam_roles_create
+ description: Post a list of role objects.
tags:
- ipam
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritablePrefixRequest'
+ $ref: '#/components/schemas/RoleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritablePrefixRequest'
+ $ref: '#/components/schemas/RoleRequest'
required: true
security:
- cookieAuth: []
@@ -62287,11 +65354,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Prefix'
+ $ref: '#/components/schemas/Role'
description: ''
put:
- operationId: ipam_prefixes_bulk_update
- description: Put a list of prefix objects.
+ operationId: ipam_roles_bulk_update
+ description: Put a list of role objects.
tags:
- ipam
requestBody:
@@ -62300,12 +65367,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PrefixRequest'
+ $ref: '#/components/schemas/RoleRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/PrefixRequest'
+ $ref: '#/components/schemas/RoleRequest'
required: true
security:
- cookieAuth: []
@@ -62317,11 +65384,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Prefix'
+ $ref: '#/components/schemas/Role'
description: ''
patch:
- operationId: ipam_prefixes_bulk_partial_update
- description: Patch a list of prefix objects.
+ operationId: ipam_roles_bulk_partial_update
+ description: Patch a list of role objects.
tags:
- ipam
requestBody:
@@ -62330,12 +65397,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PrefixRequest'
+ $ref: '#/components/schemas/RoleRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/PrefixRequest'
+ $ref: '#/components/schemas/RoleRequest'
required: true
security:
- cookieAuth: []
@@ -62347,11 +65414,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Prefix'
+ $ref: '#/components/schemas/Role'
description: ''
delete:
- operationId: ipam_prefixes_bulk_destroy
- description: Delete a list of prefix objects.
+ operationId: ipam_roles_bulk_destroy
+ description: Delete a list of role objects.
tags:
- ipam
requestBody:
@@ -62360,12 +65427,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PrefixRequest'
+ $ref: '#/components/schemas/RoleRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/PrefixRequest'
+ $ref: '#/components/schemas/RoleRequest'
required: true
security:
- cookieAuth: []
@@ -62373,16 +65440,16 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/prefixes/{id}/:
+ /api/ipam/roles/{id}/:
get:
- operationId: ipam_prefixes_retrieve
- description: Get a prefix object.
+ operationId: ipam_roles_retrieve
+ description: Get a role object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this prefix.
+ description: A unique integer value identifying this role.
required: true
tags:
- ipam
@@ -62394,17 +65461,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Prefix'
+ $ref: '#/components/schemas/Role'
description: ''
put:
- operationId: ipam_prefixes_update
- description: Put a prefix object.
+ operationId: ipam_roles_update
+ description: Put a role object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this prefix.
+ description: A unique integer value identifying this role.
required: true
tags:
- ipam
@@ -62412,10 +65479,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritablePrefixRequest'
+ $ref: '#/components/schemas/RoleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritablePrefixRequest'
+ $ref: '#/components/schemas/RoleRequest'
required: true
security:
- cookieAuth: []
@@ -62425,17 +65492,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Prefix'
+ $ref: '#/components/schemas/Role'
description: ''
patch:
- operationId: ipam_prefixes_partial_update
- description: Patch a prefix object.
+ operationId: ipam_roles_partial_update
+ description: Patch a role object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this prefix.
+ description: A unique integer value identifying this role.
required: true
tags:
- ipam
@@ -62443,10 +65510,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritablePrefixRequest'
+ $ref: '#/components/schemas/PatchedRoleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritablePrefixRequest'
+ $ref: '#/components/schemas/PatchedRoleRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -62455,17 +65522,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Prefix'
+ $ref: '#/components/schemas/Role'
description: ''
delete:
- operationId: ipam_prefixes_destroy
- description: Delete a prefix object.
+ operationId: ipam_roles_destroy
+ description: Delete a role object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this prefix.
+ description: A unique integer value identifying this role.
required: true
tags:
- ipam
@@ -62475,130 +65542,10 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/prefixes/{id}/available-ips/:
- get:
- operationId: ipam_prefixes_available_ips_list
- description: Get a IP address object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- required: true
- tags:
- - ipam
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/AvailableIP'
- description: ''
- post:
- operationId: ipam_prefixes_available_ips_create
- description: Post a IP address object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- required: true
- tags:
- - ipam
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/IPAddressRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/IPAddressRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '201':
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/IPAddress'
- description: ''
- /api/ipam/prefixes/{id}/available-prefixes/:
- get:
- operationId: ipam_prefixes_available_prefixes_list
- description: Get a prefix object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- required: true
- tags:
- - ipam
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/AvailablePrefix'
- description: ''
- post:
- operationId: ipam_prefixes_available_prefixes_create
- description: Post a prefix object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- required: true
- tags:
- - ipam
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/PrefixRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/PrefixRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '201':
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/Prefix'
- description: ''
- /api/ipam/rirs/:
+ /api/ipam/route-targets/:
get:
- operationId: ipam_rirs_list
- description: Get a list of RIR objects.
+ operationId: ipam_route_targets_list
+ description: Get a list of route target objects.
parameters:
- in: query
name: created
@@ -62752,6 +65699,46 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: exporting_vrf
+ schema:
+ type: array
+ items:
+ type: string
+ nullable: true
+ title: Route distinguisher
+ description: Export VRF (RD)
+ explode: true
+ style: form
+ - in: query
+ name: exporting_vrf__n
+ schema:
+ type: array
+ items:
+ type: string
+ nullable: true
+ title: Route distinguisher
+ description: Export VRF (RD)
+ explode: true
+ style: form
+ - in: query
+ name: exporting_vrf_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Exporting VRF
+ explode: true
+ style: form
+ - in: query
+ name: exporting_vrf_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Exporting VRF
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -62811,9 +65798,45 @@ paths:
explode: true
style: form
- in: query
- name: is_private
+ name: importing_vrf
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ nullable: true
+ title: Route distinguisher
+ description: Import VRF (RD)
+ explode: true
+ style: form
+ - in: query
+ name: importing_vrf__n
+ schema:
+ type: array
+ items:
+ type: string
+ nullable: true
+ title: Route distinguisher
+ description: Import VRF (RD)
+ explode: true
+ style: form
+ - in: query
+ name: importing_vrf_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Importing VRF
+ explode: true
+ style: form
+ - in: query
+ name: importing_vrf_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Importing VRF
+ explode: true
+ style: form
- in: query
name: last_updated
schema:
@@ -62990,27 +66013,7 @@ paths:
type: string
description: Search
- in: query
- name: slug
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__empty
- schema:
- type: boolean
- - in: query
- name: slug__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__ie
+ name: tag
schema:
type: array
items:
@@ -63018,7 +66021,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__iew
+ name: tag__n
schema:
type: array
items:
@@ -63026,67 +66029,77 @@ paths:
explode: true
style: form
- in: query
- name: slug__isw
+ name: tenant
schema:
type: array
items:
type: string
+ description: Tenant (slug)
explode: true
style: form
- in: query
- name: slug__n
+ name: tenant__n
schema:
type: array
items:
type: string
+ description: Tenant (slug)
explode: true
style: form
- in: query
- name: slug__nic
+ name: tenant_group
schema:
type: array
items:
- type: string
+ type: integer
+ description: Tenant Group (slug)
explode: true
style: form
- in: query
- name: slug__nie
+ name: tenant_group__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: Tenant Group (slug)
explode: true
style: form
- in: query
- name: slug__niew
+ name: tenant_group_id
schema:
type: array
items:
- type: string
+ type: integer
+ description: Tenant Group (ID)
explode: true
style: form
- in: query
- name: slug__nisw
+ name: tenant_group_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: Tenant Group (ID)
explode: true
style: form
- in: query
- name: tag
+ name: tenant_id
schema:
type: array
items:
- type: string
+ type: integer
+ nullable: true
+ description: Tenant (ID)
explode: true
style: form
- in: query
- name: tag__n
+ name: tenant_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ nullable: true
+ description: Tenant (ID)
explode: true
style: form
- in: query
@@ -63104,21 +66117,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedRIRList'
+ $ref: '#/components/schemas/PaginatedRouteTargetList'
description: ''
post:
- operationId: ipam_rirs_create
- description: Post a list of RIR objects.
+ operationId: ipam_route_targets_create
+ description: Post a list of route target objects.
tags:
- ipam
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/RIRRequest'
+ $ref: '#/components/schemas/WritableRouteTargetRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/RIRRequest'
+ $ref: '#/components/schemas/WritableRouteTargetRequest'
required: true
security:
- cookieAuth: []
@@ -63128,11 +66141,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/RIR'
+ $ref: '#/components/schemas/RouteTarget'
description: ''
put:
- operationId: ipam_rirs_bulk_update
- description: Put a list of RIR objects.
+ operationId: ipam_route_targets_bulk_update
+ description: Put a list of route target objects.
tags:
- ipam
requestBody:
@@ -63141,12 +66154,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/RIRRequest'
+ $ref: '#/components/schemas/RouteTargetRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/RIRRequest'
+ $ref: '#/components/schemas/RouteTargetRequest'
required: true
security:
- cookieAuth: []
@@ -63158,11 +66171,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/RIR'
+ $ref: '#/components/schemas/RouteTarget'
description: ''
patch:
- operationId: ipam_rirs_bulk_partial_update
- description: Patch a list of RIR objects.
+ operationId: ipam_route_targets_bulk_partial_update
+ description: Patch a list of route target objects.
tags:
- ipam
requestBody:
@@ -63171,12 +66184,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/RIRRequest'
+ $ref: '#/components/schemas/RouteTargetRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/RIRRequest'
+ $ref: '#/components/schemas/RouteTargetRequest'
required: true
security:
- cookieAuth: []
@@ -63188,11 +66201,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/RIR'
+ $ref: '#/components/schemas/RouteTarget'
description: ''
delete:
- operationId: ipam_rirs_bulk_destroy
- description: Delete a list of RIR objects.
+ operationId: ipam_route_targets_bulk_destroy
+ description: Delete a list of route target objects.
tags:
- ipam
requestBody:
@@ -63201,12 +66214,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/RIRRequest'
+ $ref: '#/components/schemas/RouteTargetRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/RIRRequest'
+ $ref: '#/components/schemas/RouteTargetRequest'
required: true
security:
- cookieAuth: []
@@ -63214,16 +66227,16 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/rirs/{id}/:
+ /api/ipam/route-targets/{id}/:
get:
- operationId: ipam_rirs_retrieve
- description: Get a RIR object.
+ operationId: ipam_route_targets_retrieve
+ description: Get a route target object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this RIR.
+ description: A unique integer value identifying this route target.
required: true
tags:
- ipam
@@ -63235,17 +66248,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/RIR'
+ $ref: '#/components/schemas/RouteTarget'
description: ''
put:
- operationId: ipam_rirs_update
- description: Put a RIR object.
+ operationId: ipam_route_targets_update
+ description: Put a route target object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this RIR.
+ description: A unique integer value identifying this route target.
required: true
tags:
- ipam
@@ -63253,10 +66266,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/RIRRequest'
+ $ref: '#/components/schemas/WritableRouteTargetRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/RIRRequest'
+ $ref: '#/components/schemas/WritableRouteTargetRequest'
required: true
security:
- cookieAuth: []
@@ -63266,17 +66279,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/RIR'
+ $ref: '#/components/schemas/RouteTarget'
description: ''
patch:
- operationId: ipam_rirs_partial_update
- description: Patch a RIR object.
+ operationId: ipam_route_targets_partial_update
+ description: Patch a route target object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this RIR.
+ description: A unique integer value identifying this route target.
required: true
tags:
- ipam
@@ -63284,10 +66297,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedRIRRequest'
+ $ref: '#/components/schemas/PatchedWritableRouteTargetRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedRIRRequest'
+ $ref: '#/components/schemas/PatchedWritableRouteTargetRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -63296,17 +66309,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/RIR'
+ $ref: '#/components/schemas/RouteTarget'
description: ''
delete:
- operationId: ipam_rirs_destroy
- description: Delete a RIR object.
+ operationId: ipam_route_targets_destroy
+ description: Delete a route target object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this RIR.
+ description: A unique integer value identifying this route target.
required: true
tags:
- ipam
@@ -63316,10 +66329,10 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/roles/:
+ /api/ipam/service-templates/:
get:
- operationId: ipam_roles_list
- description: Get a list of role objects.
+ operationId: ipam_service_templates_list
+ description: Get a list of service template objects.
parameters:
- in: query
name: created
@@ -63702,94 +66715,24 @@ paths:
schema:
type: string
- in: query
- name: q
- schema:
- type: string
- description: Search
- - in: query
- name: slug
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__empty
- schema:
- type: boolean
- - in: query
- name: slug__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__ie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__iew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__isw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__nic
+ name: port
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: number
- in: query
- name: slug__nie
+ name: protocol
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: string
+ x-spec-enum-id: 5521e084b1ad51de
- in: query
- name: slug__niew
+ name: protocol__n
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: string
+ x-spec-enum-id: 5521e084b1ad51de
- in: query
- name: slug__nisw
+ name: q
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: string
+ description: Search
- in: query
name: tag
schema:
@@ -63821,21 +66764,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedRoleList'
+ $ref: '#/components/schemas/PaginatedServiceTemplateList'
description: ''
post:
- operationId: ipam_roles_create
- description: Post a list of role objects.
+ operationId: ipam_service_templates_create
+ description: Post a list of service template objects.
tags:
- ipam
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/RoleRequest'
+ $ref: '#/components/schemas/WritableServiceTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/RoleRequest'
+ $ref: '#/components/schemas/WritableServiceTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -63845,11 +66788,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Role'
+ $ref: '#/components/schemas/ServiceTemplate'
description: ''
put:
- operationId: ipam_roles_bulk_update
- description: Put a list of role objects.
+ operationId: ipam_service_templates_bulk_update
+ description: Put a list of service template objects.
tags:
- ipam
requestBody:
@@ -63858,12 +66801,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/RoleRequest'
+ $ref: '#/components/schemas/ServiceTemplateRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/RoleRequest'
+ $ref: '#/components/schemas/ServiceTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -63875,11 +66818,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Role'
+ $ref: '#/components/schemas/ServiceTemplate'
description: ''
patch:
- operationId: ipam_roles_bulk_partial_update
- description: Patch a list of role objects.
+ operationId: ipam_service_templates_bulk_partial_update
+ description: Patch a list of service template objects.
tags:
- ipam
requestBody:
@@ -63888,12 +66831,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/RoleRequest'
+ $ref: '#/components/schemas/ServiceTemplateRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/RoleRequest'
+ $ref: '#/components/schemas/ServiceTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -63905,11 +66848,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Role'
+ $ref: '#/components/schemas/ServiceTemplate'
description: ''
delete:
- operationId: ipam_roles_bulk_destroy
- description: Delete a list of role objects.
+ operationId: ipam_service_templates_bulk_destroy
+ description: Delete a list of service template objects.
tags:
- ipam
requestBody:
@@ -63918,12 +66861,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/RoleRequest'
+ $ref: '#/components/schemas/ServiceTemplateRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/RoleRequest'
+ $ref: '#/components/schemas/ServiceTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -63931,16 +66874,16 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/roles/{id}/:
+ /api/ipam/service-templates/{id}/:
get:
- operationId: ipam_roles_retrieve
- description: Get a role object.
+ operationId: ipam_service_templates_retrieve
+ description: Get a service template object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this role.
+ description: A unique integer value identifying this service template.
required: true
tags:
- ipam
@@ -63952,17 +66895,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Role'
+ $ref: '#/components/schemas/ServiceTemplate'
description: ''
put:
- operationId: ipam_roles_update
- description: Put a role object.
+ operationId: ipam_service_templates_update
+ description: Put a service template object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this role.
+ description: A unique integer value identifying this service template.
required: true
tags:
- ipam
@@ -63970,10 +66913,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/RoleRequest'
+ $ref: '#/components/schemas/WritableServiceTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/RoleRequest'
+ $ref: '#/components/schemas/WritableServiceTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -63983,17 +66926,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Role'
+ $ref: '#/components/schemas/ServiceTemplate'
description: ''
patch:
- operationId: ipam_roles_partial_update
- description: Patch a role object.
+ operationId: ipam_service_templates_partial_update
+ description: Patch a service template object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this role.
+ description: A unique integer value identifying this service template.
required: true
tags:
- ipam
@@ -64001,10 +66944,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedRoleRequest'
+ $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedRoleRequest'
+ $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -64013,17 +66956,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Role'
+ $ref: '#/components/schemas/ServiceTemplate'
description: ''
delete:
- operationId: ipam_roles_destroy
- description: Delete a role object.
+ operationId: ipam_service_templates_destroy
+ description: Delete a service template object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this role.
+ description: A unique integer value identifying this service template.
required: true
tags:
- ipam
@@ -64033,10 +66976,10 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/route-targets/:
+ /api/ipam/services/:
get:
- operationId: ipam_route_targets_list
- description: Get a list of route target objects.
+ operationId: ipam_services_list
+ description: Get a list of service objects.
parameters:
- in: query
name: created
@@ -64191,43 +67134,43 @@ paths:
explode: true
style: form
- in: query
- name: exporting_vrf
+ name: device
schema:
type: array
items:
type: string
nullable: true
- title: Route distinguisher
- description: Export VRF (RD)
+ description: Device (name)
explode: true
style: form
- in: query
- name: exporting_vrf__n
+ name: device__n
schema:
type: array
items:
type: string
nullable: true
- title: Route distinguisher
- description: Export VRF (RD)
+ description: Device (name)
explode: true
style: form
- in: query
- name: exporting_vrf_id
+ name: device_id
schema:
type: array
items:
type: integer
- description: Exporting VRF
+ nullable: true
+ description: Device (ID)
explode: true
style: form
- in: query
- name: exporting_vrf_id__n
+ name: device_id__n
schema:
type: array
items:
type: integer
- description: Exporting VRF
+ nullable: true
+ description: Device (ID)
explode: true
style: form
- in: query
@@ -64289,43 +67232,39 @@ paths:
explode: true
style: form
- in: query
- name: importing_vrf
+ name: ipaddress
schema:
type: array
items:
type: string
- nullable: true
- title: Route distinguisher
- description: Import VRF (RD)
+ description: IP address
explode: true
style: form
- in: query
- name: importing_vrf__n
+ name: ipaddress__n
schema:
type: array
items:
type: string
- nullable: true
- title: Route distinguisher
- description: Import VRF (RD)
+ description: IP address
explode: true
style: form
- in: query
- name: importing_vrf_id
+ name: ipaddress_id
schema:
type: array
items:
type: integer
- description: Importing VRF
+ description: IP address (ID)
explode: true
style: form
- in: query
- name: importing_vrf_id__n
+ name: ipaddress_id__n
schema:
type: array
items:
type: integer
- description: Importing VRF
+ description: IP address (ID)
explode: true
style: form
- in: query
@@ -64498,6 +67437,20 @@ paths:
description: Which field to use when ordering the results.
schema:
type: string
+ - in: query
+ name: port
+ schema:
+ type: number
+ - in: query
+ name: protocol
+ schema:
+ type: string
+ x-spec-enum-id: 5521e084b1ad51de
+ - in: query
+ name: protocol__n
+ schema:
+ type: string
+ x-spec-enum-id: 5521e084b1ad51de
- in: query
name: q
schema:
@@ -64520,84 +67473,48 @@ paths:
explode: true
style: form
- in: query
- name: tenant
+ name: updated_by_request
schema:
- type: array
- items:
- type: string
- description: Tenant (slug)
- explode: true
- style: form
+ type: string
+ format: uuid
- in: query
- name: tenant__n
+ name: virtual_machine
schema:
type: array
items:
type: string
- description: Tenant (slug)
- explode: true
- style: form
- - in: query
- name: tenant_group
- schema:
- type: array
- items:
- type: integer
- description: Tenant Group (slug)
- explode: true
- style: form
- - in: query
- name: tenant_group__n
- schema:
- type: array
- items:
- type: integer
- description: Tenant Group (slug)
- explode: true
- style: form
- - in: query
- name: tenant_group_id
- schema:
- type: array
- items:
- type: integer
- description: Tenant Group (ID)
+ description: Virtual machine (name)
explode: true
style: form
- in: query
- name: tenant_group_id__n
+ name: virtual_machine__n
schema:
type: array
items:
- type: integer
- description: Tenant Group (ID)
+ type: string
+ description: Virtual machine (name)
explode: true
style: form
- in: query
- name: tenant_id
+ name: virtual_machine_id
schema:
type: array
items:
type: integer
nullable: true
- description: Tenant (ID)
+ description: Virtual machine (ID)
explode: true
style: form
- in: query
- name: tenant_id__n
+ name: virtual_machine_id__n
schema:
type: array
items:
type: integer
nullable: true
- description: Tenant (ID)
+ description: Virtual machine (ID)
explode: true
style: form
- - in: query
- name: updated_by_request
- schema:
- type: string
- format: uuid
tags:
- ipam
security:
@@ -64608,21 +67525,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedRouteTargetList'
+ $ref: '#/components/schemas/PaginatedServiceList'
description: ''
post:
- operationId: ipam_route_targets_create
- description: Post a list of route target objects.
+ operationId: ipam_services_create
+ description: Post a list of service objects.
tags:
- ipam
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableRouteTargetRequest'
+ $ref: '#/components/schemas/WritableServiceRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableRouteTargetRequest'
+ $ref: '#/components/schemas/WritableServiceRequest'
required: true
security:
- cookieAuth: []
@@ -64632,11 +67549,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/RouteTarget'
+ $ref: '#/components/schemas/Service'
description: ''
put:
- operationId: ipam_route_targets_bulk_update
- description: Put a list of route target objects.
+ operationId: ipam_services_bulk_update
+ description: Put a list of service objects.
tags:
- ipam
requestBody:
@@ -64645,12 +67562,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/RouteTargetRequest'
+ $ref: '#/components/schemas/ServiceRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/RouteTargetRequest'
+ $ref: '#/components/schemas/ServiceRequest'
required: true
security:
- cookieAuth: []
@@ -64662,11 +67579,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/RouteTarget'
+ $ref: '#/components/schemas/Service'
description: ''
patch:
- operationId: ipam_route_targets_bulk_partial_update
- description: Patch a list of route target objects.
+ operationId: ipam_services_bulk_partial_update
+ description: Patch a list of service objects.
tags:
- ipam
requestBody:
@@ -64675,12 +67592,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/RouteTargetRequest'
+ $ref: '#/components/schemas/ServiceRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/RouteTargetRequest'
+ $ref: '#/components/schemas/ServiceRequest'
required: true
security:
- cookieAuth: []
@@ -64692,11 +67609,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/RouteTarget'
+ $ref: '#/components/schemas/Service'
description: ''
delete:
- operationId: ipam_route_targets_bulk_destroy
- description: Delete a list of route target objects.
+ operationId: ipam_services_bulk_destroy
+ description: Delete a list of service objects.
tags:
- ipam
requestBody:
@@ -64705,12 +67622,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/RouteTargetRequest'
+ $ref: '#/components/schemas/ServiceRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/RouteTargetRequest'
+ $ref: '#/components/schemas/ServiceRequest'
required: true
security:
- cookieAuth: []
@@ -64718,16 +67635,16 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/route-targets/{id}/:
+ /api/ipam/services/{id}/:
get:
- operationId: ipam_route_targets_retrieve
- description: Get a route target object.
+ operationId: ipam_services_retrieve
+ description: Get a service object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this route target.
+ description: A unique integer value identifying this service.
required: true
tags:
- ipam
@@ -64739,17 +67656,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/RouteTarget'
+ $ref: '#/components/schemas/Service'
description: ''
put:
- operationId: ipam_route_targets_update
- description: Put a route target object.
+ operationId: ipam_services_update
+ description: Put a service object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this route target.
+ description: A unique integer value identifying this service.
required: true
tags:
- ipam
@@ -64757,10 +67674,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableRouteTargetRequest'
+ $ref: '#/components/schemas/WritableServiceRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableRouteTargetRequest'
+ $ref: '#/components/schemas/WritableServiceRequest'
required: true
security:
- cookieAuth: []
@@ -64770,17 +67687,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/RouteTarget'
+ $ref: '#/components/schemas/Service'
description: ''
patch:
- operationId: ipam_route_targets_partial_update
- description: Patch a route target object.
+ operationId: ipam_services_partial_update
+ description: Patch a service object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this route target.
+ description: A unique integer value identifying this service.
required: true
tags:
- ipam
@@ -64788,10 +67705,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableRouteTargetRequest'
+ $ref: '#/components/schemas/PatchedWritableServiceRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableRouteTargetRequest'
+ $ref: '#/components/schemas/PatchedWritableServiceRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -64800,17 +67717,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/RouteTarget'
+ $ref: '#/components/schemas/Service'
description: ''
delete:
- operationId: ipam_route_targets_destroy
- description: Delete a route target object.
+ operationId: ipam_services_destroy
+ description: Delete a service object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this route target.
+ description: A unique integer value identifying this service.
required: true
tags:
- ipam
@@ -64820,11 +67737,19 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/service-templates/:
+ /api/ipam/vlan-groups/:
get:
- operationId: ipam_service_templates_list
- description: Get a list of service template objects.
+ operationId: ipam_vlan_groups_list
+ description: Get a list of VLAN group objects.
parameters:
+ - in: query
+ name: cluster
+ schema:
+ type: integer
+ - in: query
+ name: clustergroup
+ schema:
+ type: number
- in: query
name: created
schema:
@@ -64893,6 +67818,90 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -65020,6 +68029,126 @@ paths:
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: location
+ schema:
+ type: integer
+ - in: query
+ name: max_vid
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: max_vid__empty
+ schema:
+ type: boolean
+ - in: query
+ name: max_vid__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: max_vid__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: max_vid__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: max_vid__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: max_vid__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: min_vid
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: min_vid__empty
+ schema:
+ type: boolean
+ - in: query
+ name: min_vid__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: min_vid__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: min_vid__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: min_vid__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: min_vid__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: modified_by_request
schema:
@@ -65122,24 +68251,94 @@ paths:
schema:
type: string
- in: query
- name: port
+ name: q
schema:
- type: number
+ type: string
+ description: Search
- in: query
- name: protocol
+ name: rack
schema:
- type: string
+ type: integer
- in: query
- name: protocol__n
+ name: region
+ schema:
+ type: integer
+ - in: query
+ name: scope_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: scope_id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: scope_id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: scope_id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: scope_id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: scope_id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: scope_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: scope_type
schema:
type: string
- in: query
- name: q
+ name: scope_type__n
schema:
type: string
- description: Search
- in: query
- name: tag
+ name: site
+ schema:
+ type: integer
+ - in: query
+ name: sitegroup
+ schema:
+ type: number
+ - in: query
+ name: slug
schema:
type: array
items:
@@ -65147,7 +68346,11 @@ paths:
explode: true
style: form
- in: query
- name: tag__n
+ name: slug__empty
+ schema:
+ type: boolean
+ - in: query
+ name: slug__ic
schema:
type: array
items:
@@ -65155,79 +68358,159 @@ paths:
explode: true
style: form
- in: query
- name: updated_by_request
+ name: slug__ie
schema:
- type: string
- format: uuid
- tags:
- - ipam
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PaginatedServiceTemplateList'
- description: ''
- post:
- operationId: ipam_service_templates_create
- description: Post a list of service template objects.
- tags:
- - ipam
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/WritableServiceTemplateRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/WritableServiceTemplateRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '201':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ServiceTemplate'
- description: ''
- put:
- operationId: ipam_service_templates_bulk_update
- description: Put a list of service template objects.
- tags:
- - ipam
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/ServiceTemplateRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/ServiceTemplateRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ tags:
+ - ipam
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedVLANGroupList'
+ description: ''
+ post:
+ operationId: ipam_vlan_groups_create
+ description: Post a list of VLAN group objects.
+ tags:
+ - ipam
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VLANGroupRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/VLANGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VLANGroup'
+ description: ''
+ put:
+ operationId: ipam_vlan_groups_bulk_update
+ description: Put a list of VLAN group objects.
+ tags:
+ - ipam
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VLANGroupRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VLANGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
'200':
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ServiceTemplate'
+ $ref: '#/components/schemas/VLANGroup'
description: ''
patch:
- operationId: ipam_service_templates_bulk_partial_update
- description: Patch a list of service template objects.
+ operationId: ipam_vlan_groups_bulk_partial_update
+ description: Patch a list of VLAN group objects.
tags:
- ipam
requestBody:
@@ -65236,12 +68519,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ServiceTemplateRequest'
+ $ref: '#/components/schemas/VLANGroupRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ServiceTemplateRequest'
+ $ref: '#/components/schemas/VLANGroupRequest'
required: true
security:
- cookieAuth: []
@@ -65253,11 +68536,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ServiceTemplate'
+ $ref: '#/components/schemas/VLANGroup'
description: ''
delete:
- operationId: ipam_service_templates_bulk_destroy
- description: Delete a list of service template objects.
+ operationId: ipam_vlan_groups_bulk_destroy
+ description: Delete a list of VLAN group objects.
tags:
- ipam
requestBody:
@@ -65266,12 +68549,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ServiceTemplateRequest'
+ $ref: '#/components/schemas/VLANGroupRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ServiceTemplateRequest'
+ $ref: '#/components/schemas/VLANGroupRequest'
required: true
security:
- cookieAuth: []
@@ -65279,16 +68562,16 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/service-templates/{id}/:
+ /api/ipam/vlan-groups/{id}/:
get:
- operationId: ipam_service_templates_retrieve
- description: Get a service template object.
+ operationId: ipam_vlan_groups_retrieve
+ description: Get a VLAN group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this service template.
+ description: A unique integer value identifying this VLAN group.
required: true
tags:
- ipam
@@ -65300,17 +68583,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ServiceTemplate'
+ $ref: '#/components/schemas/VLANGroup'
description: ''
put:
- operationId: ipam_service_templates_update
- description: Put a service template object.
+ operationId: ipam_vlan_groups_update
+ description: Put a VLAN group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this service template.
+ description: A unique integer value identifying this VLAN group.
required: true
tags:
- ipam
@@ -65318,10 +68601,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableServiceTemplateRequest'
+ $ref: '#/components/schemas/VLANGroupRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableServiceTemplateRequest'
+ $ref: '#/components/schemas/VLANGroupRequest'
required: true
security:
- cookieAuth: []
@@ -65331,17 +68614,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ServiceTemplate'
+ $ref: '#/components/schemas/VLANGroup'
description: ''
patch:
- operationId: ipam_service_templates_partial_update
- description: Patch a service template object.
+ operationId: ipam_vlan_groups_partial_update
+ description: Patch a VLAN group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this service template.
+ description: A unique integer value identifying this VLAN group.
required: true
tags:
- ipam
@@ -65349,10 +68632,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest'
+ $ref: '#/components/schemas/PatchedVLANGroupRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest'
+ $ref: '#/components/schemas/PatchedVLANGroupRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -65361,17 +68644,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ServiceTemplate'
+ $ref: '#/components/schemas/VLANGroup'
description: ''
delete:
- operationId: ipam_service_templates_destroy
- description: Delete a service template object.
+ operationId: ipam_vlan_groups_destroy
+ description: Delete a VLAN group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this service template.
+ description: A unique integer value identifying this VLAN group.
required: true
tags:
- ipam
@@ -65381,11 +68664,83 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/services/:
+ /api/ipam/vlan-groups/{id}/available-vlans/:
get:
- operationId: ipam_services_list
- description: Get a list of service objects.
+ operationId: ipam_vlan_groups_available_vlans_list
+ description: Get a VLAN object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ required: true
+ tags:
+ - ipam
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/AvailableVLAN'
+ description: ''
+ post:
+ operationId: ipam_vlan_groups_available_vlans_create
+ description: Post a VLAN object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ required: true
+ tags:
+ - ipam
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VLANRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VLANRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VLAN'
+ description: ''
+ /api/ipam/vlans/:
+ get:
+ operationId: ipam_vlans_list
+ description: Get a list of VLAN objects.
parameters:
+ - in: query
+ name: available_at_site
+ schema:
+ type: string
+ - in: query
+ name: available_on_device
+ schema:
+ type: string
+ - in: query
+ name: available_on_virtualmachine
+ schema:
+ type: string
- in: query
name: created
schema:
@@ -65539,43 +68894,41 @@ paths:
explode: true
style: form
- in: query
- name: device
+ name: group
schema:
type: array
items:
type: string
- nullable: true
- description: Device (name)
+ description: Group
explode: true
style: form
- in: query
- name: device__n
+ name: group__n
schema:
type: array
items:
type: string
- nullable: true
- description: Device (name)
+ description: Group
explode: true
style: form
- in: query
- name: device_id
+ name: group_id
schema:
type: array
items:
type: integer
nullable: true
- description: Device (ID)
+ description: Group (ID)
explode: true
style: form
- in: query
- name: device_id__n
+ name: group_id__n
schema:
type: array
items:
type: integer
nullable: true
- description: Device (ID)
+ description: Group (ID)
explode: true
style: form
- in: query
@@ -65637,39 +68990,47 @@ paths:
explode: true
style: form
- in: query
- name: ipaddress
+ name: l2vpn
schema:
type: array
items:
- type: string
- description: IP address
+ type: integer
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
+ nullable: true
+ description: L2VPN
explode: true
style: form
- in: query
- name: ipaddress__n
+ name: l2vpn__n
schema:
type: array
items:
- type: string
- description: IP address
+ type: integer
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
+ nullable: true
+ description: L2VPN
explode: true
style: form
- in: query
- name: ipaddress_id
+ name: l2vpn_id
schema:
type: array
items:
type: integer
- description: IP address (ID)
+ description: L2VPN (ID)
explode: true
style: form
- in: query
- name: ipaddress_id__n
+ name: l2vpn_id__n
schema:
type: array
items:
type: integer
- description: IP address (ID)
+ description: L2VPN (ID)
explode: true
style: form
- in: query
@@ -65843,150 +69204,370 @@ paths:
schema:
type: string
- in: query
- name: port
+ name: q
schema:
- type: number
+ type: string
+ description: Search
- in: query
- name: protocol
+ name: region
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ description: Region (slug)
+ explode: true
+ style: form
- in: query
- name: protocol__n
+ name: region__n
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ description: Region (slug)
+ explode: true
+ style: form
- in: query
- name: q
+ name: region_id
schema:
- type: string
- description: Search
+ type: array
+ items:
+ type: integer
+ description: Region (ID)
+ explode: true
+ style: form
- in: query
- name: tag
+ name: region_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Region (ID)
+ explode: true
+ style: form
+ - in: query
+ name: role
schema:
type: array
items:
type: string
+ description: Role (slug)
explode: true
style: form
- in: query
- name: tag__n
+ name: role__n
schema:
type: array
items:
type: string
+ description: Role (slug)
explode: true
style: form
- in: query
- name: updated_by_request
+ name: role_id
schema:
- type: string
- format: uuid
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Role (ID)
+ explode: true
+ style: form
- in: query
- name: virtual_machine
+ name: role_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Role (ID)
+ explode: true
+ style: form
+ - in: query
+ name: site
schema:
type: array
items:
type: string
- description: Virtual machine (name)
+ description: Site (slug)
explode: true
style: form
- in: query
- name: virtual_machine__n
+ name: site__n
schema:
type: array
items:
type: string
- description: Virtual machine (name)
+ description: Site (slug)
explode: true
style: form
- in: query
- name: virtual_machine_id
+ name: site_group
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: site_group__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: site_group_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: site_group_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: site_id
schema:
type: array
items:
type: integer
nullable: true
- description: Virtual machine (ID)
+ description: Site (ID)
explode: true
style: form
- in: query
- name: virtual_machine_id__n
+ name: site_id__n
schema:
type: array
items:
type: integer
nullable: true
- description: Virtual machine (ID)
+ description: Site (ID)
explode: true
style: form
- tags:
- - ipam
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PaginatedServiceList'
- description: ''
- post:
- operationId: ipam_services_create
- description: Post a list of service objects.
- tags:
- - ipam
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/WritableServiceRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/WritableServiceRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '201':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Service'
- description: ''
- put:
- operationId: ipam_services_bulk_update
- description: Put a list of service objects.
- tags:
- - ipam
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/ServiceRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/ServiceRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/Service'
- description: ''
- patch:
- operationId: ipam_services_bulk_partial_update
- description: Patch a list of service objects.
+ - in: query
+ name: status
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 6388dfb94ca1cc15
+ description: Operational status of this VLAN
+ explode: true
+ style: form
+ - in: query
+ name: status__n
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 6388dfb94ca1cc15
+ description: Operational status of this VLAN
+ explode: true
+ style: form
+ - in: query
+ name: tag
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tenant
+ schema:
+ type: array
+ items:
+ type: string
+ description: Tenant (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Tenant (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Tenant Group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Tenant Group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Tenant Group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Tenant Group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Tenant (ID)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Tenant (ID)
+ explode: true
+ style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: vid
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: vid__empty
+ schema:
+ type: boolean
+ - in: query
+ name: vid__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: vid__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: vid__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: vid__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: vid__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ tags:
+ - ipam
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedVLANList'
+ description: ''
+ post:
+ operationId: ipam_vlans_create
+ description: Post a list of VLAN objects.
+ tags:
+ - ipam
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableVLANRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableVLANRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VLAN'
+ description: ''
+ put:
+ operationId: ipam_vlans_bulk_update
+ description: Put a list of VLAN objects.
tags:
- ipam
requestBody:
@@ -65995,12 +69576,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ServiceRequest'
+ $ref: '#/components/schemas/VLANRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ServiceRequest'
+ $ref: '#/components/schemas/VLANRequest'
required: true
security:
- cookieAuth: []
@@ -66012,11 +69593,41 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Service'
+ $ref: '#/components/schemas/VLAN'
+ description: ''
+ patch:
+ operationId: ipam_vlans_bulk_partial_update
+ description: Patch a list of VLAN objects.
+ tags:
+ - ipam
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VLANRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VLANRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VLAN'
description: ''
delete:
- operationId: ipam_services_bulk_destroy
- description: Delete a list of service objects.
+ operationId: ipam_vlans_bulk_destroy
+ description: Delete a list of VLAN objects.
tags:
- ipam
requestBody:
@@ -66025,12 +69636,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ServiceRequest'
+ $ref: '#/components/schemas/VLANRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ServiceRequest'
+ $ref: '#/components/schemas/VLANRequest'
required: true
security:
- cookieAuth: []
@@ -66038,16 +69649,16 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/services/{id}/:
+ /api/ipam/vlans/{id}/:
get:
- operationId: ipam_services_retrieve
- description: Get a service object.
+ operationId: ipam_vlans_retrieve
+ description: Get a VLAN object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this service.
+ description: A unique integer value identifying this VLAN.
required: true
tags:
- ipam
@@ -66059,17 +69670,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Service'
+ $ref: '#/components/schemas/VLAN'
description: ''
put:
- operationId: ipam_services_update
- description: Put a service object.
+ operationId: ipam_vlans_update
+ description: Put a VLAN object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this service.
+ description: A unique integer value identifying this VLAN.
required: true
tags:
- ipam
@@ -66077,10 +69688,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableServiceRequest'
+ $ref: '#/components/schemas/WritableVLANRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableServiceRequest'
+ $ref: '#/components/schemas/WritableVLANRequest'
required: true
security:
- cookieAuth: []
@@ -66090,17 +69701,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Service'
+ $ref: '#/components/schemas/VLAN'
description: ''
patch:
- operationId: ipam_services_partial_update
- description: Patch a service object.
+ operationId: ipam_vlans_partial_update
+ description: Patch a VLAN object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this service.
+ description: A unique integer value identifying this VLAN.
required: true
tags:
- ipam
@@ -66108,10 +69719,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableServiceRequest'
+ $ref: '#/components/schemas/PatchedWritableVLANRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableServiceRequest'
+ $ref: '#/components/schemas/PatchedWritableVLANRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -66120,17 +69731,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Service'
+ $ref: '#/components/schemas/VLAN'
description: ''
delete:
- operationId: ipam_services_destroy
- description: Delete a service object.
+ operationId: ipam_vlans_destroy
+ description: Delete a VLAN object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this service.
+ description: A unique integer value identifying this VLAN.
required: true
tags:
- ipam
@@ -66140,19 +69751,11 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/vlan-groups/:
+ /api/ipam/vrfs/:
get:
- operationId: ipam_vlan_groups_list
- description: Get a list of VLAN group objects.
+ operationId: ipam_vrfs_list
+ description: Get a list of VRF objects.
parameters:
- - in: query
- name: cluster
- schema:
- type: integer
- - in: query
- name: clustergroup
- schema:
- type: number
- in: query
name: created
schema:
@@ -66305,6 +69908,46 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: enforce_unique
+ schema:
+ type: boolean
+ - in: query
+ name: export_target
+ schema:
+ type: array
+ items:
+ type: string
+ description: Export target (name)
+ explode: true
+ style: form
+ - in: query
+ name: export_target__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Export target (name)
+ explode: true
+ style: form
+ - in: query
+ name: export_target_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Export target
+ explode: true
+ style: form
+ - in: query
+ name: export_target_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Export target
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -66363,6 +70006,42 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: import_target
+ schema:
+ type: array
+ items:
+ type: string
+ description: Import target (name)
+ explode: true
+ style: form
+ - in: query
+ name: import_target__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Import target (name)
+ explode: true
+ style: form
+ - in: query
+ name: import_target_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Import target
+ explode: true
+ style: form
+ - in: query
+ name: import_target_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Import target
+ explode: true
+ style: form
- in: query
name: last_updated
schema:
@@ -66433,132 +70112,133 @@ paths:
schema:
type: integer
- in: query
- name: location
+ name: modified_by_request
schema:
- type: integer
+ type: string
+ format: uuid
- in: query
- name: max_vid
+ name: name
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: max_vid__empty
+ name: name__empty
schema:
type: boolean
- in: query
- name: max_vid__gt
+ name: name__ic
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: max_vid__gte
+ name: name__ie
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: max_vid__lt
+ name: name__iew
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: max_vid__lte
+ name: name__isw
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: max_vid__n
+ name: name__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: min_vid
+ name: name__nic
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: min_vid__empty
- schema:
- type: boolean
- - in: query
- name: min_vid__gt
+ name: name__nie
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: min_vid__gte
+ name: name__niew
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: min_vid__lt
+ name: name__nisw
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
- in: query
- name: min_vid__lte
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: rd
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: min_vid__n
+ name: rd__empty
+ schema:
+ type: boolean
+ - in: query
+ name: rd__ic
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: modified_by_request
- schema:
- type: string
- format: uuid
- - in: query
- name: name
+ name: rd__ie
schema:
type: array
items:
@@ -66566,11 +70246,15 @@ paths:
explode: true
style: form
- in: query
- name: name__empty
+ name: rd__iew
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
- name: name__ic
+ name: rd__isw
schema:
type: array
items:
@@ -66578,7 +70262,7 @@ paths:
explode: true
style: form
- in: query
- name: name__ie
+ name: rd__n
schema:
type: array
items:
@@ -66586,7 +70270,7 @@ paths:
explode: true
style: form
- in: query
- name: name__iew
+ name: rd__nic
schema:
type: array
items:
@@ -66594,7 +70278,7 @@ paths:
explode: true
style: form
- in: query
- name: name__isw
+ name: rd__nie
schema:
type: array
items:
@@ -66602,7 +70286,7 @@ paths:
explode: true
style: form
- in: query
- name: name__n
+ name: rd__niew
schema:
type: array
items:
@@ -66610,7 +70294,7 @@ paths:
explode: true
style: form
- in: query
- name: name__nic
+ name: rd__nisw
schema:
type: array
items:
@@ -66618,7 +70302,7 @@ paths:
explode: true
style: form
- in: query
- name: name__nie
+ name: tag
schema:
type: array
items:
@@ -66626,7 +70310,7 @@ paths:
explode: true
style: form
- in: query
- name: name__niew
+ name: tag__n
schema:
type: array
items:
@@ -66634,210 +70318,77 @@ paths:
explode: true
style: form
- in: query
- name: name__nisw
+ name: tenant
schema:
type: array
items:
type: string
+ description: Tenant (slug)
explode: true
style: form
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
- schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
- schema:
- type: string
- - in: query
- name: q
- schema:
- type: string
- description: Search
- in: query
- name: rack
- schema:
- type: integer
- - in: query
- name: region
- schema:
- type: integer
- - in: query
- name: scope_id
+ name: tenant__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ description: Tenant (slug)
explode: true
style: form
- in: query
- name: scope_id__empty
- schema:
- type: boolean
- - in: query
- name: scope_id__gt
+ name: tenant_group
schema:
type: array
items:
type: integer
- format: int32
+ description: Tenant Group (slug)
explode: true
style: form
- in: query
- name: scope_id__gte
+ name: tenant_group__n
schema:
type: array
items:
type: integer
- format: int32
+ description: Tenant Group (slug)
explode: true
style: form
- in: query
- name: scope_id__lt
+ name: tenant_group_id
schema:
type: array
items:
type: integer
- format: int32
+ description: Tenant Group (ID)
explode: true
style: form
- in: query
- name: scope_id__lte
+ name: tenant_group_id__n
schema:
type: array
items:
type: integer
- format: int32
+ description: Tenant Group (ID)
explode: true
style: form
- in: query
- name: scope_id__n
+ name: tenant_id
schema:
type: array
items:
type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: scope_type
- schema:
- type: string
- - in: query
- name: scope_type__n
- schema:
- type: string
- - in: query
- name: site
- schema:
- type: integer
- - in: query
- name: sitegroup
- schema:
- type: number
- - in: query
- name: slug
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__empty
- schema:
- type: boolean
- - in: query
- name: slug__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__ie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__iew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__isw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__nic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__nie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__niew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__nisw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: tag
- schema:
- type: array
- items:
- type: string
+ nullable: true
+ description: Tenant (ID)
explode: true
style: form
- in: query
- name: tag__n
+ name: tenant_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ nullable: true
+ description: Tenant (ID)
explode: true
style: form
- in: query
@@ -66855,21 +70406,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedVLANGroupList'
+ $ref: '#/components/schemas/PaginatedVRFList'
description: ''
post:
- operationId: ipam_vlan_groups_create
- description: Post a list of VLAN group objects.
+ operationId: ipam_vrfs_create
+ description: Post a list of VRF objects.
tags:
- ipam
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/VLANGroupRequest'
+ $ref: '#/components/schemas/WritableVRFRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/VLANGroupRequest'
+ $ref: '#/components/schemas/WritableVRFRequest'
required: true
security:
- cookieAuth: []
@@ -66879,11 +70430,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VLANGroup'
+ $ref: '#/components/schemas/VRF'
description: ''
put:
- operationId: ipam_vlan_groups_bulk_update
- description: Put a list of VLAN group objects.
+ operationId: ipam_vrfs_bulk_update
+ description: Put a list of VRF objects.
tags:
- ipam
requestBody:
@@ -66892,12 +70443,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANGroupRequest'
+ $ref: '#/components/schemas/VRFRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANGroupRequest'
+ $ref: '#/components/schemas/VRFRequest'
required: true
security:
- cookieAuth: []
@@ -66909,11 +70460,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANGroup'
+ $ref: '#/components/schemas/VRF'
description: ''
patch:
- operationId: ipam_vlan_groups_bulk_partial_update
- description: Patch a list of VLAN group objects.
+ operationId: ipam_vrfs_bulk_partial_update
+ description: Patch a list of VRF objects.
tags:
- ipam
requestBody:
@@ -66922,12 +70473,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANGroupRequest'
+ $ref: '#/components/schemas/VRFRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANGroupRequest'
+ $ref: '#/components/schemas/VRFRequest'
required: true
security:
- cookieAuth: []
@@ -66939,11 +70490,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANGroup'
+ $ref: '#/components/schemas/VRF'
description: ''
delete:
- operationId: ipam_vlan_groups_bulk_destroy
- description: Delete a list of VLAN group objects.
+ operationId: ipam_vrfs_bulk_destroy
+ description: Delete a list of VRF objects.
tags:
- ipam
requestBody:
@@ -66952,12 +70503,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANGroupRequest'
+ $ref: '#/components/schemas/VRFRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANGroupRequest'
+ $ref: '#/components/schemas/VRFRequest'
required: true
security:
- cookieAuth: []
@@ -66965,16 +70516,16 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/vlan-groups/{id}/:
+ /api/ipam/vrfs/{id}/:
get:
- operationId: ipam_vlan_groups_retrieve
- description: Get a VLAN group object.
+ operationId: ipam_vrfs_retrieve
+ description: Get a VRF object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this VLAN group.
+ description: A unique integer value identifying this VRF.
required: true
tags:
- ipam
@@ -66986,17 +70537,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VLANGroup'
+ $ref: '#/components/schemas/VRF'
description: ''
put:
- operationId: ipam_vlan_groups_update
- description: Put a VLAN group object.
+ operationId: ipam_vrfs_update
+ description: Put a VRF object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this VLAN group.
+ description: A unique integer value identifying this VRF.
required: true
tags:
- ipam
@@ -67004,10 +70555,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VLANGroupRequest'
+ $ref: '#/components/schemas/WritableVRFRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/VLANGroupRequest'
+ $ref: '#/components/schemas/WritableVRFRequest'
required: true
security:
- cookieAuth: []
@@ -67017,17 +70568,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VLANGroup'
+ $ref: '#/components/schemas/VRF'
description: ''
patch:
- operationId: ipam_vlan_groups_partial_update
- description: Patch a VLAN group object.
+ operationId: ipam_vrfs_partial_update
+ description: Patch a VRF object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this VLAN group.
+ description: A unique integer value identifying this VRF.
required: true
tags:
- ipam
@@ -67035,10 +70586,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedVLANGroupRequest'
+ $ref: '#/components/schemas/PatchedWritableVRFRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedVLANGroupRequest'
+ $ref: '#/components/schemas/PatchedWritableVRFRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -67047,17 +70598,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VLANGroup'
+ $ref: '#/components/schemas/VRF'
description: ''
delete:
- operationId: ipam_vlan_groups_destroy
- description: Delete a VLAN group object.
+ operationId: ipam_vrfs_destroy
+ description: Delete a VRF object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this VLAN group.
+ description: A unique integer value identifying this VRF.
required: true
tags:
- ipam
@@ -67067,79 +70618,105 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/vlan-groups/{id}/available-vlans/:
+ /api/schema/:
get:
- operationId: ipam_vlan_groups_available_vlans_list
- description: Get a VLAN object.
+ operationId: schema_retrieve
+ description: |-
+ OpenApi3 schema for this API. Format can be selected via content negotiation.
+
+ - YAML: application/vnd.oai.openapi
+ - JSON: application/vnd.oai.openapi+json
parameters:
- - in: path
- name: id
+ - in: query
+ name: format
schema:
- type: integer
- required: true
+ type: string
+ enum:
+ - json
+ - yaml
tags:
- - ipam
+ - schema
security:
- cookieAuth: []
- tokenAuth: []
+ - {}
responses:
'200':
content:
+ application/vnd.oai.openapi:
+ schema:
+ type: object
+ additionalProperties: {}
+ application/yaml:
+ schema:
+ type: object
+ additionalProperties: {}
+ application/vnd.oai.openapi+json:
+ schema:
+ type: object
+ additionalProperties: {}
application/json:
schema:
- type: array
- items:
- $ref: '#/components/schemas/AvailableVLAN'
+ type: object
+ additionalProperties: {}
description: ''
- post:
- operationId: ipam_vlan_groups_available_vlans_create
- description: Post a VLAN object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- required: true
+ /api/status/:
+ get:
+ operationId: status_retrieve
+ description: A lightweight read-only endpoint for conveying NetBox's current
+ operational status.
tags:
- - ipam
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/VLANRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/VLANRequest'
- required: true
+ - status
security:
- cookieAuth: []
- tokenAuth: []
responses:
- '201':
+ '200':
content:
application/json:
schema:
- type: array
- items:
- $ref: '#/components/schemas/VLAN'
+ type: object
+ additionalProperties: {}
description: ''
- /api/ipam/vlans/:
+ /api/tenancy/contact-assignments/:
get:
- operationId: ipam_vlans_list
- description: Get a list of VLAN objects.
+ operationId: tenancy_contact_assignments_list
+ description: Get a list of contact assignment objects.
parameters:
- in: query
- name: available_on_device
+ name: contact_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact (ID)
+ explode: true
+ style: form
+ - in: query
+ name: contact_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact (ID)
+ explode: true
+ style: form
+ - in: query
+ name: content_type
schema:
type: string
- in: query
- name: available_on_virtualmachine
+ 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:
@@ -67208,97 +70785,13 @@ paths:
schema:
type: string
format: uuid
- - in: query
- name: description
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: description__empty
- schema:
- type: boolean
- - in: query
- name: description__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: description__ie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: description__iew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: description__isw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: description__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: description__nic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: description__nie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: description__niew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: description__nisw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- in: query
name: group
schema:
type: array
items:
- type: string
- description: Group
+ type: integer
+ description: Contact group (slug)
explode: true
style: form
- in: query
@@ -67306,8 +70799,8 @@ paths:
schema:
type: array
items:
- type: string
- description: Group
+ type: integer
+ description: Contact group (slug)
explode: true
style: form
- in: query
@@ -67316,8 +70809,7 @@ paths:
type: array
items:
type: integer
- nullable: true
- description: Group (ID)
+ description: Contact group (ID)
explode: true
style: form
- in: query
@@ -67326,8 +70818,7 @@ paths:
type: array
items:
type: integer
- nullable: true
- description: Group (ID)
+ description: Contact group (ID)
explode: true
style: form
- in: query
@@ -67388,50 +70879,6 @@ paths:
format: int32
explode: true
style: form
- - in: query
- name: l2vpn
- schema:
- type: array
- items:
- type: integer
- maximum: 9223372036854775807
- minimum: -9223372036854775808
- format: int64
- nullable: true
- description: L2VPN
- explode: true
- style: form
- - in: query
- name: l2vpn__n
- schema:
- type: array
- items:
- type: integer
- maximum: 9223372036854775807
- minimum: -9223372036854775808
- format: int64
- nullable: true
- description: L2VPN
- explode: true
- style: form
- - in: query
- name: l2vpn_id
- schema:
- type: array
- items:
- type: integer
- description: L2VPN (ID)
- explode: true
- style: form
- - in: query
- name: l2vpn_id__n
- schema:
- type: array
- items:
- type: integer
- description: L2VPN (ID)
- explode: true
- style: form
- in: query
name: last_updated
schema:
@@ -67507,87 +70954,61 @@ paths:
type: string
format: uuid
- in: query
- name: name
+ name: object_id
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__empty
+ name: object_id__empty
schema:
type: boolean
- in: query
- name: name__ic
+ name: object_id__gt
schema:
type: array
items:
- type: string
- 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
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__nic
+ name: object_id__gte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__nie
+ name: object_id__lt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__niew
+ name: object_id__lte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__nisw
+ name: object_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- name: offset
@@ -67603,53 +71024,27 @@ paths:
schema:
type: string
- in: query
- name: q
+ name: priority
schema:
type: string
- description: Search
- - in: query
- name: region
- schema:
- type: array
- items:
- type: integer
- description: Region (slug)
- explode: true
- style: form
- - in: query
- name: region__n
- schema:
- type: array
- items:
- type: integer
- description: Region (slug)
- explode: true
- style: form
+ x-spec-enum-id: ef3a31644cec7524
- in: query
- name: region_id
+ name: priority__n
schema:
- type: array
- items:
- type: integer
- description: Region (ID)
- explode: true
- style: form
+ type: string
+ x-spec-enum-id: ef3a31644cec7524
- in: query
- name: region_id__n
+ name: q
schema:
- type: array
- items:
- type: integer
- description: Region (ID)
- explode: true
- style: form
+ type: string
+ description: Search
- in: query
name: role
schema:
type: array
items:
type: string
- description: Role (slug)
+ description: Contact role (slug)
explode: true
style: form
- in: query
@@ -67658,7 +71053,7 @@ paths:
type: array
items:
type: string
- description: Role (slug)
+ description: Contact role (slug)
explode: true
style: form
- in: query
@@ -67667,8 +71062,7 @@ paths:
type: array
items:
type: integer
- nullable: true
- description: Role (ID)
+ description: Contact role (ID)
explode: true
style: form
- in: query
@@ -67677,100 +71071,7 @@ paths:
type: array
items:
type: integer
- nullable: true
- description: Role (ID)
- explode: true
- style: form
- - in: query
- name: site
- schema:
- type: array
- items:
- type: string
- description: Site (slug)
- explode: true
- style: form
- - in: query
- name: site__n
- schema:
- type: array
- items:
- type: string
- description: Site (slug)
- explode: true
- style: form
- - in: query
- name: site_group
- schema:
- type: array
- items:
- type: integer
- description: Site group (slug)
- explode: true
- style: form
- - in: query
- name: site_group__n
- schema:
- type: array
- items:
- type: integer
- description: Site group (slug)
- explode: true
- style: form
- - in: query
- name: site_group_id
- schema:
- type: array
- items:
- type: integer
- description: Site group (ID)
- explode: true
- style: form
- - in: query
- name: site_group_id__n
- schema:
- type: array
- items:
- type: integer
- description: Site group (ID)
- explode: true
- style: form
- - in: query
- name: site_id
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Site (ID)
- explode: true
- style: form
- - in: query
- name: site_id__n
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Site (ID)
- explode: true
- style: form
- - in: query
- name: status
- schema:
- type: array
- items:
- type: string
- description: Operational status of this VLAN
- explode: true
- style: form
- - in: query
- name: status__n
- schema:
- type: array
- items:
- type: string
- description: Operational status of this VLAN
+ description: Contact role (ID)
explode: true
style: form
- in: query
@@ -67789,145 +71090,13 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: tenant
- schema:
- type: array
- items:
- type: string
- description: Tenant (slug)
- explode: true
- style: form
- - in: query
- name: tenant__n
- schema:
- type: array
- items:
- type: string
- description: Tenant (slug)
- explode: true
- style: form
- - in: query
- name: tenant_group
- schema:
- type: array
- items:
- type: integer
- description: Tenant Group (slug)
- explode: true
- style: form
- - in: query
- name: tenant_group__n
- schema:
- type: array
- items:
- type: integer
- description: Tenant Group (slug)
- explode: true
- style: form
- - in: query
- name: tenant_group_id
- schema:
- type: array
- items:
- type: integer
- description: Tenant Group (ID)
- explode: true
- style: form
- - in: query
- name: tenant_group_id__n
- schema:
- type: array
- items:
- type: integer
- description: Tenant Group (ID)
- explode: true
- style: form
- - in: query
- name: tenant_id
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Tenant (ID)
- explode: true
- style: form
- - in: query
- name: tenant_id__n
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Tenant (ID)
- explode: true
- style: form
- in: query
name: updated_by_request
schema:
type: string
format: uuid
- - in: query
- name: vid
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: vid__empty
- schema:
- type: boolean
- - in: query
- name: vid__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: vid__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: vid__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: vid__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: vid__n
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
tags:
- - ipam
+ - tenancy
security:
- cookieAuth: []
- tokenAuth: []
@@ -67936,21 +71105,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedVLANList'
+ $ref: '#/components/schemas/PaginatedContactAssignmentList'
description: ''
post:
- operationId: ipam_vlans_create
- description: Post a list of VLAN objects.
+ operationId: tenancy_contact_assignments_create
+ description: Post a list of contact assignment objects.
tags:
- - ipam
+ - tenancy
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableVLANRequest'
+ $ref: '#/components/schemas/WritableContactAssignmentRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableVLANRequest'
+ $ref: '#/components/schemas/WritableContactAssignmentRequest'
required: true
security:
- cookieAuth: []
@@ -67960,25 +71129,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VLAN'
+ $ref: '#/components/schemas/ContactAssignment'
description: ''
put:
- operationId: ipam_vlans_bulk_update
- description: Put a list of VLAN objects.
+ operationId: tenancy_contact_assignments_bulk_update
+ description: Put a list of contact assignment objects.
tags:
- - ipam
+ - tenancy
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANRequest'
+ $ref: '#/components/schemas/ContactAssignmentRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANRequest'
+ $ref: '#/components/schemas/ContactAssignmentRequest'
required: true
security:
- cookieAuth: []
@@ -67990,25 +71159,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/VLAN'
+ $ref: '#/components/schemas/ContactAssignment'
description: ''
patch:
- operationId: ipam_vlans_bulk_partial_update
- description: Patch a list of VLAN objects.
+ operationId: tenancy_contact_assignments_bulk_partial_update
+ description: Patch a list of contact assignment objects.
tags:
- - ipam
+ - tenancy
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANRequest'
+ $ref: '#/components/schemas/ContactAssignmentRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANRequest'
+ $ref: '#/components/schemas/ContactAssignmentRequest'
required: true
security:
- cookieAuth: []
@@ -68020,25 +71189,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/VLAN'
+ $ref: '#/components/schemas/ContactAssignment'
description: ''
delete:
- operationId: ipam_vlans_bulk_destroy
- description: Delete a list of VLAN objects.
+ operationId: tenancy_contact_assignments_bulk_destroy
+ description: Delete a list of contact assignment objects.
tags:
- - ipam
+ - tenancy
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANRequest'
+ $ref: '#/components/schemas/ContactAssignmentRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VLANRequest'
+ $ref: '#/components/schemas/ContactAssignmentRequest'
required: true
security:
- cookieAuth: []
@@ -68046,19 +71215,19 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/vlans/{id}/:
+ /api/tenancy/contact-assignments/{id}/:
get:
- operationId: ipam_vlans_retrieve
- description: Get a VLAN object.
+ operationId: tenancy_contact_assignments_retrieve
+ description: Get a contact assignment object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this VLAN.
+ description: A unique integer value identifying this contact assignment.
required: true
tags:
- - ipam
+ - tenancy
security:
- cookieAuth: []
- tokenAuth: []
@@ -68067,28 +71236,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VLAN'
+ $ref: '#/components/schemas/ContactAssignment'
description: ''
put:
- operationId: ipam_vlans_update
- description: Put a VLAN object.
+ operationId: tenancy_contact_assignments_update
+ description: Put a contact assignment object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this VLAN.
+ description: A unique integer value identifying this contact assignment.
required: true
tags:
- - ipam
+ - tenancy
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableVLANRequest'
+ $ref: '#/components/schemas/WritableContactAssignmentRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableVLANRequest'
+ $ref: '#/components/schemas/WritableContactAssignmentRequest'
required: true
security:
- cookieAuth: []
@@ -68098,28 +71267,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VLAN'
+ $ref: '#/components/schemas/ContactAssignment'
description: ''
patch:
- operationId: ipam_vlans_partial_update
- description: Patch a VLAN object.
+ operationId: tenancy_contact_assignments_partial_update
+ description: Patch a contact assignment object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this VLAN.
+ description: A unique integer value identifying this contact assignment.
required: true
tags:
- - ipam
+ - tenancy
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableVLANRequest'
+ $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableVLANRequest'
+ $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -68128,30 +71297,30 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VLAN'
+ $ref: '#/components/schemas/ContactAssignment'
description: ''
delete:
- operationId: ipam_vlans_destroy
- description: Delete a VLAN object.
+ operationId: tenancy_contact_assignments_destroy
+ description: Delete a contact assignment object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this VLAN.
+ description: A unique integer value identifying this contact assignment.
required: true
tags:
- - ipam
+ - tenancy
security:
- cookieAuth: []
- tokenAuth: []
responses:
'204':
description: No response body
- /api/ipam/vrfs/:
+ /api/tenancy/contact-groups/:
get:
- operationId: ipam_vrfs_list
- description: Get a list of VRF objects.
+ operationId: tenancy_contact_groups_list
+ description: Get a list of contact group objects.
parameters:
- in: query
name: created
@@ -68305,46 +71474,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: enforce_unique
- schema:
- type: boolean
- - in: query
- name: export_target
- schema:
- type: array
- items:
- type: string
- description: Export target (name)
- explode: true
- style: form
- - in: query
- name: export_target__n
- schema:
- type: array
- items:
- type: string
- description: Export target (name)
- explode: true
- style: form
- - in: query
- name: export_target_id
- schema:
- type: array
- items:
- type: integer
- description: Export target
- explode: true
- style: form
- - in: query
- name: export_target_id__n
- schema:
- type: array
- items:
- type: integer
- description: Export target
- explode: true
- style: form
- in: query
name: id
schema:
@@ -68403,42 +71532,6 @@ paths:
format: int32
explode: true
style: form
- - in: query
- name: import_target
- schema:
- type: array
- items:
- type: string
- description: Import target (name)
- explode: true
- style: form
- - in: query
- name: import_target__n
- schema:
- type: array
- items:
- type: string
- description: Import target (name)
- explode: true
- style: form
- - in: query
- name: import_target_id
- schema:
- type: array
- items:
- type: integer
- description: Import target
- explode: true
- style: form
- - in: query
- name: import_target_id__n
- schema:
- type: array
- items:
- type: integer
- description: Import target
- explode: true
- style: form
- in: query
name: last_updated
schema:
@@ -68610,56 +71703,50 @@ paths:
schema:
type: string
- in: query
- name: q
- schema:
- type: string
- description: Search
- - in: query
- name: rd
+ name: parent
schema:
type: array
items:
type: string
+ description: Contact group (slug)
explode: true
style: form
- in: query
- name: rd__empty
- schema:
- type: boolean
- - in: query
- name: rd__ic
+ name: parent__n
schema:
type: array
items:
type: string
+ description: Contact group (slug)
explode: true
style: form
- in: query
- name: rd__ie
+ name: parent_id
schema:
type: array
items:
- type: string
+ type: integer
+ nullable: true
+ description: Contact group (ID)
explode: true
style: form
- in: query
- name: rd__iew
+ name: parent_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ nullable: true
+ description: Contact group (ID)
explode: true
style: form
- in: query
- name: rd__isw
+ name: q
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: string
+ description: Search
- in: query
- name: rd__n
+ name: slug
schema:
type: array
items:
@@ -68667,15 +71754,11 @@ paths:
explode: true
style: form
- in: query
- name: rd__nic
+ name: slug__empty
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: boolean
- in: query
- name: rd__nie
+ name: slug__ic
schema:
type: array
items:
@@ -68683,7 +71766,7 @@ paths:
explode: true
style: form
- in: query
- name: rd__niew
+ name: slug__ie
schema:
type: array
items:
@@ -68691,7 +71774,7 @@ paths:
explode: true
style: form
- in: query
- name: rd__nisw
+ name: slug__iew
schema:
type: array
items:
@@ -68699,7 +71782,7 @@ paths:
explode: true
style: form
- in: query
- name: tag
+ name: slug__isw
schema:
type: array
items:
@@ -68707,7 +71790,7 @@ paths:
explode: true
style: form
- in: query
- name: tag__n
+ name: slug__n
schema:
type: array
items:
@@ -68715,77 +71798,51 @@ paths:
explode: true
style: form
- in: query
- name: tenant
+ name: slug__nic
schema:
type: array
items:
type: string
- description: Tenant (slug)
explode: true
style: form
- in: query
- name: tenant__n
+ name: slug__nie
schema:
type: array
items:
type: string
- description: Tenant (slug)
- explode: true
- style: form
- - in: query
- name: tenant_group
- schema:
- type: array
- items:
- type: integer
- description: Tenant Group (slug)
- explode: true
- style: form
- - in: query
- name: tenant_group__n
- schema:
- type: array
- items:
- type: integer
- description: Tenant Group (slug)
explode: true
style: form
- in: query
- name: tenant_group_id
+ name: slug__niew
schema:
type: array
items:
- type: integer
- description: Tenant Group (ID)
+ type: string
explode: true
style: form
- in: query
- name: tenant_group_id__n
+ name: slug__nisw
schema:
type: array
items:
- type: integer
- description: Tenant Group (ID)
+ type: string
explode: true
style: form
- in: query
- name: tenant_id
+ name: tag
schema:
type: array
items:
- type: integer
- nullable: true
- description: Tenant (ID)
+ type: string
explode: true
style: form
- in: query
- name: tenant_id__n
+ name: tag__n
schema:
type: array
items:
- type: integer
- nullable: true
- description: Tenant (ID)
+ type: string
explode: true
style: form
- in: query
@@ -68794,7 +71851,7 @@ paths:
type: string
format: uuid
tags:
- - ipam
+ - tenancy
security:
- cookieAuth: []
- tokenAuth: []
@@ -68803,21 +71860,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedVRFList'
+ $ref: '#/components/schemas/PaginatedContactGroupList'
description: ''
post:
- operationId: ipam_vrfs_create
- description: Post a list of VRF objects.
+ operationId: tenancy_contact_groups_create
+ description: Post a list of contact group objects.
tags:
- - ipam
+ - tenancy
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableVRFRequest'
+ $ref: '#/components/schemas/WritableContactGroupRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableVRFRequest'
+ $ref: '#/components/schemas/WritableContactGroupRequest'
required: true
security:
- cookieAuth: []
@@ -68827,25 +71884,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VRF'
+ $ref: '#/components/schemas/ContactGroup'
description: ''
put:
- operationId: ipam_vrfs_bulk_update
- description: Put a list of VRF objects.
+ operationId: tenancy_contact_groups_bulk_update
+ description: Put a list of contact group objects.
tags:
- - ipam
+ - tenancy
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/VRFRequest'
+ $ref: '#/components/schemas/ContactGroupRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VRFRequest'
+ $ref: '#/components/schemas/ContactGroupRequest'
required: true
security:
- cookieAuth: []
@@ -68857,25 +71914,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/VRF'
+ $ref: '#/components/schemas/ContactGroup'
description: ''
patch:
- operationId: ipam_vrfs_bulk_partial_update
- description: Patch a list of VRF objects.
+ operationId: tenancy_contact_groups_bulk_partial_update
+ description: Patch a list of contact group objects.
tags:
- - ipam
+ - tenancy
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/VRFRequest'
+ $ref: '#/components/schemas/ContactGroupRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VRFRequest'
+ $ref: '#/components/schemas/ContactGroupRequest'
required: true
security:
- cookieAuth: []
@@ -68887,25 +71944,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/VRF'
+ $ref: '#/components/schemas/ContactGroup'
description: ''
delete:
- operationId: ipam_vrfs_bulk_destroy
- description: Delete a list of VRF objects.
+ operationId: tenancy_contact_groups_bulk_destroy
+ description: Delete a list of contact group objects.
tags:
- - ipam
+ - tenancy
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/VRFRequest'
+ $ref: '#/components/schemas/ContactGroupRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VRFRequest'
+ $ref: '#/components/schemas/ContactGroupRequest'
required: true
security:
- cookieAuth: []
@@ -68913,19 +71970,19 @@ paths:
responses:
'204':
description: No response body
- /api/ipam/vrfs/{id}/:
+ /api/tenancy/contact-groups/{id}/:
get:
- operationId: ipam_vrfs_retrieve
- description: Get a VRF object.
+ operationId: tenancy_contact_groups_retrieve
+ description: Get a contact group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this VRF.
+ description: A unique integer value identifying this contact group.
required: true
tags:
- - ipam
+ - tenancy
security:
- cookieAuth: []
- tokenAuth: []
@@ -68934,28 +71991,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VRF'
+ $ref: '#/components/schemas/ContactGroup'
description: ''
put:
- operationId: ipam_vrfs_update
- description: Put a VRF object.
+ operationId: tenancy_contact_groups_update
+ description: Put a contact group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this VRF.
+ description: A unique integer value identifying this contact group.
required: true
tags:
- - ipam
+ - tenancy
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableVRFRequest'
+ $ref: '#/components/schemas/WritableContactGroupRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableVRFRequest'
+ $ref: '#/components/schemas/WritableContactGroupRequest'
required: true
security:
- cookieAuth: []
@@ -68965,28 +72022,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VRF'
+ $ref: '#/components/schemas/ContactGroup'
description: ''
patch:
- operationId: ipam_vrfs_partial_update
- description: Patch a VRF object.
+ operationId: tenancy_contact_groups_partial_update
+ description: Patch a contact group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this VRF.
+ description: A unique integer value identifying this contact group.
required: true
tags:
- - ipam
+ - tenancy
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableVRFRequest'
+ $ref: '#/components/schemas/PatchedWritableContactGroupRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableVRFRequest'
+ $ref: '#/components/schemas/PatchedWritableContactGroupRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -68995,193 +72052,183 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VRF'
+ $ref: '#/components/schemas/ContactGroup'
description: ''
delete:
- operationId: ipam_vrfs_destroy
- description: Delete a VRF object.
+ operationId: tenancy_contact_groups_destroy
+ description: Delete a contact group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this VRF.
+ description: A unique integer value identifying this contact group.
required: true
tags:
- - ipam
+ - tenancy
security:
- cookieAuth: []
- tokenAuth: []
responses:
'204':
description: No response body
- /api/schema/:
+ /api/tenancy/contact-roles/:
get:
- operationId: schema_retrieve
- description: |-
- OpenApi3 schema for this API. Format can be selected via content negotiation.
-
- - YAML: application/vnd.oai.openapi
- - JSON: application/vnd.oai.openapi+json
+ operationId: tenancy_contact_roles_list
+ description: Get a list of contact role objects.
parameters:
- in: query
- name: format
+ name: created
schema:
- type: string
- enum:
- - json
- - yaml
- tags:
- - schema
- security:
- - cookieAuth: []
- - tokenAuth: []
- - {}
- responses:
- '200':
- content:
- application/vnd.oai.openapi:
- schema:
- type: object
- additionalProperties: {}
- application/yaml:
- schema:
- type: object
- additionalProperties: {}
- application/vnd.oai.openapi+json:
- schema:
- type: object
- additionalProperties: {}
- application/json:
- schema:
- type: object
- additionalProperties: {}
- description: ''
- /api/status/:
- get:
- operationId: status_retrieve
- description: A lightweight read-only endpoint for conveying NetBox's current
- operational status.
- tags:
- - status
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- type: object
- additionalProperties: {}
- description: ''
- /api/tenancy/contact-assignments/:
- get:
- operationId: tenancy_contact_assignments_list
- description: Get a list of contact assignment objects.
- parameters:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
- name: contact_id
+ name: created__empty
schema:
type: array
items:
- type: integer
- description: Contact (ID)
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: contact_id__n
+ name: created__gt
schema:
type: array
items:
- type: integer
- description: Contact (ID)
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type
+ name: created__gte
schema:
- type: string
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
- name: content_type__n
+ 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: content_type_id
+ name: description
schema:
- type: integer
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
- name: content_type_id__n
+ name: description__empty
schema:
- type: integer
+ type: boolean
- in: query
- name: created
+ name: description__ic
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__empty
+ name: description__ie
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__gt
+ name: description__iew
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__gte
+ name: description__isw
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__lt
+ name: description__n
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__lte
+ name: description__nic
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__n
+ name: description__nie
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created_by_request
+ name: description__niew
schema:
- type: string
- format: uuid
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -69315,61 +72362,87 @@ paths:
type: string
format: uuid
- in: query
- name: object_id
+ name: name
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: object_id__empty
+ name: name__empty
schema:
type: boolean
- in: query
- name: object_id__gt
+ name: name__ic
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: object_id__gte
+ name: name__ie
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: object_id__lt
+ name: name__iew
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: object_id__lte
+ name: name__isw
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: object_id__n
+ name: name__n
schema:
type: array
items:
- type: integer
- format: int32
+ 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
@@ -69385,52 +72458,92 @@ paths:
schema:
type: string
- in: query
- name: priority
+ name: q
schema:
type: string
+ description: Search
- in: query
- name: priority__n
+ name: slug
schema:
- type: string
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
- name: q
+ name: slug__empty
schema:
- type: string
- description: Search
+ type: boolean
- in: query
- name: role
+ name: slug__ic
schema:
type: array
items:
type: string
- description: Contact role (slug)
explode: true
style: form
- in: query
- name: role__n
+ name: slug__ie
schema:
type: array
items:
type: string
- description: Contact role (slug)
explode: true
style: form
- in: query
- name: role_id
+ name: slug__iew
schema:
type: array
items:
- type: integer
- description: Contact role (ID)
+ type: string
explode: true
style: form
- in: query
- name: role_id__n
+ name: slug__isw
schema:
type: array
items:
- type: integer
- description: Contact role (ID)
+ 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
@@ -69464,21 +72577,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedContactAssignmentList'
+ $ref: '#/components/schemas/PaginatedContactRoleList'
description: ''
post:
- operationId: tenancy_contact_assignments_create
- description: Post a list of contact assignment objects.
+ operationId: tenancy_contact_roles_create
+ description: Post a list of contact role objects.
tags:
- tenancy
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableContactAssignmentRequest'
+ $ref: '#/components/schemas/ContactRoleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableContactAssignmentRequest'
+ $ref: '#/components/schemas/ContactRoleRequest'
required: true
security:
- cookieAuth: []
@@ -69488,11 +72601,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactAssignment'
+ $ref: '#/components/schemas/ContactRole'
description: ''
put:
- operationId: tenancy_contact_assignments_bulk_update
- description: Put a list of contact assignment objects.
+ operationId: tenancy_contact_roles_bulk_update
+ description: Put a list of contact role objects.
tags:
- tenancy
requestBody:
@@ -69501,12 +72614,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactAssignmentRequest'
+ $ref: '#/components/schemas/ContactRoleRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactAssignmentRequest'
+ $ref: '#/components/schemas/ContactRoleRequest'
required: true
security:
- cookieAuth: []
@@ -69518,11 +72631,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactAssignment'
+ $ref: '#/components/schemas/ContactRole'
description: ''
patch:
- operationId: tenancy_contact_assignments_bulk_partial_update
- description: Patch a list of contact assignment objects.
+ operationId: tenancy_contact_roles_bulk_partial_update
+ description: Patch a list of contact role objects.
tags:
- tenancy
requestBody:
@@ -69531,12 +72644,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactAssignmentRequest'
+ $ref: '#/components/schemas/ContactRoleRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactAssignmentRequest'
+ $ref: '#/components/schemas/ContactRoleRequest'
required: true
security:
- cookieAuth: []
@@ -69548,11 +72661,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactAssignment'
+ $ref: '#/components/schemas/ContactRole'
description: ''
delete:
- operationId: tenancy_contact_assignments_bulk_destroy
- description: Delete a list of contact assignment objects.
+ operationId: tenancy_contact_roles_bulk_destroy
+ description: Delete a list of contact role objects.
tags:
- tenancy
requestBody:
@@ -69561,12 +72674,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactAssignmentRequest'
+ $ref: '#/components/schemas/ContactRoleRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactAssignmentRequest'
+ $ref: '#/components/schemas/ContactRoleRequest'
required: true
security:
- cookieAuth: []
@@ -69574,16 +72687,16 @@ paths:
responses:
'204':
description: No response body
- /api/tenancy/contact-assignments/{id}/:
+ /api/tenancy/contact-roles/{id}/:
get:
- operationId: tenancy_contact_assignments_retrieve
- description: Get a contact assignment object.
+ operationId: tenancy_contact_roles_retrieve
+ description: Get a contact role object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact assignment.
+ description: A unique integer value identifying this contact role.
required: true
tags:
- tenancy
@@ -69595,17 +72708,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactAssignment'
+ $ref: '#/components/schemas/ContactRole'
description: ''
put:
- operationId: tenancy_contact_assignments_update
- description: Put a contact assignment object.
+ operationId: tenancy_contact_roles_update
+ description: Put a contact role object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact assignment.
+ description: A unique integer value identifying this contact role.
required: true
tags:
- tenancy
@@ -69613,10 +72726,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableContactAssignmentRequest'
+ $ref: '#/components/schemas/ContactRoleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableContactAssignmentRequest'
+ $ref: '#/components/schemas/ContactRoleRequest'
required: true
security:
- cookieAuth: []
@@ -69626,17 +72739,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactAssignment'
+ $ref: '#/components/schemas/ContactRole'
description: ''
patch:
- operationId: tenancy_contact_assignments_partial_update
- description: Patch a contact assignment object.
+ operationId: tenancy_contact_roles_partial_update
+ description: Patch a contact role object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact assignment.
+ description: A unique integer value identifying this contact role.
required: true
tags:
- tenancy
@@ -69644,10 +72757,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest'
+ $ref: '#/components/schemas/PatchedContactRoleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest'
+ $ref: '#/components/schemas/PatchedContactRoleRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -69656,17 +72769,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactAssignment'
+ $ref: '#/components/schemas/ContactRole'
description: ''
delete:
- operationId: tenancy_contact_assignments_destroy
- description: Delete a contact assignment object.
+ operationId: tenancy_contact_roles_destroy
+ description: Delete a contact role object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact assignment.
+ description: A unique integer value identifying this contact role.
required: true
tags:
- tenancy
@@ -69676,11 +72789,95 @@ paths:
responses:
'204':
description: No response body
- /api/tenancy/contact-groups/:
+ /api/tenancy/contacts/:
get:
- operationId: tenancy_contact_groups_list
- description: Get a list of contact group objects.
+ operationId: tenancy_contacts_list
+ description: Get a list of contact objects.
parameters:
+ - in: query
+ name: address
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: address__empty
+ schema:
+ type: boolean
+ - in: query
+ name: address__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: address__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: address__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: address__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: address__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: address__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: address__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: address__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: address__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -69833,6 +73030,126 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: email
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__empty
+ schema:
+ type: boolean
+ - in: query
+ name: email__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: group
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: group__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: group_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: group_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group (ID)
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -69960,6 +73277,90 @@ paths:
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: link
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: link__empty
+ schema:
+ type: boolean
+ - in: query
+ name: link__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: link__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: link__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: link__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: link__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: link__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: link__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: link__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: link__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: modified_by_request
schema:
@@ -70062,41 +73463,87 @@ paths:
schema:
type: string
- in: query
- name: parent
+ name: phone
schema:
type: array
items:
type: string
- description: Contact group (slug)
explode: true
style: form
- in: query
- name: parent__n
+ name: phone__empty
+ schema:
+ type: boolean
+ - in: query
+ name: phone__ic
schema:
type: array
items:
type: string
- description: Contact group (slug)
explode: true
style: form
- in: query
- name: parent_id
+ name: phone__ie
schema:
type: array
items:
- type: integer
- nullable: true
- description: Contact group (ID)
+ type: string
explode: true
style: form
- in: query
- name: parent_id__n
+ name: phone__iew
schema:
type: array
items:
- type: integer
- nullable: true
- description: Contact group (ID)
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: phone__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: phone__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: phone__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: phone__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: phone__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: phone__nisw
+ schema:
+ type: array
+ items:
+ type: string
explode: true
style: form
- in: query
@@ -70105,7 +73552,7 @@ paths:
type: string
description: Search
- in: query
- name: slug
+ name: tag
schema:
type: array
items:
@@ -70113,11 +73560,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__empty
- schema:
- type: boolean
- - in: query
- name: slug__ic
+ name: tag__n
schema:
type: array
items:
@@ -70125,7 +73568,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__ie
+ name: title
schema:
type: array
items:
@@ -70133,7 +73576,11 @@ paths:
explode: true
style: form
- in: query
- name: slug__iew
+ name: title__empty
+ schema:
+ type: boolean
+ - in: query
+ name: title__ic
schema:
type: array
items:
@@ -70141,7 +73588,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__isw
+ name: title__ie
schema:
type: array
items:
@@ -70149,7 +73596,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__n
+ name: title__iew
schema:
type: array
items:
@@ -70157,7 +73604,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__nic
+ name: title__isw
schema:
type: array
items:
@@ -70165,7 +73612,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__nie
+ name: title__n
schema:
type: array
items:
@@ -70173,7 +73620,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__niew
+ name: title__nic
schema:
type: array
items:
@@ -70181,7 +73628,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__nisw
+ name: title__nie
schema:
type: array
items:
@@ -70189,7 +73636,7 @@ paths:
explode: true
style: form
- in: query
- name: tag
+ name: title__niew
schema:
type: array
items:
@@ -70197,7 +73644,7 @@ paths:
explode: true
style: form
- in: query
- name: tag__n
+ name: title__nisw
schema:
type: array
items:
@@ -70219,21 +73666,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedContactGroupList'
+ $ref: '#/components/schemas/PaginatedContactList'
description: ''
post:
- operationId: tenancy_contact_groups_create
- description: Post a list of contact group objects.
+ operationId: tenancy_contacts_create
+ description: Post a list of contact objects.
tags:
- tenancy
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableContactGroupRequest'
+ $ref: '#/components/schemas/WritableContactRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableContactGroupRequest'
+ $ref: '#/components/schemas/WritableContactRequest'
required: true
security:
- cookieAuth: []
@@ -70243,11 +73690,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactGroup'
+ $ref: '#/components/schemas/Contact'
description: ''
put:
- operationId: tenancy_contact_groups_bulk_update
- description: Put a list of contact group objects.
+ operationId: tenancy_contacts_bulk_update
+ description: Put a list of contact objects.
tags:
- tenancy
requestBody:
@@ -70256,12 +73703,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactGroupRequest'
+ $ref: '#/components/schemas/ContactRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactGroupRequest'
+ $ref: '#/components/schemas/ContactRequest'
required: true
security:
- cookieAuth: []
@@ -70273,11 +73720,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactGroup'
+ $ref: '#/components/schemas/Contact'
description: ''
patch:
- operationId: tenancy_contact_groups_bulk_partial_update
- description: Patch a list of contact group objects.
+ operationId: tenancy_contacts_bulk_partial_update
+ description: Patch a list of contact objects.
tags:
- tenancy
requestBody:
@@ -70286,12 +73733,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactGroupRequest'
+ $ref: '#/components/schemas/ContactRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactGroupRequest'
+ $ref: '#/components/schemas/ContactRequest'
required: true
security:
- cookieAuth: []
@@ -70303,11 +73750,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactGroup'
+ $ref: '#/components/schemas/Contact'
description: ''
delete:
- operationId: tenancy_contact_groups_bulk_destroy
- description: Delete a list of contact group objects.
+ operationId: tenancy_contacts_bulk_destroy
+ description: Delete a list of contact objects.
tags:
- tenancy
requestBody:
@@ -70316,12 +73763,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactGroupRequest'
+ $ref: '#/components/schemas/ContactRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactGroupRequest'
+ $ref: '#/components/schemas/ContactRequest'
required: true
security:
- cookieAuth: []
@@ -70329,16 +73776,16 @@ paths:
responses:
'204':
description: No response body
- /api/tenancy/contact-groups/{id}/:
+ /api/tenancy/contacts/{id}/:
get:
- operationId: tenancy_contact_groups_retrieve
- description: Get a contact group object.
+ operationId: tenancy_contacts_retrieve
+ description: Get a contact object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact group.
+ description: A unique integer value identifying this contact.
required: true
tags:
- tenancy
@@ -70350,17 +73797,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactGroup'
+ $ref: '#/components/schemas/Contact'
description: ''
put:
- operationId: tenancy_contact_groups_update
- description: Put a contact group object.
+ operationId: tenancy_contacts_update
+ description: Put a contact object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact group.
+ description: A unique integer value identifying this contact.
required: true
tags:
- tenancy
@@ -70368,10 +73815,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableContactGroupRequest'
+ $ref: '#/components/schemas/WritableContactRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableContactGroupRequest'
+ $ref: '#/components/schemas/WritableContactRequest'
required: true
security:
- cookieAuth: []
@@ -70381,17 +73828,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactGroup'
+ $ref: '#/components/schemas/Contact'
description: ''
patch:
- operationId: tenancy_contact_groups_partial_update
- description: Patch a contact group object.
+ operationId: tenancy_contacts_partial_update
+ description: Patch a contact object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact group.
+ description: A unique integer value identifying this contact.
required: true
tags:
- tenancy
@@ -70399,10 +73846,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableContactGroupRequest'
+ $ref: '#/components/schemas/PatchedWritableContactRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableContactGroupRequest'
+ $ref: '#/components/schemas/PatchedWritableContactRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -70411,17 +73858,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactGroup'
+ $ref: '#/components/schemas/Contact'
description: ''
delete:
- operationId: tenancy_contact_groups_destroy
- description: Delete a contact group object.
+ operationId: tenancy_contacts_destroy
+ description: Delete a contact object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact group.
+ description: A unique integer value identifying this contact.
required: true
tags:
- tenancy
@@ -70431,10 +73878,10 @@ paths:
responses:
'204':
description: No response body
- /api/tenancy/contact-roles/:
+ /api/tenancy/tenant-groups/:
get:
- operationId: tenancy_contact_roles_list
- description: Get a list of contact role objects.
+ operationId: tenancy_tenant_groups_list
+ description: Get a list of tenant group objects.
parameters:
- in: query
name: created
@@ -70816,6 +74263,44 @@ paths:
description: Which field to use when ordering the results.
schema:
type: string
+ - in: query
+ name: parent
+ schema:
+ type: array
+ items:
+ type: string
+ description: Tenant group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: parent__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Tenant group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: parent_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Tenant group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: parent_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Tenant group (ID)
+ explode: true
+ style: form
- in: query
name: q
schema:
@@ -70936,21 +74421,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedContactRoleList'
+ $ref: '#/components/schemas/PaginatedTenantGroupList'
description: ''
post:
- operationId: tenancy_contact_roles_create
- description: Post a list of contact role objects.
+ operationId: tenancy_tenant_groups_create
+ description: Post a list of tenant group objects.
tags:
- tenancy
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactRoleRequest'
+ $ref: '#/components/schemas/WritableTenantGroupRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/ContactRoleRequest'
+ $ref: '#/components/schemas/WritableTenantGroupRequest'
required: true
security:
- cookieAuth: []
@@ -70960,11 +74445,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactRole'
+ $ref: '#/components/schemas/TenantGroup'
description: ''
put:
- operationId: tenancy_contact_roles_bulk_update
- description: Put a list of contact role objects.
+ operationId: tenancy_tenant_groups_bulk_update
+ description: Put a list of tenant group objects.
tags:
- tenancy
requestBody:
@@ -70973,12 +74458,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRoleRequest'
+ $ref: '#/components/schemas/TenantGroupRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRoleRequest'
+ $ref: '#/components/schemas/TenantGroupRequest'
required: true
security:
- cookieAuth: []
@@ -70990,11 +74475,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRole'
+ $ref: '#/components/schemas/TenantGroup'
description: ''
patch:
- operationId: tenancy_contact_roles_bulk_partial_update
- description: Patch a list of contact role objects.
+ operationId: tenancy_tenant_groups_bulk_partial_update
+ description: Patch a list of tenant group objects.
tags:
- tenancy
requestBody:
@@ -71003,12 +74488,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRoleRequest'
+ $ref: '#/components/schemas/TenantGroupRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRoleRequest'
+ $ref: '#/components/schemas/TenantGroupRequest'
required: true
security:
- cookieAuth: []
@@ -71020,11 +74505,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRole'
+ $ref: '#/components/schemas/TenantGroup'
description: ''
delete:
- operationId: tenancy_contact_roles_bulk_destroy
- description: Delete a list of contact role objects.
+ operationId: tenancy_tenant_groups_bulk_destroy
+ description: Delete a list of tenant group objects.
tags:
- tenancy
requestBody:
@@ -71033,12 +74518,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRoleRequest'
+ $ref: '#/components/schemas/TenantGroupRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRoleRequest'
+ $ref: '#/components/schemas/TenantGroupRequest'
required: true
security:
- cookieAuth: []
@@ -71046,16 +74531,16 @@ paths:
responses:
'204':
description: No response body
- /api/tenancy/contact-roles/{id}/:
+ /api/tenancy/tenant-groups/{id}/:
get:
- operationId: tenancy_contact_roles_retrieve
- description: Get a contact role object.
+ operationId: tenancy_tenant_groups_retrieve
+ description: Get a tenant group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact role.
+ description: A unique integer value identifying this tenant group.
required: true
tags:
- tenancy
@@ -71067,17 +74552,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactRole'
+ $ref: '#/components/schemas/TenantGroup'
description: ''
put:
- operationId: tenancy_contact_roles_update
- description: Put a contact role object.
+ operationId: tenancy_tenant_groups_update
+ description: Put a tenant group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact role.
+ description: A unique integer value identifying this tenant group.
required: true
tags:
- tenancy
@@ -71085,10 +74570,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactRoleRequest'
+ $ref: '#/components/schemas/WritableTenantGroupRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/ContactRoleRequest'
+ $ref: '#/components/schemas/WritableTenantGroupRequest'
required: true
security:
- cookieAuth: []
@@ -71098,17 +74583,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactRole'
+ $ref: '#/components/schemas/TenantGroup'
description: ''
patch:
- operationId: tenancy_contact_roles_partial_update
- description: Patch a contact role object.
+ operationId: tenancy_tenant_groups_partial_update
+ description: Patch a tenant group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact role.
+ description: A unique integer value identifying this tenant group.
required: true
tags:
- tenancy
@@ -71116,10 +74601,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedContactRoleRequest'
+ $ref: '#/components/schemas/PatchedWritableTenantGroupRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedContactRoleRequest'
+ $ref: '#/components/schemas/PatchedWritableTenantGroupRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -71128,17 +74613,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactRole'
+ $ref: '#/components/schemas/TenantGroup'
description: ''
delete:
- operationId: tenancy_contact_roles_destroy
- description: Delete a contact role object.
+ operationId: tenancy_tenant_groups_destroy
+ description: Delete a tenant group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact role.
+ description: A unique integer value identifying this tenant group.
required: true
tags:
- tenancy
@@ -71148,93 +74633,63 @@ paths:
responses:
'204':
description: No response body
- /api/tenancy/contacts/:
+ /api/tenancy/tenants/:
get:
- operationId: tenancy_contacts_list
- description: Get a list of contact objects.
+ operationId: tenancy_tenants_list
+ description: Get a list of tenant objects.
parameters:
- in: query
- name: address
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: address__empty
- schema:
- type: boolean
- - in: query
- name: address__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: address__ie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: address__iew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: address__isw
+ name: contact
schema:
type: array
items:
- type: string
+ type: integer
+ description: Contact
explode: true
style: form
- in: query
- name: address__n
+ name: contact__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: Contact
explode: true
style: form
- in: query
- name: address__nic
+ name: contact_group
schema:
type: array
items:
- type: string
+ type: integer
+ description: Contact group
explode: true
style: form
- in: query
- name: address__nie
+ name: contact_group__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: Contact group
explode: true
style: form
- in: query
- name: address__niew
+ name: contact_role
schema:
type: array
items:
- type: string
+ type: integer
+ description: Contact Role
explode: true
style: form
- in: query
- name: address__nisw
+ name: contact_role__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: Contact Role
explode: true
style: form
- in: query
@@ -71306,7 +74761,7 @@ paths:
type: string
format: uuid
- in: query
- name: email
+ name: description
schema:
type: array
items:
@@ -71314,11 +74769,11 @@ paths:
explode: true
style: form
- in: query
- name: email__empty
+ name: description__empty
schema:
type: boolean
- in: query
- name: email__ic
+ name: description__ic
schema:
type: array
items:
@@ -71326,7 +74781,7 @@ paths:
explode: true
style: form
- in: query
- name: email__ie
+ name: description__ie
schema:
type: array
items:
@@ -71334,7 +74789,7 @@ paths:
explode: true
style: form
- in: query
- name: email__iew
+ name: description__iew
schema:
type: array
items:
@@ -71342,7 +74797,7 @@ paths:
explode: true
style: form
- in: query
- name: email__isw
+ name: description__isw
schema:
type: array
items:
@@ -71350,7 +74805,7 @@ paths:
explode: true
style: form
- in: query
- name: email__n
+ name: description__n
schema:
type: array
items:
@@ -71358,7 +74813,7 @@ paths:
explode: true
style: form
- in: query
- name: email__nic
+ name: description__nic
schema:
type: array
items:
@@ -71366,7 +74821,7 @@ paths:
explode: true
style: form
- in: query
- name: email__nie
+ name: description__nie
schema:
type: array
items:
@@ -71374,7 +74829,7 @@ paths:
explode: true
style: form
- in: query
- name: email__niew
+ name: description__niew
schema:
type: array
items:
@@ -71382,7 +74837,7 @@ paths:
explode: true
style: form
- in: query
- name: email__nisw
+ name: description__nisw
schema:
type: array
items:
@@ -71395,7 +74850,7 @@ paths:
type: array
items:
type: integer
- description: Contact group (slug)
+ description: Tenant group (slug)
explode: true
style: form
- in: query
@@ -71404,7 +74859,7 @@ paths:
type: array
items:
type: integer
- description: Contact group (slug)
+ description: Tenant group (slug)
explode: true
style: form
- in: query
@@ -71413,7 +74868,7 @@ paths:
type: array
items:
type: integer
- description: Contact group (ID)
+ description: Tenant group (ID)
explode: true
style: form
- in: query
@@ -71422,7 +74877,7 @@ paths:
type: array
items:
type: integer
- description: Contact group (ID)
+ description: Tenant group (ID)
explode: true
style: form
- in: query
@@ -71553,7 +75008,12 @@ paths:
schema:
type: integer
- in: query
- name: link
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: name
schema:
type: array
items:
@@ -71561,11 +75021,11 @@ paths:
explode: true
style: form
- in: query
- name: link__empty
+ name: name__empty
schema:
type: boolean
- in: query
- name: link__ic
+ name: name__ic
schema:
type: array
items:
@@ -71573,7 +75033,7 @@ paths:
explode: true
style: form
- in: query
- name: link__ie
+ name: name__ie
schema:
type: array
items:
@@ -71581,7 +75041,7 @@ paths:
explode: true
style: form
- in: query
- name: link__iew
+ name: name__iew
schema:
type: array
items:
@@ -71589,7 +75049,7 @@ paths:
explode: true
style: form
- in: query
- name: link__isw
+ name: name__isw
schema:
type: array
items:
@@ -71597,7 +75057,7 @@ paths:
explode: true
style: form
- in: query
- name: link__n
+ name: name__n
schema:
type: array
items:
@@ -71605,7 +75065,7 @@ paths:
explode: true
style: form
- in: query
- name: link__nic
+ name: name__nic
schema:
type: array
items:
@@ -71613,7 +75073,7 @@ paths:
explode: true
style: form
- in: query
- name: link__nie
+ name: name__nie
schema:
type: array
items:
@@ -71621,7 +75081,7 @@ paths:
explode: true
style: form
- in: query
- name: link__niew
+ name: name__niew
schema:
type: array
items:
@@ -71629,20 +75089,32 @@ paths:
explode: true
style: form
- in: query
- name: link__nisw
+ name: name__nisw
schema:
type: array
items:
type: string
explode: true
style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
- in: query
- name: modified_by_request
+ name: q
schema:
type: string
- format: uuid
+ description: Search
- in: query
- name: name
+ name: slug
schema:
type: array
items:
@@ -71650,11 +75122,11 @@ paths:
explode: true
style: form
- in: query
- name: name__empty
+ name: slug__empty
schema:
type: boolean
- in: query
- name: name__ic
+ name: slug__ic
schema:
type: array
items:
@@ -71662,7 +75134,7 @@ paths:
explode: true
style: form
- in: query
- name: name__ie
+ name: slug__ie
schema:
type: array
items:
@@ -71670,7 +75142,7 @@ paths:
explode: true
style: form
- in: query
- name: name__iew
+ name: slug__iew
schema:
type: array
items:
@@ -71678,7 +75150,7 @@ paths:
explode: true
style: form
- in: query
- name: name__isw
+ name: slug__isw
schema:
type: array
items:
@@ -71686,7 +75158,7 @@ paths:
explode: true
style: form
- in: query
- name: name__n
+ name: slug__n
schema:
type: array
items:
@@ -71694,7 +75166,7 @@ paths:
explode: true
style: form
- in: query
- name: name__nic
+ name: slug__nic
schema:
type: array
items:
@@ -71702,7 +75174,7 @@ paths:
explode: true
style: form
- in: query
- name: name__nie
+ name: slug__nie
schema:
type: array
items:
@@ -71710,7 +75182,7 @@ paths:
explode: true
style: form
- in: query
- name: name__niew
+ name: slug__niew
schema:
type: array
items:
@@ -71718,27 +75190,15 @@ paths:
explode: true
style: form
- in: query
- name: name__nisw
+ name: slug__nisw
schema:
type: array
items:
type: string
explode: true
style: form
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
- schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
- schema:
- type: string
- in: query
- name: phone
+ name: tag
schema:
type: array
items:
@@ -71746,11 +75206,7 @@ paths:
explode: true
style: form
- in: query
- name: phone__empty
- schema:
- type: boolean
- - in: query
- name: phone__ic
+ name: tag__n
schema:
type: array
items:
@@ -71758,92 +75214,321 @@ paths:
explode: true
style: form
- in: query
- name: phone__ie
+ name: updated_by_request
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: phone__iew
+ type: string
+ format: uuid
+ tags:
+ - tenancy
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedTenantList'
+ description: ''
+ post:
+ operationId: tenancy_tenants_create
+ description: Post a list of tenant objects.
+ tags:
+ - tenancy
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableTenantRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableTenantRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Tenant'
+ description: ''
+ put:
+ operationId: tenancy_tenants_bulk_update
+ description: Put a list of tenant objects.
+ tags:
+ - tenancy
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TenantRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TenantRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Tenant'
+ description: ''
+ patch:
+ operationId: tenancy_tenants_bulk_partial_update
+ description: Patch a list of tenant objects.
+ tags:
+ - tenancy
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TenantRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TenantRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Tenant'
+ description: ''
+ delete:
+ operationId: tenancy_tenants_bulk_destroy
+ description: Delete a list of tenant objects.
+ tags:
+ - tenancy
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TenantRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TenantRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/tenancy/tenants/{id}/:
+ get:
+ operationId: tenancy_tenants_retrieve
+ description: Get a tenant object.
+ parameters:
+ - in: path
+ name: id
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: phone__isw
+ type: integer
+ description: A unique integer value identifying this tenant.
+ required: true
+ tags:
+ - tenancy
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Tenant'
+ description: ''
+ put:
+ operationId: tenancy_tenants_update
+ description: Put a tenant object.
+ parameters:
+ - in: path
+ name: id
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: integer
+ description: A unique integer value identifying this tenant.
+ required: true
+ tags:
+ - tenancy
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableTenantRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableTenantRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Tenant'
+ description: ''
+ patch:
+ operationId: tenancy_tenants_partial_update
+ description: Patch a tenant object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this tenant.
+ required: true
+ tags:
+ - tenancy
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableTenantRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableTenantRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Tenant'
+ description: ''
+ delete:
+ operationId: tenancy_tenants_destroy
+ description: Delete a tenant object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this tenant.
+ required: true
+ tags:
+ - tenancy
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/users/config/:
+ get:
+ operationId: users_config_retrieve
+ description: An API endpoint via which a user can update his or her own UserConfig
+ data (but no one else's).
+ tags:
+ - users
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: object
+ additionalProperties: {}
+ description: ''
+ /api/users/groups/:
+ get:
+ operationId: users_groups_list
+ description: Get a list of group objects.
+ parameters:
- in: query
- name: phone__n
+ name: id
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: phone__nic
+ name: id__empty
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: boolean
- in: query
- name: phone__nie
+ name: id__gt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: phone__niew
+ name: id__gte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: phone__nisw
+ name: id__lt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: q
- schema:
- type: string
- description: Search
- - in: query
- name: tag
+ name: id__lte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: tag__n
+ name: id__n
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
- in: query
- name: title
+ name: name
schema:
type: array
items:
@@ -71851,11 +75536,11 @@ paths:
explode: true
style: form
- in: query
- name: title__empty
+ name: name__empty
schema:
type: boolean
- in: query
- name: title__ic
+ name: name__ic
schema:
type: array
items:
@@ -71863,7 +75548,7 @@ paths:
explode: true
style: form
- in: query
- name: title__ie
+ name: name__ie
schema:
type: array
items:
@@ -71871,7 +75556,7 @@ paths:
explode: true
style: form
- in: query
- name: title__iew
+ name: name__iew
schema:
type: array
items:
@@ -71879,7 +75564,7 @@ paths:
explode: true
style: form
- in: query
- name: title__isw
+ name: name__isw
schema:
type: array
items:
@@ -71887,7 +75572,7 @@ paths:
explode: true
style: form
- in: query
- name: title__n
+ name: name__n
schema:
type: array
items:
@@ -71895,7 +75580,7 @@ paths:
explode: true
style: form
- in: query
- name: title__nic
+ name: name__nic
schema:
type: array
items:
@@ -71903,7 +75588,7 @@ paths:
explode: true
style: form
- in: query
- name: title__nie
+ name: name__nie
schema:
type: array
items:
@@ -71911,7 +75596,7 @@ paths:
explode: true
style: form
- in: query
- name: title__niew
+ name: name__niew
schema:
type: array
items:
@@ -71919,20 +75604,32 @@ paths:
explode: true
style: form
- in: query
- name: title__nisw
+ name: name__nisw
schema:
type: array
items:
type: string
explode: true
style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
- in: query
- name: updated_by_request
+ name: q
schema:
type: string
- format: uuid
+ description: Search
tags:
- - tenancy
+ - users
security:
- cookieAuth: []
- tokenAuth: []
@@ -71941,21 +75638,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedContactList'
+ $ref: '#/components/schemas/PaginatedGroupList'
description: ''
post:
- operationId: tenancy_contacts_create
- description: Post a list of contact objects.
+ operationId: users_groups_create
+ description: Post a list of group objects.
tags:
- - tenancy
+ - users
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableContactRequest'
+ $ref: '#/components/schemas/GroupRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableContactRequest'
+ $ref: '#/components/schemas/GroupRequest'
required: true
security:
- cookieAuth: []
@@ -71965,25 +75662,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Contact'
+ $ref: '#/components/schemas/Group'
description: ''
put:
- operationId: tenancy_contacts_bulk_update
- description: Put a list of contact objects.
+ operationId: users_groups_bulk_update
+ description: Put a list of group objects.
tags:
- - tenancy
+ - users
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRequest'
+ $ref: '#/components/schemas/GroupRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRequest'
+ $ref: '#/components/schemas/GroupRequest'
required: true
security:
- cookieAuth: []
@@ -71995,25 +75692,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Contact'
+ $ref: '#/components/schemas/Group'
description: ''
patch:
- operationId: tenancy_contacts_bulk_partial_update
- description: Patch a list of contact objects.
+ operationId: users_groups_bulk_partial_update
+ description: Patch a list of group objects.
tags:
- - tenancy
+ - users
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRequest'
+ $ref: '#/components/schemas/GroupRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRequest'
+ $ref: '#/components/schemas/GroupRequest'
required: true
security:
- cookieAuth: []
@@ -72025,25 +75722,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Contact'
+ $ref: '#/components/schemas/Group'
description: ''
delete:
- operationId: tenancy_contacts_bulk_destroy
- description: Delete a list of contact objects.
+ operationId: users_groups_bulk_destroy
+ description: Delete a list of group objects.
tags:
- - tenancy
+ - users
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRequest'
+ $ref: '#/components/schemas/GroupRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ContactRequest'
+ $ref: '#/components/schemas/GroupRequest'
required: true
security:
- cookieAuth: []
@@ -72051,19 +75748,19 @@ paths:
responses:
'204':
description: No response body
- /api/tenancy/contacts/{id}/:
+ /api/users/groups/{id}/:
get:
- operationId: tenancy_contacts_retrieve
- description: Get a contact object.
+ operationId: users_groups_retrieve
+ description: Get a group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact.
+ description: A unique integer value identifying this group.
required: true
tags:
- - tenancy
+ - users
security:
- cookieAuth: []
- tokenAuth: []
@@ -72072,28 +75769,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Contact'
+ $ref: '#/components/schemas/Group'
description: ''
put:
- operationId: tenancy_contacts_update
- description: Put a contact object.
+ operationId: users_groups_update
+ description: Put a group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact.
+ description: A unique integer value identifying this group.
required: true
tags:
- - tenancy
+ - users
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableContactRequest'
+ $ref: '#/components/schemas/GroupRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableContactRequest'
+ $ref: '#/components/schemas/GroupRequest'
required: true
security:
- cookieAuth: []
@@ -72103,28 +75800,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Contact'
+ $ref: '#/components/schemas/Group'
description: ''
patch:
- operationId: tenancy_contacts_partial_update
- description: Patch a contact object.
+ operationId: users_groups_partial_update
+ description: Patch a group object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this contact.
+ description: A unique integer value identifying this group.
required: true
tags:
- - tenancy
+ - users
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableContactRequest'
+ $ref: '#/components/schemas/PatchedGroupRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableContactRequest'
+ $ref: '#/components/schemas/PatchedGroupRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -72133,33 +75830,6540 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Contact'
+ $ref: '#/components/schemas/Group'
description: ''
delete:
- operationId: tenancy_contacts_destroy
- description: Delete a contact object.
+ operationId: users_groups_destroy
+ description: Delete a group object.
parameters:
- in: path
name: id
schema:
- type: integer
- description: A unique integer value identifying this contact.
- required: true
- tags:
- - tenancy
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '204':
- description: No response body
- /api/tenancy/tenant-groups/:
- get:
- operationId: tenancy_tenant_groups_list
- description: Get a list of tenant group objects.
- parameters:
+ type: integer
+ description: A unique integer value identifying this group.
+ required: true
+ tags:
+ - users
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/users/permissions/:
+ get:
+ operationId: users_permissions_list
+ description: Get a list of permission objects.
+ parameters:
+ - in: query
+ name: can_add
+ schema:
+ type: boolean
+ - in: query
+ name: can_change
+ schema:
+ type: boolean
+ - in: query
+ name: can_delete
+ schema:
+ type: boolean
+ - in: query
+ name: can_view
+ schema:
+ type: boolean
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: enabled
+ schema:
+ type: boolean
+ - in: query
+ name: group
+ schema:
+ type: array
+ items:
+ type: string
+ description: Group (name)
+ explode: true
+ style: form
+ - in: query
+ name: group__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Group (name)
+ explode: true
+ style: form
+ - in: query
+ name: group_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Group
+ explode: true
+ style: form
+ - in: query
+ name: group_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Group
+ explode: true
+ style: form
+ - in: query
+ name: id
+ schema:
+ type: array
+ items:
+ type: 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
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - in: query
+ name: name
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: name__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: object_types
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: object_types__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: user
+ schema:
+ type: array
+ items:
+ type: string
+ description: User (name)
+ explode: true
+ style: form
+ - in: query
+ name: user__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: User (name)
+ explode: true
+ style: form
+ - in: query
+ name: user_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: User
+ explode: true
+ style: form
+ - in: query
+ name: user_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: User
+ explode: true
+ style: form
+ tags:
+ - users
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedObjectPermissionList'
+ description: ''
+ post:
+ operationId: users_permissions_create
+ description: Post a list of permission objects.
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableObjectPermissionRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableObjectPermissionRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ObjectPermission'
+ description: ''
+ put:
+ operationId: users_permissions_bulk_update
+ description: Put a list of permission objects.
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ObjectPermissionRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ObjectPermissionRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ObjectPermission'
+ description: ''
+ patch:
+ operationId: users_permissions_bulk_partial_update
+ description: Patch a list of permission objects.
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ObjectPermissionRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ObjectPermissionRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ObjectPermission'
+ description: ''
+ delete:
+ operationId: users_permissions_bulk_destroy
+ description: Delete a list of permission objects.
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ObjectPermissionRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ObjectPermissionRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/users/permissions/{id}/:
+ get:
+ operationId: users_permissions_retrieve
+ description: Get a permission object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this permission.
+ required: true
+ tags:
+ - users
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ObjectPermission'
+ description: ''
+ put:
+ operationId: users_permissions_update
+ description: Put a permission object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this permission.
+ required: true
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableObjectPermissionRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableObjectPermissionRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ObjectPermission'
+ description: ''
+ patch:
+ operationId: users_permissions_partial_update
+ description: Patch a permission object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this permission.
+ required: true
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableObjectPermissionRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableObjectPermissionRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ObjectPermission'
+ description: ''
+ delete:
+ operationId: users_permissions_destroy
+ description: Delete a permission object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this permission.
+ required: true
+ tags:
+ - users
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/users/tokens/:
+ get:
+ operationId: users_tokens_list
+ description: Get a list of token objects.
+ parameters:
+ - in: query
+ name: created
+ schema:
+ type: string
+ format: date-time
+ - in: query
+ name: created__gte
+ schema:
+ type: string
+ format: date-time
+ - in: query
+ name: created__lte
+ schema:
+ type: string
+ format: date-time
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ 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: expires
+ schema:
+ type: string
+ format: date-time
+ - in: query
+ name: expires__gte
+ schema:
+ type: string
+ format: date-time
+ - in: query
+ name: expires__lte
+ schema:
+ type: string
+ format: date-time
+ - in: query
+ name: id
+ schema:
+ 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: key
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: key__empty
+ schema:
+ type: boolean
+ - in: query
+ name: key__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: key__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: key__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: key__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: key__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: key__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: key__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: key__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: key__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: user
+ schema:
+ type: array
+ items:
+ type: string
+ description: User (name)
+ explode: true
+ style: form
+ - in: query
+ name: user__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: User (name)
+ explode: true
+ style: form
+ - in: query
+ name: user_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: User
+ explode: true
+ style: form
+ - in: query
+ name: user_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: User
+ explode: true
+ style: form
+ - in: query
+ name: write_enabled
+ schema:
+ type: boolean
+ tags:
+ - users
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedTokenList'
+ description: ''
+ post:
+ operationId: users_tokens_create
+ description: Post a list of token objects.
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableTokenRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableTokenRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Token'
+ description: ''
+ put:
+ operationId: users_tokens_bulk_update
+ description: Put a list of token objects.
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TokenRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TokenRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Token'
+ description: ''
+ patch:
+ operationId: users_tokens_bulk_partial_update
+ description: Patch a list of token objects.
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TokenRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TokenRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Token'
+ description: ''
+ delete:
+ operationId: users_tokens_bulk_destroy
+ description: Delete a list of token objects.
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TokenRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TokenRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/users/tokens/{id}/:
+ get:
+ operationId: users_tokens_retrieve
+ description: Get a token object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this token.
+ required: true
+ tags:
+ - users
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Token'
+ description: ''
+ put:
+ operationId: users_tokens_update
+ description: Put a token object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this token.
+ required: true
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableTokenRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableTokenRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Token'
+ description: ''
+ patch:
+ operationId: users_tokens_partial_update
+ description: Patch a token object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this token.
+ required: true
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableTokenRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableTokenRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Token'
+ description: ''
+ delete:
+ operationId: users_tokens_destroy
+ description: Delete a token object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this token.
+ required: true
+ tags:
+ - users
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/users/tokens/provision/:
+ post:
+ operationId: users_tokens_provision_create
+ description: Non-authenticated REST API endpoint via which a user may create
+ a Token.
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TokenProvisionRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/TokenProvisionRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TokenProvision'
+ description: ''
+ '401':
+ content:
+ application/json:
+ schema:
+ type: object
+ additionalProperties: {}
+ description: ''
+ /api/users/users/:
+ get:
+ operationId: users_users_list
+ description: Get a list of user objects.
+ parameters:
+ - in: query
+ name: email
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__empty
+ schema:
+ type: boolean
+ - in: query
+ name: email__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: email__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: first_name
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: first_name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: first_name__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: first_name__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: first_name__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: first_name__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: first_name__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: first_name__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: first_name__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: first_name__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: first_name__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: group
+ schema:
+ type: array
+ items:
+ type: string
+ description: Group (name)
+ explode: true
+ style: form
+ - in: query
+ name: group__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Group (name)
+ explode: true
+ style: form
+ - in: query
+ name: group_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Group
+ explode: true
+ style: form
+ - in: query
+ name: group_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Group
+ explode: true
+ style: form
+ - in: query
+ name: id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: is_active
+ schema:
+ type: boolean
+ - in: query
+ name: is_staff
+ schema:
+ type: boolean
+ - in: query
+ name: is_superuser
+ schema:
+ type: boolean
+ - in: query
+ name: last_name
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: last_name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: last_name__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: last_name__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: last_name__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: last_name__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: last_name__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: last_name__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: last_name__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: last_name__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: last_name__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: username
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: username__empty
+ schema:
+ type: boolean
+ - in: query
+ name: username__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: username__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: username__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: username__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: username__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: username__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: username__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: username__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: username__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ tags:
+ - users
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedUserList'
+ description: ''
+ post:
+ operationId: users_users_create
+ description: Post a list of user objects.
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableUserRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableUserRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/User'
+ description: ''
+ put:
+ operationId: users_users_bulk_update
+ description: Put a list of user objects.
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/UserRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/UserRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/User'
+ description: ''
+ patch:
+ operationId: users_users_bulk_partial_update
+ description: Patch a list of user objects.
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/UserRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/UserRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/User'
+ description: ''
+ delete:
+ operationId: users_users_bulk_destroy
+ description: Delete a list of user objects.
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/UserRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/UserRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/users/users/{id}/:
+ get:
+ operationId: users_users_retrieve
+ description: Get a user object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this user.
+ required: true
+ tags:
+ - users
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/User'
+ description: ''
+ put:
+ operationId: users_users_update
+ description: Put a user object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this user.
+ required: true
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableUserRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableUserRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/User'
+ description: ''
+ patch:
+ operationId: users_users_partial_update
+ description: Patch a user object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this user.
+ required: true
+ tags:
+ - users
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableUserRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableUserRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/User'
+ description: ''
+ delete:
+ operationId: users_users_destroy
+ description: Delete a user object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this user.
+ required: true
+ tags:
+ - users
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/virtualization/cluster-groups/:
+ get:
+ operationId: virtualization_cluster_groups_list
+ description: Get a list of cluster group objects.
+ parameters:
+ - in: query
+ name: contact
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact_group
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group
+ explode: true
+ style: form
+ - in: query
+ name: contact_group__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group
+ explode: true
+ style: form
+ - in: query
+ name: contact_role
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: contact_role__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: created
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: last_updated
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: name
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: name__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: slug
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__empty
+ schema:
+ type: boolean
+ - in: query
+ name: slug__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedClusterGroupList'
+ description: ''
+ post:
+ operationId: virtualization_cluster_groups_create
+ description: Post a list of cluster group objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterGroupRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/ClusterGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterGroup'
+ description: ''
+ put:
+ operationId: virtualization_cluster_groups_bulk_update
+ description: Put a list of cluster group objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterGroupRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterGroup'
+ description: ''
+ patch:
+ operationId: virtualization_cluster_groups_bulk_partial_update
+ description: Patch a list of cluster group objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterGroupRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterGroup'
+ description: ''
+ delete:
+ operationId: virtualization_cluster_groups_bulk_destroy
+ description: Delete a list of cluster group objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterGroupRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/virtualization/cluster-groups/{id}/:
+ get:
+ operationId: virtualization_cluster_groups_retrieve
+ description: Get a cluster group object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this cluster group.
+ required: true
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterGroup'
+ description: ''
+ put:
+ operationId: virtualization_cluster_groups_update
+ description: Put a cluster group object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this cluster group.
+ required: true
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterGroupRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/ClusterGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterGroup'
+ description: ''
+ patch:
+ operationId: virtualization_cluster_groups_partial_update
+ description: Patch a cluster group object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this cluster group.
+ required: true
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedClusterGroupRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedClusterGroupRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterGroup'
+ description: ''
+ delete:
+ operationId: virtualization_cluster_groups_destroy
+ description: Delete a cluster group object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this cluster group.
+ required: true
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/virtualization/cluster-types/:
+ get:
+ operationId: virtualization_cluster_types_list
+ description: Get a list of cluster type objects.
+ parameters:
+ - in: query
+ name: created
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: last_updated
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: name
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: name__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: slug
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__empty
+ schema:
+ type: boolean
+ - in: query
+ name: slug__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: slug__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedClusterTypeList'
+ description: ''
+ post:
+ operationId: virtualization_cluster_types_create
+ description: Post a list of cluster type objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterTypeRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/ClusterTypeRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterType'
+ description: ''
+ put:
+ operationId: virtualization_cluster_types_bulk_update
+ description: Put a list of cluster type objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterTypeRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterTypeRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterType'
+ description: ''
+ patch:
+ operationId: virtualization_cluster_types_bulk_partial_update
+ description: Patch a list of cluster type objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterTypeRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterTypeRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterType'
+ description: ''
+ delete:
+ operationId: virtualization_cluster_types_bulk_destroy
+ description: Delete a list of cluster type objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterTypeRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterTypeRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/virtualization/cluster-types/{id}/:
+ get:
+ operationId: virtualization_cluster_types_retrieve
+ description: Get a cluster type object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this cluster type.
+ required: true
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterType'
+ description: ''
+ put:
+ operationId: virtualization_cluster_types_update
+ description: Put a cluster type object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this cluster type.
+ required: true
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterTypeRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/ClusterTypeRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterType'
+ description: ''
+ patch:
+ operationId: virtualization_cluster_types_partial_update
+ description: Patch a cluster type object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this cluster type.
+ required: true
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedClusterTypeRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedClusterTypeRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterType'
+ description: ''
+ delete:
+ operationId: virtualization_cluster_types_destroy
+ description: Delete a cluster type object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this cluster type.
+ required: true
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/virtualization/clusters/:
+ get:
+ operationId: virtualization_clusters_list
+ description: Get a list of cluster objects.
+ parameters:
+ - in: query
+ name: contact
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact_group
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group
+ explode: true
+ style: form
+ - in: query
+ name: contact_group__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group
+ explode: true
+ style: form
+ - in: query
+ name: contact_role
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: contact_role__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: created
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: group
+ schema:
+ type: array
+ items:
+ type: string
+ description: Parent group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: group__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Parent group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: group_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Parent group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: group_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Parent group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: last_updated
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: name
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: name__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: region
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Region (slug)
+ explode: true
+ style: form
+ - in: query
+ name: region__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Region (slug)
+ explode: true
+ style: form
+ - in: query
+ name: region_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Region (ID)
+ explode: true
+ style: form
+ - in: query
+ name: region_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Region (ID)
+ explode: true
+ style: form
+ - in: query
+ name: site
+ schema:
+ type: array
+ items:
+ type: string
+ description: Site (slug)
+ explode: true
+ style: form
+ - in: query
+ name: site__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Site (slug)
+ explode: true
+ style: form
+ - in: query
+ name: site_group
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: site_group__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: site_group_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: site_group_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: site_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Site (ID)
+ explode: true
+ style: form
+ - in: query
+ name: site_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Site (ID)
+ explode: true
+ style: form
+ - in: query
+ name: status
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 79d20a734d0eecbb
+ explode: true
+ style: form
+ - in: query
+ name: status__n
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 79d20a734d0eecbb
+ explode: true
+ style: form
+ - in: query
+ name: tag
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tenant
+ schema:
+ type: array
+ items:
+ type: string
+ description: Tenant (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Tenant (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Tenant Group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Tenant Group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Tenant Group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Tenant Group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Tenant (ID)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Tenant (ID)
+ explode: true
+ style: form
+ - in: query
+ name: type
+ schema:
+ type: array
+ items:
+ type: string
+ description: Cluster type (slug)
+ explode: true
+ style: form
+ - in: query
+ name: type__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Cluster type (slug)
+ explode: true
+ style: form
+ - in: query
+ name: type_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Cluster type (ID)
+ explode: true
+ style: form
+ - in: query
+ name: type_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Cluster type (ID)
+ explode: true
+ style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedClusterList'
+ description: ''
+ post:
+ operationId: virtualization_clusters_create
+ description: Post a list of cluster objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableClusterRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableClusterRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Cluster'
+ description: ''
+ put:
+ operationId: virtualization_clusters_bulk_update
+ description: Put a list of cluster objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Cluster'
+ description: ''
+ patch:
+ operationId: virtualization_clusters_bulk_partial_update
+ description: Patch a list of cluster objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Cluster'
+ description: ''
+ delete:
+ operationId: virtualization_clusters_bulk_destroy
+ description: Delete a list of cluster objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/virtualization/clusters/{id}/:
+ get:
+ operationId: virtualization_clusters_retrieve
+ description: Get a cluster object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this cluster.
+ required: true
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Cluster'
+ description: ''
+ put:
+ operationId: virtualization_clusters_update
+ description: Put a cluster object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this cluster.
+ required: true
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableClusterRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableClusterRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Cluster'
+ description: ''
+ patch:
+ operationId: virtualization_clusters_partial_update
+ description: Patch a cluster object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this cluster.
+ required: true
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableClusterRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableClusterRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Cluster'
+ description: ''
+ delete:
+ operationId: virtualization_clusters_destroy
+ description: Delete a cluster object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this cluster.
+ required: true
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/virtualization/interfaces/:
+ get:
+ operationId: virtualization_interfaces_list
+ description: Get a list of interface objects.
+ parameters:
+ - in: query
+ name: bridge_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Bridged interface (ID)
+ explode: true
+ style: form
+ - in: query
+ name: bridge_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Bridged interface (ID)
+ explode: true
+ style: form
+ - in: query
+ name: cluster
+ schema:
+ type: array
+ items:
+ type: string
+ description: Cluster
+ explode: true
+ style: form
+ - in: query
+ name: cluster__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Cluster
+ explode: true
+ style: form
+ - in: query
+ name: cluster_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Cluster (ID)
+ explode: true
+ style: form
+ - in: query
+ name: cluster_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Cluster (ID)
+ explode: true
+ style: form
+ - in: query
+ name: created
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: enabled
+ schema:
+ type: boolean
+ - in: query
+ name: id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: l2vpn
+ schema:
+ type: array
+ items:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
+ nullable: true
+ description: L2VPN
+ explode: true
+ style: form
+ - in: query
+ name: l2vpn__n
+ schema:
+ type: array
+ items:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
+ nullable: true
+ description: L2VPN
+ explode: true
+ style: form
+ - in: query
+ name: l2vpn_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: L2VPN (ID)
+ explode: true
+ style: form
+ - in: query
+ name: l2vpn_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: L2VPN (ID)
+ explode: true
+ style: form
+ - in: query
+ name: last_updated
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - in: query
+ name: mac_address
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mac_address__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mac_address__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mac_address__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mac_address__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mac_address__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mac_address__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mac_address__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mac_address__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mac_address__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: mtu
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: mtu__empty
+ schema:
+ type: boolean
+ - in: query
+ name: mtu__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: mtu__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: mtu__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: mtu__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: mtu__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: name
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: name__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: parent_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Parent interface (ID)
+ explode: true
+ style: form
+ - in: query
+ name: parent_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Parent interface (ID)
+ explode: true
+ style: form
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: tag
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: virtual_machine
+ schema:
+ type: array
+ items:
+ type: string
+ description: Virtual machine
+ explode: true
+ style: form
+ - in: query
+ name: virtual_machine__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Virtual machine
+ explode: true
+ style: form
+ - in: query
+ name: virtual_machine_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Virtual machine (ID)
+ explode: true
+ style: form
+ - in: query
+ name: virtual_machine_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Virtual machine (ID)
+ explode: true
+ style: form
+ - in: query
+ name: vlan
+ schema:
+ type: string
+ description: Assigned VID
+ - in: query
+ name: vlan_id
+ schema:
+ type: string
+ description: Assigned VLAN
+ - in: query
+ name: vrf
+ schema:
+ type: array
+ items:
+ type: string
+ nullable: true
+ title: Route distinguisher
+ description: VRF (RD)
+ explode: true
+ style: form
+ - in: query
+ name: vrf__n
+ schema:
+ type: array
+ items:
+ type: string
+ nullable: true
+ title: Route distinguisher
+ description: VRF (RD)
+ explode: true
+ style: form
+ - in: query
+ name: vrf_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: VRF
+ explode: true
+ style: form
+ - in: query
+ name: vrf_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: VRF
+ explode: true
+ style: form
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedVMInterfaceList'
+ description: ''
+ post:
+ operationId: virtualization_interfaces_create
+ description: Post a list of interface objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableVMInterfaceRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableVMInterfaceRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VMInterface'
+ description: ''
+ put:
+ operationId: virtualization_interfaces_bulk_update
+ description: Put a list of interface objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VMInterfaceRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VMInterfaceRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VMInterface'
+ description: ''
+ patch:
+ operationId: virtualization_interfaces_bulk_partial_update
+ description: Patch a list of interface objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VMInterfaceRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VMInterfaceRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VMInterface'
+ description: ''
+ delete:
+ operationId: virtualization_interfaces_bulk_destroy
+ description: Delete a list of interface objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VMInterfaceRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VMInterfaceRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/virtualization/interfaces/{id}/:
+ get:
+ operationId: virtualization_interfaces_retrieve
+ description: Get a interface object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this interface.
+ required: true
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VMInterface'
+ description: ''
+ put:
+ operationId: virtualization_interfaces_update
+ description: Put a interface object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this interface.
+ required: true
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableVMInterfaceRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableVMInterfaceRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VMInterface'
+ description: ''
+ patch:
+ operationId: virtualization_interfaces_partial_update
+ description: Patch a interface object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this interface.
+ required: true
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VMInterface'
+ description: ''
+ delete:
+ operationId: virtualization_interfaces_destroy
+ description: Delete a interface object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this interface.
+ required: true
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/virtualization/virtual-disks/:
+ get:
+ operationId: virtualization_virtual_disks_list
+ description: Get a list of virtual disk objects.
+ parameters:
+ - in: query
+ name: created
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: last_updated
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: name
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: name__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: size
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: size__empty
+ schema:
+ type: boolean
+ - in: query
+ name: size__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: size__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: size__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: size__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: size__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: tag
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: virtual_machine
+ schema:
+ type: array
+ items:
+ type: string
+ description: Virtual machine
+ explode: true
+ style: form
+ - in: query
+ name: virtual_machine__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Virtual machine
+ explode: true
+ style: form
+ - in: query
+ name: virtual_machine_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Virtual machine (ID)
+ explode: true
+ style: form
+ - in: query
+ name: virtual_machine_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Virtual machine (ID)
+ explode: true
+ style: form
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedVirtualDiskList'
+ description: ''
+ post:
+ operationId: virtualization_virtual_disks_create
+ description: Post a list of virtual disk objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableVirtualDiskRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableVirtualDiskRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VirtualDisk'
+ description: ''
+ put:
+ operationId: virtualization_virtual_disks_bulk_update
+ description: Put a list of virtual disk objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VirtualDiskRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VirtualDiskRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VirtualDisk'
+ description: ''
+ patch:
+ operationId: virtualization_virtual_disks_bulk_partial_update
+ description: Patch a list of virtual disk objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VirtualDiskRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VirtualDiskRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VirtualDisk'
+ description: ''
+ delete:
+ operationId: virtualization_virtual_disks_bulk_destroy
+ description: Delete a list of virtual disk objects.
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VirtualDiskRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/VirtualDiskRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/virtualization/virtual-disks/{id}/:
+ get:
+ operationId: virtualization_virtual_disks_retrieve
+ description: Get a virtual disk object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this virtual disk.
+ required: true
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VirtualDisk'
+ description: ''
+ put:
+ operationId: virtualization_virtual_disks_update
+ description: Put a virtual disk object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this virtual disk.
+ required: true
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableVirtualDiskRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableVirtualDiskRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VirtualDisk'
+ description: ''
+ patch:
+ operationId: virtualization_virtual_disks_partial_update
+ description: Patch a virtual disk object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this virtual disk.
+ required: true
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableVirtualDiskRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableVirtualDiskRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VirtualDisk'
+ description: ''
+ delete:
+ operationId: virtualization_virtual_disks_destroy
+ description: Delete a virtual disk object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this virtual disk.
+ required: true
+ tags:
+ - virtualization
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/virtualization/virtual-machines/:
+ get:
+ operationId: virtualization_virtual_machines_list
+ description: Get a list of virtual machine objects.
+ parameters:
+ - in: query
+ name: cluster
+ schema:
+ type: array
+ items:
+ type: string
+ description: Cluster
+ explode: true
+ style: form
+ - in: query
+ name: cluster__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Cluster
+ explode: true
+ style: form
+ - in: query
+ name: cluster_group
+ schema:
+ type: array
+ items:
+ type: string
+ description: Cluster group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: cluster_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Cluster group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: cluster_group_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Cluster group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: cluster_group_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Cluster group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: cluster_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cluster (ID)
+ explode: true
+ style: form
+ - in: query
+ name: cluster_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cluster (ID)
+ explode: true
+ style: form
+ - in: query
+ name: cluster_type
+ schema:
+ type: array
+ items:
+ type: string
+ description: Cluster type (slug)
+ explode: true
+ style: form
+ - in: query
+ name: cluster_type__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Cluster type (slug)
+ explode: true
+ style: form
+ - in: query
+ name: cluster_type_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Cluster type (ID)
+ explode: true
+ style: form
+ - in: query
+ name: cluster_type_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Cluster type (ID)
+ explode: true
+ style: form
+ - in: query
+ name: config_template_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Config template (ID)
+ explode: true
+ style: form
+ - in: query
+ name: config_template_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Config template (ID)
+ explode: true
+ style: form
+ - in: query
+ name: contact
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact_group
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group
+ explode: true
+ style: form
+ - in: query
+ name: contact_group__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group
+ explode: true
+ style: form
+ - in: query
+ name: contact_role
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: contact_role__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: created
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: description
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: device
+ schema:
+ type: array
+ items:
+ type: string
+ nullable: true
+ description: Device
+ explode: true
+ style: form
+ - in: query
+ name: device__n
+ schema:
+ type: array
+ items:
+ type: string
+ nullable: true
+ description: Device
+ explode: true
+ style: form
+ - in: query
+ name: device_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Device (ID)
+ explode: true
+ style: form
+ - in: query
+ name: device_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Device (ID)
+ explode: true
+ style: form
+ - in: query
+ name: disk
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: disk__empty
+ schema:
+ type: boolean
+ - in: query
+ name: disk__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: disk__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: disk__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: disk__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: disk__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: has_primary_ip
+ schema:
+ type: boolean
+ description: Has a primary IP
+ - in: query
+ name: id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: created
+ name: last_updated
schema:
type: array
items:
@@ -72168,7 +82372,7 @@ paths:
explode: true
style: form
- in: query
- name: created__empty
+ name: last_updated__empty
schema:
type: array
items:
@@ -72177,7 +82381,7 @@ paths:
explode: true
style: form
- in: query
- name: created__gt
+ name: last_updated__gt
schema:
type: array
items:
@@ -72186,7 +82390,7 @@ paths:
explode: true
style: form
- in: query
- name: created__gte
+ name: last_updated__gte
schema:
type: array
items:
@@ -72195,7 +82399,7 @@ paths:
explode: true
style: form
- in: query
- name: created__lt
+ name: last_updated__lt
schema:
type: array
items:
@@ -72204,7 +82408,7 @@ paths:
explode: true
style: form
- in: query
- name: created__lte
+ name: last_updated__lte
schema:
type: array
items:
@@ -72213,7 +82417,7 @@ paths:
explode: true
style: form
- in: query
- name: created__n
+ name: last_updated__n
schema:
type: array
items:
@@ -72221,13 +82425,19 @@ paths:
format: date-time
explode: true
style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
- in: query
- name: created_by_request
+ name: local_context_data
schema:
- type: string
- format: uuid
+ type: boolean
+ description: Has local config context data
- in: query
- name: description
+ name: mac_address
schema:
type: array
items:
@@ -72235,11 +82445,7 @@ paths:
explode: true
style: form
- in: query
- name: description__empty
- schema:
- type: boolean
- - in: query
- name: description__ic
+ name: mac_address__ic
schema:
type: array
items:
@@ -72247,7 +82453,7 @@ paths:
explode: true
style: form
- in: query
- name: description__ie
+ name: mac_address__ie
schema:
type: array
items:
@@ -72255,7 +82461,7 @@ paths:
explode: true
style: form
- in: query
- name: description__iew
+ name: mac_address__iew
schema:
type: array
items:
@@ -72263,7 +82469,7 @@ paths:
explode: true
style: form
- in: query
- name: description__isw
+ name: mac_address__isw
schema:
type: array
items:
@@ -72271,7 +82477,7 @@ paths:
explode: true
style: form
- in: query
- name: description__n
+ name: mac_address__n
schema:
type: array
items:
@@ -72279,7 +82485,7 @@ paths:
explode: true
style: form
- in: query
- name: description__nic
+ name: mac_address__nic
schema:
type: array
items:
@@ -72287,7 +82493,7 @@ paths:
explode: true
style: form
- in: query
- name: description__nie
+ name: mac_address__nie
schema:
type: array
items:
@@ -72295,7 +82501,7 @@ paths:
explode: true
style: form
- in: query
- name: description__niew
+ name: mac_address__niew
schema:
type: array
items:
@@ -72303,7 +82509,7 @@ paths:
explode: true
style: form
- in: query
- name: description__nisw
+ name: mac_address__nisw
schema:
type: array
items:
@@ -72311,7 +82517,7 @@ paths:
explode: true
style: form
- in: query
- name: id
+ name: memory
schema:
type: array
items:
@@ -72320,11 +82526,11 @@ paths:
explode: true
style: form
- in: query
- name: id__empty
+ name: memory__empty
schema:
type: boolean
- in: query
- name: id__gt
+ name: memory__gt
schema:
type: array
items:
@@ -72333,7 +82539,7 @@ paths:
explode: true
style: form
- in: query
- name: id__gte
+ name: memory__gte
schema:
type: array
items:
@@ -72342,7 +82548,7 @@ paths:
explode: true
style: form
- in: query
- name: id__lt
+ name: memory__lt
schema:
type: array
items:
@@ -72351,7 +82557,7 @@ paths:
explode: true
style: form
- in: query
- name: id__lte
+ name: memory__lte
schema:
type: array
items:
@@ -72360,7 +82566,7 @@ paths:
explode: true
style: form
- in: query
- name: id__n
+ name: memory__n
schema:
type: array
items:
@@ -72369,288 +82575,353 @@ paths:
explode: true
style: form
- in: query
- name: last_updated
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: name
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__empty
+ name: name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: name__ic
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__gt
+ name: name__ie
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__gte
+ name: name__iew
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__lt
+ name: name__isw
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__lte
+ name: name__n
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__n
+ name: name__nic
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- - name: limit
+ - 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: Number of results to return per page.
+ description: The initial index from which to return the results.
schema:
type: integer
- - in: query
- name: modified_by_request
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
schema:
type: string
- format: uuid
- in: query
- name: name
+ name: platform
schema:
type: array
items:
type: string
+ description: Platform (slug)
explode: true
style: form
- in: query
- name: name__empty
- schema:
- type: boolean
- - in: query
- name: name__ic
+ name: platform__n
schema:
type: array
items:
type: string
+ description: Platform (slug)
explode: true
style: form
- in: query
- name: name__ie
+ name: platform_id
schema:
type: array
items:
- type: string
+ type: integer
+ nullable: true
+ description: Platform (ID)
explode: true
style: form
- in: query
- name: name__iew
+ name: platform_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ nullable: true
+ description: Platform (ID)
explode: true
style: form
- in: query
- name: name__isw
+ name: primary_ip4_id
schema:
type: array
items:
- type: string
+ type: integer
+ description: Primary IPv4 (ID)
explode: true
style: form
- in: query
- name: name__n
+ name: primary_ip4_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: Primary IPv4 (ID)
explode: true
style: form
- in: query
- name: name__nic
+ name: primary_ip6_id
schema:
type: array
items:
- type: string
+ type: integer
+ description: Primary IPv6 (ID)
explode: true
style: form
- in: query
- name: name__nie
+ name: primary_ip6_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: Primary IPv6 (ID)
explode: true
style: form
- in: query
- name: name__niew
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: region
schema:
type: array
items:
- type: string
+ type: integer
+ description: Region (slug)
explode: true
style: form
- in: query
- name: name__nisw
+ name: region__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: Region (slug)
explode: true
style: form
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
+ - in: query
+ name: region_id
schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
+ type: array
+ items:
+ type: integer
+ description: Region (ID)
+ explode: true
+ style: form
+ - in: query
+ name: region_id__n
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ description: Region (ID)
+ explode: true
+ style: form
- in: query
- name: parent
+ name: role
schema:
type: array
items:
type: string
- description: Tenant group (slug)
+ description: Role (slug)
explode: true
style: form
- in: query
- name: parent__n
+ name: role__n
schema:
type: array
items:
type: string
- description: Tenant group (slug)
+ description: Role (slug)
explode: true
style: form
- in: query
- name: parent_id
+ name: role_id
schema:
type: array
items:
type: integer
nullable: true
- description: Tenant group (ID)
+ description: Role (ID)
explode: true
style: form
- in: query
- name: parent_id__n
+ name: role_id__n
schema:
type: array
items:
type: integer
nullable: true
- description: Tenant group (ID)
+ description: Role (ID)
explode: true
style: form
- in: query
- name: q
+ name: site
schema:
- type: string
- description: Search
+ type: array
+ items:
+ type: string
+ description: Site (slug)
+ explode: true
+ style: form
- in: query
- name: slug
+ name: site__n
schema:
type: array
items:
type: string
+ description: Site (slug)
explode: true
style: form
- in: query
- name: slug__empty
+ name: site_group
schema:
- type: boolean
+ type: array
+ items:
+ type: integer
+ description: Site group (slug)
+ explode: true
+ style: form
- in: query
- name: slug__ic
+ name: site_group__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: Site group (slug)
explode: true
style: form
- in: query
- name: slug__ie
+ name: site_group_id
schema:
type: array
items:
- type: string
+ type: integer
+ description: Site group (ID)
explode: true
style: form
- in: query
- name: slug__iew
+ name: site_group_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: Site group (ID)
explode: true
style: form
- in: query
- name: slug__isw
+ name: site_id
schema:
type: array
items:
- type: string
+ type: integer
+ nullable: true
+ description: Site (ID)
explode: true
style: form
- in: query
- name: slug__n
+ name: site_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ nullable: true
+ description: Site (ID)
explode: true
style: form
- in: query
- name: slug__nic
+ name: status
schema:
type: array
items:
type: string
+ x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
- name: slug__nie
+ name: status__n
schema:
type: array
items:
type: string
+ x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
- name: slug__niew
+ name: tag
schema:
type: array
items:
@@ -72658,7 +82929,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__nisw
+ name: tag__n
schema:
type: array
items:
@@ -72666,19 +82937,77 @@ paths:
explode: true
style: form
- in: query
- name: tag
+ name: tenant
schema:
type: array
items:
type: string
+ description: Tenant (slug)
explode: true
style: form
- in: query
- name: tag__n
+ name: tenant__n
schema:
type: array
items:
type: string
+ description: Tenant (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Tenant Group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Tenant Group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Tenant Group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Tenant Group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Tenant (ID)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Tenant (ID)
explode: true
style: form
- in: query
@@ -72686,8 +83015,66 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: vcpus
+ schema:
+ type: array
+ items:
+ type: number
+ format: double
+ explode: true
+ style: form
+ - in: query
+ name: vcpus__empty
+ schema:
+ type: boolean
+ - in: query
+ name: vcpus__gt
+ schema:
+ type: array
+ items:
+ type: number
+ format: double
+ explode: true
+ style: form
+ - in: query
+ name: vcpus__gte
+ schema:
+ type: array
+ items:
+ type: number
+ format: double
+ explode: true
+ style: form
+ - in: query
+ name: vcpus__lt
+ schema:
+ type: array
+ items:
+ type: number
+ format: double
+ explode: true
+ style: form
+ - in: query
+ name: vcpus__lte
+ schema:
+ type: array
+ items:
+ type: number
+ format: double
+ explode: true
+ style: form
+ - in: query
+ name: vcpus__n
+ schema:
+ type: array
+ items:
+ type: number
+ format: double
+ explode: true
+ style: form
tags:
- - tenancy
+ - virtualization
security:
- cookieAuth: []
- tokenAuth: []
@@ -72696,21 +83083,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedTenantGroupList'
+ $ref: '#/components/schemas/PaginatedVirtualMachineWithConfigContextList'
description: ''
post:
- operationId: tenancy_tenant_groups_create
- description: Post a list of tenant group objects.
+ operationId: virtualization_virtual_machines_create
+ description: Post a list of virtual machine objects.
tags:
- - tenancy
+ - virtualization
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableTenantGroupRequest'
+ $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableTenantGroupRequest'
+ $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest'
required: true
security:
- cookieAuth: []
@@ -72720,25 +83107,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/TenantGroup'
+ $ref: '#/components/schemas/VirtualMachineWithConfigContext'
description: ''
put:
- operationId: tenancy_tenant_groups_bulk_update
- description: Put a list of tenant group objects.
+ operationId: virtualization_virtual_machines_bulk_update
+ description: Put a list of virtual machine objects.
tags:
- - tenancy
+ - virtualization
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/TenantGroupRequest'
+ $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/TenantGroupRequest'
+ $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest'
required: true
security:
- cookieAuth: []
@@ -72750,25 +83137,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/TenantGroup'
+ $ref: '#/components/schemas/VirtualMachineWithConfigContext'
description: ''
patch:
- operationId: tenancy_tenant_groups_bulk_partial_update
- description: Patch a list of tenant group objects.
+ operationId: virtualization_virtual_machines_bulk_partial_update
+ description: Patch a list of virtual machine objects.
tags:
- - tenancy
+ - virtualization
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/TenantGroupRequest'
+ $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/TenantGroupRequest'
+ $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest'
required: true
security:
- cookieAuth: []
@@ -72780,25 +83167,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/TenantGroup'
+ $ref: '#/components/schemas/VirtualMachineWithConfigContext'
description: ''
delete:
- operationId: tenancy_tenant_groups_bulk_destroy
- description: Delete a list of tenant group objects.
+ operationId: virtualization_virtual_machines_bulk_destroy
+ description: Delete a list of virtual machine objects.
tags:
- - tenancy
+ - virtualization
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/TenantGroupRequest'
+ $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/TenantGroupRequest'
+ $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest'
required: true
security:
- cookieAuth: []
@@ -72806,19 +83193,19 @@ paths:
responses:
'204':
description: No response body
- /api/tenancy/tenant-groups/{id}/:
+ /api/virtualization/virtual-machines/{id}/:
get:
- operationId: tenancy_tenant_groups_retrieve
- description: Get a tenant group object.
+ operationId: virtualization_virtual_machines_retrieve
+ description: Get a virtual machine object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this tenant group.
+ description: A unique integer value identifying this virtual machine.
required: true
tags:
- - tenancy
+ - virtualization
security:
- cookieAuth: []
- tokenAuth: []
@@ -72827,28 +83214,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/TenantGroup'
+ $ref: '#/components/schemas/VirtualMachineWithConfigContext'
description: ''
put:
- operationId: tenancy_tenant_groups_update
- description: Put a tenant group object.
+ operationId: virtualization_virtual_machines_update
+ description: Put a virtual machine object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this tenant group.
+ description: A unique integer value identifying this virtual machine.
required: true
tags:
- - tenancy
+ - virtualization
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableTenantGroupRequest'
+ $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableTenantGroupRequest'
+ $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest'
required: true
security:
- cookieAuth: []
@@ -72858,28 +83245,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/TenantGroup'
+ $ref: '#/components/schemas/VirtualMachineWithConfigContext'
description: ''
patch:
- operationId: tenancy_tenant_groups_partial_update
- description: Patch a tenant group object.
+ operationId: virtualization_virtual_machines_partial_update
+ description: Patch a virtual machine object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this tenant group.
+ description: A unique integer value identifying this virtual machine.
required: true
tags:
- - tenancy
+ - virtualization
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableTenantGroupRequest'
+ $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableTenantGroupRequest'
+ $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -72888,85 +83275,73 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/TenantGroup'
+ $ref: '#/components/schemas/VirtualMachineWithConfigContext'
description: ''
delete:
- operationId: tenancy_tenant_groups_destroy
- description: Delete a tenant group object.
+ operationId: virtualization_virtual_machines_destroy
+ description: Delete a virtual machine object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this tenant group.
+ description: A unique integer value identifying this virtual machine.
required: true
tags:
- - tenancy
+ - virtualization
security:
- cookieAuth: []
- tokenAuth: []
responses:
'204':
description: No response body
- /api/tenancy/tenants/:
- get:
- operationId: tenancy_tenants_list
- description: Get a list of tenant objects.
+ /api/virtualization/virtual-machines/{id}/render-config/:
+ post:
+ operationId: virtualization_virtual_machines_render_config_create
+ description: Resolve and render the preferred ConfigTemplate for this Device.
parameters:
- in: query
- name: contact
- schema:
- type: array
- items:
- type: integer
- description: Contact
- explode: true
- style: form
- - in: query
- name: contact__n
- schema:
- type: array
- items:
- type: integer
- description: Contact
- explode: true
- style: form
- - in: query
- name: contact_group
- schema:
- type: array
- items:
- type: integer
- description: Contact group
- explode: true
- style: form
- - in: query
- name: contact_group__n
- schema:
- type: array
- items:
- type: integer
- description: Contact group
- explode: true
- style: form
- - in: query
- name: contact_role
+ name: format
schema:
- type: array
- items:
- type: integer
- description: Contact Role
- explode: true
- style: form
- - in: query
- name: contact_role__n
+ type: string
+ enum:
+ - json
+ - txt
+ - in: path
+ name: id
schema:
- type: array
- items:
- type: integer
- description: Contact Role
- explode: true
- style: form
+ type: integer
+ description: A unique integer value identifying this virtual machine.
+ required: true
+ tags:
+ - virtualization
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VirtualMachineWithConfigContext'
+ text/plain:
+ schema:
+ $ref: '#/components/schemas/VirtualMachineWithConfigContext'
+ description: ''
+ /api/vpn/ike-policies/:
+ get:
+ operationId: vpn_ike_policies_list
+ description: Get a list of IKE policy objects.
+ parameters:
- in: query
name: created
schema:
@@ -73119,42 +83494,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: group
- schema:
- type: array
- items:
- type: integer
- description: Tenant group (slug)
- explode: true
- style: form
- - in: query
- name: group__n
- schema:
- type: array
- items:
- type: integer
- description: Tenant group (slug)
- explode: true
- style: form
- - in: query
- name: group_id
- schema:
- type: array
- items:
- type: integer
- description: Tenant group (ID)
- explode: true
- style: form
- - in: query
- name: group_id__n
- schema:
- type: array
- items:
- type: integer
- description: Tenant group (ID)
- explode: true
- style: form
- in: query
name: id
schema:
@@ -73282,6 +83621,24 @@ paths:
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: mode
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 64c1be7bdb2548ca
+ explode: true
+ style: form
+ - in: query
+ name: mode__n
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 64c1be7bdb2548ca
+ explode: true
+ style: form
- in: query
name: modified_by_request
schema:
@@ -73384,426 +83741,99 @@ paths:
schema:
type: string
- in: query
- name: q
- schema:
- type: string
- description: Search
- - in: query
- name: slug
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__empty
- schema:
- type: boolean
- - in: query
- name: slug__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__ie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__iew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__isw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__nic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__nie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__niew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: slug__nisw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: tag
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: tag__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: updated_by_request
- schema:
- type: string
- format: uuid
- tags:
- - tenancy
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PaginatedTenantList'
- description: ''
- post:
- operationId: tenancy_tenants_create
- description: Post a list of tenant objects.
- tags:
- - tenancy
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/WritableTenantRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/WritableTenantRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '201':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Tenant'
- description: ''
- put:
- operationId: tenancy_tenants_bulk_update
- description: Put a list of tenant objects.
- tags:
- - tenancy
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/TenantRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/TenantRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/Tenant'
- description: ''
- patch:
- operationId: tenancy_tenants_bulk_partial_update
- description: Patch a list of tenant objects.
- tags:
- - tenancy
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/TenantRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/TenantRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/Tenant'
- description: ''
- delete:
- operationId: tenancy_tenants_bulk_destroy
- description: Delete a list of tenant objects.
- tags:
- - tenancy
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/TenantRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/TenantRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '204':
- description: No response body
- /api/tenancy/tenants/{id}/:
- get:
- operationId: tenancy_tenants_retrieve
- description: Get a tenant object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- description: A unique integer value identifying this tenant.
- required: true
- tags:
- - tenancy
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Tenant'
- description: ''
- put:
- operationId: tenancy_tenants_update
- description: Put a tenant object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- description: A unique integer value identifying this tenant.
- required: true
- tags:
- - tenancy
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/WritableTenantRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/WritableTenantRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Tenant'
- description: ''
- patch:
- operationId: tenancy_tenants_partial_update
- description: Patch a tenant object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- description: A unique integer value identifying this tenant.
- required: true
- tags:
- - tenancy
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PatchedWritableTenantRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/PatchedWritableTenantRequest'
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Tenant'
- description: ''
- delete:
- operationId: tenancy_tenants_destroy
- description: Delete a tenant object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- description: A unique integer value identifying this tenant.
- required: true
- tags:
- - tenancy
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '204':
- description: No response body
- /api/users/config/:
- get:
- operationId: users_config_retrieve
- description: An API endpoint via which a user can update his or her own UserConfig
- data (but no one else's).
- tags:
- - users
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- type: object
- additionalProperties: {}
- description: ''
- /api/users/groups/:
- get:
- operationId: users_groups_list
- description: Get a list of group objects.
- parameters:
+ name: preshared_key
+ schema:
+ type: string
- in: query
- name: id
+ name: preshared_key__ic
+ schema:
+ type: string
+ - in: query
+ name: preshared_key__ie
+ schema:
+ type: string
+ - in: query
+ name: preshared_key__iew
+ schema:
+ type: string
+ - in: query
+ name: preshared_key__isw
+ schema:
+ type: string
+ - in: query
+ name: preshared_key__n
+ schema:
+ type: string
+ - in: query
+ name: preshared_key__nic
+ schema:
+ type: string
+ - in: query
+ name: preshared_key__nie
+ schema:
+ type: string
+ - in: query
+ name: preshared_key__niew
+ schema:
+ type: string
+ - in: query
+ name: preshared_key__nisw
+ schema:
+ type: string
+ - in: query
+ name: proposal
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__empty
+ name: proposal__empty
schema:
type: boolean
- in: query
- name: id__gt
+ name: proposal__ic
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__gte
+ name: proposal__ie
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__lt
+ name: proposal__iew
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__lte
+ name: proposal__isw
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__n
+ name: proposal__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- - name: limit
- required: false
- in: query
- description: Number of results to return per page.
- schema:
- type: integer
- in: query
- name: name
+ name: proposal__nic
schema:
type: array
items:
@@ -73811,11 +83841,15 @@ paths:
explode: true
style: form
- in: query
- name: name__empty
+ name: proposal__nie
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
- name: name__ic
+ name: proposal__niew
schema:
type: array
items:
@@ -73823,7 +83857,7 @@ paths:
explode: true
style: form
- in: query
- name: name__ie
+ name: proposal__nisw
schema:
type: array
items:
@@ -73831,80 +83865,114 @@ paths:
explode: true
style: form
- in: query
- name: name__iew
+ name: proposal_id
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__isw
+ name: proposal_id__empty
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__n
+ name: proposal_id__gt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__nic
+ name: proposal_id__gte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__nie
+ name: proposal_id__lt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__niew
+ name: proposal_id__lte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__nisw
+ name: proposal_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: tag
schema:
type: array
items:
type: string
explode: true
style: form
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
+ - in: query
+ name: tag__n
schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: updated_by_request
schema:
type: string
+ format: uuid
- in: query
- name: q
+ name: version
schema:
- type: string
- description: Search
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 00872b77916a1fde
+ explode: true
+ style: form
+ - in: query
+ name: version__n
+ schema:
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 00872b77916a1fde
+ explode: true
+ style: form
tags:
- - users
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -73913,21 +83981,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedGroupList'
+ $ref: '#/components/schemas/PaginatedIKEPolicyList'
description: ''
post:
- operationId: users_groups_create
- description: Post a list of group objects.
+ operationId: vpn_ike_policies_create
+ description: Post a list of IKE policy objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/GroupRequest'
+ $ref: '#/components/schemas/WritableIKEPolicyRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/GroupRequest'
+ $ref: '#/components/schemas/WritableIKEPolicyRequest'
required: true
security:
- cookieAuth: []
@@ -73937,25 +84005,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Group'
+ $ref: '#/components/schemas/IKEPolicy'
description: ''
put:
- operationId: users_groups_bulk_update
- description: Put a list of group objects.
+ operationId: vpn_ike_policies_bulk_update
+ description: Put a list of IKE policy objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/GroupRequest'
+ $ref: '#/components/schemas/IKEPolicyRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/GroupRequest'
+ $ref: '#/components/schemas/IKEPolicyRequest'
required: true
security:
- cookieAuth: []
@@ -73967,25 +84035,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Group'
+ $ref: '#/components/schemas/IKEPolicy'
description: ''
patch:
- operationId: users_groups_bulk_partial_update
- description: Patch a list of group objects.
+ operationId: vpn_ike_policies_bulk_partial_update
+ description: Patch a list of IKE policy objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/GroupRequest'
+ $ref: '#/components/schemas/IKEPolicyRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/GroupRequest'
+ $ref: '#/components/schemas/IKEPolicyRequest'
required: true
security:
- cookieAuth: []
@@ -73997,25 +84065,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Group'
+ $ref: '#/components/schemas/IKEPolicy'
description: ''
delete:
- operationId: users_groups_bulk_destroy
- description: Delete a list of group objects.
+ operationId: vpn_ike_policies_bulk_destroy
+ description: Delete a list of IKE policy objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/GroupRequest'
+ $ref: '#/components/schemas/IKEPolicyRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/GroupRequest'
+ $ref: '#/components/schemas/IKEPolicyRequest'
required: true
security:
- cookieAuth: []
@@ -74023,19 +84091,19 @@ paths:
responses:
'204':
description: No response body
- /api/users/groups/{id}/:
+ /api/vpn/ike-policies/{id}/:
get:
- operationId: users_groups_retrieve
- description: Get a group object.
+ operationId: vpn_ike_policies_retrieve
+ description: Get a IKE policy object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this group.
+ description: A unique integer value identifying this IKE policy.
required: true
tags:
- - users
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -74044,28 +84112,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Group'
+ $ref: '#/components/schemas/IKEPolicy'
description: ''
put:
- operationId: users_groups_update
- description: Put a group object.
+ operationId: vpn_ike_policies_update
+ description: Put a IKE policy object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this group.
+ description: A unique integer value identifying this IKE policy.
required: true
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/GroupRequest'
+ $ref: '#/components/schemas/WritableIKEPolicyRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/GroupRequest'
+ $ref: '#/components/schemas/WritableIKEPolicyRequest'
required: true
security:
- cookieAuth: []
@@ -74075,28 +84143,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Group'
+ $ref: '#/components/schemas/IKEPolicy'
description: ''
patch:
- operationId: users_groups_partial_update
- description: Patch a group object.
+ operationId: vpn_ike_policies_partial_update
+ description: Patch a IKE policy object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this group.
+ description: A unique integer value identifying this IKE policy.
required: true
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedGroupRequest'
+ $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedGroupRequest'
+ $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -74105,47 +84173,135 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Group'
+ $ref: '#/components/schemas/IKEPolicy'
description: ''
delete:
- operationId: users_groups_destroy
- description: Delete a group object.
+ operationId: vpn_ike_policies_destroy
+ description: Delete a IKE policy object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this group.
+ description: A unique integer value identifying this IKE policy.
required: true
tags:
- - users
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
responses:
'204':
description: No response body
- /api/users/permissions/:
+ /api/vpn/ike-proposals/:
get:
- operationId: users_permissions_list
- description: Get a list of permission objects.
+ operationId: vpn_ike_proposals_list
+ description: Get a list of IKE proposal objects.
parameters:
- in: query
- name: can_add
+ name: authentication_algorithm
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 0830e8839f5dea4f
+ explode: true
+ style: form
- in: query
- name: can_change
+ name: authentication_algorithm__n
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 0830e8839f5dea4f
+ explode: true
+ style: form
- in: query
- name: can_delete
+ name: authentication_method
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 92bb2f1103b3a262
+ explode: true
+ style: form
- in: query
- name: can_view
+ name: authentication_method__n
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 92bb2f1103b3a262
+ explode: true
+ style: form
+ - in: query
+ name: created
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created_by_request
+ schema:
+ type: string
+ format: uuid
- in: query
name: description
schema:
@@ -74231,43 +84387,41 @@ paths:
explode: true
style: form
- in: query
- name: enabled
- schema:
- type: boolean
- - in: query
- name: group
+ name: encryption_algorithm
schema:
type: array
items:
type: string
- description: Group (name)
+ x-spec-enum-id: 40730b5af1561c52
explode: true
style: form
- in: query
- name: group__n
+ name: encryption_algorithm__n
schema:
type: array
items:
type: string
- description: Group (name)
+ x-spec-enum-id: 40730b5af1561c52
explode: true
style: form
- in: query
- name: group_id
+ name: group
schema:
type: array
items:
type: integer
- description: Group
+ x-spec-enum-id: 6bbe85c15f3d99fe
+ description: Diffie-Hellman group ID
explode: true
style: form
- in: query
- name: group_id__n
+ name: group__n
schema:
type: array
items:
type: integer
- description: Group
+ x-spec-enum-id: 6bbe85c15f3d99fe
+ description: Diffie-Hellman group ID
explode: true
style: form
- in: query
@@ -74328,12 +84482,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:
@@ -74418,22 +84640,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: object_types
- schema:
- type: array
- items:
- type: integer
- explode: true
- style: form
- - in: query
- name: object_types__n
- schema:
- type: array
- items:
- type: integer
- explode: true
- style: form
- name: offset
required: false
in: query
@@ -74452,43 +84658,86 @@ paths:
type: string
description: Search
- in: query
- name: user
+ name: sa_lifetime
schema:
type: array
items:
- type: string
- description: User (name)
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: user__n
+ name: sa_lifetime__empty
+ schema:
+ type: boolean
+ - in: query
+ name: sa_lifetime__gt
schema:
type: array
items:
- type: string
- description: User (name)
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: user_id
+ name: sa_lifetime__gte
schema:
type: array
items:
type: integer
- description: User
+ format: int32
explode: true
style: form
- in: query
- name: user_id__n
+ name: sa_lifetime__lt
schema:
type: array
items:
type: integer
- description: User
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: sa_lifetime__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
explode: true
style: form
+ - in: query
+ name: sa_lifetime__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: tag
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
tags:
- - users
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -74497,21 +84746,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedObjectPermissionList'
+ $ref: '#/components/schemas/PaginatedIKEProposalList'
description: ''
post:
- operationId: users_permissions_create
- description: Post a list of permission objects.
+ operationId: vpn_ike_proposals_create
+ description: Post a list of IKE proposal objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableObjectPermissionRequest'
+ $ref: '#/components/schemas/WritableIKEProposalRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableObjectPermissionRequest'
+ $ref: '#/components/schemas/WritableIKEProposalRequest'
required: true
security:
- cookieAuth: []
@@ -74521,25 +84770,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ObjectPermission'
+ $ref: '#/components/schemas/IKEProposal'
description: ''
put:
- operationId: users_permissions_bulk_update
- description: Put a list of permission objects.
+ operationId: vpn_ike_proposals_bulk_update
+ description: Put a list of IKE proposal objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ObjectPermissionRequest'
+ $ref: '#/components/schemas/IKEProposalRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ObjectPermissionRequest'
+ $ref: '#/components/schemas/IKEProposalRequest'
required: true
security:
- cookieAuth: []
@@ -74551,25 +84800,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ObjectPermission'
+ $ref: '#/components/schemas/IKEProposal'
description: ''
patch:
- operationId: users_permissions_bulk_partial_update
- description: Patch a list of permission objects.
+ operationId: vpn_ike_proposals_bulk_partial_update
+ description: Patch a list of IKE proposal objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ObjectPermissionRequest'
+ $ref: '#/components/schemas/IKEProposalRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ObjectPermissionRequest'
+ $ref: '#/components/schemas/IKEProposalRequest'
required: true
security:
- cookieAuth: []
@@ -74581,25 +84830,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ObjectPermission'
+ $ref: '#/components/schemas/IKEProposal'
description: ''
delete:
- operationId: users_permissions_bulk_destroy
- description: Delete a list of permission objects.
+ operationId: vpn_ike_proposals_bulk_destroy
+ description: Delete a list of IKE proposal objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ObjectPermissionRequest'
+ $ref: '#/components/schemas/IKEProposalRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ObjectPermissionRequest'
+ $ref: '#/components/schemas/IKEProposalRequest'
required: true
security:
- cookieAuth: []
@@ -74607,19 +84856,19 @@ paths:
responses:
'204':
description: No response body
- /api/users/permissions/{id}/:
+ /api/vpn/ike-proposals/{id}/:
get:
- operationId: users_permissions_retrieve
- description: Get a permission object.
+ operationId: vpn_ike_proposals_retrieve
+ description: Get a IKE proposal object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this permission.
+ description: A unique integer value identifying this IKE proposal.
required: true
tags:
- - users
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -74628,28 +84877,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ObjectPermission'
+ $ref: '#/components/schemas/IKEProposal'
description: ''
put:
- operationId: users_permissions_update
- description: Put a permission object.
+ operationId: vpn_ike_proposals_update
+ description: Put a IKE proposal object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this permission.
+ description: A unique integer value identifying this IKE proposal.
required: true
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableObjectPermissionRequest'
+ $ref: '#/components/schemas/WritableIKEProposalRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableObjectPermissionRequest'
+ $ref: '#/components/schemas/WritableIKEProposalRequest'
required: true
security:
- cookieAuth: []
@@ -74659,28 +84908,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ObjectPermission'
+ $ref: '#/components/schemas/IKEProposal'
description: ''
patch:
- operationId: users_permissions_partial_update
- description: Patch a permission object.
+ operationId: vpn_ike_proposals_partial_update
+ description: Patch a IKE proposal object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this permission.
+ description: A unique integer value identifying this IKE proposal.
required: true
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableObjectPermissionRequest'
+ $ref: '#/components/schemas/PatchedWritableIKEProposalRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableObjectPermissionRequest'
+ $ref: '#/components/schemas/PatchedWritableIKEProposalRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -74689,46 +84938,99 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ObjectPermission'
+ $ref: '#/components/schemas/IKEProposal'
description: ''
delete:
- operationId: users_permissions_destroy
- description: Delete a permission object.
+ operationId: vpn_ike_proposals_destroy
+ description: Delete a IKE proposal object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this permission.
+ description: A unique integer value identifying this IKE proposal.
required: true
tags:
- - users
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
responses:
'204':
description: No response body
- /api/users/tokens/:
+ /api/vpn/ipsec-policies/:
get:
- operationId: users_tokens_list
- description: Get a list of token objects.
+ operationId: vpn_ipsec_policies_list
+ description: Get a list of IPSec policy objects.
parameters:
- in: query
- name: created
+ 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: string
- format: date-time
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
name: created__gte
schema:
- type: string
- format: date-time
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
name: created__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created_by_request
schema:
type: string
- format: date-time
+ format: uuid
- in: query
name: description
schema:
@@ -74813,21 +85115,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: expires
- schema:
- type: string
- format: date-time
- - in: query
- name: expires__gte
- schema:
- type: string
- format: date-time
- - in: query
- name: expires__lte
- schema:
- type: string
- format: date-time
- in: query
name: id
schema:
@@ -74887,59 +85174,81 @@ paths:
explode: true
style: form
- in: query
- name: key
+ name: last_updated
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: key__empty
+ name: last_updated__empty
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
- name: key__ic
+ name: last_updated__gt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: key__ie
+ name: last_updated__gte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: key__iew
+ name: last_updated__lt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: key__isw
+ name: last_updated__lte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: key__n
+ name: last_updated__n
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
- in: query
- name: key__nic
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: name
schema:
type: array
items:
@@ -74947,7 +85256,11 @@ paths:
explode: true
style: form
- in: query
- name: key__nie
+ name: name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: name__ic
schema:
type: array
items:
@@ -74955,7 +85268,7 @@ paths:
explode: true
style: form
- in: query
- name: key__niew
+ name: name__ie
schema:
type: array
items:
@@ -74963,19 +85276,61 @@ paths:
explode: true
style: form
- in: query
- name: key__nisw
+ name: name__iew
schema:
type: array
items:
type: string
explode: true
style: form
- - name: limit
- required: false
- in: query
- description: Number of results to return per page.
+ - in: query
+ name: name__isw
schema:
- type: integer
+ 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
@@ -74989,52 +85344,202 @@ paths:
schema:
type: string
- in: query
- name: q
+ name: pfs_group
schema:
- type: string
- description: Search
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 6bbe85c15f3d99fe
+ nullable: true
+ description: Diffie-Hellman group for Perfect Forward Secrecy
+ explode: true
+ style: form
- in: query
- name: user
+ name: pfs_group__n
+ schema:
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 6bbe85c15f3d99fe
+ nullable: true
+ description: Diffie-Hellman group for Perfect Forward Secrecy
+ explode: true
+ style: form
+ - in: query
+ name: proposal
schema:
type: array
items:
type: string
- description: User (name)
explode: true
style: form
- in: query
- name: user__n
+ name: proposal__empty
+ schema:
+ type: boolean
+ - in: query
+ name: proposal__ic
schema:
type: array
items:
type: string
- description: User (name)
explode: true
style: form
- in: query
- name: user_id
+ 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:
+ type: array
+ items:
+ 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
- description: User
+ format: int32
explode: true
style: form
- in: query
- name: user_id__n
+ name: proposal_id__empty
schema:
type: array
items:
type: integer
- description: User
+ format: int32
explode: true
style: form
- in: query
- name: write_enabled
+ name: proposal_id__gt
schema:
- type: boolean
+ 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
+ name: proposal_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: tag
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
tags:
- - users
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -75043,21 +85548,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedTokenList'
+ $ref: '#/components/schemas/PaginatedIPSecPolicyList'
description: ''
post:
- operationId: users_tokens_create
- description: Post a list of token objects.
+ operationId: vpn_ipsec_policies_create
+ description: Post a list of IPSec policy objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableTokenRequest'
+ $ref: '#/components/schemas/WritableIPSecPolicyRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableTokenRequest'
+ $ref: '#/components/schemas/WritableIPSecPolicyRequest'
required: true
security:
- cookieAuth: []
@@ -75067,25 +85572,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Token'
+ $ref: '#/components/schemas/IPSecPolicy'
description: ''
put:
- operationId: users_tokens_bulk_update
- description: Put a list of token objects.
+ operationId: vpn_ipsec_policies_bulk_update
+ description: Put a list of IPSec policy objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/TokenRequest'
+ $ref: '#/components/schemas/IPSecPolicyRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/TokenRequest'
+ $ref: '#/components/schemas/IPSecPolicyRequest'
required: true
security:
- cookieAuth: []
@@ -75097,25 +85602,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Token'
+ $ref: '#/components/schemas/IPSecPolicy'
description: ''
patch:
- operationId: users_tokens_bulk_partial_update
- description: Patch a list of token objects.
+ operationId: vpn_ipsec_policies_bulk_partial_update
+ description: Patch a list of IPSec policy objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/TokenRequest'
+ $ref: '#/components/schemas/IPSecPolicyRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/TokenRequest'
+ $ref: '#/components/schemas/IPSecPolicyRequest'
required: true
security:
- cookieAuth: []
@@ -75127,25 +85632,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Token'
+ $ref: '#/components/schemas/IPSecPolicy'
description: ''
delete:
- operationId: users_tokens_bulk_destroy
- description: Delete a list of token objects.
+ operationId: vpn_ipsec_policies_bulk_destroy
+ description: Delete a list of IPSec policy objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/TokenRequest'
+ $ref: '#/components/schemas/IPSecPolicyRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/TokenRequest'
+ $ref: '#/components/schemas/IPSecPolicyRequest'
required: true
security:
- cookieAuth: []
@@ -75153,19 +85658,19 @@ paths:
responses:
'204':
description: No response body
- /api/users/tokens/{id}/:
+ /api/vpn/ipsec-policies/{id}/:
get:
- operationId: users_tokens_retrieve
- description: Get a token object.
+ operationId: vpn_ipsec_policies_retrieve
+ description: Get a IPSec policy object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this token.
+ description: A unique integer value identifying this IPSec policy.
required: true
tags:
- - users
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -75174,28 +85679,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Token'
+ $ref: '#/components/schemas/IPSecPolicy'
description: ''
put:
- operationId: users_tokens_update
- description: Put a token object.
+ operationId: vpn_ipsec_policies_update
+ description: Put a IPSec policy object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this token.
+ description: A unique integer value identifying this IPSec policy.
required: true
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableTokenRequest'
+ $ref: '#/components/schemas/WritableIPSecPolicyRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableTokenRequest'
+ $ref: '#/components/schemas/WritableIPSecPolicyRequest'
required: true
security:
- cookieAuth: []
@@ -75205,28 +85710,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Token'
+ $ref: '#/components/schemas/IPSecPolicy'
description: ''
patch:
- operationId: users_tokens_partial_update
- description: Patch a token object.
+ operationId: vpn_ipsec_policies_partial_update
+ description: Patch a IPSec policy object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this token.
+ description: A unique integer value identifying this IPSec policy.
required: true
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableTokenRequest'
+ $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableTokenRequest'
+ $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -75235,150 +85740,101 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Token'
+ $ref: '#/components/schemas/IPSecPolicy'
description: ''
delete:
- operationId: users_tokens_destroy
- description: Delete a token object.
+ operationId: vpn_ipsec_policies_destroy
+ description: Delete a IPSec policy object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this token.
+ description: A unique integer value identifying this IPSec policy.
required: true
tags:
- - users
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
responses:
'204':
description: No response body
- /api/users/tokens/provision/:
- post:
- operationId: users_tokens_provision_create
- description: Non-authenticated REST API endpoint via which a user may create
- a Token.
- tags:
- - users
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/TokenProvisionRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/TokenProvisionRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '201':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/TokenProvision'
- description: ''
- '401':
- content:
- application/json:
- schema:
- type: object
- additionalProperties: {}
- description: ''
- /api/users/users/:
+ /api/vpn/ipsec-profiles/:
get:
- operationId: users_users_list
- description: Get a list of user objects.
+ operationId: vpn_ipsec_profiles_list
+ description: Get a list of IPSec profile objects.
parameters:
- in: query
- name: email
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: email__empty
- schema:
- type: boolean
- - in: query
- name: email__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: email__ie
+ name: created
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: email__iew
+ name: created__empty
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: email__isw
+ name: created__gt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: email__n
+ name: created__gte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: email__nic
+ name: created__lt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: email__nie
+ name: created__lte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: email__niew
+ name: created__n
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: email__nisw
+ name: created_by_request
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: string
+ format: uuid
- in: query
- name: first_name
+ name: description
schema:
type: array
items:
@@ -75386,27 +85842,11 @@ paths:
explode: true
style: form
- in: query
- name: first_name__empty
+ name: description__empty
schema:
type: boolean
- in: query
- name: first_name__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: first_name__ie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: first_name__iew
+ name: description__ic
schema:
type: array
items:
@@ -75414,7 +85854,7 @@ paths:
explode: true
style: form
- in: query
- name: first_name__isw
+ name: description__ie
schema:
type: array
items:
@@ -75422,7 +85862,7 @@ paths:
explode: true
style: form
- in: query
- name: first_name__n
+ name: description__iew
schema:
type: array
items:
@@ -75430,7 +85870,7 @@ paths:
explode: true
style: form
- in: query
- name: first_name__nic
+ name: description__isw
schema:
type: array
items:
@@ -75438,7 +85878,7 @@ paths:
explode: true
style: form
- in: query
- name: first_name__nie
+ name: description__n
schema:
type: array
items:
@@ -75446,7 +85886,7 @@ paths:
explode: true
style: form
- in: query
- name: first_name__niew
+ name: description__nic
schema:
type: array
items:
@@ -75454,7 +85894,7 @@ paths:
explode: true
style: form
- in: query
- name: first_name__nisw
+ name: description__nie
schema:
type: array
items:
@@ -75462,39 +85902,19 @@ paths:
explode: true
style: form
- in: query
- name: group
+ name: description__niew
schema:
type: array
items:
type: string
- description: Group (name)
explode: true
style: form
- in: query
- name: group__n
+ name: description__nisw
schema:
type: array
items:
type: string
- description: Group (name)
- explode: true
- style: form
- - in: query
- name: group_id
- schema:
- type: array
- items:
- type: integer
- description: Group
- explode: true
- style: form
- - in: query
- name: group_id__n
- schema:
- type: array
- items:
- type: integer
- description: Group
explode: true
style: form
- in: query
@@ -75556,99 +85976,138 @@ paths:
explode: true
style: form
- in: query
- name: is_active
+ name: ike_policy
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ description: IKE policy (name)
+ explode: true
+ style: form
- in: query
- name: is_staff
+ name: ike_policy__n
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ description: IKE policy (name)
+ explode: true
+ style: form
- in: query
- name: is_superuser
+ name: ike_policy_id
schema:
- type: boolean
+ type: array
+ items:
+ type: integer
+ description: IKE policy (ID)
+ explode: true
+ style: form
- in: query
- name: last_name
+ name: ike_policy_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: IKE policy (ID)
explode: true
style: form
- in: query
- name: last_name__empty
+ name: ipsec_policy
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ description: IPSec policy (name)
+ explode: true
+ style: form
- in: query
- name: last_name__ic
+ name: ipsec_policy__n
schema:
type: array
items:
type: string
+ description: IPSec policy (name)
explode: true
style: form
- in: query
- name: last_name__ie
+ name: ipsec_policy_id
schema:
type: array
items:
- type: string
+ type: integer
+ description: IPSec policy (ID)
explode: true
style: form
- in: query
- name: last_name__iew
+ name: ipsec_policy_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: IPSec policy (ID)
+ explode: true
+ style: form
+ - in: query
+ name: last_updated
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: last_name__isw
+ name: last_updated__empty
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: last_name__n
+ name: last_updated__gt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: last_name__nic
+ name: last_updated__gte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: last_name__nie
+ name: last_updated__lt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: last_name__niew
+ name: last_updated__lte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: last_name__nisw
+ name: last_updated__n
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- name: limit
@@ -75657,25 +86116,31 @@ paths:
description: Number of results to return per page.
schema:
type: integer
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
+ - in: query
+ name: mode
schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 1136c2cdfee84436
+ explode: true
+ style: form
+ - in: query
+ name: mode__n
schema:
- type: string
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 1136c2cdfee84436
+ explode: true
+ style: form
- in: query
- name: q
+ name: modified_by_request
schema:
type: string
- description: Search
+ format: uuid
- in: query
- name: username
+ name: name
schema:
type: array
items:
@@ -75683,11 +86148,11 @@ paths:
explode: true
style: form
- in: query
- name: username__empty
+ name: name__empty
schema:
type: boolean
- in: query
- name: username__ic
+ name: name__ic
schema:
type: array
items:
@@ -75695,7 +86160,7 @@ paths:
explode: true
style: form
- in: query
- name: username__ie
+ name: name__ie
schema:
type: array
items:
@@ -75703,7 +86168,7 @@ paths:
explode: true
style: form
- in: query
- name: username__iew
+ name: name__iew
schema:
type: array
items:
@@ -75711,7 +86176,7 @@ paths:
explode: true
style: form
- in: query
- name: username__isw
+ name: name__isw
schema:
type: array
items:
@@ -75719,7 +86184,7 @@ paths:
explode: true
style: form
- in: query
- name: username__n
+ name: name__n
schema:
type: array
items:
@@ -75727,7 +86192,7 @@ paths:
explode: true
style: form
- in: query
- name: username__nic
+ name: name__nic
schema:
type: array
items:
@@ -75735,7 +86200,7 @@ paths:
explode: true
style: form
- in: query
- name: username__nie
+ name: name__nie
schema:
type: array
items:
@@ -75743,7 +86208,7 @@ paths:
explode: true
style: form
- in: query
- name: username__niew
+ name: name__niew
schema:
type: array
items:
@@ -75751,15 +86216,53 @@ paths:
explode: true
style: form
- in: query
- name: username__nisw
+ name: name__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: tag
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag__n
schema:
type: array
items:
type: string
explode: true
style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
tags:
- - users
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -75768,21 +86271,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedUserList'
+ $ref: '#/components/schemas/PaginatedIPSecProfileList'
description: ''
post:
- operationId: users_users_create
- description: Post a list of user objects.
+ operationId: vpn_ipsec_profiles_create
+ description: Post a list of IPSec profile objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableUserRequest'
+ $ref: '#/components/schemas/WritableIPSecProfileRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableUserRequest'
+ $ref: '#/components/schemas/WritableIPSecProfileRequest'
required: true
security:
- cookieAuth: []
@@ -75792,25 +86295,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/User'
+ $ref: '#/components/schemas/IPSecProfile'
description: ''
put:
- operationId: users_users_bulk_update
- description: Put a list of user objects.
+ operationId: vpn_ipsec_profiles_bulk_update
+ description: Put a list of IPSec profile objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/UserRequest'
+ $ref: '#/components/schemas/IPSecProfileRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/UserRequest'
+ $ref: '#/components/schemas/IPSecProfileRequest'
required: true
security:
- cookieAuth: []
@@ -75822,25 +86325,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/User'
+ $ref: '#/components/schemas/IPSecProfile'
description: ''
patch:
- operationId: users_users_bulk_partial_update
- description: Patch a list of user objects.
+ operationId: vpn_ipsec_profiles_bulk_partial_update
+ description: Patch a list of IPSec profile objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/UserRequest'
+ $ref: '#/components/schemas/IPSecProfileRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/UserRequest'
+ $ref: '#/components/schemas/IPSecProfileRequest'
required: true
security:
- cookieAuth: []
@@ -75852,25 +86355,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/User'
+ $ref: '#/components/schemas/IPSecProfile'
description: ''
delete:
- operationId: users_users_bulk_destroy
- description: Delete a list of user objects.
+ operationId: vpn_ipsec_profiles_bulk_destroy
+ description: Delete a list of IPSec profile objects.
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/UserRequest'
+ $ref: '#/components/schemas/IPSecProfileRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/UserRequest'
+ $ref: '#/components/schemas/IPSecProfileRequest'
required: true
security:
- cookieAuth: []
@@ -75878,19 +86381,19 @@ paths:
responses:
'204':
description: No response body
- /api/users/users/{id}/:
+ /api/vpn/ipsec-profiles/{id}/:
get:
- operationId: users_users_retrieve
- description: Get a user object.
+ operationId: vpn_ipsec_profiles_retrieve
+ description: Get a IPSec profile object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this user.
+ description: A unique integer value identifying this IPSec profile.
required: true
tags:
- - users
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -75899,28 +86402,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/User'
+ $ref: '#/components/schemas/IPSecProfile'
description: ''
put:
- operationId: users_users_update
- description: Put a user object.
+ operationId: vpn_ipsec_profiles_update
+ description: Put a IPSec profile object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this user.
+ description: A unique integer value identifying this IPSec profile.
required: true
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableUserRequest'
+ $ref: '#/components/schemas/WritableIPSecProfileRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableUserRequest'
+ $ref: '#/components/schemas/WritableIPSecProfileRequest'
required: true
security:
- cookieAuth: []
@@ -75930,28 +86433,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/User'
+ $ref: '#/components/schemas/IPSecProfile'
description: ''
patch:
- operationId: users_users_partial_update
- description: Patch a user object.
+ operationId: vpn_ipsec_profiles_partial_update
+ description: Patch a IPSec profile object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this user.
+ description: A unique integer value identifying this IPSec profile.
required: true
tags:
- - users
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableUserRequest'
+ $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableUserRequest'
+ $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -75960,83 +86463,49 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/User'
+ $ref: '#/components/schemas/IPSecProfile'
description: ''
delete:
- operationId: users_users_destroy
- description: Delete a user object.
+ operationId: vpn_ipsec_profiles_destroy
+ description: Delete a IPSec profile object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this user.
+ description: A unique integer value identifying this IPSec profile.
required: true
tags:
- - users
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
responses:
'204':
description: No response body
- /api/virtualization/cluster-groups/:
+ /api/vpn/ipsec-proposals/:
get:
- operationId: virtualization_cluster_groups_list
- description: Get a list of cluster group objects.
+ operationId: vpn_ipsec_proposals_list
+ description: Get a list of IPSec proposal objects.
parameters:
- in: query
- name: contact
- schema:
- type: array
- items:
- type: integer
- description: Contact
- explode: true
- style: form
- - in: query
- name: contact__n
- schema:
- type: array
- items:
- type: integer
- description: Contact
- explode: true
- style: form
- - in: query
- name: contact_group
- schema:
- type: array
- items:
- type: integer
- description: Contact group
- explode: true
- style: form
- - in: query
- name: contact_group__n
+ name: authentication_algorithm
schema:
type: array
items:
- type: integer
- description: Contact group
- explode: true
- style: form
- - in: query
- name: contact_role
- schema:
- type: array
- items:
- type: integer
- description: Contact Role
+ type: string
+ x-spec-enum-id: 0830e8839f5dea4f
+ title: Authentication
explode: true
style: form
- in: query
- name: contact_role__n
+ name: authentication_algorithm__n
schema:
type: array
items:
- type: integer
- description: Contact Role
+ type: string
+ x-spec-enum-id: 0830e8839f5dea4f
+ title: Authentication
explode: true
style: form
- in: query
@@ -76191,6 +86660,26 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: encryption_algorithm
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 40730b5af1561c52
+ title: Encryption
+ explode: true
+ style: form
+ - in: query
+ name: encryption_algorithm__n
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 40730b5af1561c52
+ title: Encryption
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -76425,87 +86914,119 @@ paths:
type: string
description: Search
- in: query
- name: slug
+ name: sa_lifetime_data
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: slug__empty
+ name: sa_lifetime_data__empty
schema:
type: boolean
- in: query
- name: slug__ic
+ name: sa_lifetime_data__gt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: slug__ie
+ name: sa_lifetime_data__gte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: slug__iew
+ name: sa_lifetime_data__lt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: slug__isw
+ name: sa_lifetime_data__lte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: slug__n
+ name: sa_lifetime_data__n
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: slug__nic
+ name: sa_lifetime_seconds
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: slug__nie
+ name: sa_lifetime_seconds__empty
+ schema:
+ type: boolean
+ - in: query
+ name: sa_lifetime_seconds__gt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: slug__niew
+ name: sa_lifetime_seconds__gte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: slug__nisw
+ name: sa_lifetime_seconds__lt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: sa_lifetime_seconds__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: sa_lifetime_seconds__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
explode: true
style: form
- in: query
@@ -76530,7 +87051,7 @@ paths:
type: string
format: uuid
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -76539,21 +87060,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedClusterGroupList'
+ $ref: '#/components/schemas/PaginatedIPSecProposalList'
description: ''
post:
- operationId: virtualization_cluster_groups_create
- description: Post a list of cluster group objects.
+ operationId: vpn_ipsec_proposals_create
+ description: Post a list of IPSec proposal objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/ClusterGroupRequest'
+ $ref: '#/components/schemas/WritableIPSecProposalRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/ClusterGroupRequest'
+ $ref: '#/components/schemas/WritableIPSecProposalRequest'
required: true
security:
- cookieAuth: []
@@ -76563,25 +87084,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ClusterGroup'
+ $ref: '#/components/schemas/IPSecProposal'
description: ''
put:
- operationId: virtualization_cluster_groups_bulk_update
- description: Put a list of cluster group objects.
+ operationId: vpn_ipsec_proposals_bulk_update
+ description: Put a list of IPSec proposal objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterGroupRequest'
+ $ref: '#/components/schemas/IPSecProposalRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterGroupRequest'
+ $ref: '#/components/schemas/IPSecProposalRequest'
required: true
security:
- cookieAuth: []
@@ -76593,25 +87114,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterGroup'
+ $ref: '#/components/schemas/IPSecProposal'
description: ''
patch:
- operationId: virtualization_cluster_groups_bulk_partial_update
- description: Patch a list of cluster group objects.
+ operationId: vpn_ipsec_proposals_bulk_partial_update
+ description: Patch a list of IPSec proposal objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterGroupRequest'
+ $ref: '#/components/schemas/IPSecProposalRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterGroupRequest'
+ $ref: '#/components/schemas/IPSecProposalRequest'
required: true
security:
- cookieAuth: []
@@ -76623,25 +87144,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterGroup'
+ $ref: '#/components/schemas/IPSecProposal'
description: ''
delete:
- operationId: virtualization_cluster_groups_bulk_destroy
- description: Delete a list of cluster group objects.
+ operationId: vpn_ipsec_proposals_bulk_destroy
+ description: Delete a list of IPSec proposal objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterGroupRequest'
+ $ref: '#/components/schemas/IPSecProposalRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterGroupRequest'
+ $ref: '#/components/schemas/IPSecProposalRequest'
required: true
security:
- cookieAuth: []
@@ -76649,19 +87170,19 @@ paths:
responses:
'204':
description: No response body
- /api/virtualization/cluster-groups/{id}/:
+ /api/vpn/ipsec-proposals/{id}/:
get:
- operationId: virtualization_cluster_groups_retrieve
- description: Get a cluster group object.
+ operationId: vpn_ipsec_proposals_retrieve
+ description: Get a IPSec proposal object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this cluster group.
+ description: A unique integer value identifying this IPSec proposal.
required: true
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -76670,28 +87191,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ClusterGroup'
+ $ref: '#/components/schemas/IPSecProposal'
description: ''
put:
- operationId: virtualization_cluster_groups_update
- description: Put a cluster group object.
+ operationId: vpn_ipsec_proposals_update
+ description: Put a IPSec proposal object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this cluster group.
+ description: A unique integer value identifying this IPSec proposal.
required: true
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/ClusterGroupRequest'
+ $ref: '#/components/schemas/WritableIPSecProposalRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/ClusterGroupRequest'
+ $ref: '#/components/schemas/WritableIPSecProposalRequest'
required: true
security:
- cookieAuth: []
@@ -76701,28 +87222,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ClusterGroup'
+ $ref: '#/components/schemas/IPSecProposal'
description: ''
patch:
- operationId: virtualization_cluster_groups_partial_update
- description: Patch a cluster group object.
+ operationId: vpn_ipsec_proposals_partial_update
+ description: Patch a IPSec proposal object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this cluster group.
+ description: A unique integer value identifying this IPSec proposal.
required: true
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedClusterGroupRequest'
+ $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedClusterGroupRequest'
+ $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -76731,31 +87252,47 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ClusterGroup'
+ $ref: '#/components/schemas/IPSecProposal'
description: ''
delete:
- operationId: virtualization_cluster_groups_destroy
- description: Delete a cluster group object.
+ operationId: vpn_ipsec_proposals_destroy
+ description: Delete a IPSec proposal object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this cluster group.
+ description: A unique integer value identifying this IPSec proposal.
required: true
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
responses:
'204':
description: No response body
- /api/virtualization/cluster-types/:
+ /api/vpn/l2vpn-terminations/:
get:
- operationId: virtualization_cluster_types_list
- description: Get a list of cluster type objects.
+ operationId: vpn_l2vpn_terminations_list
+ description: Get a list of L2VPN termination objects.
parameters:
+ - in: query
+ name: assigned_object_type
+ schema:
+ type: string
+ - in: query
+ name: assigned_object_type__n
+ schema:
+ type: string
+ - in: query
+ name: assigned_object_type_id
+ schema:
+ type: integer
+ - in: query
+ name: assigned_object_type_id__n
+ schema:
+ type: integer
- in: query
name: created
schema:
@@ -76825,145 +87362,171 @@ paths:
type: string
format: uuid
- in: query
- name: description
+ name: device
schema:
type: array
items:
type: string
+ nullable: true
+ description: Device (name)
explode: true
style: form
- in: query
- name: description__empty
+ name: device__n
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ nullable: true
+ description: Device (name)
+ explode: true
+ style: form
- in: query
- name: description__ic
+ name: device_id
schema:
type: array
items:
- type: string
+ type: integer
+ description: Device (ID)
explode: true
style: form
- in: query
- name: description__ie
+ name: device_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: Device (ID)
explode: true
style: form
- in: query
- name: description__iew
+ name: id
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: description__isw
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: description__n
+ name: id__gte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: description__nic
+ name: id__lt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: description__nie
+ name: id__lte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: description__niew
+ name: id__n
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: description__nisw
+ name: interface
schema:
type: array
items:
type: string
+ description: Interface (name)
explode: true
style: form
- in: query
- name: id
+ name: interface__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ description: Interface (name)
explode: true
style: form
- in: query
- name: id__empty
+ name: interface_id
schema:
- type: boolean
+ type: array
+ items:
+ type: integer
+ description: Interface (ID)
+ explode: true
+ style: form
- in: query
- name: id__gt
+ name: interface_id__n
schema:
type: array
items:
type: integer
- format: int32
+ description: Interface (ID)
explode: true
style: form
- in: query
- name: id__gte
+ name: l2vpn
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ description: L2VPN (slug)
explode: true
style: form
- in: query
- name: id__lt
+ name: l2vpn__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ description: L2VPN (slug)
explode: true
style: form
- in: query
- name: id__lte
+ name: l2vpn_id
schema:
type: array
items:
type: integer
- format: int32
+ description: L2VPN (ID)
explode: true
style: form
- in: query
- name: id__n
+ name: l2vpn_id__n
schema:
type: array
items:
type: integer
- format: int32
+ description: L2VPN (ID)
explode: true
style: form
- in: query
@@ -77040,20 +87603,25 @@ paths:
schema:
type: string
format: uuid
- - in: query
- name: name
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
- in: query
- name: name__empty
+ name: q
schema:
- type: boolean
+ type: string
+ description: Search
- in: query
- name: name__ic
+ name: region
schema:
type: array
items:
@@ -77061,15 +87629,16 @@ paths:
explode: true
style: form
- in: query
- name: name__ie
+ name: region_id
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__iew
+ name: site
schema:
type: array
items:
@@ -77077,15 +87646,16 @@ paths:
explode: true
style: form
- in: query
- name: name__isw
+ name: site_id
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__n
+ name: tag
schema:
type: array
items:
@@ -77093,7 +87663,7 @@ paths:
explode: true
style: form
- in: query
- name: name__nic
+ name: tag__n
schema:
type: array
items:
@@ -77101,153 +87671,155 @@ paths:
explode: true
style: form
- in: query
- name: name__nie
+ name: updated_by_request
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: string
+ format: uuid
- in: query
- name: name__niew
+ name: virtual_machine
schema:
type: array
items:
type: string
+ description: Virtual machine (name)
explode: true
style: form
- in: query
- name: name__nisw
+ name: virtual_machine__n
schema:
type: array
items:
type: string
+ description: Virtual machine (name)
explode: true
style: form
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
- schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
- schema:
- type: string
- - in: query
- name: q
- schema:
- type: string
- description: Search
- in: query
- name: slug
+ name: virtual_machine_id
schema:
type: array
items:
- type: string
+ type: integer
+ description: Virtual machine (ID)
explode: true
style: form
- in: query
- name: slug__empty
- schema:
- type: boolean
- - in: query
- name: slug__ic
+ name: virtual_machine_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: Virtual machine (ID)
explode: true
style: form
- in: query
- name: slug__ie
+ name: vlan
schema:
type: array
items:
type: string
+ description: VLAN (name)
explode: true
style: form
- in: query
- name: slug__iew
+ name: vlan__n
schema:
type: array
items:
type: string
+ description: VLAN (name)
explode: true
style: form
- in: query
- name: slug__isw
+ name: vlan_id
schema:
type: array
items:
- type: string
+ type: integer
+ description: VLAN (ID)
explode: true
style: form
- in: query
- name: slug__n
+ name: vlan_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: VLAN (ID)
explode: true
style: form
- in: query
- name: slug__nic
+ name: vlan_vid
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: integer
+ description: VLAN number (1-4094)
- in: query
- name: slug__nie
+ name: vlan_vid__empty
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: integer
+ description: VLAN number (1-4094)
- in: query
- name: slug__niew
+ name: vlan_vid__gt
+ schema:
+ type: integer
+ description: VLAN number (1-4094)
+ - in: query
+ name: vlan_vid__gte
+ schema:
+ type: integer
+ description: VLAN number (1-4094)
+ - in: query
+ name: vlan_vid__lt
+ schema:
+ type: integer
+ description: VLAN number (1-4094)
+ - in: query
+ name: vlan_vid__lte
+ schema:
+ type: integer
+ description: VLAN number (1-4094)
+ - in: query
+ name: vlan_vid__n
+ schema:
+ type: integer
+ description: VLAN number (1-4094)
+ - in: query
+ name: vminterface
schema:
type: array
items:
type: string
+ description: VM interface (name)
explode: true
style: form
- in: query
- name: slug__nisw
+ name: vminterface__n
schema:
type: array
items:
type: string
+ description: VM interface (name)
explode: true
style: form
- in: query
- name: tag
+ name: vminterface_id
schema:
type: array
items:
- type: string
+ type: integer
+ description: VM Interface (ID)
explode: true
style: form
- in: query
- name: tag__n
+ name: vminterface_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: VM Interface (ID)
explode: true
style: form
- - in: query
- name: updated_by_request
- schema:
- type: string
- format: uuid
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -77256,21 +87828,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedClusterTypeList'
+ $ref: '#/components/schemas/PaginatedL2VPNTerminationList'
description: ''
post:
- operationId: virtualization_cluster_types_create
- description: Post a list of cluster type objects.
+ operationId: vpn_l2vpn_terminations_create
+ description: Post a list of L2VPN termination objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/ClusterTypeRequest'
+ $ref: '#/components/schemas/WritableL2VPNTerminationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/ClusterTypeRequest'
+ $ref: '#/components/schemas/WritableL2VPNTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -77280,25 +87852,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ClusterType'
+ $ref: '#/components/schemas/L2VPNTermination'
description: ''
put:
- operationId: virtualization_cluster_types_bulk_update
- description: Put a list of cluster type objects.
+ operationId: vpn_l2vpn_terminations_bulk_update
+ description: Put a list of L2VPN termination objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterTypeRequest'
+ $ref: '#/components/schemas/L2VPNTerminationRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterTypeRequest'
+ $ref: '#/components/schemas/L2VPNTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -77310,25 +87882,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterType'
+ $ref: '#/components/schemas/L2VPNTermination'
description: ''
patch:
- operationId: virtualization_cluster_types_bulk_partial_update
- description: Patch a list of cluster type objects.
+ operationId: vpn_l2vpn_terminations_bulk_partial_update
+ description: Patch a list of L2VPN termination objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterTypeRequest'
+ $ref: '#/components/schemas/L2VPNTerminationRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterTypeRequest'
+ $ref: '#/components/schemas/L2VPNTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -77340,25 +87912,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterType'
+ $ref: '#/components/schemas/L2VPNTermination'
description: ''
delete:
- operationId: virtualization_cluster_types_bulk_destroy
- description: Delete a list of cluster type objects.
+ operationId: vpn_l2vpn_terminations_bulk_destroy
+ description: Delete a list of L2VPN termination objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterTypeRequest'
+ $ref: '#/components/schemas/L2VPNTerminationRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterTypeRequest'
+ $ref: '#/components/schemas/L2VPNTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -77366,19 +87938,19 @@ paths:
responses:
'204':
description: No response body
- /api/virtualization/cluster-types/{id}/:
+ /api/vpn/l2vpn-terminations/{id}/:
get:
- operationId: virtualization_cluster_types_retrieve
- description: Get a cluster type object.
+ operationId: vpn_l2vpn_terminations_retrieve
+ description: Get a L2VPN termination object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this cluster type.
+ description: A unique integer value identifying this L2VPN termination.
required: true
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -77387,28 +87959,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ClusterType'
+ $ref: '#/components/schemas/L2VPNTermination'
description: ''
put:
- operationId: virtualization_cluster_types_update
- description: Put a cluster type object.
+ operationId: vpn_l2vpn_terminations_update
+ description: Put a L2VPN termination object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this cluster type.
+ description: A unique integer value identifying this L2VPN termination.
required: true
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/ClusterTypeRequest'
+ $ref: '#/components/schemas/WritableL2VPNTerminationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/ClusterTypeRequest'
+ $ref: '#/components/schemas/WritableL2VPNTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -77418,28 +87990,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ClusterType'
+ $ref: '#/components/schemas/L2VPNTermination'
description: ''
patch:
- operationId: virtualization_cluster_types_partial_update
- description: Patch a cluster type object.
+ operationId: vpn_l2vpn_terminations_partial_update
+ description: Patch a L2VPN termination object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this cluster type.
+ description: A unique integer value identifying this L2VPN termination.
required: true
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedClusterTypeRequest'
+ $ref: '#/components/schemas/PatchedWritableL2VPNTerminationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedClusterTypeRequest'
+ $ref: '#/components/schemas/PatchedWritableL2VPNTerminationRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -77448,87 +88020,87 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ClusterType'
+ $ref: '#/components/schemas/L2VPNTermination'
description: ''
delete:
- operationId: virtualization_cluster_types_destroy
- description: Delete a cluster type object.
+ operationId: vpn_l2vpn_terminations_destroy
+ description: Delete a L2VPN termination object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this cluster type.
+ description: A unique integer value identifying this L2VPN termination.
required: true
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
responses:
'204':
description: No response body
- /api/virtualization/clusters/:
+ /api/vpn/l2vpns/:
get:
- operationId: virtualization_clusters_list
- description: Get a list of cluster objects.
+ operationId: vpn_l2vpns_list
+ description: Get a list of L2VPN objects.
parameters:
- in: query
- name: contact
+ name: created
schema:
type: array
items:
- type: integer
- description: Contact
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: contact__n
+ name: created__empty
schema:
type: array
items:
- type: integer
- description: Contact
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: contact_group
+ name: created__gt
schema:
type: array
items:
- type: integer
- description: Contact group
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: contact_group__n
+ name: created__gte
schema:
type: array
items:
- type: integer
- description: Contact group
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: contact_role
+ name: created__lt
schema:
type: array
items:
- type: integer
- description: Contact Role
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: contact_role__n
+ name: created__lte
schema:
type: array
items:
- type: integer
- description: Contact Role
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: created
+ name: created__n
schema:
type: array
items:
@@ -77537,100 +88109,128 @@ paths:
explode: true
style: form
- in: query
- name: created__empty
+ name: created_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: description
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__gt
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__gte
+ name: description__ie
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__lt
+ name: description__iew
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__lte
+ name: description__isw
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__n
+ name: description__n
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created_by_request
+ name: description__nic
schema:
- type: string
- format: uuid
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
- name: group
+ name: description__nie
schema:
type: array
items:
type: string
- description: Parent group (slug)
explode: true
style: form
- in: query
- name: group__n
+ name: description__niew
schema:
type: array
items:
type: string
- description: Parent group (slug)
explode: true
style: form
- in: query
- name: group_id
+ name: description__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: export_target
+ schema:
+ type: array
+ items:
+ type: string
+ description: Export target (name)
+ explode: true
+ style: form
+ - in: query
+ name: export_target__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Export target (name)
+ explode: true
+ style: form
+ - in: query
+ name: export_target_id
schema:
type: array
items:
type: integer
- nullable: true
- description: Parent group (ID)
+ description: Export target
explode: true
style: form
- in: query
- name: group_id__n
+ name: export_target_id__n
schema:
type: array
items:
type: integer
- nullable: true
- description: Parent group (ID)
+ description: Export target
explode: true
style: form
- in: query
@@ -77691,6 +88291,100 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: identifier
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: identifier__empty
+ schema:
+ type: boolean
+ - in: query
+ name: identifier__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: identifier__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: identifier__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: identifier__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: identifier__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: import_target
+ schema:
+ type: array
+ items:
+ type: string
+ description: Import target (name)
+ explode: true
+ style: form
+ - in: query
+ name: import_target__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Import target (name)
+ explode: true
+ style: form
+ - in: query
+ name: import_target_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Import target
+ explode: true
+ style: form
+ - in: query
+ name: import_target_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Import target
+ explode: true
+ style: form
- in: query
name: last_updated
schema:
@@ -77867,117 +88561,75 @@ paths:
type: string
description: Search
- in: query
- name: region
- schema:
- type: array
- items:
- type: integer
- description: Region (slug)
- explode: true
- style: form
- - in: query
- name: region__n
- schema:
- type: array
- items:
- type: integer
- description: Region (slug)
- explode: true
- style: form
- - in: query
- name: region_id
+ name: slug
schema:
type: array
items:
- type: integer
- description: Region (ID)
+ type: string
explode: true
style: form
- in: query
- name: region_id__n
+ name: slug__empty
schema:
- type: array
- items:
- type: integer
- description: Region (ID)
- explode: true
- style: form
+ type: boolean
- in: query
- name: site
+ name: slug__ic
schema:
type: array
items:
type: string
- description: Site (slug)
explode: true
style: form
- in: query
- name: site__n
+ name: slug__ie
schema:
type: array
items:
type: string
- description: Site (slug)
- explode: true
- style: form
- - in: query
- name: site_group
- schema:
- type: array
- items:
- type: integer
- description: Site group (slug)
explode: true
style: form
- in: query
- name: site_group__n
+ name: slug__iew
schema:
type: array
items:
- type: integer
- description: Site group (slug)
+ type: string
explode: true
style: form
- in: query
- name: site_group_id
+ name: slug__isw
schema:
type: array
items:
- type: integer
- description: Site group (ID)
+ type: string
explode: true
style: form
- in: query
- name: site_group_id__n
+ name: slug__n
schema:
type: array
items:
- type: integer
- description: Site group (ID)
+ type: string
explode: true
style: form
- in: query
- name: site_id
+ name: slug__nic
schema:
type: array
items:
- type: integer
- nullable: true
- description: Site (ID)
+ type: string
explode: true
style: form
- in: query
- name: site_id__n
+ name: slug__nie
schema:
type: array
items:
- type: integer
- nullable: true
- description: Site (ID)
+ type: string
explode: true
style: form
- in: query
- name: status
+ name: slug__niew
schema:
type: array
items:
@@ -77985,7 +88637,7 @@ paths:
explode: true
style: form
- in: query
- name: status__n
+ name: slug__nisw
schema:
type: array
items:
@@ -78088,7 +88740,7 @@ paths:
type: array
items:
type: string
- description: Cluster type (slug)
+ x-spec-enum-id: dbaa4f996ec2d110
explode: true
style: form
- in: query
@@ -78097,25 +88749,7 @@ paths:
type: array
items:
type: string
- description: Cluster type (slug)
- explode: true
- style: form
- - in: query
- name: type_id
- schema:
- type: array
- items:
- type: integer
- description: Cluster type (ID)
- explode: true
- style: form
- - in: query
- name: type_id__n
- schema:
- type: array
- items:
- type: integer
- description: Cluster type (ID)
+ x-spec-enum-id: dbaa4f996ec2d110
explode: true
style: form
- in: query
@@ -78124,7 +88758,7 @@ paths:
type: string
format: uuid
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -78133,21 +88767,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedClusterList'
+ $ref: '#/components/schemas/PaginatedL2VPNList'
description: ''
post:
- operationId: virtualization_clusters_create
- description: Post a list of cluster objects.
+ operationId: vpn_l2vpns_create
+ description: Post a list of L2VPN objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableClusterRequest'
+ $ref: '#/components/schemas/WritableL2VPNRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableClusterRequest'
+ $ref: '#/components/schemas/WritableL2VPNRequest'
required: true
security:
- cookieAuth: []
@@ -78157,25 +88791,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Cluster'
+ $ref: '#/components/schemas/L2VPN'
description: ''
put:
- operationId: virtualization_clusters_bulk_update
- description: Put a list of cluster objects.
+ operationId: vpn_l2vpns_bulk_update
+ description: Put a list of L2VPN objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterRequest'
+ $ref: '#/components/schemas/L2VPNRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterRequest'
+ $ref: '#/components/schemas/L2VPNRequest'
required: true
security:
- cookieAuth: []
@@ -78187,25 +88821,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Cluster'
+ $ref: '#/components/schemas/L2VPN'
description: ''
patch:
- operationId: virtualization_clusters_bulk_partial_update
- description: Patch a list of cluster objects.
+ operationId: vpn_l2vpns_bulk_partial_update
+ description: Patch a list of L2VPN objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterRequest'
+ $ref: '#/components/schemas/L2VPNRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterRequest'
+ $ref: '#/components/schemas/L2VPNRequest'
required: true
security:
- cookieAuth: []
@@ -78217,25 +88851,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Cluster'
+ $ref: '#/components/schemas/L2VPN'
description: ''
delete:
- operationId: virtualization_clusters_bulk_destroy
- description: Delete a list of cluster objects.
+ operationId: vpn_l2vpns_bulk_destroy
+ description: Delete a list of L2VPN objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterRequest'
+ $ref: '#/components/schemas/L2VPNRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ClusterRequest'
+ $ref: '#/components/schemas/L2VPNRequest'
required: true
security:
- cookieAuth: []
@@ -78243,19 +88877,19 @@ paths:
responses:
'204':
description: No response body
- /api/virtualization/clusters/{id}/:
+ /api/vpn/l2vpns/{id}/:
get:
- operationId: virtualization_clusters_retrieve
- description: Get a cluster object.
+ operationId: vpn_l2vpns_retrieve
+ description: Get a L2VPN object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this cluster.
+ description: A unique integer value identifying this L2VPN.
required: true
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -78264,28 +88898,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Cluster'
+ $ref: '#/components/schemas/L2VPN'
description: ''
put:
- operationId: virtualization_clusters_update
- description: Put a cluster object.
+ operationId: vpn_l2vpns_update
+ description: Put a L2VPN object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this cluster.
+ description: A unique integer value identifying this L2VPN.
required: true
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableClusterRequest'
+ $ref: '#/components/schemas/WritableL2VPNRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableClusterRequest'
+ $ref: '#/components/schemas/WritableL2VPNRequest'
required: true
security:
- cookieAuth: []
@@ -78295,115 +88929,61 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Cluster'
+ $ref: '#/components/schemas/L2VPN'
description: ''
patch:
- operationId: virtualization_clusters_partial_update
- description: Patch a cluster object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- description: A unique integer value identifying this cluster.
- required: true
- tags:
- - virtualization
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PatchedWritableClusterRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/PatchedWritableClusterRequest'
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Cluster'
- description: ''
- delete:
- operationId: virtualization_clusters_destroy
- description: Delete a cluster object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- description: A unique integer value identifying this cluster.
- required: true
- tags:
- - virtualization
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '204':
- description: No response body
- /api/virtualization/interfaces/:
- get:
- operationId: virtualization_interfaces_list
- description: Get a list of interface objects.
+ operationId: vpn_l2vpns_partial_update
+ description: Patch a L2VPN object.
parameters:
- - in: query
- name: bridge_id
- schema:
- type: array
- items:
- type: integer
- description: Bridged interface (ID)
- explode: true
- style: form
- - in: query
- name: bridge_id__n
- schema:
- type: array
- items:
- type: integer
- description: Bridged interface (ID)
- explode: true
- style: form
- - in: query
- name: cluster
- schema:
- type: array
- items:
- type: string
- description: Cluster
- explode: true
- style: form
- - in: query
- name: cluster__n
- schema:
- type: array
- items:
- type: string
- description: Cluster
- explode: true
- style: form
- - in: query
- name: cluster_id
+ - in: path
+ name: id
schema:
- type: array
- items:
- type: integer
- description: Cluster (ID)
- explode: true
- style: form
- - in: query
- name: cluster_id__n
+ type: integer
+ description: A unique integer value identifying this L2VPN.
+ required: true
+ tags:
+ - vpn
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableL2VPNRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableL2VPNRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/L2VPN'
+ description: ''
+ delete:
+ operationId: vpn_l2vpns_destroy
+ description: Delete a L2VPN object.
+ parameters:
+ - in: path
+ name: id
schema:
- type: array
- items:
- type: integer
- description: Cluster (ID)
- explode: true
- style: form
+ type: integer
+ description: A unique integer value identifying this L2VPN.
+ required: true
+ tags:
+ - vpn
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/vpn/tunnel-groups/:
+ get:
+ operationId: vpn_tunnel_groups_list
+ description: Get a list of tunnel group objects.
+ parameters:
- in: query
name: created
schema:
@@ -78556,10 +89136,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: enabled
- schema:
- type: boolean
- in: query
name: id
schema:
@@ -78619,51 +89195,43 @@ paths:
explode: true
style: form
- in: query
- name: l2vpn
+ name: last_updated
schema:
type: array
items:
- type: integer
- maximum: 9223372036854775807
- minimum: -9223372036854775808
- format: int64
- nullable: true
- description: L2VPN
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: l2vpn__n
+ name: last_updated__empty
schema:
type: array
items:
- type: integer
- maximum: 9223372036854775807
- minimum: -9223372036854775808
- format: int64
- nullable: true
- description: L2VPN
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: l2vpn_id
+ name: last_updated__gt
schema:
type: array
items:
- type: integer
- description: L2VPN (ID)
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: l2vpn_id__n
+ name: last_updated__gte
schema:
type: array
items:
- type: integer
- description: L2VPN (ID)
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: last_updated
+ name: last_updated__lt
schema:
type: array
items:
@@ -78672,7 +89240,7 @@ paths:
explode: true
style: form
- in: query
- name: last_updated__empty
+ name: last_updated__lte
schema:
type: array
items:
@@ -78681,7 +89249,7 @@ paths:
explode: true
style: form
- in: query
- name: last_updated__gt
+ name: last_updated__n
schema:
type: array
items:
@@ -78689,50 +89257,120 @@ paths:
format: date-time
explode: true
style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
- in: query
- name: last_updated__gte
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: name
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__lt
+ name: name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: name__ic
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__lte
+ name: name__ie
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__n
+ name: name__iew
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- - name: limit
+ - 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: Number of results to return per page.
+ description: The initial index from which to return the results.
schema:
type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
- in: query
- name: mac_address
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: slug
schema:
type: array
items:
@@ -78740,7 +89378,11 @@ paths:
explode: true
style: form
- in: query
- name: mac_address__ic
+ name: slug__empty
+ schema:
+ type: boolean
+ - in: query
+ name: slug__ic
schema:
type: array
items:
@@ -78748,7 +89390,7 @@ paths:
explode: true
style: form
- in: query
- name: mac_address__ie
+ name: slug__ie
schema:
type: array
items:
@@ -78756,7 +89398,7 @@ paths:
explode: true
style: form
- in: query
- name: mac_address__iew
+ name: slug__iew
schema:
type: array
items:
@@ -78764,7 +89406,7 @@ paths:
explode: true
style: form
- in: query
- name: mac_address__isw
+ name: slug__isw
schema:
type: array
items:
@@ -78772,7 +89414,7 @@ paths:
explode: true
style: form
- in: query
- name: mac_address__n
+ name: slug__n
schema:
type: array
items:
@@ -78780,7 +89422,7 @@ paths:
explode: true
style: form
- in: query
- name: mac_address__nic
+ name: slug__nic
schema:
type: array
items:
@@ -78788,7 +89430,7 @@ paths:
explode: true
style: form
- in: query
- name: mac_address__nie
+ name: slug__nie
schema:
type: array
items:
@@ -78796,7 +89438,7 @@ paths:
explode: true
style: form
- in: query
- name: mac_address__niew
+ name: slug__niew
schema:
type: array
items:
@@ -78804,7 +89446,7 @@ paths:
explode: true
style: form
- in: query
- name: mac_address__nisw
+ name: slug__nisw
schema:
type: array
items:
@@ -78812,12 +89454,323 @@ paths:
explode: true
style: form
- in: query
- name: modified_by_request
+ name: tag
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ tags:
+ - vpn
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedTunnelGroupList'
+ description: ''
+ post:
+ operationId: vpn_tunnel_groups_create
+ description: Post a list of tunnel group objects.
+ tags:
+ - vpn
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TunnelGroupRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/TunnelGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TunnelGroup'
+ description: ''
+ put:
+ operationId: vpn_tunnel_groups_bulk_update
+ description: Put a list of tunnel group objects.
+ tags:
+ - vpn
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TunnelGroupRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TunnelGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TunnelGroup'
+ description: ''
+ patch:
+ operationId: vpn_tunnel_groups_bulk_partial_update
+ description: Patch a list of tunnel group objects.
+ tags:
+ - vpn
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TunnelGroupRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TunnelGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TunnelGroup'
+ description: ''
+ delete:
+ operationId: vpn_tunnel_groups_bulk_destroy
+ description: Delete a list of tunnel group objects.
+ tags:
+ - vpn
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TunnelGroupRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/TunnelGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/vpn/tunnel-groups/{id}/:
+ get:
+ operationId: vpn_tunnel_groups_retrieve
+ description: Get a tunnel group object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this tunnel group.
+ required: true
+ tags:
+ - vpn
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TunnelGroup'
+ description: ''
+ put:
+ operationId: vpn_tunnel_groups_update
+ description: Put a tunnel group object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this tunnel group.
+ required: true
+ tags:
+ - vpn
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TunnelGroupRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/TunnelGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TunnelGroup'
+ description: ''
+ patch:
+ operationId: vpn_tunnel_groups_partial_update
+ description: Patch a tunnel group object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this tunnel group.
+ required: true
+ tags:
+ - vpn
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedTunnelGroupRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedTunnelGroupRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TunnelGroup'
+ description: ''
+ delete:
+ operationId: vpn_tunnel_groups_destroy
+ description: Delete a tunnel group object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this tunnel group.
+ required: true
+ tags:
+ - vpn
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/vpn/tunnel-terminations/:
+ get:
+ operationId: vpn_tunnel_terminations_list
+ description: Get a list of tunnel termination objects.
+ parameters:
+ - in: query
+ name: created
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created_by_request
schema:
type: string
format: uuid
- in: query
- name: mtu
+ name: id
schema:
type: array
items:
@@ -78826,11 +89779,11 @@ paths:
explode: true
style: form
- in: query
- name: mtu__empty
+ name: id__empty
schema:
type: boolean
- in: query
- name: mtu__gt
+ name: id__gt
schema:
type: array
items:
@@ -78839,7 +89792,7 @@ paths:
explode: true
style: form
- in: query
- name: mtu__gte
+ name: id__gte
schema:
type: array
items:
@@ -78848,7 +89801,7 @@ paths:
explode: true
style: form
- in: query
- name: mtu__lt
+ name: id__lt
schema:
type: array
items:
@@ -78857,7 +89810,7 @@ paths:
explode: true
style: form
- in: query
- name: mtu__lte
+ name: id__lte
schema:
type: array
items:
@@ -78866,7 +89819,7 @@ paths:
explode: true
style: form
- in: query
- name: mtu__n
+ name: id__n
schema:
type: array
items:
@@ -78875,89 +89828,115 @@ paths:
explode: true
style: form
- in: query
- name: name
+ name: interface
schema:
type: array
items:
type: string
+ description: Interface (name)
explode: true
style: form
- in: query
- name: name__empty
+ name: interface__n
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ description: Interface (name)
+ explode: true
+ style: form
- in: query
- name: name__ic
+ name: interface_id
schema:
type: array
items:
- type: string
+ type: integer
+ description: Interface (ID)
explode: true
style: form
- in: query
- name: name__ie
+ name: interface_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ description: Interface (ID)
explode: true
style: form
- in: query
- name: name__iew
+ name: last_updated
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: name__isw
+ name: last_updated__empty
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: name__n
+ name: last_updated__gt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: name__nic
+ name: last_updated__gte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: name__nie
+ name: last_updated__lt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: name__niew
+ name: last_updated__lte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: name__nisw
+ name: last_updated__n
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
- name: offset
required: false
in: query
@@ -78971,21 +89950,21 @@ paths:
schema:
type: string
- in: query
- name: parent_id
+ name: outside_ip_id
schema:
type: array
items:
type: integer
- description: Parent interface (ID)
+ description: Outside IP (ID)
explode: true
style: form
- in: query
- name: parent_id__n
+ name: outside_ip_id__n
schema:
type: array
items:
type: integer
- description: Parent interface (ID)
+ description: Outside IP (ID)
explode: true
style: form
- in: query
@@ -78993,6 +89972,24 @@ paths:
schema:
type: string
description: Search
+ - in: query
+ name: role
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 52225cd60b867572
+ explode: true
+ style: form
+ - in: query
+ name: role__n
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 52225cd60b867572
+ explode: true
+ style: form
- in: query
name: tag
schema:
@@ -79010,98 +90007,92 @@ paths:
explode: true
style: form
- in: query
- name: updated_by_request
+ name: termination_type
schema:
type: string
- format: uuid
- in: query
- name: virtual_machine
+ name: termination_type__n
+ schema:
+ type: string
+ - in: query
+ name: tunnel
schema:
type: array
items:
type: string
- description: Virtual machine
+ description: Tunnel (name)
explode: true
style: form
- in: query
- name: virtual_machine__n
+ name: tunnel__n
schema:
type: array
items:
type: string
- description: Virtual machine
+ description: Tunnel (name)
explode: true
style: form
- in: query
- name: virtual_machine_id
+ name: tunnel_id
schema:
type: array
items:
type: integer
- description: Virtual machine (ID)
+ description: Tunnel (ID)
explode: true
style: form
- in: query
- name: virtual_machine_id__n
+ name: tunnel_id__n
schema:
type: array
items:
type: integer
- description: Virtual machine (ID)
+ description: Tunnel (ID)
explode: true
style: form
- in: query
- name: vlan
- schema:
- type: string
- description: Assigned VID
- - in: query
- name: vlan_id
+ name: updated_by_request
schema:
type: string
- description: Assigned VLAN
+ format: uuid
- in: query
- name: vrf
+ name: vminterface
schema:
type: array
items:
type: string
- nullable: true
- title: Route distinguisher
- description: VRF (RD)
+ description: VM interface (name)
explode: true
style: form
- in: query
- name: vrf__n
+ name: vminterface__n
schema:
type: array
items:
type: string
- nullable: true
- title: Route distinguisher
- description: VRF (RD)
+ description: VM interface (name)
explode: true
style: form
- in: query
- name: vrf_id
+ name: vminterface_id
schema:
type: array
items:
type: integer
- description: VRF
+ description: VM interface (ID)
explode: true
style: form
- in: query
- name: vrf_id__n
+ name: vminterface_id__n
schema:
type: array
items:
type: integer
- description: VRF
+ description: VM interface (ID)
explode: true
style: form
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -79110,21 +90101,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedVMInterfaceList'
+ $ref: '#/components/schemas/PaginatedTunnelTerminationList'
description: ''
post:
- operationId: virtualization_interfaces_create
- description: Post a list of interface objects.
+ operationId: vpn_tunnel_terminations_create
+ description: Post a list of tunnel termination objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableVMInterfaceRequest'
+ $ref: '#/components/schemas/WritableTunnelTerminationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableVMInterfaceRequest'
+ $ref: '#/components/schemas/WritableTunnelTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -79134,25 +90125,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VMInterface'
+ $ref: '#/components/schemas/TunnelTermination'
description: ''
put:
- operationId: virtualization_interfaces_bulk_update
- description: Put a list of interface objects.
+ operationId: vpn_tunnel_terminations_bulk_update
+ description: Put a list of tunnel termination objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/VMInterfaceRequest'
+ $ref: '#/components/schemas/TunnelTerminationRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VMInterfaceRequest'
+ $ref: '#/components/schemas/TunnelTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -79164,25 +90155,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/VMInterface'
+ $ref: '#/components/schemas/TunnelTermination'
description: ''
patch:
- operationId: virtualization_interfaces_bulk_partial_update
- description: Patch a list of interface objects.
+ operationId: vpn_tunnel_terminations_bulk_partial_update
+ description: Patch a list of tunnel termination objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/VMInterfaceRequest'
+ $ref: '#/components/schemas/TunnelTerminationRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VMInterfaceRequest'
+ $ref: '#/components/schemas/TunnelTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -79194,25 +90185,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/VMInterface'
+ $ref: '#/components/schemas/TunnelTermination'
description: ''
delete:
- operationId: virtualization_interfaces_bulk_destroy
- description: Delete a list of interface objects.
+ operationId: vpn_tunnel_terminations_bulk_destroy
+ description: Delete a list of tunnel termination objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/VMInterfaceRequest'
+ $ref: '#/components/schemas/TunnelTerminationRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VMInterfaceRequest'
+ $ref: '#/components/schemas/TunnelTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -79220,19 +90211,19 @@ paths:
responses:
'204':
description: No response body
- /api/virtualization/interfaces/{id}/:
+ /api/vpn/tunnel-terminations/{id}/:
get:
- operationId: virtualization_interfaces_retrieve
- description: Get a interface object.
+ operationId: vpn_tunnel_terminations_retrieve
+ description: Get a tunnel termination object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this interface.
+ description: A unique integer value identifying this tunnel termination.
required: true
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -79241,28 +90232,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VMInterface'
+ $ref: '#/components/schemas/TunnelTermination'
description: ''
put:
- operationId: virtualization_interfaces_update
- description: Put a interface object.
+ operationId: vpn_tunnel_terminations_update
+ description: Put a tunnel termination object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this interface.
+ description: A unique integer value identifying this tunnel termination.
required: true
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableVMInterfaceRequest'
+ $ref: '#/components/schemas/WritableTunnelTerminationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableVMInterfaceRequest'
+ $ref: '#/components/schemas/WritableTunnelTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -79272,28 +90263,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VMInterface'
+ $ref: '#/components/schemas/TunnelTermination'
description: ''
patch:
- operationId: virtualization_interfaces_partial_update
- description: Patch a interface object.
+ operationId: vpn_tunnel_terminations_partial_update
+ description: Patch a tunnel termination object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this interface.
+ description: A unique integer value identifying this tunnel termination.
required: true
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest'
+ $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest'
+ $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -79302,325 +90293,241 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VMInterface'
+ $ref: '#/components/schemas/TunnelTermination'
description: ''
delete:
- operationId: virtualization_interfaces_destroy
- description: Delete a interface object.
+ operationId: vpn_tunnel_terminations_destroy
+ description: Delete a tunnel termination object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this interface.
+ description: A unique integer value identifying this tunnel termination.
required: true
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
responses:
'204':
description: No response body
- /api/virtualization/virtual-machines/:
+ /api/vpn/tunnels/:
get:
- operationId: virtualization_virtual_machines_list
- description: Get a list of virtual machine objects.
+ operationId: vpn_tunnels_list
+ description: Get a list of tunnel objects.
parameters:
- in: query
- name: cluster
+ name: created
schema:
type: array
items:
type: string
- description: Cluster
+ format: date-time
explode: true
style: form
- in: query
- name: cluster__n
+ name: created__empty
schema:
type: array
items:
type: string
- description: Cluster
+ format: date-time
explode: true
style: form
- in: query
- name: cluster_group
+ name: created__gt
schema:
type: array
items:
type: string
- description: Cluster group (slug)
+ format: date-time
explode: true
style: form
- in: query
- name: cluster_group__n
+ name: created__gte
schema:
type: array
items:
type: string
- description: Cluster group (slug)
- explode: true
- style: form
- - in: query
- name: cluster_group_id
- schema:
- type: array
- items:
- type: integer
- description: Cluster group (ID)
- explode: true
- style: form
- - in: query
- name: cluster_group_id__n
- schema:
- type: array
- items:
- type: integer
- description: Cluster group (ID)
- explode: true
- style: form
- - in: query
- name: cluster_id
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Cluster (ID)
- explode: true
- style: form
- - in: query
- name: cluster_id__n
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Cluster (ID)
+ format: date-time
explode: true
style: form
- in: query
- name: cluster_type
+ name: created__lt
schema:
type: array
items:
type: string
- description: Cluster type (slug)
+ format: date-time
explode: true
style: form
- in: query
- name: cluster_type__n
+ name: created__lte
schema:
type: array
items:
type: string
- description: Cluster type (slug)
- explode: true
- style: form
- - in: query
- name: cluster_type_id
- schema:
- type: array
- items:
- type: integer
- description: Cluster type (ID)
- explode: true
- style: form
- - in: query
- name: cluster_type_id__n
- schema:
- type: array
- items:
- type: integer
- description: Cluster type (ID)
+ format: date-time
explode: true
style: form
- in: query
- name: config_template_id
+ name: created__n
schema:
type: array
items:
- type: integer
- nullable: true
- description: Config template (ID)
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: config_template_id__n
+ name: created_by_request
schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Config template (ID)
- explode: true
- style: form
+ type: string
+ format: uuid
- in: query
- name: contact
+ name: description
schema:
type: array
items:
- type: integer
- description: Contact
+ type: string
explode: true
style: form
- in: query
- name: contact__n
+ name: description__empty
schema:
- type: array
- items:
- type: integer
- description: Contact
- explode: true
- style: form
+ type: boolean
- in: query
- name: contact_group
+ name: description__ic
schema:
type: array
items:
- type: integer
- description: Contact group
+ type: string
explode: true
style: form
- in: query
- name: contact_group__n
+ name: description__ie
schema:
type: array
items:
- type: integer
- description: Contact group
+ type: string
explode: true
style: form
- in: query
- name: contact_role
+ name: description__iew
schema:
type: array
items:
- type: integer
- description: Contact Role
+ type: string
explode: true
style: form
- in: query
- name: contact_role__n
+ name: description__isw
schema:
type: array
items:
- type: integer
- description: Contact Role
+ type: string
explode: true
style: form
- in: query
- name: created
+ name: description__n
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__empty
+ name: description__nic
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__gt
+ name: description__nie
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__gte
+ name: description__niew
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__lt
+ name: description__nisw
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: created__lte
+ name: encapsulation
schema:
type: array
items:
type: string
- format: date-time
+ x-spec-enum-id: 5fc36bb745852746
explode: true
style: form
- in: query
- name: created__n
+ name: encapsulation__n
schema:
type: array
items:
type: string
- format: date-time
+ x-spec-enum-id: 5fc36bb745852746
explode: true
style: form
- in: query
- name: created_by_request
- schema:
- type: string
- format: uuid
- - in: query
- name: device
+ name: group
schema:
type: array
items:
type: string
- nullable: true
- description: Device
+ description: Tunnel group (slug)
explode: true
style: form
- in: query
- name: device__n
+ name: group__n
schema:
type: array
items:
type: string
- nullable: true
- description: Device
+ description: Tunnel group (slug)
explode: true
style: form
- in: query
- name: device_id
+ name: group_id
schema:
type: array
items:
type: integer
nullable: true
- description: Device (ID)
+ description: Tunnel group (ID)
explode: true
style: form
- in: query
- name: device_id__n
+ name: group_id__n
schema:
type: array
items:
type: integer
nullable: true
- description: Device (ID)
+ description: Tunnel group (ID)
explode: true
style: form
- in: query
- name: disk
+ name: id
schema:
type: array
items:
@@ -79629,29 +90536,11 @@ paths:
explode: true
style: form
- in: query
- name: disk__empty
+ name: id__empty
schema:
type: boolean
- in: query
- name: disk__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: disk__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: disk__lt
+ name: id__gt
schema:
type: array
items:
@@ -79660,7 +90549,7 @@ paths:
explode: true
style: form
- in: query
- name: disk__lte
+ name: id__gte
schema:
type: array
items:
@@ -79669,7 +90558,7 @@ paths:
explode: true
style: form
- in: query
- name: disk__n
+ name: id__lt
schema:
type: array
items:
@@ -79678,12 +90567,7 @@ paths:
explode: true
style: form
- in: query
- name: has_primary_ip
- schema:
- type: boolean
- description: Has a primary IP
- - in: query
- name: id
+ name: id__lte
schema:
type: array
items:
@@ -79692,11 +90576,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:
@@ -79705,39 +90585,41 @@ paths:
explode: true
style: form
- in: query
- name: id__gte
+ name: ipsec_profile
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ description: IPSec profile (name)
explode: true
style: form
- in: query
- name: id__lt
+ name: ipsec_profile__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ description: IPSec profile (name)
explode: true
style: form
- in: query
- name: id__lte
+ name: ipsec_profile_id
schema:
type: array
items:
type: integer
- format: int32
+ nullable: true
+ description: IPSec profile (ID)
explode: true
style: form
- in: query
- name: id__n
+ name: ipsec_profile_id__n
schema:
type: array
items:
type: integer
- format: int32
+ nullable: true
+ description: IPSec profile (ID)
explode: true
style: form
- in: query
@@ -79809,149 +90691,6 @@ paths:
description: Number of results to return per page.
schema:
type: integer
- - in: query
- name: local_context_data
- schema:
- type: boolean
- description: Has local config context data
- - in: query
- name: mac_address
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: mac_address__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: mac_address__ie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: mac_address__iew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: mac_address__isw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: mac_address__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: mac_address__nic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: mac_address__nie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: mac_address__niew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: mac_address__nisw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: memory
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: memory__empty
- schema:
- type: boolean
- - in: query
- name: memory__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: memory__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: memory__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: memory__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: memory__n
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- in: query
name: modified_by_request
schema:
@@ -80053,203 +90792,18 @@ paths:
description: Which field to use when ordering the results.
schema:
type: string
- - in: query
- name: platform
- schema:
- type: array
- items:
- type: string
- description: Platform (slug)
- explode: true
- style: form
- - in: query
- name: platform__n
- schema:
- type: array
- items:
- type: string
- description: Platform (slug)
- explode: true
- style: form
- - in: query
- name: platform_id
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Platform (ID)
- explode: true
- style: form
- - in: query
- name: platform_id__n
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Platform (ID)
- explode: true
- style: form
- in: query
name: q
schema:
type: string
description: Search
- - in: query
- name: region
- schema:
- type: array
- items:
- type: integer
- description: Region (slug)
- explode: true
- style: form
- - in: query
- name: region__n
- schema:
- type: array
- items:
- type: integer
- description: Region (slug)
- explode: true
- style: form
- - in: query
- name: region_id
- schema:
- type: array
- items:
- type: integer
- description: Region (ID)
- explode: true
- style: form
- - in: query
- name: region_id__n
- schema:
- type: array
- items:
- type: integer
- description: Region (ID)
- explode: true
- style: form
- - in: query
- name: role
- schema:
- type: array
- items:
- type: string
- description: Role (slug)
- explode: true
- style: form
- - in: query
- name: role__n
- schema:
- type: array
- items:
- type: string
- description: Role (slug)
- explode: true
- style: form
- - in: query
- name: role_id
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Role (ID)
- explode: true
- style: form
- - in: query
- name: role_id__n
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Role (ID)
- explode: true
- style: form
- - in: query
- name: site
- schema:
- type: array
- items:
- type: string
- description: Site (slug)
- explode: true
- style: form
- - in: query
- name: site__n
- schema:
- type: array
- items:
- type: string
- description: Site (slug)
- explode: true
- style: form
- - in: query
- name: site_group
- schema:
- type: array
- items:
- type: integer
- description: Site group (slug)
- explode: true
- style: form
- - in: query
- name: site_group__n
- schema:
- type: array
- items:
- type: integer
- description: Site group (slug)
- explode: true
- style: form
- - in: query
- name: site_group_id
- schema:
- type: array
- items:
- type: integer
- description: Site group (ID)
- explode: true
- style: form
- - in: query
- name: site_group_id__n
- schema:
- type: array
- items:
- type: integer
- description: Site group (ID)
- explode: true
- style: form
- - in: query
- name: site_id
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Site (ID)
- explode: true
- style: form
- - in: query
- name: site_id__n
- schema:
- type: array
- items:
- type: integer
- nullable: true
- description: Site (ID)
- explode: true
- style: form
- in: query
name: status
schema:
type: array
items:
type: string
+ x-spec-enum-id: 0d65f7912cba74aa
explode: true
style: form
- in: query
@@ -80258,6 +90812,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 0d65f7912cba74aa
explode: true
style: form
- in: query
@@ -80351,70 +90906,70 @@ paths:
explode: true
style: form
- in: query
- name: updated_by_request
- schema:
- type: string
- format: uuid
- - in: query
- name: vcpus
+ name: tunnel_id
schema:
type: array
items:
- type: number
- format: double
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: vcpus__empty
+ name: tunnel_id__empty
schema:
type: boolean
- in: query
- name: vcpus__gt
+ name: tunnel_id__gt
schema:
type: array
items:
- type: number
- format: double
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: vcpus__gte
+ name: tunnel_id__gte
schema:
type: array
items:
- type: number
- format: double
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: vcpus__lt
+ name: tunnel_id__lt
schema:
type: array
items:
- type: number
- format: double
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: vcpus__lte
+ name: tunnel_id__lte
schema:
type: array
items:
- type: number
- format: double
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: vcpus__n
+ name: tunnel_id__n
schema:
type: array
items:
- type: number
- format: double
+ type: integer
+ format: int32
explode: true
style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -80423,21 +90978,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedVirtualMachineWithConfigContextList'
+ $ref: '#/components/schemas/PaginatedTunnelList'
description: ''
post:
- operationId: virtualization_virtual_machines_create
- description: Post a list of virtual machine objects.
+ operationId: vpn_tunnels_create
+ description: Post a list of tunnel objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest'
+ $ref: '#/components/schemas/WritableTunnelRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest'
+ $ref: '#/components/schemas/WritableTunnelRequest'
required: true
security:
- cookieAuth: []
@@ -80447,25 +91002,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VirtualMachineWithConfigContext'
+ $ref: '#/components/schemas/Tunnel'
description: ''
put:
- operationId: virtualization_virtual_machines_bulk_update
- description: Put a list of virtual machine objects.
+ operationId: vpn_tunnels_bulk_update
+ description: Put a list of tunnel objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest'
+ $ref: '#/components/schemas/TunnelRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest'
+ $ref: '#/components/schemas/TunnelRequest'
required: true
security:
- cookieAuth: []
@@ -80477,25 +91032,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/VirtualMachineWithConfigContext'
+ $ref: '#/components/schemas/Tunnel'
description: ''
patch:
- operationId: virtualization_virtual_machines_bulk_partial_update
- description: Patch a list of virtual machine objects.
+ operationId: vpn_tunnels_bulk_partial_update
+ description: Patch a list of tunnel objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest'
+ $ref: '#/components/schemas/TunnelRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest'
+ $ref: '#/components/schemas/TunnelRequest'
required: true
security:
- cookieAuth: []
@@ -80507,25 +91062,25 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/VirtualMachineWithConfigContext'
+ $ref: '#/components/schemas/Tunnel'
description: ''
delete:
- operationId: virtualization_virtual_machines_bulk_destroy
- description: Delete a list of virtual machine objects.
+ operationId: vpn_tunnels_bulk_destroy
+ description: Delete a list of tunnel objects.
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
type: array
items:
- $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest'
+ $ref: '#/components/schemas/TunnelRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest'
+ $ref: '#/components/schemas/TunnelRequest'
required: true
security:
- cookieAuth: []
@@ -80533,19 +91088,19 @@ paths:
responses:
'204':
description: No response body
- /api/virtualization/virtual-machines/{id}/:
+ /api/vpn/tunnels/{id}/:
get:
- operationId: virtualization_virtual_machines_retrieve
- description: Get a virtual machine object.
+ operationId: vpn_tunnels_retrieve
+ description: Get a tunnel object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this virtual machine.
+ description: A unique integer value identifying this tunnel.
required: true
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -80554,28 +91109,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VirtualMachineWithConfigContext'
+ $ref: '#/components/schemas/Tunnel'
description: ''
put:
- operationId: virtualization_virtual_machines_update
- description: Put a virtual machine object.
+ operationId: vpn_tunnels_update
+ description: Put a tunnel object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this virtual machine.
+ description: A unique integer value identifying this tunnel.
required: true
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest'
+ $ref: '#/components/schemas/WritableTunnelRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest'
+ $ref: '#/components/schemas/WritableTunnelRequest'
required: true
security:
- cookieAuth: []
@@ -80585,28 +91140,28 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VirtualMachineWithConfigContext'
+ $ref: '#/components/schemas/Tunnel'
description: ''
patch:
- operationId: virtualization_virtual_machines_partial_update
- description: Patch a virtual machine object.
+ operationId: vpn_tunnels_partial_update
+ description: Patch a tunnel object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this virtual machine.
+ description: A unique integer value identifying this tunnel.
required: true
tags:
- - virtualization
+ - vpn
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest'
+ $ref: '#/components/schemas/PatchedWritableTunnelRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest'
+ $ref: '#/components/schemas/PatchedWritableTunnelRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -80615,20 +91170,20 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/VirtualMachineWithConfigContext'
+ $ref: '#/components/schemas/Tunnel'
description: ''
delete:
- operationId: virtualization_virtual_machines_destroy
- description: Delete a virtual machine object.
+ operationId: vpn_tunnels_destroy
+ description: Delete a tunnel object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this virtual machine.
+ description: A unique integer value identifying this tunnel.
required: true
tags:
- - virtualization
+ - vpn
security:
- cookieAuth: []
- tokenAuth: []
@@ -81397,6 +91952,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 8fdaefa727c26fdc
title: Authentication cipher
explode: true
style: form
@@ -81406,6 +91962,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 8fdaefa727c26fdc
title: Authentication cipher
explode: true
style: form
@@ -81499,6 +92056,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: a2043acb899b3954
title: Authentication type
explode: true
style: form
@@ -81508,6 +92066,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: a2043acb899b3954
title: Authentication type
explode: true
style: form
@@ -81934,6 +92493,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 412ebdca597f609e
explode: true
style: form
- in: query
@@ -81942,6 +92502,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 412ebdca597f609e
explode: true
style: form
- in: query
@@ -82290,6 +92851,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 8fdaefa727c26fdc
title: Authentication cipher
explode: true
style: form
@@ -82299,6 +92861,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: 8fdaefa727c26fdc
title: Authentication cipher
explode: true
style: form
@@ -82392,6 +92955,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: a2043acb899b3954
title: Authentication type
explode: true
style: form
@@ -82401,6 +92965,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: a2043acb899b3954
title: Authentication type
explode: true
style: form
@@ -82921,6 +93486,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: fbc2f302c08be50d
explode: true
style: form
- in: query
@@ -82929,6 +93495,7 @@ paths:
type: array
items:
type: string
+ x-spec-enum-id: fbc2f302c08be50d
explode: true
style: form
- in: query
@@ -83489,6 +94056,7 @@ components:
description: |-
* `4` - IPv4
* `6` - IPv6
+ x-spec-enum-id: d72003fd1af3603d
label:
type: string
enum:
@@ -83657,8 +94225,6 @@ components:
minimum: 0
format: int64
object:
- type: object
- additionalProperties: {}
nullable: true
readOnly: true
user:
@@ -83760,6 +94326,7 @@ components:
* `smf-os2` - Singlemode Fiber (OS2)
* `aoc` - Active Optical Cabling (AOC)
* `power` - Power
+ x-spec-enum-id: e671018e64196f8d
a_terminations:
type: array
items:
@@ -83781,6 +94348,7 @@ components:
* `connected` - Connected
* `planned` - Planned
* `decommissioning` - Decommissioning
+ x-spec-enum-id: fbc2f302c08be50d
label:
type: string
enum:
@@ -83818,7 +94386,6 @@ components:
- ft
- in
- ''
- - null
type: string
description: |-
* `km` - Kilometers
@@ -83827,6 +94394,7 @@ components:
* `mi` - Miles
* `ft` - Feet
* `in` - Inches
+ x-spec-enum-id: e64ce3a2c5997172
label:
type: string
enum:
@@ -83920,6 +94488,7 @@ components:
* `smf-os2` - Singlemode Fiber (OS2)
* `aoc` - Active Optical Cabling (AOC)
* `power` - Power
+ x-spec-enum-id: e671018e64196f8d
a_terminations:
type: array
items:
@@ -83938,6 +94507,7 @@ components:
* `connected` - Connected
* `planned` - Planned
* `decommissioning` - Decommissioning
+ x-spec-enum-id: fbc2f302c08be50d
tenant:
allOf:
- $ref: '#/components/schemas/NestedTenantRequest'
@@ -83966,7 +94536,6 @@ components:
- ft
- in
- ''
- - null
type: string
description: |-
* `km` - Kilometers
@@ -83975,6 +94544,7 @@ components:
* `mi` - Miles
* `ft` - Feet
* `in` - Inches
+ x-spec-enum-id: e64ce3a2c5997172
nullable: true
description:
type: string
@@ -84012,6 +94582,7 @@ components:
description: |-
* `A` - A
* `B` - B
+ x-spec-enum-id: 1db84f9b93b261c8
title: End
termination_type:
type: string
@@ -84021,8 +94592,6 @@ components:
minimum: 0
format: int64
termination:
- type: object
- additionalProperties: {}
nullable: true
readOnly: true
created:
@@ -84060,6 +94629,7 @@ components:
description: |-
* `A` - A
* `B` - B
+ x-spec-enum-id: 1db84f9b93b261c8
title: End
termination_type:
type: string
@@ -84119,6 +94689,7 @@ components:
* `offline` - Offline
* `deprovisioning` - Deprovisioning
* `decommissioned` - Decommissioned
+ x-spec-enum-id: 63c838134a022200
label:
type: string
enum:
@@ -84319,6 +94890,7 @@ components:
* `offline` - Offline
* `deprovisioning` - Deprovisioning
* `decommissioned` - Decommissioned
+ x-spec-enum-id: 63c838134a022200
tenant:
allOf:
- $ref: '#/components/schemas/NestedTenantRequest'
@@ -84380,6 +94952,7 @@ components:
description: |-
* `A` - A
* `Z` - Z
+ x-spec-enum-id: 95b8fcc737f355d0
title: Termination
site:
allOf:
@@ -84483,6 +95056,7 @@ components:
description: |-
* `A` - A
* `Z` - Z
+ x-spec-enum-id: 95b8fcc737f355d0
title: Termination
site:
allOf:
@@ -84553,6 +95127,10 @@ components:
type: string
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
+ color:
+ type: string
+ pattern: ^[0-9a-f]{6}$
+ maxLength: 6
description:
type: string
maxLength: 200
@@ -84598,6 +95176,10 @@ components:
minLength: 1
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
+ color:
+ type: string
+ pattern: ^[0-9a-f]{6}$
+ maxLength: 6
description:
type: string
maxLength: 200
@@ -84651,6 +95233,7 @@ components:
* `active` - Active
* `decommissioning` - Decommissioning
* `offline` - Offline
+ x-spec-enum-id: 79d20a734d0eecbb
label:
type: string
enum:
@@ -84812,6 +95395,7 @@ components:
* `active` - Active
* `decommissioning` - Decommissioning
* `offline` - Offline
+ x-spec-enum-id: 79d20a734d0eecbb
tenant:
allOf:
- $ref: '#/components/schemas/NestedTenantRequest'
@@ -85044,9 +95628,7 @@ components:
readOnly: true
nullable: true
title: Date synced
- data:
- type: object
- additionalProperties: {}
+ data: {}
created:
type: string
format: date-time
@@ -85142,9 +95724,7 @@ components:
minLength: 1
data_source:
$ref: '#/components/schemas/NestedDataSourceRequest'
- data:
- type: object
- additionalProperties: {}
+ data: {}
required:
- data
- name
@@ -85171,8 +95751,6 @@ components:
type: string
maxLength: 200
environment_params:
- type: object
- additionalProperties: {}
nullable: true
title: Environment parameters
description: Any additional
@@ -85187,9 +95765,7 @@ components:
readOnly: true
description: Path to remote file (relative to data source root)
data_file:
- allOf:
- - $ref: '#/components/schemas/NestedDataFile'
- readOnly: true
+ $ref: '#/components/schemas/NestedDataFile'
data_synced:
type: string
format: date-time
@@ -85212,7 +95788,6 @@ components:
nullable: true
required:
- created
- - data_file
- data_path
- data_synced
- display
@@ -85235,8 +95810,6 @@ components:
type: string
maxLength: 200
environment_params:
- type: object
- additionalProperties: {}
nullable: true
title: Environment parameters
description: Any additional
@@ -85319,6 +95892,7 @@ components:
* `usb-micro-b` - USB Micro B
* `usb-micro-ab` - USB Micro AB
* `other` - Other
+ x-spec-enum-id: c5f7197b7211818a
label:
type: string
enum:
@@ -85350,7 +95924,6 @@ components:
- 38400
- 57600
- 115200
- - null
type: integer
description: |-
* `1200` - 1200 bps
@@ -85361,6 +95934,7 @@ components:
* `38400` - 38.4 kbps
* `57600` - 57.6 kbps
* `115200` - 115.2 kbps
+ x-spec-enum-id: ab6d9635c131a378
label:
type: string
enum:
@@ -85495,6 +96069,7 @@ components:
* `usb-micro-b` - USB Micro B
* `usb-micro-ab` - USB Micro AB
* `other` - Other
+ x-spec-enum-id: c5f7197b7211818a
speed:
enum:
- 1200
@@ -85505,7 +96080,6 @@ components:
- 38400
- 57600
- 115200
- - null
type: integer
description: |-
* `1200` - 1200 bps
@@ -85516,6 +96090,7 @@ components:
* `38400` - 38.4 kbps
* `57600` - 57.6 kbps
* `115200` - 115.2 kbps
+ x-spec-enum-id: ab6d9635c131a378
nullable: true
description:
type: string
@@ -85604,6 +96179,7 @@ components:
* `usb-micro-b` - USB Micro B
* `usb-micro-ab` - USB Micro AB
* `other` - Other
+ x-spec-enum-id: c5f7197b7211818a
label:
type: string
enum:
@@ -85701,6 +96277,7 @@ components:
* `usb-micro-b` - USB Micro B
* `usb-micro-ab` - USB Micro AB
* `other` - Other
+ x-spec-enum-id: c5f7197b7211818a
description:
type: string
maxLength: 200
@@ -85771,6 +96348,7 @@ components:
* `usb-micro-b` - USB Micro B
* `usb-micro-ab` - USB Micro AB
* `other` - Other
+ x-spec-enum-id: c5f7197b7211818a
label:
type: string
enum:
@@ -85802,7 +96380,6 @@ components:
- 38400
- 57600
- 115200
- - null
type: integer
description: |-
* `1200` - 1200 bps
@@ -85813,6 +96390,7 @@ components:
* `38400` - 38.4 kbps
* `57600` - 57.6 kbps
* `115200` - 115.2 kbps
+ x-spec-enum-id: ab6d9635c131a378
label:
type: string
enum:
@@ -85947,6 +96525,7 @@ components:
* `usb-micro-b` - USB Micro B
* `usb-micro-ab` - USB Micro AB
* `other` - Other
+ x-spec-enum-id: c5f7197b7211818a
speed:
enum:
- 1200
@@ -85957,7 +96536,6 @@ components:
- 38400
- 57600
- 115200
- - null
type: integer
description: |-
* `1200` - 1200 bps
@@ -85968,6 +96546,7 @@ components:
* `38400` - 38.4 kbps
* `57600` - 57.6 kbps
* `115200` - 115.2 kbps
+ x-spec-enum-id: ab6d9635c131a378
nullable: true
description:
type: string
@@ -86056,6 +96635,7 @@ components:
* `usb-micro-b` - USB Micro B
* `usb-micro-ab` - USB Micro AB
* `other` - Other
+ x-spec-enum-id: c5f7197b7211818a
label:
type: string
enum:
@@ -86153,6 +96733,7 @@ components:
* `usb-micro-b` - USB Micro B
* `usb-micro-ab` - USB Micro AB
* `other` - Other
+ x-spec-enum-id: c5f7197b7211818a
description:
type: string
maxLength: 200
@@ -86272,6 +96853,7 @@ components:
* `secondary` - Secondary
* `tertiary` - Tertiary
* `inactive` - Inactive
+ x-spec-enum-id: ef3a31644cec7524
label:
type: string
enum:
@@ -86283,6 +96865,9 @@ components:
type: array
items:
$ref: '#/components/schemas/NestedTag'
+ custom_fields:
+ type: object
+ additionalProperties: {}
created:
type: string
format: date-time
@@ -86333,10 +96918,14 @@ components:
* `secondary` - Secondary
* `tertiary` - Tertiary
* `inactive` - Inactive
+ x-spec-enum-id: ef3a31644cec7524
tags:
type: array
items:
$ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
required:
- contact
- content_type
@@ -86630,6 +97219,7 @@ components:
* `multiselect` - Multiple selection
* `object` - Object
* `multiobject` - Multiple objects
+ x-spec-enum-id: 22e3a64138d10046
label:
type: string
enum:
@@ -86691,40 +97281,57 @@ components:
* `disabled` - Disabled
* `loose` - Loose
* `exact` - Exact
+ x-spec-enum-id: a958350ae21c10ee
label:
type: string
enum:
- Disabled
- Loose
- Exact
- ui_visibility:
+ ui_visible:
type: object
properties:
value:
enum:
- - read-write
- - read-only
+ - always
+ - if-set
- hidden
- - hidden-ifunset
type: string
description: |-
- * `read-write` - Read/write
- * `read-only` - Read-only
+ * `always` - Always
+ * `if-set` - If set
* `hidden` - Hidden
- * `hidden-ifunset` - Hidden (if unset)
+ x-spec-enum-id: cd2cf94af56de747
label:
type: string
enum:
- - Read/write
- - Read-only
+ - Always
+ - If set
+ - Hidden
+ ui_editable:
+ type: object
+ properties:
+ value:
+ enum:
+ - 'yes'
+ - 'no'
+ - hidden
+ type: string
+ description: |-
+ * `yes` - Yes
+ * `no` - No
+ * `hidden` - Hidden
+ x-spec-enum-id: 1065673147e26bb5
+ label:
+ type: string
+ enum:
+ - 'Yes'
+ - 'No'
- Hidden
- - Hidden (if unset)
is_cloneable:
type: boolean
description: Replicate this value when cloning objects
default:
- type: object
- additionalProperties: {}
nullable: true
description: Default value for the field (must be a JSON value). Encapsulate
strings with double quotes (e.g. "Foo").
@@ -86736,15 +97343,17 @@ components:
description: Fields with higher weights appear lower in a form.
validation_minimum:
type: integer
- maximum: 2147483647
- minimum: -2147483648
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
nullable: true
title: Minimum value
description: Minimum allowed value (for numeric fields)
validation_maximum:
type: integer
- maximum: 2147483647
- minimum: -2147483648
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
nullable: true
title: Maximum value
description: Maximum allowed value (for numeric fields)
@@ -86811,6 +97420,7 @@ components:
* `IATA` - IATA (Airport codes)
* `ISO_3166` - ISO 3166 (Country codes)
* `UN_LOCODE` - UN/LOCODE (Location codes)
+ x-spec-enum-id: cf0efb5195f85007
label:
type: string
enum:
@@ -86874,6 +97484,7 @@ components:
* `IATA` - IATA (Airport codes)
* `ISO_3166` - ISO 3166 (Country codes)
* `UN_LOCODE` - UN/LOCODE (Location codes)
+ x-spec-enum-id: cf0efb5195f85007
extra_choices:
type: array
items:
@@ -86930,6 +97541,7 @@ components:
* `multiselect` - Multiple selection
* `object` - Object
* `multiobject` - Multiple objects
+ x-spec-enum-id: 22e3a64138d10046
object_type:
type: string
name:
@@ -86970,24 +97582,33 @@ components:
* `disabled` - Disabled
* `loose` - Loose
* `exact` - Exact
- ui_visibility:
+ x-spec-enum-id: a958350ae21c10ee
+ ui_visible:
enum:
- - read-write
- - read-only
+ - always
+ - if-set
- hidden
- - hidden-ifunset
type: string
description: |-
- * `read-write` - Read/write
- * `read-only` - Read-only
+ * `always` - Always
+ * `if-set` - If set
* `hidden` - Hidden
- * `hidden-ifunset` - Hidden (if unset)
+ x-spec-enum-id: cd2cf94af56de747
+ ui_editable:
+ enum:
+ - 'yes'
+ - 'no'
+ - hidden
+ type: string
+ description: |-
+ * `yes` - Yes
+ * `no` - No
+ * `hidden` - Hidden
+ x-spec-enum-id: 1065673147e26bb5
is_cloneable:
type: boolean
description: Replicate this value when cloning objects
default:
- type: object
- additionalProperties: {}
nullable: true
description: Default value for the field (must be a JSON value). Encapsulate
strings with double quotes (e.g. "Foo").
@@ -86999,15 +97620,17 @@ components:
description: Fields with higher weights appear lower in a form.
validation_minimum:
type: integer
- maximum: 2147483647
- minimum: -2147483648
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
nullable: true
title: Minimum value
description: Minimum allowed value (for numeric fields)
validation_maximum:
type: integer
- maximum: 2147483647
- minimum: -2147483648
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
nullable: true
title: Maximum value
description: Maximum allowed value (for numeric fields)
@@ -87080,6 +97703,7 @@ components:
- white
- ghost-dark
type: string
+ x-spec-enum-id: 9378cdf56abee54a
description: |-
The class of the first link in a group will be used for the dropdown button
@@ -87171,6 +97795,7 @@ components:
- white
- ghost-dark
type: string
+ x-spec-enum-id: 9378cdf56abee54a
description: |-
The class of the first link in a group will be used for the dropdown button
@@ -87200,21 +97825,13 @@ components:
Dashboard:
type: object
properties:
- layout:
- type: object
- additionalProperties: {}
- config:
- type: object
- additionalProperties: {}
+ layout: {}
+ config: {}
DashboardRequest:
type: object
properties:
- layout:
- type: object
- additionalProperties: {}
- config:
- type: object
- additionalProperties: {}
+ layout: {}
+ config: {}
DataFile:
type: object
description: Adds support for custom fields and tags.
@@ -87282,14 +97899,16 @@ components:
- local
- git
- amazon-s3
- type: string
description: |-
+ * `None` - ---------
* `local` - Local
* `git` - Git
* `amazon-s3` - Amazon S3
+ x-spec-enum-id: 570db3f2d4e98ccf
label:
type: string
enum:
+ - '---------'
- Local
- Git
- Amazon S3
@@ -87316,6 +97935,7 @@ components:
* `syncing` - Syncing
* `completed` - Completed
* `failed` - Failed
+ x-spec-enum-id: 6dfb2220617590c8
label:
type: string
enum:
@@ -87331,8 +97951,6 @@ components:
comments:
type: string
parameters:
- type: object
- additionalProperties: {}
nullable: true
ignore_rules:
type: string
@@ -87374,11 +97992,12 @@ components:
- local
- git
- amazon-s3
- type: string
description: |-
+ * `None` - ---------
* `local` - Local
* `git` - Git
* `amazon-s3` - Amazon S3
+ x-spec-enum-id: 570db3f2d4e98ccf
source_url:
type: string
minLength: 1
@@ -87392,8 +98011,6 @@ components:
comments:
type: string
parameters:
- type: object
- additionalProperties: {}
nullable: true
ignore_rules:
type: string
@@ -87477,6 +98094,7 @@ components:
description: |-
* `front` - Front
* `rear` - Rear
+ x-spec-enum-id: d2fb9b3f75158b83
label:
type: string
enum:
@@ -87525,6 +98143,7 @@ components:
* `failed` - Failed
* `inventory` - Inventory
* `decommissioning` - Decommissioning
+ x-spec-enum-id: 8d8971779f16ee18
label:
type: string
enum:
@@ -87557,6 +98176,7 @@ components:
* `side-to-rear` - Side to rear
* `passive` - Passive
* `mixed` - Mixed
+ x-spec-enum-id: 58e389e240a5e53d
label:
type: string
enum:
@@ -87612,8 +98232,6 @@ components:
- $ref: '#/components/schemas/NestedConfigTemplate'
nullable: true
local_context_data:
- type: object
- additionalProperties: {}
nullable: true
description: Local config context data takes precedence over source contexts
in the final rendered config context
@@ -87989,9 +98607,12 @@ components:
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
+ description: Device consumes both front and rear rack faces.
subdevice_role:
type: object
properties:
@@ -88000,11 +98621,11 @@ components:
- parent
- child
- ''
- - null
type: string
description: |-
* `parent` - Parent
* `child` - Child
+ x-spec-enum-id: d10d91f690a856c2
label:
type: string
enum:
@@ -88024,7 +98645,6 @@ components:
- passive
- mixed
- ''
- - null
type: string
description: |-
* `front-to-rear` - Front to rear
@@ -88034,6 +98654,7 @@ components:
* `side-to-rear` - Side to rear
* `passive` - Passive
* `mixed` - Mixed
+ x-spec-enum-id: 58e389e240a5e53d
label:
type: string
enum:
@@ -88063,13 +98684,13 @@ components:
- lb
- oz
- ''
- - null
type: string
description: |-
* `kg` - Kilograms
* `g` - Grams
* `lb` - Pounds
* `oz` - Ounces
+ x-spec-enum-id: 7c1876f422815884
label:
type: string
enum:
@@ -88190,19 +98811,22 @@ components:
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
+ description: Device consumes both front and rear rack faces.
subdevice_role:
enum:
- parent
- child
- ''
- - null
type: string
description: |-
* `parent` - Parent
* `child` - Child
+ x-spec-enum-id: d10d91f690a856c2
nullable: true
airflow:
enum:
@@ -88214,7 +98838,6 @@ components:
- passive
- mixed
- ''
- - null
type: string
description: |-
* `front-to-rear` - Front to rear
@@ -88224,6 +98847,7 @@ components:
* `side-to-rear` - Side to rear
* `passive` - Passive
* `mixed` - Mixed
+ x-spec-enum-id: 58e389e240a5e53d
nullable: true
weight:
type: number
@@ -88240,13 +98864,13 @@ components:
- lb
- oz
- ''
- - null
type: string
description: |-
* `kg` - Kilograms
* `g` - Grams
* `lb` - Pounds
* `oz` - Ounces
+ x-spec-enum-id: 7c1876f422815884
nullable: true
front_image:
type: string
@@ -88345,6 +98969,7 @@ components:
description: |-
* `front` - Front
* `rear` - Rear
+ x-spec-enum-id: d2fb9b3f75158b83
label:
type: string
enum:
@@ -88393,6 +99018,7 @@ components:
* `failed` - Failed
* `inventory` - Inventory
* `decommissioning` - Decommissioning
+ x-spec-enum-id: 8d8971779f16ee18
label:
type: string
enum:
@@ -88425,6 +99051,7 @@ components:
* `side-to-rear` - Side to rear
* `passive` - Passive
* `mixed` - Mixed
+ x-spec-enum-id: 58e389e240a5e53d
label:
type: string
enum:
@@ -88480,13 +99107,9 @@ components:
- $ref: '#/components/schemas/NestedConfigTemplate'
nullable: true
config_context:
- type: object
- additionalProperties: {}
nullable: true
readOnly: true
local_context_data:
- type: object
- additionalProperties: {}
nullable: true
description: Local config context data takes precedence over source contexts
in the final rendered config context
@@ -88617,6 +99240,7 @@ components:
description: |-
* `front` - Front
* `rear` - Rear
+ x-spec-enum-id: d2fb9b3f75158b83
latitude:
type: number
format: double
@@ -88653,6 +99277,7 @@ components:
* `failed` - Failed
* `inventory` - Inventory
* `decommissioning` - Decommissioning
+ x-spec-enum-id: 8d8971779f16ee18
airflow:
enum:
- front-to-rear
@@ -88672,6 +99297,7 @@ components:
* `side-to-rear` - Side to rear
* `passive` - Passive
* `mixed` - Mixed
+ x-spec-enum-id: 58e389e240a5e53d
primary_ip4:
allOf:
- $ref: '#/components/schemas/NestedIPAddressRequest'
@@ -88713,8 +99339,6 @@ components:
- $ref: '#/components/schemas/NestedConfigTemplateRequest'
nullable: true
local_context_data:
- type: object
- additionalProperties: {}
nullable: true
description: Local config context data takes precedence over source contexts
in the final rendered config context
@@ -88729,6 +99353,183 @@ components:
- device_type
- role
- site
+ EventRule:
+ 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
+ content_types:
+ type: array
+ items:
+ type: string
+ name:
+ type: string
+ maxLength: 150
+ type_create:
+ type: boolean
+ title: On create
+ description: Triggers when a matching object is created.
+ type_update:
+ type: boolean
+ title: On update
+ description: Triggers when a matching object is updated.
+ type_delete:
+ type: boolean
+ title: On delete
+ description: Triggers when a matching object is deleted.
+ type_job_start:
+ type: boolean
+ title: On job start
+ description: Triggers when a job for a matching object is started.
+ type_job_end:
+ type: boolean
+ title: On job end
+ description: Triggers when a job for a matching object terminates.
+ enabled:
+ type: boolean
+ conditions:
+ nullable: true
+ description: A set of conditions which determine whether the event will
+ be generated.
+ action_type:
+ type: object
+ properties:
+ value:
+ enum:
+ - webhook
+ - script
+ type: string
+ description: |-
+ * `webhook` - Webhook
+ * `script` - Script
+ x-spec-enum-id: a08300d86473de6e
+ label:
+ type: string
+ enum:
+ - Webhook
+ - Script
+ action_object_type:
+ type: string
+ action_object_id:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
+ nullable: true
+ action_object:
+ type: object
+ additionalProperties: {}
+ readOnly: true
+ description:
+ type: string
+ maxLength: 200
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ 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:
+ - action_object
+ - action_object_type
+ - action_type
+ - content_types
+ - created
+ - display
+ - id
+ - last_updated
+ - name
+ - url
+ EventRuleRequest:
+ 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'
+ required:
+ - action_object_type
+ - action_type
+ - content_types
+ - name
ExportTemplate:
type: object
description: |-
@@ -88882,6 +99683,7 @@ components:
* `hsrp` - HSRP
* `glbp` - GLBP
* `other` - Other
+ x-spec-enum-id: 40dc831c689b4b78
group_id:
type: integer
maximum: 32767
@@ -88895,6 +99697,7 @@ components:
description: |-
* `plaintext` - Plaintext
* `md5` - MD5
+ x-spec-enum-id: 12b9faea3a45bf37
title: Authentication type
auth_key:
type: string
@@ -88960,8 +99763,6 @@ components:
minimum: 0
format: int64
interface:
- type: object
- additionalProperties: {}
nullable: true
readOnly: true
priority:
@@ -89036,6 +99837,7 @@ components:
* `hsrp` - HSRP
* `glbp` - GLBP
* `other` - Other
+ x-spec-enum-id: 40dc831c689b4b78
group_id:
type: integer
maximum: 32767
@@ -89049,6 +99851,7 @@ components:
description: |-
* `plaintext` - Plaintext
* `md5` - MD5
+ x-spec-enum-id: 12b9faea3a45bf37
title: Authentication type
auth_key:
type: string
@@ -89197,6 +100000,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
label:
type: string
enum:
@@ -89480,6 +100284,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -89643,6 +100448,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
label:
type: string
enum:
@@ -89847,6 +100653,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -89874,8 +100681,6 @@ components:
object_id:
type: integer
object:
- type: object
- additionalProperties: {}
nullable: true
readOnly: true
required:
@@ -89934,6 +100739,491 @@ components:
maxLength: 150
required:
- name
+ IKEPolicy:
+ 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
+ version:
+ type: object
+ properties:
+ value:
+ enum:
+ - 1
+ - 2
+ type: integer
+ description: |-
+ * `1` - IKEv1
+ * `2` - IKEv2
+ x-spec-enum-id: 00872b77916a1fde
+ label:
+ type: string
+ enum:
+ - IKEv1
+ - IKEv2
+ mode:
+ type: object
+ properties:
+ value:
+ enum:
+ - aggressive
+ - main
+ type: string
+ description: |-
+ * `aggressive` - Aggressive
+ * `main` - Main
+ x-spec-enum-id: 64c1be7bdb2548ca
+ label:
+ type: string
+ enum:
+ - Aggressive
+ - Main
+ proposals:
+ type: array
+ items:
+ type: integer
+ preshared_key:
+ type: string
+ title: Pre-shared key
+ 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
+ - mode
+ - name
+ - url
+ - version
+ IKEPolicyRequest:
+ 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
+ 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: {}
+ required:
+ - mode
+ - name
+ - version
+ IKEProposal:
+ 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
+ authentication_method:
+ type: object
+ properties:
+ value:
+ 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
+ label:
+ type: string
+ enum:
+ - Pre-shared keys
+ - Certificates
+ - RSA signatures
+ - DSA signatures
+ encryption_algorithm:
+ type: object
+ properties:
+ value:
+ enum:
+ - aes-128-cbc
+ - aes-128-gcm
+ - aes-192-cbc
+ - aes-192-gcm
+ - aes-256-cbc
+ - aes-256-gcm
+ - 3des-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` - DES
+ x-spec-enum-id: 40730b5af1561c52
+ label:
+ type: string
+ enum:
+ - 128-bit AES (CBC)
+ - 128-bit AES (GCM)
+ - 192-bit AES (CBC)
+ - 192-bit AES (GCM)
+ - 256-bit AES (CBC)
+ - 256-bit AES (GCM)
+ - DES
+ authentication_algorithm:
+ type: object
+ properties:
+ value:
+ 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
+ label:
+ type: string
+ enum:
+ - SHA-1 HMAC
+ - SHA-256 HMAC
+ - SHA-384 HMAC
+ - SHA-512 HMAC
+ - MD5 HMAC
+ group:
+ type: object
+ properties:
+ value:
+ enum:
+ - 1
+ - 2
+ - 5
+ - 14
+ - 16
+ - 17
+ - 18
+ - 19
+ - 20
+ - 21
+ - 22
+ - 23
+ - 24
+ - 25
+ - 26
+ - 27
+ - 28
+ - 29
+ - 30
+ - 31
+ - 32
+ - 33
+ - 34
+ type: integer
+ description: |-
+ * `1` - Group 1
+ * `2` - Group 2
+ * `5` - Group 5
+ * `14` - Group 14
+ * `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
+ x-spec-enum-id: 6bbe85c15f3d99fe
+ label:
+ type: string
+ enum:
+ - Group 1
+ - Group 2
+ - Group 5
+ - Group 14
+ - Group 16
+ - Group 17
+ - Group 18
+ - Group 19
+ - Group 20
+ - Group 21
+ - Group 22
+ - Group 23
+ - Group 24
+ - Group 25
+ - Group 26
+ - Group 27
+ - Group 28
+ - Group 29
+ - Group 30
+ - Group 31
+ - Group 32
+ - Group 33
+ - Group 34
+ 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/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:
+ - authentication_algorithm
+ - authentication_method
+ - created
+ - display
+ - encryption_algorithm
+ - group
+ - id
+ - last_updated
+ - name
+ - url
+ IKEProposalRequest:
+ 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
+ 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` - DES
+ x-spec-enum-id: 40730b5af1561c52
+ 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
+ - 16
+ - 17
+ - 18
+ - 19
+ - 20
+ - 21
+ - 22
+ - 23
+ - 24
+ - 25
+ - 26
+ - 27
+ - 28
+ - 29
+ - 30
+ - 31
+ - 32
+ - 33
+ - 34
+ type: integer
+ description: |-
+ * `1` - Group 1
+ * `2` - Group 2
+ * `5` - Group 5
+ * `14` - Group 14
+ * `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
+ x-spec-enum-id: 6bbe85c15f3d99fe
+ 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: {}
+ required:
+ - authentication_algorithm
+ - authentication_method
+ - encryption_algorithm
+ - group
+ - name
IPAddress:
type: object
description: Adds support for custom fields and tags.
@@ -89959,6 +101249,7 @@ components:
description: |-
* `4` - IPv4
* `6` - IPv6
+ x-spec-enum-id: d72003fd1af3603d
label:
type: string
enum:
@@ -89992,6 +101283,7 @@ components:
* `deprecated` - Deprecated
* `dhcp` - DHCP
* `slaac` - SLAAC
+ x-spec-enum-id: 24935cfee15bd268
label:
type: string
enum:
@@ -90024,6 +101316,7 @@ components:
* `hsrp` - HSRP
* `glbp` - GLBP
* `carp` - CARP
+ x-spec-enum-id: 10fbcb4930889b0f
label:
type: string
enum:
@@ -90045,8 +101338,6 @@ components:
format: int64
nullable: true
assigned_object:
- type: object
- additionalProperties: {}
nullable: true
readOnly: true
nat_inside:
@@ -90124,6 +101415,7 @@ components:
* `deprecated` - Deprecated
* `dhcp` - DHCP
* `slaac` - SLAAC
+ x-spec-enum-id: 24935cfee15bd268
role:
enum:
- loopback
@@ -90145,6 +101437,7 @@ components:
* `hsrp` - HSRP
* `glbp` - GLBP
* `carp` - CARP
+ x-spec-enum-id: 10fbcb4930889b0f
assigned_object_type:
type: string
nullable: true
@@ -90202,6 +101495,7 @@ components:
description: |-
* `4` - IPv4
* `6` - IPv6
+ x-spec-enum-id: d72003fd1af3603d
label:
type: string
enum:
@@ -90236,6 +101530,7 @@ components:
* `active` - Active
* `reserved` - Reserved
* `deprecated` - Deprecated
+ x-spec-enum-id: 6388dfb94ca1cc15
label:
type: string
enum:
@@ -90309,6 +101604,7 @@ components:
* `active` - Active
* `reserved` - Reserved
* `deprecated` - Deprecated
+ x-spec-enum-id: 6388dfb94ca1cc15
role:
allOf:
- $ref: '#/components/schemas/NestedRoleRequest'
@@ -90331,6 +101627,513 @@ components:
required:
- end_address
- start_address
+ IPSecPolicy:
+ 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
+ proposals:
+ type: array
+ items:
+ type: integer
+ pfs_group:
+ type: object
+ properties:
+ value:
+ enum:
+ - 1
+ - 2
+ - 5
+ - 14
+ - 16
+ - 17
+ - 18
+ - 19
+ - 20
+ - 21
+ - 22
+ - 23
+ - 24
+ - 25
+ - 26
+ - 27
+ - 28
+ - 29
+ - 30
+ - 31
+ - 32
+ - 33
+ - 34
+ type: integer
+ description: |-
+ * `1` - Group 1
+ * `2` - Group 2
+ * `5` - Group 5
+ * `14` - Group 14
+ * `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
+ x-spec-enum-id: 6bbe85c15f3d99fe
+ label:
+ type: string
+ enum:
+ - Group 1
+ - Group 2
+ - Group 5
+ - Group 14
+ - Group 16
+ - Group 17
+ - Group 18
+ - Group 19
+ - Group 20
+ - Group 21
+ - Group 22
+ - Group 23
+ - Group 24
+ - Group 25
+ - Group 26
+ - Group 27
+ - Group 28
+ - Group 29
+ - Group 30
+ - Group 31
+ - Group 32
+ - Group 33
+ - Group 34
+ 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
+ IPSecPolicyRequest:
+ 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
+ - 16
+ - 17
+ - 18
+ - 19
+ - 20
+ - 21
+ - 22
+ - 23
+ - 24
+ - 25
+ - 26
+ - 27
+ - 28
+ - 29
+ - 30
+ - 31
+ - 32
+ - 33
+ - 34
+ type: integer
+ description: |-
+ * `1` - Group 1
+ * `2` - Group 2
+ * `5` - Group 5
+ * `14` - Group 14
+ * `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
+ x-spec-enum-id: 6bbe85c15f3d99fe
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ required:
+ - name
+ IPSecProfile:
+ 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
+ mode:
+ type: object
+ properties:
+ value:
+ enum:
+ - esp
+ - ah
+ type: string
+ description: |-
+ * `esp` - ESP
+ * `ah` - AH
+ x-spec-enum-id: 1136c2cdfee84436
+ label:
+ type: string
+ enum:
+ - ESP
+ - AH
+ ike_policy:
+ $ref: '#/components/schemas/NestedIKEPolicy'
+ ipsec_policy:
+ $ref: '#/components/schemas/NestedIPSecPolicy'
+ 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
+ - ike_policy
+ - ipsec_policy
+ - last_updated
+ - mode
+ - name
+ - url
+ IPSecProfileRequest:
+ 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:
+ $ref: '#/components/schemas/NestedIKEPolicyRequest'
+ ipsec_policy:
+ $ref: '#/components/schemas/NestedIPSecPolicyRequest'
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ required:
+ - ike_policy
+ - ipsec_policy
+ - mode
+ - name
+ IPSecProposal:
+ 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
+ encryption_algorithm:
+ type: object
+ properties:
+ value:
+ enum:
+ - aes-128-cbc
+ - aes-128-gcm
+ - aes-192-cbc
+ - aes-192-gcm
+ - aes-256-cbc
+ - aes-256-gcm
+ - 3des-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` - DES
+ x-spec-enum-id: 40730b5af1561c52
+ label:
+ type: string
+ enum:
+ - 128-bit AES (CBC)
+ - 128-bit AES (GCM)
+ - 192-bit AES (CBC)
+ - 192-bit AES (GCM)
+ - 256-bit AES (CBC)
+ - 256-bit AES (GCM)
+ - DES
+ authentication_algorithm:
+ type: object
+ properties:
+ value:
+ 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
+ label:
+ type: string
+ enum:
+ - SHA-1 HMAC
+ - SHA-256 HMAC
+ - SHA-384 HMAC
+ - SHA-512 HMAC
+ - MD5 HMAC
+ 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/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:
+ - authentication_algorithm
+ - created
+ - display
+ - encryption_algorithm
+ - id
+ - last_updated
+ - name
+ - url
+ IPSecProposalRequest:
+ 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
+ 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` - DES
+ x-spec-enum-id: 40730b5af1561c52
+ 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
+ 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: {}
+ required:
+ - authentication_algorithm
+ - encryption_algorithm
+ - name
ImageAttachment:
type: object
description: |-
@@ -90355,8 +102158,6 @@ components:
minimum: 0
format: int64
parent:
- type: object
- additionalProperties: {}
nullable: true
readOnly: true
name:
@@ -90696,6 +102497,7 @@ components:
* `extreme-summitstack-256` - Extreme SummitStack-256
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other
+ x-spec-enum-id: 2787c414ccfa93fd
label:
type: string
enum:
@@ -90851,12 +102653,12 @@ components:
- full
- auto
- ''
- - null
type: string
description: |-
* `half` - Half
* `full` - Full
* `auto` - Auto
+ x-spec-enum-id: 47eab9b1a65a1e21
label:
type: string
enum:
@@ -90888,6 +102690,7 @@ components:
* `access` - Access
* `tagged` - Tagged
* `tagged-all` - Tagged (All)
+ x-spec-enum-id: 79109bd9dbb73a3c
label:
type: string
enum:
@@ -90906,6 +102709,7 @@ components:
description: |-
* `ap` - Access point
* `station` - Station
+ x-spec-enum-id: d2772dbea88b0fb1
label:
type: string
enum:
@@ -91313,6 +103117,7 @@ components:
* `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
label:
type: string
enum:
@@ -91525,6 +103330,7 @@ components:
description: |-
* `pd` - PD
* `pse` - PSE
+ x-spec-enum-id: 2f2fe6dcdc7772bd
label:
type: string
enum:
@@ -91554,6 +103360,7 @@ components:
* `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
label:
type: string
enum:
@@ -91950,6 +103757,7 @@ components:
* `extreme-summitstack-256` - Extreme SummitStack-256
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other
+ x-spec-enum-id: 2787c414ccfa93fd
enabled:
type: boolean
parent:
@@ -91984,12 +103792,12 @@ components:
- full
- auto
- ''
- - null
type: string
description: |-
* `half` - Half
* `full` - Full
* `auto` - Auto
+ x-spec-enum-id: 47eab9b1a65a1e21
nullable: true
wwn:
type: string
@@ -92012,6 +103820,7 @@ components:
* `access` - Access
* `tagged` - Tagged
* `tagged-all` - Tagged (All)
+ x-spec-enum-id: 79109bd9dbb73a3c
rf_role:
enum:
- ap
@@ -92021,6 +103830,7 @@ components:
description: |-
* `ap` - Access point
* `station` - Station
+ x-spec-enum-id: d2772dbea88b0fb1
rf_channel:
enum:
- 2.4g-1-2412-22
@@ -92420,6 +104230,7 @@ components:
* `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
poe_mode:
enum:
- pd
@@ -92429,6 +104240,7 @@ components:
description: |-
* `pd` - PD
* `pse` - PSE
+ x-spec-enum-id: 2f2fe6dcdc7772bd
poe_type:
enum:
- type1-ieee802.3af
@@ -92450,6 +104262,7 @@ components:
* `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
@@ -92776,6 +104589,7 @@ components:
* `extreme-summitstack-256` - Extreme SummitStack-256
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other
+ x-spec-enum-id: 2787c414ccfa93fd
label:
type: string
enum:
@@ -92914,11 +104728,11 @@ components:
- pd
- pse
- ''
- - null
type: string
description: |-
* `pd` - PD
* `pse` - PSE
+ x-spec-enum-id: 2f2fe6dcdc7772bd
label:
type: string
enum:
@@ -92939,7 +104753,6 @@ components:
- passive-48v-2pair
- passive-48v-4pair
- ''
- - null
type: string
description: |-
* `type1-ieee802.3af` - 802.3af (Type 1)
@@ -92950,6 +104763,7 @@ components:
* `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
label:
type: string
enum:
@@ -92970,11 +104784,11 @@ components:
- ap
- station
- ''
- - null
type: string
description: |-
* `ap` - Access point
* `station` - Station
+ x-spec-enum-id: d2772dbea88b0fb1
label:
type: string
enum:
@@ -93257,6 +105071,7 @@ components:
* `extreme-summitstack-256` - Extreme SummitStack-256
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other
+ x-spec-enum-id: 2787c414ccfa93fd
enabled:
type: boolean
mgmt_only:
@@ -93274,11 +105089,11 @@ components:
- pd
- pse
- ''
- - null
type: string
description: |-
* `pd` - PD
* `pse` - PSE
+ x-spec-enum-id: 2f2fe6dcdc7772bd
nullable: true
poe_type:
enum:
@@ -93291,7 +105106,6 @@ components:
- passive-48v-2pair
- passive-48v-4pair
- ''
- - null
type: string
description: |-
* `type1-ieee802.3af` - 802.3af (Type 1)
@@ -93302,17 +105116,18 @@ components:
* `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
nullable: true
rf_role:
enum:
- ap
- station
- ''
- - null
type: string
description: |-
* `ap` - Access point
* `station` - Station
+ x-spec-enum-id: d2772dbea88b0fb1
nullable: true
required:
- name
@@ -93380,8 +105195,6 @@ components:
format: int64
nullable: true
component:
- type: object
- additionalProperties: {}
nullable: true
readOnly: true
tags:
@@ -93621,8 +105434,6 @@ components:
format: int64
nullable: true
component:
- type: object
- additionalProperties: {}
nullable: true
readOnly: true
created:
@@ -93741,6 +105552,7 @@ components:
* `completed` - Completed
* `errored` - Errored
* `failed` - Failed
+ x-spec-enum-id: e33887d83efcc138
label:
type: string
enum:
@@ -93778,15 +105590,17 @@ components:
- $ref: '#/components/schemas/NestedUser'
readOnly: true
data:
- type: object
- additionalProperties: {}
nullable: true
+ error:
+ type: string
+ readOnly: true
job_id:
type: string
format: uuid
required:
- created
- display
+ - error
- id
- job_id
- name
@@ -93816,8 +105630,6 @@ components:
minimum: 0
format: int64
assigned_object:
- type: object
- additionalProperties: {}
nullable: true
readOnly: true
created:
@@ -93843,6 +105655,7 @@ components:
* `success` - Success
* `warning` - Warning
* `danger` - Danger
+ x-spec-enum-id: a21af280f632fa34
label:
type: string
enum:
@@ -93900,6 +105713,7 @@ components:
* `success` - Success
* `warning` - Warning
* `danger` - Danger
+ x-spec-enum-id: a21af280f632fa34
comments:
type: string
minLength: 1
@@ -93972,6 +105786,7 @@ components:
* `evp-lan` - Ethernet Virtual Private LAN
* `ep-tree` - Ethernet Private Tree
* `evp-tree` - Ethernet Virtual Private Tree
+ x-spec-enum-id: dbaa4f996ec2d110
label:
type: string
enum:
@@ -94076,6 +105891,7 @@ components:
* `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:
@@ -94127,8 +105943,6 @@ components:
minimum: 0
format: int64
assigned_object:
- type: object
- additionalProperties: {}
nullable: true
readOnly: true
tags:
@@ -94226,6 +106040,7 @@ components:
* `active` - Active
* `decommissioning` - Decommissioning
* `retired` - Retired
+ x-spec-enum-id: e363a8ddb138be50
label:
type: string
enum:
@@ -94313,6 +106128,7 @@ components:
* `active` - Active
* `decommissioning` - Decommissioning
* `retired` - Retired
+ x-spec-enum-id: e363a8ddb138be50
tenant:
allOf:
- $ref: '#/components/schemas/NestedTenantRequest'
@@ -94457,6 +106273,7 @@ components:
* `staged` - Staged
* `failed` - Failed
* `decommissioning` - Decommissioning
+ x-spec-enum-id: 2217e87d0c3efdda
label:
type: string
enum:
@@ -94780,6 +106597,7 @@ components:
* `staged` - Staged
* `failed` - Failed
* `decommissioning` - Decommissioning
+ x-spec-enum-id: 2217e87d0c3efdda
serial:
type: string
title: Serial number
@@ -94846,13 +106664,13 @@ components:
- lb
- oz
- ''
- - null
type: string
description: |-
* `kg` - Kilograms
* `g` - Grams
* `lb` - Pounds
* `oz` - Ounces
+ x-spec-enum-id: 7c1876f422815884
label:
type: string
enum:
@@ -94920,13 +106738,13 @@ components:
- lb
- oz
- ''
- - null
type: string
description: |-
* `kg` - Kilograms
* `g` - Grams
* `lb` - Pounds
* `oz` - Ounces
+ x-spec-enum-id: 7c1876f422815884
nullable: true
description:
type: string
@@ -95663,6 +107481,7 @@ components:
* `hsrp` - HSRP
* `glbp` - GLBP
* `other` - Other
+ x-spec-enum-id: 40dc831c689b4b78
group_id:
type: integer
maximum: 32767
@@ -95698,6 +107517,7 @@ components:
* `hsrp` - HSRP
* `glbp` - GLBP
* `other` - Other
+ x-spec-enum-id: 40dc831c689b4b78
group_id:
type: integer
maximum: 32767
@@ -95705,6 +107525,44 @@ components:
required:
- group_id
- protocol
+ NestedIKEPolicy:
+ 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
+ required:
+ - display
+ - id
+ - name
+ - url
+ NestedIKEPolicyRequest:
+ 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
NestedIPAddress:
type: object
description: |-
@@ -95745,6 +107603,82 @@ components:
minLength: 1
required:
- address
+ NestedIPSecPolicy:
+ 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
+ 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:
+ type: string
+ minLength: 1
+ maxLength: 100
+ required:
+ - name
+ NestedIPSecProfile:
+ 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
+ required:
+ - display
+ - id
+ - name
+ - url
+ NestedIPSecProfileRequest:
+ 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
NestedInterface:
type: object
description: |-
@@ -95948,6 +107882,7 @@ components:
* `evp-lan` - Ethernet Virtual Private LAN
* `ep-tree` - Ethernet Private Tree
* `evp-tree` - Ethernet Virtual Private Tree
+ x-spec-enum-id: dbaa4f996ec2d110
required:
- display
- id
@@ -96005,6 +107940,7 @@ components:
* `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
@@ -97135,6 +109071,93 @@ components:
required:
- name
- slug
+ NestedTunnel:
+ 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
+ required:
+ - display
+ - id
+ - name
+ - url
+ NestedTunnelGroup:
+ 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
+ NestedTunnelGroupRequest:
+ 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
+ NestedTunnelRequest:
+ 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: |-
@@ -97584,6 +109607,7 @@ components:
* `create` - Created
* `update` - Updated
* `delete` - Deleted
+ x-spec-enum-id: 544f9b3b28b7ce6a
label:
type: string
enum:
@@ -97600,19 +109624,13 @@ components:
minimum: 0
format: int64
changed_object:
- type: object
- additionalProperties: {}
nullable: true
readOnly: true
prechange_data:
- type: object
- additionalProperties: {}
readOnly: true
nullable: true
title: Pre-change data
postchange_data:
- type: object
- additionalProperties: {}
readOnly: true
nullable: true
title: Post-change data
@@ -97673,8 +109691,6 @@ components:
maxLength: 30
description: The list of actions granted by this permission
constraints:
- type: object
- additionalProperties: {}
nullable: true
description: Queryset filter matching the applicable objects of the selected
type(s)
@@ -97720,8 +109736,6 @@ components:
maxLength: 30
description: The list of actions granted by this permission
constraints:
- type: object
- additionalProperties: {}
nullable: true
description: Queryset filter matching the applicable objects of the selected
type(s)
@@ -98389,6 +110403,26 @@ components:
type: array
items:
$ref: '#/components/schemas/DeviceWithConfigContext'
+ PaginatedEventRuleList:
+ 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/EventRule'
PaginatedExportTemplateList:
type: object
properties:
@@ -98509,6 +110543,46 @@ components:
type: array
items:
$ref: '#/components/schemas/Group'
+ PaginatedIKEPolicyList:
+ 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/IKEPolicy'
+ PaginatedIKEProposalList:
+ 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/IKEProposal'
PaginatedIPAddressList:
type: object
properties:
@@ -98549,6 +110623,66 @@ components:
type: array
items:
$ref: '#/components/schemas/IPRange'
+ PaginatedIPSecPolicyList:
+ 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/IPSecPolicy'
+ PaginatedIPSecProfileList:
+ 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/IPSecProfile'
+ PaginatedIPSecProposalList:
+ 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/IPSecProposal'
PaginatedImageAttachmentList:
type: object
properties:
@@ -99489,6 +111623,66 @@ components:
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:
+ 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:
+ 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/Tunnel'
+ PaginatedTunnelTerminationList:
+ 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/TunnelTermination'
PaginatedUserList:
type: object
properties:
@@ -99629,6 +111823,26 @@ components:
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: array
+ items:
+ $ref: '#/components/schemas/VirtualDisk'
PaginatedVirtualMachineWithConfigContextList:
type: object
properties:
@@ -99743,6 +111957,7 @@ components:
description: |-
* `A` - A
* `B` - B
+ x-spec-enum-id: 1db84f9b93b261c8
title: End
termination_type:
type: string
@@ -99764,6 +111979,10 @@ components:
minLength: 1
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
+ color:
+ type: string
+ pattern: ^[0-9a-f]{6}$
+ maxLength: 6
description:
type: string
maxLength: 200
@@ -99893,6 +112112,7 @@ components:
- white
- ghost-dark
type: string
+ x-spec-enum-id: 9378cdf56abee54a
description: |-
The class of the first link in a group will be used for the dropdown button
@@ -99917,12 +112137,8 @@ components:
PatchedDashboardRequest:
type: object
properties:
- layout:
- type: object
- additionalProperties: {}
- config:
- type: object
- additionalProperties: {}
+ layout: {}
+ config: {}
PatchedFHRPGroupRequest:
type: object
description: Adds support for custom fields and tags.
@@ -99948,6 +112164,7 @@ components:
* `hsrp` - HSRP
* `glbp` - GLBP
* `other` - Other
+ x-spec-enum-id: 40dc831c689b4b78
group_id:
type: integer
maximum: 32767
@@ -99961,6 +112178,7 @@ components:
description: |-
* `plaintext` - Plaintext
* `md5` - MD5
+ x-spec-enum-id: 12b9faea3a45bf37
title: Authentication type
auth_key:
type: string
@@ -100181,9 +112399,7 @@ components:
type: boolean
shared:
type: boolean
- parameters:
- type: object
- additionalProperties: {}
+ parameters: {}
PatchedTagRequest:
type: object
description: |-
@@ -100211,6 +112427,29 @@ components:
type: array
items:
type: string
+ PatchedTunnelGroupRequest:
+ 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
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
PatchedVLANGroupRequest:
type: object
description: Adds support for custom fields and tags.
@@ -100256,34 +112495,13 @@ components:
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.
+ description:
+ type: string
+ maxLength: 200
payload_url:
type: string
minLength: 1
@@ -100292,8 +112510,6 @@ components:
the webhook is called. Jinja2 template processing is supported with the
same context as the request body.
maxLength: 500
- enabled:
- type: boolean
http_method:
enum:
- GET
@@ -100308,6 +112524,7 @@ components:
* `PUT` - PUT
* `PATCH` - PATCH
* `DELETE` - DELETE
+ x-spec-enum-id: a12018571a034921
http_content_type:
type: string
minLength: 1
@@ -100332,12 +112549,6 @@ components:
header containing a HMAC hex digest of the payload body using the secret
as the key. The secret is not transmitted in the request.
maxLength: 255
- conditions:
- type: object
- additionalProperties: {}
- nullable: true
- description: A set of conditions which determine whether the webhook will
- be generated.
ssl_verification:
type: boolean
description: Enable SSL certificate verification. Disable with caution!
@@ -100519,6 +112730,7 @@ components:
* `smf-os2` - Singlemode Fiber (OS2)
* `aoc` - Active Optical Cabling (AOC)
* `power` - Power
+ x-spec-enum-id: e671018e64196f8d
a_terminations:
type: array
items:
@@ -100537,6 +112749,7 @@ components:
* `connected` - Connected
* `planned` - Planned
* `decommissioning` - Decommissioning
+ x-spec-enum-id: fbc2f302c08be50d
tenant:
type: integer
nullable: true
@@ -100572,6 +112785,7 @@ components:
* `mi` - Miles
* `ft` - Feet
* `in` - Inches
+ x-spec-enum-id: e64ce3a2c5997172
description:
type: string
maxLength: 200
@@ -100617,6 +112831,7 @@ components:
* `offline` - Offline
* `deprovisioning` - Deprovisioning
* `decommissioned` - Decommissioned
+ x-spec-enum-id: 63c838134a022200
tenant:
type: integer
nullable: true
@@ -100663,6 +112878,7 @@ components:
description: |-
* `A` - A
* `Z` - Z
+ x-spec-enum-id: 95b8fcc737f355d0
title: Termination
site:
type: integer
@@ -100734,6 +112950,7 @@ components:
* `active` - Active
* `decommissioning` - Decommissioning
* `offline` - Offline
+ x-spec-enum-id: 79d20a734d0eecbb
tenant:
type: integer
nullable: true
@@ -100828,9 +113045,7 @@ components:
type: integer
nullable: true
description: Remote data source
- data:
- type: object
- additionalProperties: {}
+ data: {}
PatchedWritableConfigTemplateRequest:
type: object
description: |-
@@ -100845,8 +113060,6 @@ components:
type: string
maxLength: 200
environment_params:
- type: object
- additionalProperties: {}
nullable: true
title: Environment parameters
description: Any additional
@@ -100859,6 +113072,9 @@ components:
type: integer
nullable: true
description: Remote data source
+ data_file:
+ type: integer
+ nullable: true
tags:
type: array
items:
@@ -100899,6 +113115,7 @@ components:
- other
- ''
type: string
+ x-spec-enum-id: c5f7197b7211818a
description: |-
Physical port type
@@ -100927,8 +113144,8 @@ components:
- 38400
- 57600
- 115200
- - null
type: integer
+ x-spec-enum-id: ab6d9635c131a378
nullable: true
description: |-
Port speed in bits per second
@@ -101013,6 +113230,7 @@ components:
* `usb-micro-b` - USB Micro B
* `usb-micro-ab` - USB Micro AB
* `other` - Other
+ x-spec-enum-id: c5f7197b7211818a
description:
type: string
maxLength: 200
@@ -101052,6 +113270,7 @@ components:
- other
- ''
type: string
+ x-spec-enum-id: c5f7197b7211818a
description: |-
Physical port type
@@ -101080,8 +113299,8 @@ components:
- 38400
- 57600
- 115200
- - null
type: integer
+ x-spec-enum-id: ab6d9635c131a378
nullable: true
description: |-
Port speed in bits per second
@@ -101166,6 +113385,7 @@ components:
* `usb-micro-b` - USB Micro B
* `usb-micro-ab` - USB Micro AB
* `other` - Other
+ x-spec-enum-id: c5f7197b7211818a
description:
type: string
maxLength: 200
@@ -101197,10 +113417,14 @@ components:
* `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.
@@ -101287,6 +113511,7 @@ components:
- UN_LOCODE
- ''
type: string
+ x-spec-enum-id: cf0efb5195f85007
description: |-
Base set of predefined choices (optional)
@@ -101333,6 +113558,7 @@ components:
- object
- multiobject
type: string
+ x-spec-enum-id: 22e3a64138d10046
description: |-
The type of data this custom field holds
@@ -101385,32 +113611,43 @@ components:
- 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_visibility:
+ 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:
- - read-write
- - read-only
+ - 'yes'
+ - 'no'
- hidden
- - hidden-ifunset
type: string
+ x-spec-enum-id: 1065673147e26bb5
description: |-
- Specifies the visibility of custom field in the UI
+ Specifies whether the custom field value can be edited in the UI
- * `read-write` - Read/write
- * `read-only` - Read-only
+ * `yes` - Yes
+ * `no` - No
* `hidden` - Hidden
- * `hidden-ifunset` - Hidden (if unset)
is_cloneable:
type: boolean
description: Replicate this value when cloning objects
default:
- type: object
- additionalProperties: {}
nullable: true
description: Default value for the field (must be a JSON value). Encapsulate
strings with double quotes (e.g. "Foo").
@@ -101422,15 +113659,17 @@ components:
description: Fields with higher weights appear lower in a form.
validation_minimum:
type: integer
- maximum: 2147483647
- minimum: -2147483648
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
nullable: true
title: Minimum value
description: Minimum allowed value (for numeric fields)
validation_maximum:
type: integer
- maximum: 2147483647
- minimum: -2147483648
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
nullable: true
title: Maximum value
description: Maximum allowed value (for numeric fields)
@@ -101452,15 +113691,9 @@ components:
minLength: 1
maxLength: 100
type:
- enum:
- - local
- - git
- - amazon-s3
type: string
- description: |-
- * `local` - Local
- * `git` - Git
- * `amazon-s3` - Amazon S3
+ minLength: 1
+ maxLength: 50
source_url:
type: string
minLength: 1
@@ -101474,8 +113707,6 @@ components:
comments:
type: string
parameters:
- type: object
- additionalProperties: {}
nullable: true
ignore_rules:
type: string
@@ -101592,15 +113823,19 @@ components:
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
+ 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.
@@ -101626,6 +113861,7 @@ components:
* `side-to-rear` - Side to rear
* `passive` - Passive
* `mixed` - Mixed
+ x-spec-enum-id: 58e389e240a5e53d
weight:
type: number
format: double
@@ -101647,6 +113883,7 @@ components:
* `g` - Grams
* `lb` - Pounds
* `oz` - Ounces
+ x-spec-enum-id: 7c1876f422815884
front_image:
type: string
format: binary
@@ -101719,6 +113956,7 @@ components:
description: |-
* `front` - Front
* `rear` - Rear
+ x-spec-enum-id: d2fb9b3f75158b83
title: Rack face
latitude:
type: number
@@ -101756,6 +113994,7 @@ components:
* `failed` - Failed
* `inventory` - Inventory
* `decommissioning` - Decommissioning
+ x-spec-enum-id: 8d8971779f16ee18
airflow:
enum:
- front-to-rear
@@ -101775,6 +114014,7 @@ components:
* `side-to-rear` - Side to rear
* `passive` - Passive
* `mixed` - Mixed
+ x-spec-enum-id: 58e389e240a5e53d
primary_ip4:
type: integer
nullable: true
@@ -101813,8 +114053,6 @@ components:
type: integer
nullable: true
local_context_data:
- type: object
- additionalProperties: {}
nullable: true
description: Local config context data takes precedence over source contexts
in the final rendered config context
@@ -101825,6 +114063,71 @@ components:
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: |-
@@ -101994,6 +114297,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -102138,6 +114442,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -102151,6 +114456,182 @@ components:
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
+ 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` - DES
+ x-spec-enum-id: 40730b5af1561c52
+ 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
+ - 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: 6bbe85c15f3d99fe
+ description: |-
+ Diffie-Hellman group ID
+
+ * `1` - Group 1
+ * `2` - Group 2
+ * `5` - Group 5
+ * `14` - Group 14
+ * `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.
@@ -102172,6 +114653,7 @@ components:
- dhcp
- slaac
type: string
+ x-spec-enum-id: 24935cfee15bd268
description: |-
The operational status of this IP
@@ -102192,6 +114674,7 @@ components:
- carp
- ''
type: string
+ x-spec-enum-id: 10fbcb4930889b0f
description: |-
The functional role of this IP
@@ -102256,6 +114739,7 @@ components:
- reserved
- deprecated
type: string
+ x-spec-enum-id: 6388dfb94ca1cc15
description: |-
Operational status of this range
@@ -102281,6 +114765,191 @@ components:
mark_utilized:
type: boolean
description: Treat as 100% 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
+ - 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: 6bbe85c15f3d99fe
+ nullable: true
+ description: |-
+ Diffie-Hellman group for Perfect Forward Secrecy
+
+ * `1` - Group 1
+ * `2` - Group 2
+ * `5` - Group 5
+ * `14` - Group 14
+ * `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
+ - ''
+ 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` - DES
+ x-spec-enum-id: 40730b5af1561c52
+ 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.
@@ -102536,6 +115205,7 @@ components:
* `extreme-summitstack-256` - Extreme SummitStack-256
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other
+ x-spec-enum-id: 2787c414ccfa93fd
enabled:
type: boolean
parent:
@@ -102570,12 +115240,12 @@ components:
- full
- auto
- ''
- - null
type: string
description: |-
* `half` - Half
* `full` - Full
* `auto` - Auto
+ x-spec-enum-id: 47eab9b1a65a1e21
nullable: true
wwn:
type: string
@@ -102594,6 +115264,7 @@ components:
- tagged-all
- ''
type: string
+ x-spec-enum-id: 79109bd9dbb73a3c
description: |-
IEEE 802.1Q tagging strategy
@@ -102609,6 +115280,7 @@ components:
description: |-
* `ap` - Access point
* `station` - Station
+ x-spec-enum-id: d2772dbea88b0fb1
title: Wireless role
rf_channel:
enum:
@@ -103009,6 +115681,7 @@ components:
* `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:
@@ -103019,6 +115692,7 @@ components:
description: |-
* `pd` - PD
* `pse` - PSE
+ x-spec-enum-id: 2f2fe6dcdc7772bd
poe_type:
enum:
- type1-ieee802.3af
@@ -103040,6 +115714,7 @@ components:
* `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
@@ -103348,6 +116023,7 @@ components:
* `extreme-summitstack-256` - Extreme SummitStack-256
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other
+ x-spec-enum-id: 2787c414ccfa93fd
enabled:
type: boolean
mgmt_only:
@@ -103369,6 +116045,7 @@ components:
description: |-
* `pd` - PD
* `pse` - PSE
+ x-spec-enum-id: 2f2fe6dcdc7772bd
poe_type:
enum:
- type1-ieee802.3af
@@ -103390,6 +116067,7 @@ components:
* `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
@@ -103399,6 +116077,7 @@ components:
description: |-
* `ap` - Access point
* `station` - Station
+ x-spec-enum-id: d2772dbea88b0fb1
title: Wireless role
PatchedWritableInventoryItemRequest:
type: object
@@ -103527,6 +116206,7 @@ components:
* `success` - Success
* `warning` - Warning
* `danger` - Danger
+ x-spec-enum-id: a21af280f632fa34
comments:
type: string
minLength: 1
@@ -103584,6 +116264,7 @@ components:
* `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:
@@ -103659,6 +116340,7 @@ components:
* `active` - Active
* `decommissioning` - Decommissioning
* `retired` - Retired
+ x-spec-enum-id: e363a8ddb138be50
tenant:
type: integer
nullable: true
@@ -103753,6 +116435,7 @@ components:
* `staged` - Staged
* `failed` - Failed
* `decommissioning` - Decommissioning
+ x-spec-enum-id: 2217e87d0c3efdda
serial:
type: string
title: Serial number
@@ -103809,6 +116492,7 @@ components:
* `g` - Grams
* `lb` - Pounds
* `oz` - Ounces
+ x-spec-enum-id: 7c1876f422815884
description:
type: string
maxLength: 200
@@ -103856,8 +116540,6 @@ components:
maxLength: 30
description: The list of actions granted by this permission
constraints:
- type: object
- additionalProperties: {}
nullable: true
description: Queryset filter matching the applicable objects of the selected
type(s)
@@ -103916,6 +116598,7 @@ components:
* `active` - Active
* `planned` - Planned
* `failed` - Failed
+ x-spec-enum-id: b77fc919138c12f6
type:
enum:
- primary
@@ -103924,6 +116607,7 @@ components:
description: |-
* `primary` - Primary
* `redundant` - Redundant
+ x-spec-enum-id: 093a164236819eb8
supply:
enum:
- ac
@@ -103932,6 +116616,7 @@ components:
description: |-
* `ac` - AC
* `dc` - DC
+ x-spec-enum-id: 1b6d99616ca6412b
phase:
enum:
- single-phase
@@ -103940,6 +116625,7 @@ components:
description: |-
* `single-phase` - Single phase
* `three-phase` - Three-phase
+ x-spec-enum-id: 994bc0696f4df57f
voltage:
type: integer
maximum: 32767
@@ -104085,6 +116771,7 @@ components:
- other
- ''
type: string
+ x-spec-enum-id: 5be1814581544db3
description: |-
Physical port type
@@ -104191,6 +116878,7 @@ components:
- C
- ''
type: string
+ x-spec-enum-id: a4902339df0b7c06
description: |-
Phase (for three-phase feeds)
@@ -104423,6 +117111,7 @@ components:
* `ubiquiti-smartpower` - Ubiquiti SmartPower
* `hardwired` - Hardwired
* `other` - Other
+ x-spec-enum-id: 5be1814581544db3
power_port:
type: integer
nullable: true
@@ -104433,6 +117122,7 @@ components:
- C
- ''
type: string
+ x-spec-enum-id: a4902339df0b7c06
description: |-
Phase (for three-phase feeds)
@@ -104588,6 +117278,7 @@ components:
- other
- ''
type: string
+ x-spec-enum-id: 0612e2fb273da8ee
description: |-
Physical port type
@@ -104943,6 +117634,7 @@ components:
* `ubiquiti-smartpower` - Ubiquiti SmartPower
* `hardwired` - Hardwired
* `other` - Other
+ x-spec-enum-id: 0612e2fb273da8ee
maximum_draw:
type: integer
maximum: 2147483647
@@ -104984,6 +117676,7 @@ components:
- reserved
- deprecated
type: string
+ x-spec-enum-id: d38bee5f512701d9
description: |-
Operational status of this prefix
@@ -105133,6 +117826,7 @@ components:
* `planned` - Planned
* `active` - Active
* `deprecated` - Deprecated
+ x-spec-enum-id: 0c556d55dc1baa13
role:
type: integer
nullable: true
@@ -105165,6 +117859,7 @@ components:
* `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
@@ -105172,6 +117867,7 @@ components:
- 21
- 23
type: integer
+ x-spec-enum-id: 9b322795f297a9c3
description: |-
Rail-to-rail width
@@ -105190,7 +117886,7 @@ components:
starting_unit:
type: integer
maximum: 32767
- minimum: 0
+ minimum: 1
description: Starting unit for rack
weight:
type: number
@@ -105219,6 +117915,7 @@ components:
* `g` - Grams
* `lb` - Pounds
* `oz` - Ounces
+ x-spec-enum-id: 7c1876f422815884
desc_units:
type: boolean
title: Descending units
@@ -105244,6 +117941,7 @@ components:
description: |-
* `mm` - Millimeters
* `in` - Inches
+ x-spec-enum-id: 86a846b6c40f495e
mounting_depth:
type: integer
maximum: 32767
@@ -105408,6 +118106,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -105550,6 +118249,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -105642,6 +118342,7 @@ components:
* `tcp` - TCP
* `udp` - UDP
* `sctp` - SCTP
+ x-spec-enum-id: 5521e084b1ad51de
ipaddresses:
type: array
items:
@@ -105687,6 +118388,7 @@ components:
* `tcp` - TCP
* `udp` - UDP
* `sctp` - SCTP
+ x-spec-enum-id: 5521e084b1ad51de
description:
type: string
maxLength: 200
@@ -105753,6 +118455,7 @@ components:
* `active` - Active
* `decommissioning` - Decommissioning
* `retired` - Retired
+ x-spec-enum-id: e363a8ddb138be50
region:
type: integer
nullable: true
@@ -105891,6 +118594,100 @@ components:
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:
+ 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
+ nullable: true
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
PatchedWritableUserRequest:
type: object
description: |-
@@ -105969,6 +118766,7 @@ components:
- reserved
- deprecated
type: string
+ x-spec-enum-id: 6388dfb94ca1cc15
description: |-
Operational status of this VLAN
@@ -106030,6 +118828,7 @@ components:
- tagged-all
- ''
type: string
+ x-spec-enum-id: 79109bd9dbb73a3c
description: |-
IEEE 802.1Q tagging strategy
@@ -106159,6 +118958,7 @@ components:
* `active` - Active
* `planned` - Planned
* `offline` - Offline
+ x-spec-enum-id: ee1ef02def7a91ab
description:
type: string
maxLength: 200
@@ -106171,6 +118971,31 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ PatchedWritableVirtualDiskRequest:
+ 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: {}
PatchedWritableVirtualMachineWithConfigContextRequest:
type: object
description: Adds support for custom fields and tags.
@@ -106195,6 +119020,7 @@ components:
* `staged` - Staged
* `failed` - Failed
* `decommissioning` - Decommissioning
+ x-spec-enum-id: 2217e87d0c3efdda
site:
type: integer
nullable: true
@@ -106246,8 +119072,6 @@ components:
comments:
type: string
local_context_data:
- type: object
- additionalProperties: {}
nullable: true
description: Local config context data takes precedence over source contexts
in the final rendered config context
@@ -106310,6 +119134,7 @@ components:
* `reserved` - Reserved
* `disabled` - Disabled
* `deprecated` - Deprecated
+ x-spec-enum-id: 412ebdca597f609e
vlan:
type: integer
nullable: true
@@ -106329,6 +119154,7 @@ components:
* `wep` - WEP
* `wpa-personal` - WPA Personal (PSK)
* `wpa-enterprise` - WPA Enterprise
+ x-spec-enum-id: a2043acb899b3954
title: Authentication type
auth_cipher:
enum:
@@ -106341,6 +119167,7 @@ components:
* `auto` - Auto
* `tkip` - TKIP
* `aes` - AES
+ x-spec-enum-id: 8fdaefa727c26fdc
title: Authentication cipher
auth_psk:
type: string
@@ -106376,6 +119203,7 @@ components:
* `connected` - Connected
* `planned` - Planned
* `decommissioning` - Decommissioning
+ x-spec-enum-id: fbc2f302c08be50d
tenant:
type: integer
nullable: true
@@ -106392,6 +119220,7 @@ components:
* `wep` - WEP
* `wpa-personal` - WPA Personal (PSK)
* `wpa-enterprise` - WPA Enterprise
+ x-spec-enum-id: a2043acb899b3954
title: Authentication type
auth_cipher:
enum:
@@ -106404,6 +119233,7 @@ components:
* `auto` - Auto
* `tkip` - TKIP
* `aes` - AES
+ x-spec-enum-id: 8fdaefa727c26fdc
title: Authentication cipher
auth_psk:
type: string
@@ -106558,6 +119388,7 @@ components:
* `active` - Active
* `planned` - Planned
* `failed` - Failed
+ x-spec-enum-id: b77fc919138c12f6
label:
type: string
enum:
@@ -106576,6 +119407,7 @@ components:
description: |-
* `primary` - Primary
* `redundant` - Redundant
+ x-spec-enum-id: 093a164236819eb8
label:
type: string
enum:
@@ -106592,6 +119424,7 @@ components:
description: |-
* `ac` - AC
* `dc` - DC
+ x-spec-enum-id: 1b6d99616ca6412b
label:
type: string
enum:
@@ -106608,6 +119441,7 @@ components:
description: |-
* `single-phase` - Single phase
* `three-phase` - Three-phase
+ x-spec-enum-id: 994bc0696f4df57f
label:
type: string
enum:
@@ -106727,6 +119561,7 @@ components:
* `active` - Active
* `planned` - Planned
* `failed` - Failed
+ x-spec-enum-id: b77fc919138c12f6
type:
enum:
- primary
@@ -106735,6 +119570,7 @@ components:
description: |-
* `primary` - Primary
* `redundant` - Redundant
+ x-spec-enum-id: 093a164236819eb8
supply:
enum:
- ac
@@ -106743,6 +119579,7 @@ components:
description: |-
* `ac` - AC
* `dc` - DC
+ x-spec-enum-id: 1b6d99616ca6412b
phase:
enum:
- single-phase
@@ -106751,6 +119588,7 @@ components:
description: |-
* `single-phase` - Single phase
* `three-phase` - Three-phase
+ x-spec-enum-id: 994bc0696f4df57f
voltage:
type: integer
maximum: 32767
@@ -106912,7 +119750,6 @@ components:
- hardwired
- other
- ''
- - null
type: string
description: |-
* `iec-60320-c5` - C5
@@ -107008,6 +119845,7 @@ components:
* `ubiquiti-smartpower` - Ubiquiti SmartPower
* `hardwired` - Hardwired
* `other` - Other
+ x-spec-enum-id: 5be1814581544db3
label:
type: string
enum:
@@ -107118,12 +119956,12 @@ components:
- B
- C
- ''
- - null
type: string
description: |-
* `A` - A
* `B` - B
* `C` - C
+ x-spec-enum-id: a4902339df0b7c06
label:
type: string
enum:
@@ -107314,7 +120152,6 @@ components:
- hardwired
- other
- ''
- - null
type: string
description: |-
* `iec-60320-c5` - C5
@@ -107410,6 +120247,7 @@ components:
* `ubiquiti-smartpower` - Ubiquiti SmartPower
* `hardwired` - Hardwired
* `other` - Other
+ x-spec-enum-id: 5be1814581544db3
nullable: true
power_port:
allOf:
@@ -107421,12 +120259,12 @@ components:
- B
- C
- ''
- - null
type: string
description: |-
* `A` - A
* `B` - B
* `C` - C
+ x-spec-enum-id: a4902339df0b7c06
nullable: true
description:
type: string
@@ -107576,7 +120414,6 @@ components:
- hardwired
- other
- ''
- - null
type: string
description: |-
* `iec-60320-c5` - C5
@@ -107672,6 +120509,7 @@ components:
* `ubiquiti-smartpower` - Ubiquiti SmartPower
* `hardwired` - Hardwired
* `other` - Other
+ x-spec-enum-id: 5be1814581544db3
label:
type: string
enum:
@@ -107782,12 +120620,12 @@ components:
- B
- C
- ''
- - null
type: string
description: |-
* `A` - A
* `B` - B
* `C` - C
+ x-spec-enum-id: a4902339df0b7c06
label:
type: string
enum:
@@ -107935,7 +120773,6 @@ components:
- hardwired
- other
- ''
- - null
type: string
description: |-
* `iec-60320-c5` - C5
@@ -108031,6 +120868,7 @@ components:
* `ubiquiti-smartpower` - Ubiquiti SmartPower
* `hardwired` - Hardwired
* `other` - Other
+ x-spec-enum-id: 5be1814581544db3
nullable: true
power_port:
allOf:
@@ -108042,12 +120880,12 @@ components:
- B
- C
- ''
- - null
type: string
description: |-
* `A` - A
* `B` - B
* `C` - C
+ x-spec-enum-id: a4902339df0b7c06
nullable: true
description:
type: string
@@ -108273,7 +121111,6 @@ components:
- hardwired
- other
- ''
- - null
type: string
description: |-
* `iec-60320-c6` - C6
@@ -108376,6 +121213,7 @@ components:
* `ubiquiti-smartpower` - Ubiquiti SmartPower
* `hardwired` - Hardwired
* `other` - Other
+ x-spec-enum-id: 0612e2fb273da8ee
label:
type: string
enum:
@@ -108682,7 +121520,6 @@ components:
- hardwired
- other
- ''
- - null
type: string
description: |-
* `iec-60320-c6` - C6
@@ -108785,6 +121622,7 @@ components:
* `ubiquiti-smartpower` - Ubiquiti SmartPower
* `hardwired` - Hardwired
* `other` - Other
+ x-spec-enum-id: 0612e2fb273da8ee
nullable: true
maximum_draw:
type: integer
@@ -108953,7 +121791,6 @@ components:
- hardwired
- other
- ''
- - null
type: string
description: |-
* `iec-60320-c6` - C6
@@ -109056,6 +121893,7 @@ components:
* `ubiquiti-smartpower` - Ubiquiti SmartPower
* `hardwired` - Hardwired
* `other` - Other
+ x-spec-enum-id: 0612e2fb273da8ee
label:
type: string
enum:
@@ -109319,7 +122157,6 @@ components:
- hardwired
- other
- ''
- - null
type: string
description: |-
* `iec-60320-c6` - C6
@@ -109422,6 +122259,7 @@ components:
* `ubiquiti-smartpower` - Ubiquiti SmartPower
* `hardwired` - Hardwired
* `other` - Other
+ x-spec-enum-id: 0612e2fb273da8ee
nullable: true
maximum_draw:
type: integer
@@ -109465,6 +122303,7 @@ components:
description: |-
* `4` - IPv4
* `6` - IPv6
+ x-spec-enum-id: d72003fd1af3603d
label:
type: string
enum:
@@ -109504,6 +122343,7 @@ components:
* `active` - Active
* `reserved` - Reserved
* `deprecated` - Deprecated
+ x-spec-enum-id: d38bee5f512701d9
label:
type: string
enum:
@@ -109596,6 +122436,7 @@ components:
* `active` - Active
* `reserved` - Reserved
* `deprecated` - Deprecated
+ x-spec-enum-id: d38bee5f512701d9
role:
allOf:
- $ref: '#/components/schemas/NestedRoleRequest'
@@ -110019,6 +122860,7 @@ components:
* `planned` - Planned
* `active` - Active
* `deprecated` - Deprecated
+ x-spec-enum-id: 0c556d55dc1baa13
label:
type: string
enum:
@@ -110053,7 +122895,6 @@ components:
- wall-cabinet
- wall-cabinet-vertical
- ''
- - null
type: string
description: |-
* `2-post-frame` - 2-post frame
@@ -110063,6 +122904,7 @@ components:
* `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:
@@ -110089,6 +122931,7 @@ components:
* `19` - 19 inches
* `21` - 21 inches
* `23` - 23 inches
+ x-spec-enum-id: 9b322795f297a9c3
label:
type: string
enum:
@@ -110105,7 +122948,7 @@ components:
starting_unit:
type: integer
maximum: 32767
- minimum: 0
+ minimum: 1
description: Starting unit for rack
weight:
type: number
@@ -110131,13 +122974,13 @@ components:
- lb
- oz
- ''
- - null
type: string
description: |-
* `kg` - Kilograms
* `g` - Grams
* `lb` - Pounds
* `oz` - Ounces
+ x-spec-enum-id: 7c1876f422815884
label:
type: string
enum:
@@ -110170,11 +123013,11 @@ components:
- mm
- in
- ''
- - null
type: string
description: |-
* `mm` - Millimeters
* `in` - Inches
+ x-spec-enum-id: 86a846b6c40f495e
label:
type: string
enum:
@@ -110262,6 +123105,7 @@ components:
* `planned` - Planned
* `active` - Active
* `deprecated` - Deprecated
+ x-spec-enum-id: 0c556d55dc1baa13
role:
allOf:
- $ref: '#/components/schemas/NestedRackRoleRequest'
@@ -110285,7 +123129,6 @@ components:
- wall-cabinet
- wall-cabinet-vertical
- ''
- - null
type: string
description: |-
* `2-post-frame` - 2-post frame
@@ -110295,6 +123138,7 @@ components:
* `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:
@@ -110308,6 +123152,7 @@ components:
* `19` - 19 inches
* `21` - 21 inches
* `23` - 23 inches
+ x-spec-enum-id: 9b322795f297a9c3
u_height:
type: integer
maximum: 100
@@ -110317,7 +123162,7 @@ components:
starting_unit:
type: integer
maximum: 32767
- minimum: 0
+ minimum: 1
description: Starting unit for rack
weight:
type: number
@@ -110340,13 +123185,13 @@ components:
- lb
- oz
- ''
- - null
type: string
description: |-
* `kg` - Kilograms
* `g` - Grams
* `lb` - Pounds
* `oz` - Ounces
+ x-spec-enum-id: 7c1876f422815884
nullable: true
desc_units:
type: boolean
@@ -110369,11 +123214,11 @@ components:
- mm
- in
- ''
- - null
type: string
description: |-
* `mm` - Millimeters
* `in` - Inches
+ x-spec-enum-id: 86a846b6c40f495e
nullable: true
mounting_depth:
type: integer
@@ -110709,6 +123554,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
label:
type: string
enum:
@@ -110941,6 +123787,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -111101,6 +123948,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
label:
type: string
enum:
@@ -111302,6 +124150,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -111618,9 +124467,7 @@ components:
type: boolean
shared:
type: boolean
- parameters:
- type: object
- additionalProperties: {}
+ parameters: {}
created:
type: string
format: date-time
@@ -111674,9 +124521,7 @@ components:
type: boolean
shared:
type: boolean
- parameters:
- type: object
- additionalProperties: {}
+ parameters: {}
required:
- content_types
- name
@@ -111727,6 +124572,7 @@ components:
* `tcp` - TCP
* `udp` - UDP
* `sctp` - SCTP
+ x-spec-enum-id: 5521e084b1ad51de
label:
type: string
enum:
@@ -111800,6 +124646,7 @@ components:
* `tcp` - TCP
* `udp` - UDP
* `sctp` - SCTP
+ x-spec-enum-id: 5521e084b1ad51de
ipaddresses:
type: array
items:
@@ -111856,6 +124703,7 @@ components:
* `tcp` - TCP
* `udp` - UDP
* `sctp` - SCTP
+ x-spec-enum-id: 5521e084b1ad51de
label:
type: string
enum:
@@ -111917,6 +124765,7 @@ components:
* `tcp` - TCP
* `udp` - UDP
* `sctp` - SCTP
+ x-spec-enum-id: 5521e084b1ad51de
description:
type: string
maxLength: 200
@@ -111971,6 +124820,7 @@ components:
* `active` - Active
* `decommissioning` - Decommissioning
* `retired` - Retired
+ x-spec-enum-id: e363a8ddb138be50
label:
type: string
enum:
@@ -112202,6 +125052,7 @@ components:
* `active` - Active
* `decommissioning` - Decommissioning
* `retired` - Retired
+ x-spec-enum-id: e363a8ddb138be50
region:
allOf:
- $ref: '#/components/schemas/NestedRegionRequest'
@@ -112399,57 +125250,439 @@ components:
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
+ 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.
+ 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_]+$
+ parent:
+ allOf:
+ - $ref: '#/components/schemas/NestedTenantGroup'
+ 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
+ tenant_count:
+ type: integer
+ readOnly: true
+ _depth:
+ type: integer
+ readOnly: true
+ title: ' depth'
+ required:
+ - _depth
+ - created
+ - display
+ - id
+ - last_updated
+ - name
+ - slug
+ - tenant_count
+ - url
+ TenantGroupRequest:
+ 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:
+ allOf:
+ - $ref: '#/components/schemas/NestedTenantGroupRequest'
+ nullable: true
+ description:
+ type: string
+ maxLength: 200
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ required:
+ - name
+ - slug
+ TenantRequest:
+ 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/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
+ Token:
+ type: object
+ description: |-
+ Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during
+ validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
+ properties:
+ id:
+ type: integer
+ readOnly: true
+ url:
+ type: string
+ format: uri
+ readOnly: true
+ display:
+ type: string
+ readOnly: true
+ user:
+ $ref: '#/components/schemas/NestedUser'
+ created:
+ type: string
+ format: date-time
+ readOnly: true
+ 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:
+ - created
+ - display
+ - id
+ - url
+ - user
+ TokenProvision:
+ type: object
+ description: |-
+ Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during
+ validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
+ properties:
+ id:
+ type: integer
+ readOnly: true
+ url:
+ type: string
+ format: uri
+ readOnly: true
+ display:
+ type: string
+ readOnly: true
+ user:
+ allOf:
+ - $ref: '#/components/schemas/NestedUser'
+ readOnly: true
+ created:
+ type: string
+ format: date-time
+ readOnly: true
+ expires:
+ type: string
+ format: date-time
+ nullable: true
+ last_used:
+ type: string
+ format: date-time
+ readOnly: true
+ key:
+ type: string
+ readOnly: true
+ write_enabled:
+ type: boolean
+ description: Permit create/update/delete operations using this key
+ description:
+ type: string
+ maxLength: 200
+ required:
+ - created
+ - display
+ - id
+ - key
+ - last_used
+ - url
+ - user
+ TokenProvisionRequest:
+ type: object
+ description: |-
+ Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during
+ validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
+ properties:
+ expires:
+ type: string
+ format: date-time
+ nullable: true
+ write_enabled:
+ type: boolean
+ description: Permit create/update/delete operations using this key
+ description:
+ type: string
+ maxLength: 200
+ username:
+ type: string
+ writeOnly: true
+ minLength: 1
+ password:
+ type: string
+ writeOnly: true
+ minLength: 1
+ required:
+ - password
+ - username
+ TokenRequest:
+ type: object
+ description: |-
+ Extends the built-in ModelSerializer to enforce calling full_clean() on a 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/NestedUserRequest'
+ 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
+ Tunnel:
+ 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
+ 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:
+ $ref: '#/components/schemas/NestedTunnelGroup'
+ 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:
- - circuit_count
- - cluster_count
- created
- - device_count
- display
+ - encapsulation
+ - group
- id
- - ipaddress_count
- last_updated
- name
- - prefix_count
- - rack_count
- - site_count
- - slug
+ - status
- url
- - virtualmachine_count
- - vlan_count
- - vrf_count
- TenantGroup:
+ TunnelGroup:
type: object
- description: Extends PrimaryModelSerializer to include MPTT support.
+ description: Adds support for custom fields and tags.
properties:
id:
type: integer
@@ -112468,10 +125701,6 @@ components:
type: string
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
- parent:
- allOf:
- - $ref: '#/components/schemas/NestedTenantGroup'
- nullable: true
description:
type: string
maxLength: 200
@@ -112492,26 +125721,21 @@ components:
format: date-time
readOnly: true
nullable: true
- tenant_count:
+ tunnel_count:
type: integer
readOnly: true
- _depth:
- type: integer
- readOnly: true
- title: ' depth'
required:
- - _depth
- created
- display
- id
- last_updated
- name
- slug
- - tenant_count
+ - tunnel_count
- url
- TenantGroupRequest:
+ TunnelGroupRequest:
type: object
- description: Extends PrimaryModelSerializer to include MPTT support.
+ description: Adds support for custom fields and tags.
properties:
name:
type: string
@@ -112522,10 +125746,6 @@ components:
minLength: 1
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
- parent:
- allOf:
- - $ref: '#/components/schemas/NestedTenantGroupRequest'
- nullable: true
description:
type: string
maxLength: 200
@@ -112539,7 +125759,7 @@ components:
required:
- name
- slug
- TenantRequest:
+ TunnelRequest:
type: object
description: Adds support for custom fields and tags.
properties:
@@ -112547,14 +125767,45 @@ components:
type: string
minLength: 1
maxLength: 100
- slug:
+ status:
+ enum:
+ - planned
+ - active
+ - disabled
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
+ description: |-
+ * `planned` - Planned
+ * `active` - Active
+ * `disabled` - Disabled
+ x-spec-enum-id: 0d65f7912cba74aa
group:
+ $ref: '#/components/schemas/NestedTunnelGroupRequest'
+ 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/NestedTenantGroupRequest'
+ - $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
@@ -112569,13 +125820,13 @@ components:
type: object
additionalProperties: {}
required:
+ - encapsulation
+ - group
- name
- - slug
- Token:
+ - status
+ TunnelTermination:
type: object
- description: |-
- Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
+ description: Adds support for custom fields and tags.
properties:
id:
type: integer
@@ -112587,140 +125838,110 @@ components:
display:
type: string
readOnly: true
- user:
- $ref: '#/components/schemas/NestedUser'
- created:
- type: string
- format: date-time
- readOnly: true
- expires:
+ tunnel:
+ $ref: '#/components/schemas/NestedTunnel'
+ role:
+ type: object
+ properties:
+ value:
+ enum:
+ - peer
+ - hub
+ - spoke
+ type: string
+ description: |-
+ * `peer` - Peer
+ * `hub` - Hub
+ * `spoke` - Spoke
+ x-spec-enum-id: 52225cd60b867572
+ label:
+ type: string
+ enum:
+ - Peer
+ - Hub
+ - Spoke
+ termination_type:
type: string
- format: date-time
+ termination_id:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
nullable: true
- last_used:
- type: string
- format: date-time
+ termination:
nullable: true
- key:
- type: string
- maxLength: 40
- minLength: 40
- write_enabled:
- type: boolean
- description: Permit create/update/delete operations using this key
- description:
- type: string
- maxLength: 200
- required:
- - created
- - display
- - id
- - url
- - user
- TokenProvision:
- type: object
- description: |-
- Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
readOnly: true
- user:
+ outside_ip:
allOf:
- - $ref: '#/components/schemas/NestedUser'
- readOnly: true
+ - $ref: '#/components/schemas/NestedIPAddress'
+ nullable: true
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTag'
+ custom_fields:
+ type: object
+ additionalProperties: {}
created:
type: string
format: date-time
readOnly: true
- expires:
- type: string
- format: date-time
nullable: true
- last_used:
+ last_updated:
type: string
format: date-time
readOnly: true
- key:
- type: string
- readOnly: true
- write_enabled:
- type: boolean
- description: Permit create/update/delete operations using this key
- description:
- type: string
- maxLength: 200
+ nullable: true
required:
- created
- display
- id
- - key
- - last_used
+ - last_updated
+ - role
+ - termination
+ - termination_type
+ - tunnel
- url
- - user
- TokenProvisionRequest:
+ TunnelTerminationRequest:
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:
- expires:
- type: string
- format: date-time
- nullable: true
- write_enabled:
- type: boolean
- description: Permit create/update/delete operations using this key
- description:
- type: string
- maxLength: 200
- username:
- type: string
- writeOnly: true
- minLength: 1
- password:
+ tunnel:
+ $ref: '#/components/schemas/NestedTunnelRequest'
+ role:
+ enum:
+ - peer
+ - hub
+ - spoke
type: string
- writeOnly: true
- minLength: 1
- required:
- - password
- - username
- TokenRequest:
- type: object
- description: |-
- Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
- properties:
- user:
- $ref: '#/components/schemas/NestedUserRequest'
- expires:
+ description: |-
+ * `peer` - Peer
+ * `hub` - Hub
+ * `spoke` - Spoke
+ x-spec-enum-id: 52225cd60b867572
+ termination_type:
type: string
- format: date-time
+ termination_id:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
nullable: true
- last_used:
- type: string
- format: date-time
+ outside_ip:
+ allOf:
+ - $ref: '#/components/schemas/NestedIPAddressRequest'
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
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
required:
- - user
+ - role
+ - termination_type
+ - tunnel
User:
type: object
description: |-
@@ -112871,6 +126092,7 @@ components:
* `active` - Active
* `reserved` - Reserved
* `deprecated` - Deprecated
+ x-spec-enum-id: 6388dfb94ca1cc15
label:
type: string
enum:
@@ -112949,8 +126171,6 @@ components:
type: integer
nullable: true
scope:
- type: object
- additionalProperties: {}
nullable: true
readOnly: true
min_vid:
@@ -113082,6 +126302,7 @@ components:
* `active` - Active
* `reserved` - Reserved
* `deprecated` - Deprecated
+ x-spec-enum-id: 6388dfb94ca1cc15
role:
allOf:
- $ref: '#/components/schemas/NestedRoleRequest'
@@ -113155,6 +126376,7 @@ components:
* `access` - Access
* `tagged` - Tagged
* `tagged-all` - Tagged (All)
+ x-spec-enum-id: 79109bd9dbb73a3c
label:
type: string
enum:
@@ -113255,6 +126477,7 @@ components:
* `access` - Access
* `tagged` - Tagged
* `tagged-all` - Tagged (All)
+ x-spec-enum-id: 79109bd9dbb73a3c
untagged_vlan:
allOf:
- $ref: '#/components/schemas/NestedVLANRequest'
@@ -113538,6 +126761,7 @@ components:
* `active` - Active
* `planned` - Planned
* `offline` - Offline
+ x-spec-enum-id: ee1ef02def7a91ab
label:
type: string
enum:
@@ -113618,6 +126842,7 @@ components:
* `active` - Active
* `planned` - Planned
* `offline` - Offline
+ x-spec-enum-id: ee1ef02def7a91ab
description:
type: string
maxLength: 200
@@ -113634,6 +126859,84 @@ components:
- device
- name
- status
+ VirtualDisk:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ id:
+ type: integer
+ readOnly: true
+ url:
+ type: string
+ format: uri
+ readOnly: true
+ virtual_machine:
+ $ref: '#/components/schemas/NestedVirtualMachine'
+ name:
+ type: string
+ maxLength: 64
+ description:
+ type: string
+ maxLength: 200
+ size:
+ type: integer
+ maximum: 2147483647
+ minimum: 0
+ title: Size (GB)
+ 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
+ - id
+ - last_updated
+ - name
+ - size
+ - url
+ - virtual_machine
+ VirtualDiskRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ virtual_machine:
+ $ref: '#/components/schemas/NestedVirtualMachineRequest'
+ 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
VirtualMachineWithConfigContext:
type: object
description: Adds support for custom fields and tags.
@@ -113670,6 +126973,7 @@ components:
* `staged` - Staged
* `failed` - Failed
* `decommissioning` - Decommissioning
+ x-spec-enum-id: 2217e87d0c3efdda
label:
type: string
enum:
@@ -113740,129 +127044,128 @@ components:
comments:
type: string
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/NestedTag'
+ custom_fields:
type: object
additionalProperties: {}
- 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/NestedTag'
- custom_fields:
- type: object
- additionalProperties: {}
- config_context:
- type: object
- additionalProperties: {}
- nullable: true
- readOnly: true
- created:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- last_updated:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- interface_count:
- type: integer
- readOnly: true
- required:
- - config_context
- - created
- - display
- - id
- - interface_count
- - last_updated
- - name
- - primary_ip
- - url
- VirtualMachineWithConfigContextRequest:
- 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
- * `active` - Active
- * `planned` - Planned
- * `staged` - Staged
- * `failed` - Failed
- * `decommissioning` - Decommissioning
- site:
- allOf:
- - $ref: '#/components/schemas/NestedSiteRequest'
- nullable: true
- cluster:
- allOf:
- - $ref: '#/components/schemas/NestedClusterRequest'
- nullable: true
- device:
- allOf:
- - $ref: '#/components/schemas/NestedDeviceRequest'
- nullable: true
- role:
- allOf:
- - $ref: '#/components/schemas/NestedDeviceRoleRequest'
- nullable: true
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
- nullable: true
- platform:
- allOf:
- - $ref: '#/components/schemas/NestedPlatformRequest'
- nullable: true
- primary_ip4:
- allOf:
- - $ref: '#/components/schemas/NestedIPAddressRequest'
- nullable: true
- primary_ip6:
- allOf:
- - $ref: '#/components/schemas/NestedIPAddressRequest'
- nullable: true
- vcpus:
- type: 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
- local_context_data:
- type: object
- additionalProperties: {}
+ config_context:
+ nullable: true
+ readOnly: true
+ created:
+ type: string
+ format: date-time
+ readOnly: true
+ nullable: true
+ last_updated:
+ type: string
+ format: date-time
+ readOnly: true
+ nullable: true
+ interface_count:
+ type: integer
+ readOnly: true
+ virtual_disk_count:
+ type: integer
+ readOnly: true
+ required:
+ - config_context
+ - created
+ - display
+ - id
+ - interface_count
+ - last_updated
+ - name
+ - primary_ip
+ - url
+ - virtual_disk_count
+ VirtualMachineWithConfigContextRequest:
+ 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
+ * `active` - Active
+ * `planned` - Planned
+ * `staged` - Staged
+ * `failed` - Failed
+ * `decommissioning` - Decommissioning
+ x-spec-enum-id: 2217e87d0c3efdda
+ site:
+ allOf:
+ - $ref: '#/components/schemas/NestedSiteRequest'
+ nullable: true
+ cluster:
+ allOf:
+ - $ref: '#/components/schemas/NestedClusterRequest'
+ nullable: true
+ device:
+ allOf:
+ - $ref: '#/components/schemas/NestedDeviceRequest'
+ nullable: true
+ role:
+ allOf:
+ - $ref: '#/components/schemas/NestedDeviceRoleRequest'
+ nullable: true
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/NestedTenantRequest'
+ nullable: true
+ platform:
+ allOf:
+ - $ref: '#/components/schemas/NestedPlatformRequest'
+ nullable: true
+ primary_ip4:
+ allOf:
+ - $ref: '#/components/schemas/NestedIPAddressRequest'
+ nullable: true
+ primary_ip6:
+ allOf:
+ - $ref: '#/components/schemas/NestedIPAddressRequest'
+ nullable: true
+ vcpus:
+ type: 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
+ local_context_data:
nullable: true
description: Local config context data takes precedence over source contexts
in the final rendered config context
@@ -113889,33 +127192,12 @@ components:
display:
type: string
readOnly: true
- content_types:
- type: array
- items:
- type: string
name:
type: string
maxLength: 150
- type_create:
- type: boolean
- title: On create
- description: Triggers when a matching object is created.
- type_update:
- type: boolean
- title: On update
- description: Triggers when a matching object is updated.
- type_delete:
- type: boolean
- title: On delete
- description: Triggers when a matching object is deleted.
- type_job_start:
- type: boolean
- title: On job start
- description: Triggers when a job for a matching object is started.
- type_job_end:
- type: boolean
- title: On job end
- description: Triggers when a job for a matching object terminates.
+ description:
+ type: string
+ maxLength: 200
payload_url:
type: string
title: URL
@@ -113923,8 +127205,6 @@ components:
the webhook is called. Jinja2 template processing is supported with the
same context as the request body.
maxLength: 500
- enabled:
- type: boolean
http_method:
enum:
- GET
@@ -113939,6 +127219,7 @@ components:
* `PUT` - PUT
* `PATCH` - PATCH
* `DELETE` - DELETE
+ x-spec-enum-id: a12018571a034921
http_content_type:
type: string
description: The complete list of official content types is available additional
@@ -115127,6 +128386,9 @@ components:
type: integer
nullable: true
description: Remote data source
+ data_file:
+ type: integer
+ nullable: true
tags:
type: array
items:
@@ -115170,6 +128432,7 @@ components:
- other
- ''
type: string
+ x-spec-enum-id: c5f7197b7211818a
description: |-
Physical port type
@@ -115198,8 +128461,8 @@ components:
- 38400
- 57600
- 115200
- - null
type: integer
+ x-spec-enum-id: ab6d9635c131a378
nullable: true
description: |-
Port speed in bits per second
@@ -115287,6 +128550,7 @@ components:
* `usb-micro-b` - USB Micro B
* `usb-micro-ab` - USB Micro AB
* `other` - Other
+ x-spec-enum-id: c5f7197b7211818a
description:
type: string
maxLength: 200
@@ -115328,6 +128592,7 @@ components:
- other
- ''
type: string
+ x-spec-enum-id: c5f7197b7211818a
description: |-
Physical port type
@@ -115356,8 +128621,8 @@ components:
- 38400
- 57600
- 115200
- - null
type: integer
+ x-spec-enum-id: ab6d9635c131a378
nullable: true
description: |-
Port speed in bits per second
@@ -115445,6 +128710,7 @@ components:
* `usb-micro-b` - USB Micro B
* `usb-micro-ab` - USB Micro AB
* `other` - Other
+ x-spec-enum-id: c5f7197b7211818a
description:
type: string
maxLength: 200
@@ -115478,10 +128744,14 @@ components:
* `secondary` - Secondary
* `tertiary` - Tertiary
* `inactive` - Inactive
+ x-spec-enum-id: ef3a31644cec7524
tags:
type: array
items:
$ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
required:
- contact
- content_type
@@ -115578,6 +128848,7 @@ components:
- UN_LOCODE
- ''
type: string
+ x-spec-enum-id: cf0efb5195f85007
description: |-
Base set of predefined choices (optional)
@@ -115626,6 +128897,7 @@ components:
- object
- multiobject
type: string
+ x-spec-enum-id: 22e3a64138d10046
description: |-
The type of data this custom field holds
@@ -115678,32 +128950,43 @@ components:
- 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_visibility:
+ ui_visible:
enum:
- - read-write
- - read-only
+ - always
+ - if-set
- hidden
- - hidden-ifunset
type: string
+ x-spec-enum-id: cd2cf94af56de747
description: |-
- Specifies the visibility of custom field in the UI
+ Specifies whether the custom field is displayed in the UI
- * `read-write` - Read/write
- * `read-only` - Read-only
+ * `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
- * `hidden-ifunset` - Hidden (if unset)
is_cloneable:
type: boolean
description: Replicate this value when cloning objects
default:
- type: object
- additionalProperties: {}
nullable: true
description: Default value for the field (must be a JSON value). Encapsulate
strings with double quotes (e.g. "Foo").
@@ -115715,15 +128998,17 @@ components:
description: Fields with higher weights appear lower in a form.
validation_minimum:
type: integer
- maximum: 2147483647
- minimum: -2147483648
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
nullable: true
title: Minimum value
description: Minimum allowed value (for numeric fields)
validation_maximum:
type: integer
- maximum: 2147483647
- minimum: -2147483648
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
nullable: true
title: Maximum value
description: Maximum allowed value (for numeric fields)
@@ -115748,15 +129033,9 @@ components:
minLength: 1
maxLength: 100
type:
- enum:
- - local
- - git
- - amazon-s3
type: string
- description: |-
- * `local` - Local
- * `git` - Git
- * `amazon-s3` - Amazon S3
+ minLength: 1
+ maxLength: 50
source_url:
type: string
minLength: 1
@@ -115770,8 +129049,6 @@ components:
comments:
type: string
parameters:
- type: object
- additionalProperties: {}
nullable: true
ignore_rules:
type: string
@@ -115779,6 +129056,7 @@ components:
required:
- name
- source_url
+ - type
WritableDeviceBayRequest:
type: object
description: Adds support for custom fields and tags.
@@ -115900,15 +129178,19 @@ components:
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
+ 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.
@@ -115934,6 +129216,7 @@ components:
* `side-to-rear` - Side to rear
* `passive` - Passive
* `mixed` - Mixed
+ x-spec-enum-id: 58e389e240a5e53d
weight:
type: number
format: double
@@ -115955,6 +129238,7 @@ components:
* `g` - Grams
* `lb` - Pounds
* `oz` - Ounces
+ x-spec-enum-id: 7c1876f422815884
front_image:
type: string
format: binary
@@ -116031,6 +129315,7 @@ components:
description: |-
* `front` - Front
* `rear` - Rear
+ x-spec-enum-id: d2fb9b3f75158b83
title: Rack face
latitude:
type: number
@@ -116068,6 +129353,7 @@ components:
* `failed` - Failed
* `inventory` - Inventory
* `decommissioning` - Decommissioning
+ x-spec-enum-id: 8d8971779f16ee18
airflow:
enum:
- front-to-rear
@@ -116087,6 +129373,7 @@ components:
* `side-to-rear` - Side to rear
* `passive` - Passive
* `mixed` - Mixed
+ x-spec-enum-id: 58e389e240a5e53d
primary_ip4:
type: integer
nullable: true
@@ -116125,8 +129412,6 @@ components:
type: integer
nullable: true
local_context_data:
- type: object
- additionalProperties: {}
nullable: true
description: Local config context data takes precedence over source contexts
in the final rendered config context
@@ -116141,6 +129426,75 @@ components:
- device_type
- role
- site
+ WritableEventRuleRequest:
+ 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'
+ required:
+ - action_object_type
+ - content_types
+ - name
WritableExportTemplateRequest:
type: object
description: |-
@@ -116319,6 +129673,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -116468,6 +129823,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -116485,6 +129841,191 @@ components:
- name
- rear_port
- type
+ WritableIKEPolicyRequest:
+ 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: {}
+ required:
+ - mode
+ - name
+ - proposals
+ WritableIKEProposalRequest:
+ 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
+ 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` - DES
+ x-spec-enum-id: 40730b5af1561c52
+ 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
+ - 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: 6bbe85c15f3d99fe
+ description: |-
+ Diffie-Hellman group ID
+
+ * `1` - Group 1
+ * `2` - Group 2
+ * `5` - Group 5
+ * `14` - Group 14
+ * `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: {}
+ required:
+ - authentication_method
+ - encryption_algorithm
+ - group
+ - name
WritableIPAddressRequest:
type: object
description: Adds support for custom fields and tags.
@@ -116506,6 +130047,7 @@ components:
- dhcp
- slaac
type: string
+ x-spec-enum-id: 24935cfee15bd268
description: |-
The operational status of this IP
@@ -116526,6 +130068,7 @@ components:
- carp
- ''
type: string
+ x-spec-enum-id: 10fbcb4930889b0f
description: |-
The functional role of this IP
@@ -116592,6 +130135,7 @@ components:
- reserved
- deprecated
type: string
+ x-spec-enum-id: 6388dfb94ca1cc15
description: |-
Operational status of this range
@@ -116620,6 +130164,201 @@ components:
required:
- end_address
- start_address
+ WritableIPSecPolicyRequest:
+ 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
+ - 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: 6bbe85c15f3d99fe
+ nullable: true
+ description: |-
+ Diffie-Hellman group for Perfect Forward Secrecy
+
+ * `1` - Group 1
+ * `2` - Group 2
+ * `5` - Group 5
+ * `14` - Group 14
+ * `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: {}
+ required:
+ - name
+ - proposals
+ WritableIPSecProfileRequest:
+ 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: {}
+ required:
+ - ike_policy
+ - ipsec_policy
+ - mode
+ - name
+ WritableIPSecProposalRequest:
+ 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
+ - ''
+ 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` - DES
+ x-spec-enum-id: 40730b5af1561c52
+ 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: {}
+ required:
+ - name
WritableInterfaceRequest:
type: object
description: Adds support for custom fields and tags.
@@ -116875,6 +130614,7 @@ components:
* `extreme-summitstack-256` - Extreme SummitStack-256
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other
+ x-spec-enum-id: 2787c414ccfa93fd
enabled:
type: boolean
parent:
@@ -116909,12 +130649,12 @@ components:
- full
- auto
- ''
- - null
type: string
description: |-
* `half` - Half
* `full` - Full
* `auto` - Auto
+ x-spec-enum-id: 47eab9b1a65a1e21
nullable: true
wwn:
type: string
@@ -116933,6 +130673,7 @@ components:
- tagged-all
- ''
type: string
+ x-spec-enum-id: 79109bd9dbb73a3c
description: |-
IEEE 802.1Q tagging strategy
@@ -116948,6 +130689,7 @@ components:
description: |-
* `ap` - Access point
* `station` - Station
+ x-spec-enum-id: d2772dbea88b0fb1
title: Wireless role
rf_channel:
enum:
@@ -117348,6 +131090,7 @@ components:
* `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:
@@ -117358,6 +131101,7 @@ components:
description: |-
* `pd` - PD
* `pse` - PSE
+ x-spec-enum-id: 2f2fe6dcdc7772bd
poe_type:
enum:
- type1-ieee802.3af
@@ -117379,6 +131123,7 @@ components:
* `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
@@ -117692,6 +131437,7 @@ components:
* `extreme-summitstack-256` - Extreme SummitStack-256
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other
+ x-spec-enum-id: 2787c414ccfa93fd
enabled:
type: boolean
mgmt_only:
@@ -117713,6 +131459,7 @@ components:
description: |-
* `pd` - PD
* `pse` - PSE
+ x-spec-enum-id: 2f2fe6dcdc7772bd
poe_type:
enum:
- type1-ieee802.3af
@@ -117734,6 +131481,7 @@ components:
* `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
@@ -117743,6 +131491,7 @@ components:
description: |-
* `ap` - Access point
* `station` - Station
+ x-spec-enum-id: d2772dbea88b0fb1
title: Wireless role
required:
- name
@@ -117880,6 +131629,7 @@ components:
* `success` - Success
* `warning` - Warning
* `danger` - Danger
+ x-spec-enum-id: a21af280f632fa34
comments:
type: string
minLength: 1
@@ -117941,6 +131691,7 @@ components:
* `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:
@@ -118024,6 +131775,7 @@ components:
* `active` - Active
* `decommissioning` - Decommissioning
* `retired` - Retired
+ x-spec-enum-id: e363a8ddb138be50
tenant:
type: integer
nullable: true
@@ -118129,6 +131881,7 @@ components:
* `staged` - Staged
* `failed` - Failed
* `decommissioning` - Decommissioning
+ x-spec-enum-id: 2217e87d0c3efdda
serial:
type: string
title: Serial number
@@ -118189,6 +131942,7 @@ components:
* `g` - Grams
* `lb` - Pounds
* `oz` - Ounces
+ x-spec-enum-id: 7c1876f422815884
description:
type: string
maxLength: 200
@@ -118239,8 +131993,6 @@ components:
maxLength: 30
description: The list of actions granted by this permission
constraints:
- type: object
- additionalProperties: {}
nullable: true
description: Queryset filter matching the applicable objects of the selected
type(s)
@@ -118306,6 +132058,7 @@ components:
* `active` - Active
* `planned` - Planned
* `failed` - Failed
+ x-spec-enum-id: b77fc919138c12f6
type:
enum:
- primary
@@ -118314,6 +132067,7 @@ components:
description: |-
* `primary` - Primary
* `redundant` - Redundant
+ x-spec-enum-id: 093a164236819eb8
supply:
enum:
- ac
@@ -118322,6 +132076,7 @@ components:
description: |-
* `ac` - AC
* `dc` - DC
+ x-spec-enum-id: 1b6d99616ca6412b
phase:
enum:
- single-phase
@@ -118330,6 +132085,7 @@ components:
description: |-
* `single-phase` - Single phase
* `three-phase` - Three-phase
+ x-spec-enum-id: 994bc0696f4df57f
voltage:
type: integer
maximum: 32767
@@ -118478,6 +132234,7 @@ components:
- other
- ''
type: string
+ x-spec-enum-id: 5be1814581544db3
description: |-
Physical port type
@@ -118584,6 +132341,7 @@ components:
- C
- ''
type: string
+ x-spec-enum-id: a4902339df0b7c06
description: |-
Phase (for three-phase feeds)
@@ -118819,6 +132577,7 @@ components:
* `ubiquiti-smartpower` - Ubiquiti SmartPower
* `hardwired` - Hardwired
* `other` - Other
+ x-spec-enum-id: 5be1814581544db3
power_port:
type: integer
nullable: true
@@ -118829,6 +132588,7 @@ components:
- C
- ''
type: string
+ x-spec-enum-id: a4902339df0b7c06
description: |-
Phase (for three-phase feeds)
@@ -118989,6 +132749,7 @@ components:
- other
- ''
type: string
+ x-spec-enum-id: 0612e2fb273da8ee
description: |-
Physical port type
@@ -119347,6 +133108,7 @@ components:
* `ubiquiti-smartpower` - Ubiquiti SmartPower
* `hardwired` - Hardwired
* `other` - Other
+ x-spec-enum-id: 0612e2fb273da8ee
maximum_draw:
type: integer
maximum: 2147483647
@@ -119390,6 +133152,7 @@ components:
- reserved
- deprecated
type: string
+ x-spec-enum-id: d38bee5f512701d9
description: |-
Operational status of this prefix
@@ -119551,6 +133314,7 @@ components:
* `planned` - Planned
* `active` - Active
* `deprecated` - Deprecated
+ x-spec-enum-id: 0c556d55dc1baa13
role:
type: integer
nullable: true
@@ -119583,6 +133347,7 @@ components:
* `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
@@ -119590,6 +133355,7 @@ components:
- 21
- 23
type: integer
+ x-spec-enum-id: 9b322795f297a9c3
description: |-
Rail-to-rail width
@@ -119608,7 +133374,7 @@ components:
starting_unit:
type: integer
maximum: 32767
- minimum: 0
+ minimum: 1
description: Starting unit for rack
weight:
type: number
@@ -119637,6 +133403,7 @@ components:
* `g` - Grams
* `lb` - Pounds
* `oz` - Ounces
+ x-spec-enum-id: 7c1876f422815884
desc_units:
type: boolean
title: Descending units
@@ -119662,6 +133429,7 @@ components:
description: |-
* `mm` - Millimeters
* `in` - Inches
+ x-spec-enum-id: 86a846b6c40f495e
mounting_depth:
type: integer
maximum: 32767
@@ -119834,6 +133602,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -119980,6 +133749,7 @@ components:
* `urm-p8` - URM-P8
* `splice` - Splice
* `other` - Other
+ x-spec-enum-id: 0276d1110ada597a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -120080,6 +133850,7 @@ components:
* `tcp` - TCP
* `udp` - UDP
* `sctp` - SCTP
+ x-spec-enum-id: 5521e084b1ad51de
ipaddresses:
type: array
items:
@@ -120129,6 +133900,7 @@ components:
* `tcp` - TCP
* `udp` - UDP
* `sctp` - SCTP
+ x-spec-enum-id: 5521e084b1ad51de
description:
type: string
maxLength: 200
@@ -120202,6 +133974,7 @@ components:
* `active` - Active
* `decommissioning` - Decommissioning
* `retired` - Retired
+ x-spec-enum-id: e363a8ddb138be50
region:
type: integer
nullable: true
@@ -120351,6 +134124,106 @@ components:
maxLength: 200
required:
- user
+ WritableTunnelRequest:
+ 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:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ required:
+ - encapsulation
+ - name
+ WritableTunnelTerminationRequest:
+ 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
+ nullable: true
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ required:
+ - termination_type
+ - tunnel
WritableUserRequest:
type: object
description: |-
@@ -120432,6 +134305,7 @@ components:
- reserved
- deprecated
type: string
+ x-spec-enum-id: 6388dfb94ca1cc15
description: |-
Operational status of this VLAN
@@ -120496,6 +134370,7 @@ components:
- tagged-all
- ''
type: string
+ x-spec-enum-id: 79109bd9dbb73a3c
description: |-
IEEE 802.1Q tagging strategy
@@ -120632,6 +134507,7 @@ components:
* `active` - Active
* `planned` - Planned
* `offline` - Offline
+ x-spec-enum-id: ee1ef02def7a91ab
description:
type: string
maxLength: 200
@@ -120647,6 +134523,35 @@ components:
required:
- 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.
@@ -120671,6 +134576,7 @@ components:
* `staged` - Staged
* `failed` - Failed
* `decommissioning` - Decommissioning
+ x-spec-enum-id: 2217e87d0c3efdda
site:
type: integer
nullable: true
@@ -120722,8 +134628,6 @@ components:
comments:
type: string
local_context_data:
- type: object
- additionalProperties: {}
nullable: true
description: Local config context data takes precedence over source contexts
in the final rendered config context
@@ -120791,6 +134695,7 @@ components:
* `reserved` - Reserved
* `disabled` - Disabled
* `deprecated` - Deprecated
+ x-spec-enum-id: 412ebdca597f609e
vlan:
type: integer
nullable: true
@@ -120810,6 +134715,7 @@ components:
* `wep` - WEP
* `wpa-personal` - WPA Personal (PSK)
* `wpa-enterprise` - WPA Enterprise
+ x-spec-enum-id: a2043acb899b3954
title: Authentication type
auth_cipher:
enum:
@@ -120822,6 +134728,7 @@ components:
* `auto` - Auto
* `tkip` - TKIP
* `aes` - AES
+ x-spec-enum-id: 8fdaefa727c26fdc
title: Authentication cipher
auth_psk:
type: string
@@ -120859,6 +134766,7 @@ components:
* `connected` - Connected
* `planned` - Planned
* `decommissioning` - Decommissioning
+ x-spec-enum-id: fbc2f302c08be50d
tenant:
type: integer
nullable: true
@@ -120875,6 +134783,7 @@ components:
* `wep` - WEP
* `wpa-personal` - WPA Personal (PSK)
* `wpa-enterprise` - WPA Enterprise
+ x-spec-enum-id: a2043acb899b3954
title: Authentication type
auth_cipher:
enum:
@@ -120887,6 +134796,7 @@ components:
* `auto` - Auto
* `tkip` - TKIP
* `aes` - AES
+ x-spec-enum-id: 8fdaefa727c26fdc
title: Authentication cipher
auth_psk:
type: string
diff --git a/api_circuits.go b/api_circuits.go
index 69a5c2cc60..8d5aa2e118 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -3048,6 +3048,17 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesDestroyExecute(r ApiCircuitsCir
type ApiCircuitsCircuitTypesListRequest struct {
ctx context.Context
ApiService *CircuitsAPIService
+ color *[]string
+ colorEmpty *bool
+ colorIc *[]string
+ colorIe *[]string
+ colorIew *[]string
+ colorIsw *[]string
+ colorN *[]string
+ colorNic *[]string
+ colorNie *[]string
+ colorNiew *[]string
+ colorNisw *[]string
created *[]time.Time
createdEmpty *[]time.Time
createdGt *[]time.Time
@@ -3113,6 +3124,61 @@ type ApiCircuitsCircuitTypesListRequest struct {
updatedByRequest *string
}
+func (r ApiCircuitsCircuitTypesListRequest) Color(color []string) ApiCircuitsCircuitTypesListRequest {
+ r.color = &color
+ return r
+}
+
+func (r ApiCircuitsCircuitTypesListRequest) ColorEmpty(colorEmpty bool) ApiCircuitsCircuitTypesListRequest {
+ r.colorEmpty = &colorEmpty
+ return r
+}
+
+func (r ApiCircuitsCircuitTypesListRequest) ColorIc(colorIc []string) ApiCircuitsCircuitTypesListRequest {
+ r.colorIc = &colorIc
+ return r
+}
+
+func (r ApiCircuitsCircuitTypesListRequest) ColorIe(colorIe []string) ApiCircuitsCircuitTypesListRequest {
+ r.colorIe = &colorIe
+ return r
+}
+
+func (r ApiCircuitsCircuitTypesListRequest) ColorIew(colorIew []string) ApiCircuitsCircuitTypesListRequest {
+ r.colorIew = &colorIew
+ return r
+}
+
+func (r ApiCircuitsCircuitTypesListRequest) ColorIsw(colorIsw []string) ApiCircuitsCircuitTypesListRequest {
+ r.colorIsw = &colorIsw
+ return r
+}
+
+func (r ApiCircuitsCircuitTypesListRequest) ColorN(colorN []string) ApiCircuitsCircuitTypesListRequest {
+ r.colorN = &colorN
+ return r
+}
+
+func (r ApiCircuitsCircuitTypesListRequest) ColorNic(colorNic []string) ApiCircuitsCircuitTypesListRequest {
+ r.colorNic = &colorNic
+ return r
+}
+
+func (r ApiCircuitsCircuitTypesListRequest) ColorNie(colorNie []string) ApiCircuitsCircuitTypesListRequest {
+ r.colorNie = &colorNie
+ return r
+}
+
+func (r ApiCircuitsCircuitTypesListRequest) ColorNiew(colorNiew []string) ApiCircuitsCircuitTypesListRequest {
+ r.colorNiew = &colorNiew
+ return r
+}
+
+func (r ApiCircuitsCircuitTypesListRequest) ColorNisw(colorNisw []string) ApiCircuitsCircuitTypesListRequest {
+ r.colorNisw = &colorNisw
+ return r
+}
+
func (r ApiCircuitsCircuitTypesListRequest) Created(created []time.Time) ApiCircuitsCircuitTypesListRequest {
r.created = &created
return r
@@ -3473,6 +3539,119 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.color != nil {
+ t := *r.color
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi")
+ }
+ }
+ if r.colorEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "")
+ }
+ if r.colorIc != nil {
+ t := *r.colorIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi")
+ }
+ }
+ if r.colorIe != nil {
+ t := *r.colorIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi")
+ }
+ }
+ if r.colorIew != nil {
+ t := *r.colorIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi")
+ }
+ }
+ if r.colorIsw != nil {
+ t := *r.colorIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi")
+ }
+ }
+ if r.colorN != nil {
+ t := *r.colorN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi")
+ }
+ }
+ if r.colorNic != nil {
+ t := *r.colorNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi")
+ }
+ }
+ if r.colorNie != nil {
+ t := *r.colorNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi")
+ }
+ }
+ if r.colorNiew != nil {
+ t := *r.colorNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi")
+ }
+ }
+ if r.colorNisw != nil {
+ t := *r.colorNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi")
+ }
+ }
if r.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -5592,13 +5771,13 @@ func (r ApiCircuitsCircuitsListRequest) ProviderN(providerN []string) ApiCircuit
return r
}
-// ProviderAccount (ID)
+// Provider account (ID)
func (r ApiCircuitsCircuitsListRequest) ProviderAccountId(providerAccountId []int32) ApiCircuitsCircuitsListRequest {
r.providerAccountId = &providerAccountId
return r
}
-// ProviderAccount (ID)
+// Provider account (ID)
func (r ApiCircuitsCircuitsListRequest) ProviderAccountIdN(providerAccountIdN []int32) ApiCircuitsCircuitsListRequest {
r.providerAccountIdN = &providerAccountIdN
return r
@@ -5616,13 +5795,13 @@ func (r ApiCircuitsCircuitsListRequest) ProviderIdN(providerIdN []int32) ApiCirc
return r
}
-// ProviderNetwork (ID)
+// Provider network (ID)
func (r ApiCircuitsCircuitsListRequest) ProviderNetworkId(providerNetworkId []int32) ApiCircuitsCircuitsListRequest {
r.providerNetworkId = &providerNetworkId
return r
}
-// ProviderNetwork (ID)
+// Provider network (ID)
func (r ApiCircuitsCircuitsListRequest) ProviderNetworkIdN(providerNetworkIdN []int32) ApiCircuitsCircuitsListRequest {
r.providerNetworkIdN = &providerNetworkIdN
return r
@@ -12352,6 +12531,17 @@ type ApiCircuitsProvidersListRequest 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
id *[]int32
idEmpty *bool
idGt *[]int32
@@ -12498,6 +12688,61 @@ func (r ApiCircuitsProvidersListRequest) CreatedByRequest(createdByRequest strin
return r
}
+func (r ApiCircuitsProvidersListRequest) Description(description []string) ApiCircuitsProvidersListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiCircuitsProvidersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsProvidersListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiCircuitsProvidersListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsProvidersListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiCircuitsProvidersListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsProvidersListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiCircuitsProvidersListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsProvidersListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiCircuitsProvidersListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsProvidersListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiCircuitsProvidersListRequest) DescriptionN(descriptionN []string) ApiCircuitsProvidersListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiCircuitsProvidersListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsProvidersListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiCircuitsProvidersListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsProvidersListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiCircuitsProvidersListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsProvidersListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiCircuitsProvidersListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsProvidersListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
func (r ApiCircuitsProvidersListRequest) Id(id []int32) ApiCircuitsProvidersListRequest {
r.id = &id
return r
@@ -13003,6 +13248,119 @@ func (a *CircuitsAPIService) CircuitsProvidersListExecute(r ApiCircuitsProviders
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.id != nil {
t := *r.id
if reflect.TypeOf(t).Kind() == reflect.Slice {
diff --git a/api_core.go b/api_core.go
index 6cae127dc8..3e96262757 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -1817,6 +1817,17 @@ type ApiCoreDataSourcesListRequest 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
enabled *bool
id *[]int32
idEmpty *bool
@@ -1897,6 +1908,61 @@ func (r ApiCoreDataSourcesListRequest) CreatedByRequest(createdByRequest string)
return r
}
+func (r ApiCoreDataSourcesListRequest) Description(description []string) ApiCoreDataSourcesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCoreDataSourcesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) DescriptionIc(descriptionIc []string) ApiCoreDataSourcesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) DescriptionIe(descriptionIe []string) ApiCoreDataSourcesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) DescriptionIew(descriptionIew []string) ApiCoreDataSourcesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) DescriptionIsw(descriptionIsw []string) ApiCoreDataSourcesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) DescriptionN(descriptionN []string) ApiCoreDataSourcesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) DescriptionNic(descriptionNic []string) ApiCoreDataSourcesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) DescriptionNie(descriptionNie []string) ApiCoreDataSourcesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) DescriptionNiew(descriptionNiew []string) ApiCoreDataSourcesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) DescriptionNisw(descriptionNisw []string) ApiCoreDataSourcesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
func (r ApiCoreDataSourcesListRequest) Enabled(enabled bool) ApiCoreDataSourcesListRequest {
r.enabled = &enabled
return r
@@ -2212,6 +2278,119 @@ func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.enabled != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "")
}
diff --git a/api_dcim.go b/api_dcim.go
index b6ea9d77f8..c0f08ff71c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -2003,86 +2003,112 @@ func (a *DcimAPIService) DcimCablesDestroyExecute(r ApiDcimCablesDestroyRequest)
}
type ApiDcimCablesListRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- color *[]string
- colorN *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- device *[]string
- deviceId *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- length *[]float64
- lengthEmpty *bool
- lengthGt *[]float64
- lengthGte *[]float64
- lengthLt *[]float64
- lengthLte *[]float64
- lengthN *[]float64
- lengthUnit *string
- lengthUnitN *string
- limit *int32
- location *[]string
- locationId *[]int32
- modifiedByRequest *string
- offset *int32
- ordering *string
- q *string
- rack *[]string
- rackId *[]int32
- site *[]string
- siteId *[]int32
- status *[]string
- statusN *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]int32
- tenantGroupN *[]int32
- tenantGroupId *[]int32
- tenantGroupIdN *[]int32
- tenantId *[]*int32
- tenantIdN *[]*int32
- terminationAId *[]int32
- terminationAType *string
- terminationATypeN *string
- terminationBId *[]int32
- terminationBType *string
- terminationBTypeN *string
- type_ *[]string
- typeN *[]string
- updatedByRequest *string
+ ctx context.Context
+ ApiService *DcimAPIService
+ circuitterminationId *[]int32
+ color *[]string
+ colorN *[]string
+ consoleportId *[]int32
+ consoleserverportId *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]string
+ deviceId *[]int32
+ frontportId *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interfaceId *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ length *[]float64
+ lengthEmpty *bool
+ lengthGt *[]float64
+ lengthGte *[]float64
+ lengthLt *[]float64
+ lengthLte *[]float64
+ lengthN *[]float64
+ lengthUnit *string
+ lengthUnitN *string
+ limit *int32
+ location *[]string
+ locationId *[]int32
+ modifiedByRequest *string
+ offset *int32
+ ordering *string
+ powerfeedId *[]int32
+ poweroutletId *[]int32
+ powerportId *[]int32
+ q *string
+ rack *[]string
+ rackId *[]int32
+ rearportId *[]int32
+ site *[]string
+ siteId *[]int32
+ status *[]string
+ statusN *[]string
+ tag *[]string
+ tagN *[]string
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]int32
+ tenantGroupN *[]int32
+ tenantGroupId *[]int32
+ tenantGroupIdN *[]int32
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ terminationAId *[]int32
+ terminationAType *string
+ terminationATypeN *string
+ terminationBId *[]int32
+ terminationBType *string
+ terminationBTypeN *string
+ type_ *[]string
+ typeN *[]string
+ unterminated *bool
+ updatedByRequest *string
+}
+
+func (r ApiDcimCablesListRequest) CircuitterminationId(circuitterminationId []int32) ApiDcimCablesListRequest {
+ r.circuitterminationId = &circuitterminationId
+ return r
}
func (r ApiDcimCablesListRequest) Color(color []string) ApiDcimCablesListRequest {
@@ -2095,6 +2121,16 @@ func (r ApiDcimCablesListRequest) ColorN(colorN []string) ApiDcimCablesListReque
return r
}
+func (r ApiDcimCablesListRequest) ConsoleportId(consoleportId []int32) ApiDcimCablesListRequest {
+ r.consoleportId = &consoleportId
+ return r
+}
+
+func (r ApiDcimCablesListRequest) ConsoleserverportId(consoleserverportId []int32) ApiDcimCablesListRequest {
+ r.consoleserverportId = &consoleserverportId
+ return r
+}
+
func (r ApiDcimCablesListRequest) Created(created []time.Time) ApiDcimCablesListRequest {
r.created = &created
return r
@@ -2135,6 +2171,61 @@ func (r ApiDcimCablesListRequest) CreatedByRequest(createdByRequest string) ApiD
return r
}
+func (r ApiDcimCablesListRequest) Description(description []string) ApiDcimCablesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimCablesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimCablesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimCablesListRequest) DescriptionIc(descriptionIc []string) ApiDcimCablesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimCablesListRequest) DescriptionIe(descriptionIe []string) ApiDcimCablesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimCablesListRequest) DescriptionIew(descriptionIew []string) ApiDcimCablesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimCablesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimCablesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimCablesListRequest) DescriptionN(descriptionN []string) ApiDcimCablesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimCablesListRequest) DescriptionNic(descriptionNic []string) ApiDcimCablesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimCablesListRequest) DescriptionNie(descriptionNie []string) ApiDcimCablesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimCablesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimCablesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimCablesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimCablesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
func (r ApiDcimCablesListRequest) Device(device []string) ApiDcimCablesListRequest {
r.device = &device
return r
@@ -2145,6 +2236,11 @@ func (r ApiDcimCablesListRequest) DeviceId(deviceId []int32) ApiDcimCablesListRe
return r
}
+func (r ApiDcimCablesListRequest) FrontportId(frontportId []int32) ApiDcimCablesListRequest {
+ r.frontportId = &frontportId
+ return r
+}
+
func (r ApiDcimCablesListRequest) Id(id []int32) ApiDcimCablesListRequest {
r.id = &id
return r
@@ -2180,6 +2276,11 @@ func (r ApiDcimCablesListRequest) IdN(idN []int32) ApiDcimCablesListRequest {
return r
}
+func (r ApiDcimCablesListRequest) InterfaceId(interfaceId []int32) ApiDcimCablesListRequest {
+ r.interfaceId = &interfaceId
+ return r
+}
+
func (r ApiDcimCablesListRequest) Label(label []string) ApiDcimCablesListRequest {
r.label = &label
return r
@@ -2348,6 +2449,21 @@ func (r ApiDcimCablesListRequest) Ordering(ordering string) ApiDcimCablesListReq
return r
}
+func (r ApiDcimCablesListRequest) PowerfeedId(powerfeedId []int32) ApiDcimCablesListRequest {
+ r.powerfeedId = &powerfeedId
+ return r
+}
+
+func (r ApiDcimCablesListRequest) PoweroutletId(poweroutletId []int32) ApiDcimCablesListRequest {
+ r.poweroutletId = &poweroutletId
+ return r
+}
+
+func (r ApiDcimCablesListRequest) PowerportId(powerportId []int32) ApiDcimCablesListRequest {
+ r.powerportId = &powerportId
+ return r
+}
+
// Search
func (r ApiDcimCablesListRequest) Q(q string) ApiDcimCablesListRequest {
r.q = &q
@@ -2364,6 +2480,11 @@ func (r ApiDcimCablesListRequest) RackId(rackId []int32) ApiDcimCablesListReques
return r
}
+func (r ApiDcimCablesListRequest) RearportId(rearportId []int32) ApiDcimCablesListRequest {
+ r.rearportId = &rearportId
+ return r
+}
+
func (r ApiDcimCablesListRequest) Site(site []string) ApiDcimCablesListRequest {
r.site = &site
return r
@@ -2482,6 +2603,12 @@ func (r ApiDcimCablesListRequest) TypeN(typeN []string) ApiDcimCablesListRequest
return r
}
+// Unterminated
+func (r ApiDcimCablesListRequest) Unterminated(unterminated bool) ApiDcimCablesListRequest {
+ r.unterminated = &unterminated
+ return r
+}
+
func (r ApiDcimCablesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimCablesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -2528,6 +2655,17 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.circuitterminationId != nil {
+ t := *r.circuitterminationId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "circuittermination_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "circuittermination_id", t, "multi")
+ }
+ }
if r.color != nil {
t := *r.color
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -2550,6 +2688,28 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag
parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi")
}
}
+ if r.consoleportId != nil {
+ t := *r.consoleportId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "consoleport_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "consoleport_id", t, "multi")
+ }
+ }
+ if r.consoleserverportId != nil {
+ t := *r.consoleserverportId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "consoleserverport_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "consoleserverport_id", t, "multi")
+ }
+ }
if r.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -2630,6 +2790,119 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.device != nil {
t := *r.device
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -2652,6 +2925,17 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag
parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi")
}
}
+ if r.frontportId != nil {
+ t := *r.frontportId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "frontport_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "frontport_id", t, "multi")
+ }
+ }
if r.id != nil {
t := *r.id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -2721,6 +3005,17 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag
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.label != nil {
t := *r.label
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -3020,6 +3315,39 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag
if r.ordering != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
}
+ if r.powerfeedId != nil {
+ t := *r.powerfeedId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "powerfeed_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "powerfeed_id", t, "multi")
+ }
+ }
+ if r.poweroutletId != nil {
+ t := *r.poweroutletId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "poweroutlet_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "poweroutlet_id", t, "multi")
+ }
+ }
+ if r.powerportId != nil {
+ t := *r.powerportId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "powerport_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "powerport_id", t, "multi")
+ }
+ }
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
}
@@ -3045,6 +3373,17 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag
parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", 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, "rearport_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rearport_id", t, "multi")
+ }
+ }
if r.site != nil {
t := *r.site
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -3255,6 +3594,9 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag
parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi")
}
}
+ if r.unterminated != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "unterminated", r.unterminated, "")
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
}
@@ -4442,6 +4784,17 @@ type ApiDcimConsolePortTemplatesListRequest 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
devicetypeId *[]*int32
devicetypeIdN *[]*int32
id *[]int32
@@ -4521,6 +4874,61 @@ func (r ApiDcimConsolePortTemplatesListRequest) CreatedByRequest(createdByReques
return r
}
+func (r ApiDcimConsolePortTemplatesListRequest) Description(description []string) ApiDcimConsolePortTemplatesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimConsolePortTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimConsolePortTemplatesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimConsolePortTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimConsolePortTemplatesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimConsolePortTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimConsolePortTemplatesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimConsolePortTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimConsolePortTemplatesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimConsolePortTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimConsolePortTemplatesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimConsolePortTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimConsolePortTemplatesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimConsolePortTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimConsolePortTemplatesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimConsolePortTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimConsolePortTemplatesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimConsolePortTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimConsolePortTemplatesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimConsolePortTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimConsolePortTemplatesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device type (ID)
func (r ApiDcimConsolePortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsolePortTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -4835,6 +5243,119 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.devicetypeId != nil {
t := *r.devicetypeId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -9231,6 +9752,17 @@ type ApiDcimConsoleServerPortTemplatesListRequest 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
devicetypeId *[]*int32
devicetypeIdN *[]*int32
id *[]int32
@@ -9310,6 +9842,61 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedByRequest(createdBy
return r
}
+func (r ApiDcimConsoleServerPortTemplatesListRequest) Description(description []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device type (ID)
func (r ApiDcimConsoleServerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -9624,6 +10211,119 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.devicetypeId != nil {
t := *r.devicetypeId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -14020,6 +14720,17 @@ type ApiDcimDeviceBayTemplatesListRequest 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
devicetypeId *[]int32
devicetypeIdN *[]int32
id *[]int32
@@ -14095,6 +14806,61 @@ func (r ApiDcimDeviceBayTemplatesListRequest) CreatedByRequest(createdByRequest
return r
}
+func (r ApiDcimDeviceBayTemplatesListRequest) Description(description []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimDeviceBayTemplatesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device type (ID)
func (r ApiDcimDeviceBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimDeviceBayTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -14387,6 +15153,119 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.devicetypeId != nil {
t := *r.devicetypeId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -20802,111 +21681,123 @@ 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
- deviceBays *bool
- hasFrontImage *bool
- hasRearImage *bool
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interfaces *bool
- inventoryItems *bool
- isFullDepth *bool
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- manufacturer *[]string
- manufacturerN *[]string
- manufacturerId *[]int32
- manufacturerIdN *[]int32
- model *[]string
- modelEmpty *bool
- modelIc *[]string
- modelIe *[]string
- modelIew *[]string
- modelIsw *[]string
- modelN *[]string
- modelNic *[]string
- modelNie *[]string
- modelNiew *[]string
- modelNisw *[]string
- modifiedByRequest *string
- moduleBays *bool
- offset *int32
- ordering *string
- partNumber *[]string
- partNumberEmpty *bool
- partNumberIc *[]string
- partNumberIe *[]string
- partNumberIew *[]string
- partNumberIsw *[]string
- partNumberN *[]string
- partNumberNic *[]string
- partNumberNie *[]string
- partNumberNiew *[]string
- partNumberNisw *[]string
- passThroughPorts *bool
- powerOutlets *bool
- powerPorts *bool
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- subdeviceRole *string
- subdeviceRoleN *string
- tag *[]string
- tagN *[]string
- uHeight *[]float64
- uHeightEmpty *bool
- uHeightGt *[]float64
- uHeightGte *[]float64
- uHeightLt *[]float64
- uHeightLte *[]float64
- uHeightN *[]float64
- updatedByRequest *string
- weight *[]float64
- weightEmpty *bool
- weightGt *[]float64
- weightGte *[]float64
- weightLt *[]float64
- weightLte *[]float64
- weightN *[]float64
- weightUnit *string
- weightUnitN *string
+ 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 {
@@ -20995,12 +21886,72 @@ func (r ApiDcimDeviceTypesListRequest) DefaultPlatformIdN(defaultPlatformIdN []*
return r
}
+func (r ApiDcimDeviceTypesListRequest) Description(description []string) ApiDcimDeviceTypesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimDeviceTypesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) DescriptionIc(descriptionIc []string) ApiDcimDeviceTypesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) DescriptionIe(descriptionIe []string) ApiDcimDeviceTypesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) DescriptionIew(descriptionIew []string) ApiDcimDeviceTypesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimDeviceTypesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) DescriptionN(descriptionN []string) ApiDcimDeviceTypesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) DescriptionNic(descriptionNic []string) ApiDcimDeviceTypesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) DescriptionNie(descriptionNie []string) ApiDcimDeviceTypesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimDeviceTypesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimDeviceTypesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Has device bays
func (r ApiDcimDeviceTypesListRequest) DeviceBays(deviceBays bool) ApiDcimDeviceTypesListRequest {
r.deviceBays = &deviceBays
return r
}
+func (r ApiDcimDeviceTypesListRequest) ExcludeFromUtilization(excludeFromUtilization bool) ApiDcimDeviceTypesListRequest {
+ r.excludeFromUtilization = &excludeFromUtilization
+ return r
+}
+
// Has a front image
func (r ApiDcimDeviceTypesListRequest) HasFrontImage(hasFrontImage bool) ApiDcimDeviceTypesListRequest {
r.hasFrontImage = &hasFrontImage
@@ -21626,9 +22577,125 @@ func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform_id__n", t, "multi")
}
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ 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.deviceBays != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "device_bays", r.deviceBays, "")
}
+ if r.excludeFromUtilization != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_from_utilization", r.excludeFromUtilization, "")
+ }
if r.hasFrontImage != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "has_front_image", r.hasFrontImage, "")
}
@@ -23446,6 +24513,17 @@ type ApiDcimDevicesListRequest 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
deviceBays *bool
deviceType *[]string
deviceTypeN *[]string
@@ -23781,6 +24859,61 @@ func (r ApiDcimDevicesListRequest) CreatedByRequest(createdByRequest string) Api
return r
}
+func (r ApiDcimDevicesListRequest) Description(description []string) ApiDcimDevicesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimDevicesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) DescriptionIc(descriptionIc []string) ApiDcimDevicesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) DescriptionIe(descriptionIe []string) ApiDcimDevicesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) DescriptionIew(descriptionIew []string) ApiDcimDevicesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimDevicesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) DescriptionN(descriptionN []string) ApiDcimDevicesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) DescriptionNic(descriptionNic []string) ApiDcimDevicesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) DescriptionNie(descriptionNie []string) ApiDcimDevicesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimDevicesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimDevicesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Has device bays
func (r ApiDcimDevicesListRequest) DeviceBays(deviceBays bool) ApiDcimDevicesListRequest {
r.deviceBays = &deviceBays
@@ -24984,6 +26117,119 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.deviceBays != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "device_bays", r.deviceBays, "")
}
@@ -26683,7 +27929,7 @@ type ApiDcimDevicesRenderConfigCreateRequest struct {
ApiService *DcimAPIService
id int32
writableDeviceWithConfigContextRequest *WritableDeviceWithConfigContextRequest
- format *string
+ format *DcimDevicesRenderConfigCreateFormatParameter
}
func (r ApiDcimDevicesRenderConfigCreateRequest) WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequest) ApiDcimDevicesRenderConfigCreateRequest {
@@ -26691,7 +27937,7 @@ func (r ApiDcimDevicesRenderConfigCreateRequest) WritableDeviceWithConfigContext
return r
}
-func (r ApiDcimDevicesRenderConfigCreateRequest) Format(format string) ApiDcimDevicesRenderConfigCreateRequest {
+func (r ApiDcimDevicesRenderConfigCreateRequest) Format(format DcimDevicesRenderConfigCreateFormatParameter) ApiDcimDevicesRenderConfigCreateRequest {
r.format = &format
return r
}
@@ -27679,6 +28925,17 @@ type ApiDcimFrontPortTemplatesListRequest 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
devicetypeId *[]*int32
devicetypeIdN *[]*int32
id *[]int32
@@ -27813,6 +29070,61 @@ func (r ApiDcimFrontPortTemplatesListRequest) CreatedByRequest(createdByRequest
return r
}
+func (r ApiDcimFrontPortTemplatesListRequest) Description(description []string) ApiDcimFrontPortTemplatesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimFrontPortTemplatesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimFrontPortTemplatesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimFrontPortTemplatesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimFrontPortTemplatesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimFrontPortTemplatesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimFrontPortTemplatesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimFrontPortTemplatesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimFrontPortTemplatesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimFrontPortTemplatesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimFrontPortTemplatesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device type (ID)
func (r ApiDcimFrontPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimFrontPortTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -28240,6 +29552,119 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.devicetypeId != nil {
t := *r.devicetypeId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -32822,6 +34247,17 @@ type ApiDcimInterfaceTemplatesListRequest 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
devicetypeId *[]*int32
devicetypeIdN *[]*int32
enabled *bool
@@ -32919,6 +34355,61 @@ func (r ApiDcimInterfaceTemplatesListRequest) CreatedByRequest(createdByRequest
return r
}
+func (r ApiDcimInterfaceTemplatesListRequest) Description(description []string) ApiDcimInterfaceTemplatesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimInterfaceTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInterfaceTemplatesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimInterfaceTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimInterfaceTemplatesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimInterfaceTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimInterfaceTemplatesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimInterfaceTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimInterfaceTemplatesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimInterfaceTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInterfaceTemplatesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimInterfaceTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimInterfaceTemplatesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimInterfaceTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimInterfaceTemplatesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimInterfaceTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimInterfaceTemplatesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimInterfaceTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimInterfaceTemplatesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimInterfaceTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimInterfaceTemplatesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device type (ID)
func (r ApiDcimInterfaceTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimInterfaceTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -33295,6 +34786,119 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.devicetypeId != nil {
t := *r.devicetypeId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -39323,6 +40927,17 @@ type ApiDcimInventoryItemRolesListRequest 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
id *[]int32
idEmpty *bool
idGt *[]int32
@@ -39464,6 +41079,61 @@ func (r ApiDcimInventoryItemRolesListRequest) CreatedByRequest(createdByRequest
return r
}
+func (r ApiDcimInventoryItemRolesListRequest) Description(description []string) ApiDcimInventoryItemRolesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimInventoryItemRolesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInventoryItemRolesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimInventoryItemRolesListRequest) DescriptionIc(descriptionIc []string) ApiDcimInventoryItemRolesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimInventoryItemRolesListRequest) DescriptionIe(descriptionIe []string) ApiDcimInventoryItemRolesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimInventoryItemRolesListRequest) DescriptionIew(descriptionIew []string) ApiDcimInventoryItemRolesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimInventoryItemRolesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInventoryItemRolesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimInventoryItemRolesListRequest) DescriptionN(descriptionN []string) ApiDcimInventoryItemRolesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimInventoryItemRolesListRequest) DescriptionNic(descriptionNic []string) ApiDcimInventoryItemRolesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimInventoryItemRolesListRequest) DescriptionNie(descriptionNie []string) ApiDcimInventoryItemRolesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimInventoryItemRolesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimInventoryItemRolesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimInventoryItemRolesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimInventoryItemRolesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
func (r ApiDcimInventoryItemRolesListRequest) Id(id []int32) ApiDcimInventoryItemRolesListRequest {
r.id = &id
return r
@@ -39922,6 +41592,119 @@ func (a *DcimAPIService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.id != nil {
t := *r.id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -41389,6 +43172,17 @@ type ApiDcimInventoryItemTemplatesListRequest 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
devicetypeId *[]int32
devicetypeIdN *[]int32
id *[]int32
@@ -41541,6 +43335,61 @@ func (r ApiDcimInventoryItemTemplatesListRequest) CreatedByRequest(createdByRequ
return r
}
+func (r ApiDcimInventoryItemTemplatesListRequest) Description(description []string) ApiDcimInventoryItemTemplatesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInventoryItemTemplatesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimInventoryItemTemplatesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimInventoryItemTemplatesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimInventoryItemTemplatesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInventoryItemTemplatesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimInventoryItemTemplatesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimInventoryItemTemplatesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimInventoryItemTemplatesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimInventoryItemTemplatesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimInventoryItemTemplatesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device type (ID)
func (r ApiDcimInventoryItemTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimInventoryItemTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -42086,6 +43935,119 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.devicetypeId != nil {
t := *r.devicetypeId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -51985,6 +53947,17 @@ type ApiDcimModuleBayTemplatesListRequest 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
devicetypeId *[]int32
devicetypeIdN *[]int32
id *[]int32
@@ -52060,6 +54033,61 @@ func (r ApiDcimModuleBayTemplatesListRequest) CreatedByRequest(createdByRequest
return r
}
+func (r ApiDcimModuleBayTemplatesListRequest) Description(description []string) ApiDcimModuleBayTemplatesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimModuleBayTemplatesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimModuleBayTemplatesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimModuleBayTemplatesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimModuleBayTemplatesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimModuleBayTemplatesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimModuleBayTemplatesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimModuleBayTemplatesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimModuleBayTemplatesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimModuleBayTemplatesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimModuleBayTemplatesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device type (ID)
func (r ApiDcimModuleBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimModuleBayTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -52352,6 +54380,119 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.devicetypeId != nil {
t := *r.devicetypeId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -56487,6 +58628,17 @@ type ApiDcimModuleTypesListRequest 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
id *[]int32
idEmpty *bool
idGt *[]int32
@@ -56602,6 +58754,61 @@ func (r ApiDcimModuleTypesListRequest) CreatedByRequest(createdByRequest string)
return r
}
+func (r ApiDcimModuleTypesListRequest) Description(description []string) ApiDcimModuleTypesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimModuleTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimModuleTypesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimModuleTypesListRequest) DescriptionIc(descriptionIc []string) ApiDcimModuleTypesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimModuleTypesListRequest) DescriptionIe(descriptionIe []string) ApiDcimModuleTypesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimModuleTypesListRequest) DescriptionIew(descriptionIew []string) ApiDcimModuleTypesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimModuleTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimModuleTypesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimModuleTypesListRequest) DescriptionN(descriptionN []string) ApiDcimModuleTypesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimModuleTypesListRequest) DescriptionNic(descriptionNic []string) ApiDcimModuleTypesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimModuleTypesListRequest) DescriptionNie(descriptionNie []string) ApiDcimModuleTypesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimModuleTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimModuleTypesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimModuleTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimModuleTypesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
func (r ApiDcimModuleTypesListRequest) Id(id []int32) ApiDcimModuleTypesListRequest {
r.id = &id
return r
@@ -57046,6 +59253,119 @@ func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.id != nil {
t := *r.id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -58646,6 +60966,17 @@ type ApiDcimModulesListRequest 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
deviceId *[]int32
deviceIdN *[]int32
id *[]int32
@@ -58790,6 +61121,61 @@ func (r ApiDcimModulesListRequest) CreatedByRequest(createdByRequest string) Api
return r
}
+func (r ApiDcimModulesListRequest) Description(description []string) ApiDcimModulesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimModulesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimModulesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimModulesListRequest) DescriptionIc(descriptionIc []string) ApiDcimModulesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimModulesListRequest) DescriptionIe(descriptionIe []string) ApiDcimModulesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimModulesListRequest) DescriptionIew(descriptionIew []string) ApiDcimModulesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimModulesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimModulesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimModulesListRequest) DescriptionN(descriptionN []string) ApiDcimModulesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimModulesListRequest) DescriptionNic(descriptionNic []string) ApiDcimModulesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimModulesListRequest) DescriptionNie(descriptionNie []string) ApiDcimModulesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimModulesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimModulesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimModulesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimModulesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device (ID)
func (r ApiDcimModulesListRequest) DeviceId(deviceId []int32) ApiDcimModulesListRequest {
r.deviceId = &deviceId
@@ -59275,6 +61661,119 @@ func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.deviceId != nil {
t := *r.deviceId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -62961,6 +65460,17 @@ type ApiDcimPowerFeedsListRequest 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
id *[]int32
idEmpty *bool
idGt *[]int32
@@ -63138,6 +65648,61 @@ func (r ApiDcimPowerFeedsListRequest) CreatedByRequest(createdByRequest string)
return r
}
+func (r ApiDcimPowerFeedsListRequest) Description(description []string) ApiDcimPowerFeedsListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimPowerFeedsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerFeedsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimPowerFeedsListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerFeedsListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimPowerFeedsListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerFeedsListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimPowerFeedsListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerFeedsListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimPowerFeedsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerFeedsListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimPowerFeedsListRequest) DescriptionN(descriptionN []string) ApiDcimPowerFeedsListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimPowerFeedsListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerFeedsListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimPowerFeedsListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerFeedsListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimPowerFeedsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerFeedsListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimPowerFeedsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerFeedsListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
func (r ApiDcimPowerFeedsListRequest) Id(id []int32) ApiDcimPowerFeedsListRequest {
r.id = &id
return r
@@ -63768,6 +66333,119 @@ func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.id != nil {
t := *r.id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -65676,6 +68354,17 @@ type ApiDcimPowerOutletTemplatesListRequest 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
devicetypeId *[]*int32
devicetypeIdN *[]*int32
feedLeg *[]string
@@ -65757,6 +68446,61 @@ func (r ApiDcimPowerOutletTemplatesListRequest) CreatedByRequest(createdByReques
return r
}
+func (r ApiDcimPowerOutletTemplatesListRequest) Description(description []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerOutletTemplatesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device type (ID)
func (r ApiDcimPowerOutletTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerOutletTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -66083,6 +68827,119 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.devicetypeId != nil {
t := *r.devicetypeId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -70543,6 +73400,17 @@ type ApiDcimPowerPanelsListRequest 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
id *[]int32
idEmpty *bool
idGt *[]int32
@@ -70668,6 +73536,61 @@ func (r ApiDcimPowerPanelsListRequest) CreatedByRequest(createdByRequest string)
return r
}
+func (r ApiDcimPowerPanelsListRequest) Description(description []string) ApiDcimPowerPanelsListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimPowerPanelsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerPanelsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimPowerPanelsListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerPanelsListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimPowerPanelsListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerPanelsListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimPowerPanelsListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerPanelsListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimPowerPanelsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerPanelsListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimPowerPanelsListRequest) DescriptionN(descriptionN []string) ApiDcimPowerPanelsListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimPowerPanelsListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerPanelsListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimPowerPanelsListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerPanelsListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimPowerPanelsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerPanelsListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimPowerPanelsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerPanelsListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
func (r ApiDcimPowerPanelsListRequest) Id(id []int32) ApiDcimPowerPanelsListRequest {
r.id = &id
return r
@@ -71108,6 +74031,119 @@ func (a *DcimAPIService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.id != nil {
t := *r.id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -72614,6 +75650,17 @@ type ApiDcimPowerPortTemplatesListRequest 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
devicetypeId *[]*int32
devicetypeIdN *[]*int32
id *[]int32
@@ -72735,6 +75782,61 @@ func (r ApiDcimPowerPortTemplatesListRequest) CreatedByRequest(createdByRequest
return r
}
+func (r ApiDcimPowerPortTemplatesListRequest) Description(description []string) ApiDcimPowerPortTemplatesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerPortTemplatesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerPortTemplatesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerPortTemplatesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerPortTemplatesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerPortTemplatesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimPowerPortTemplatesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerPortTemplatesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerPortTemplatesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerPortTemplatesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerPortTemplatesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device type (ID)
func (r ApiDcimPowerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerPortTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -73153,6 +76255,119 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.devicetypeId != nil {
t := *r.devicetypeId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -82473,6 +85688,17 @@ type ApiDcimRacksListRequest struct {
createdN *[]time.Time
createdByRequest *string
descUnits *bool
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
facilityId *[]string
facilityIdEmpty *bool
facilityIdIc *[]string
@@ -82753,6 +85979,61 @@ func (r ApiDcimRacksListRequest) DescUnits(descUnits bool) ApiDcimRacksListReque
return r
}
+func (r ApiDcimRacksListRequest) Description(description []string) ApiDcimRacksListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimRacksListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimRacksListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimRacksListRequest) DescriptionIc(descriptionIc []string) ApiDcimRacksListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimRacksListRequest) DescriptionIe(descriptionIe []string) ApiDcimRacksListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimRacksListRequest) DescriptionIew(descriptionIew []string) ApiDcimRacksListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimRacksListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimRacksListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimRacksListRequest) DescriptionN(descriptionN []string) ApiDcimRacksListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimRacksListRequest) DescriptionNic(descriptionNic []string) ApiDcimRacksListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimRacksListRequest) DescriptionNie(descriptionNie []string) ApiDcimRacksListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimRacksListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimRacksListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimRacksListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimRacksListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
func (r ApiDcimRacksListRequest) FacilityId(facilityId []string) ApiDcimRacksListRequest {
r.facilityId = &facilityId
return r
@@ -83800,6 +87081,119 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin
if r.descUnits != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "desc_units", r.descUnits, "")
}
+ 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.facilityId != nil {
t := *r.facilityId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -86251,6 +89645,17 @@ type ApiDcimRearPortTemplatesListRequest 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
devicetypeId *[]*int32
devicetypeIdN *[]*int32
id *[]int32
@@ -86392,6 +89797,61 @@ func (r ApiDcimRearPortTemplatesListRequest) CreatedByRequest(createdByRequest s
return r
}
+func (r ApiDcimRearPortTemplatesListRequest) Description(description []string) ApiDcimRearPortTemplatesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimRearPortTemplatesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimRearPortTemplatesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimRearPortTemplatesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimRearPortTemplatesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimRearPortTemplatesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimRearPortTemplatesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimRearPortTemplatesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimRearPortTemplatesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimRearPortTemplatesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimRearPortTemplatesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device type (ID)
func (r ApiDcimRearPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimRearPortTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -86854,6 +90314,119 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.devicetypeId != nil {
t := *r.devicetypeId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -99081,6 +102654,17 @@ type ApiDcimVirtualChassisListRequest 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
domain *[]string
domainEmpty *bool
domainIc *[]string
@@ -99187,6 +102771,61 @@ func (r ApiDcimVirtualChassisListRequest) CreatedByRequest(createdByRequest stri
return r
}
+func (r ApiDcimVirtualChassisListRequest) Description(description []string) ApiDcimVirtualChassisListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimVirtualChassisListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) DescriptionIc(descriptionIc []string) ApiDcimVirtualChassisListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) DescriptionIe(descriptionIe []string) ApiDcimVirtualChassisListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) DescriptionIew(descriptionIew []string) ApiDcimVirtualChassisListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimVirtualChassisListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) DescriptionN(descriptionN []string) ApiDcimVirtualChassisListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) DescriptionNic(descriptionNic []string) ApiDcimVirtualChassisListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) DescriptionNie(descriptionNie []string) ApiDcimVirtualChassisListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimVirtualChassisListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimVirtualChassisListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
func (r ApiDcimVirtualChassisListRequest) Domain(domain []string) ApiDcimVirtualChassisListRequest {
r.domain = &domain
return r
@@ -99652,6 +103291,119 @@ func (a *DcimAPIService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.domain != nil {
t := *r.domain
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -101330,6 +105082,17 @@ type ApiDcimVirtualDeviceContextsListRequest 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 *[]int32
deviceN *[]int32
deviceId *[]int32
@@ -101364,6 +105127,10 @@ type ApiDcimVirtualDeviceContextsListRequest struct {
nameNisw *[]string
offset *int32
ordering *string
+ primaryIp4Id *[]int32
+ primaryIp4IdN *[]int32
+ primaryIp6Id *[]int32
+ primaryIp6IdN *[]int32
q *string
status *[]string
statusN *[]string
@@ -101420,6 +105187,61 @@ func (r ApiDcimVirtualDeviceContextsListRequest) CreatedByRequest(createdByReque
return r
}
+func (r ApiDcimVirtualDeviceContextsListRequest) Description(description []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimVirtualDeviceContextsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) DescriptionIc(descriptionIc []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) DescriptionIe(descriptionIe []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) DescriptionIew(descriptionIew []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) DescriptionN(descriptionN []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) DescriptionNic(descriptionNic []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) DescriptionNie(descriptionNie []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device model
func (r ApiDcimVirtualDeviceContextsListRequest) Device(device []int32) ApiDcimVirtualDeviceContextsListRequest {
r.device = &device
@@ -101598,6 +105420,30 @@ func (r ApiDcimVirtualDeviceContextsListRequest) Ordering(ordering string) ApiDc
return r
}
+// Primary IPv4 (ID)
+func (r ApiDcimVirtualDeviceContextsListRequest) PrimaryIp4Id(primaryIp4Id []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.primaryIp4Id = &primaryIp4Id
+ return r
+}
+
+// Primary IPv4 (ID)
+func (r ApiDcimVirtualDeviceContextsListRequest) PrimaryIp4IdN(primaryIp4IdN []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.primaryIp4IdN = &primaryIp4IdN
+ return r
+}
+
+// Primary IPv6 (ID)
+func (r ApiDcimVirtualDeviceContextsListRequest) PrimaryIp6Id(primaryIp6Id []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.primaryIp6Id = &primaryIp6Id
+ return r
+}
+
+// Primary IPv6 (ID)
+func (r ApiDcimVirtualDeviceContextsListRequest) PrimaryIp6IdN(primaryIp6IdN []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.primaryIp6IdN = &primaryIp6IdN
+ return r
+}
+
// Search
func (r ApiDcimVirtualDeviceContextsListRequest) Q(q string) ApiDcimVirtualDeviceContextsListRequest {
r.q = &q
@@ -101798,6 +105644,119 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.device != nil {
t := *r.device
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -102116,6 +106075,50 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe
if r.ordering != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
}
+ if r.primaryIp4Id != nil {
+ t := *r.primaryIp4Id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", t, "multi")
+ }
+ }
+ if r.primaryIp4IdN != nil {
+ t := *r.primaryIp4IdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", t, "multi")
+ }
+ }
+ if r.primaryIp6Id != nil {
+ t := *r.primaryIp6Id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", t, "multi")
+ }
+ }
+ if r.primaryIp6IdN != nil {
+ t := *r.primaryIp6IdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", t, "multi")
+ }
+ }
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
}
diff --git a/api_extras.go b/api_extras.go
index e7e43739c6..f0dc9cb334 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -2201,6 +2201,17 @@ type ApiExtrasConfigContextsListRequest struct {
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
deviceTypeId *[]int32
deviceTypeIdN *[]int32
id *[]int32
@@ -2432,6 +2443,61 @@ func (r ApiExtrasConfigContextsListRequest) DataSyncedN(dataSyncedN []time.Time)
return r
}
+func (r ApiExtrasConfigContextsListRequest) Description(description []string) ApiExtrasConfigContextsListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiExtrasConfigContextsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasConfigContextsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiExtrasConfigContextsListRequest) DescriptionIc(descriptionIc []string) ApiExtrasConfigContextsListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiExtrasConfigContextsListRequest) DescriptionIe(descriptionIe []string) ApiExtrasConfigContextsListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiExtrasConfigContextsListRequest) DescriptionIew(descriptionIew []string) ApiExtrasConfigContextsListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiExtrasConfigContextsListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasConfigContextsListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiExtrasConfigContextsListRequest) DescriptionN(descriptionN []string) ApiExtrasConfigContextsListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiExtrasConfigContextsListRequest) DescriptionNic(descriptionNic []string) ApiExtrasConfigContextsListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiExtrasConfigContextsListRequest) DescriptionNie(descriptionNie []string) ApiExtrasConfigContextsListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiExtrasConfigContextsListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasConfigContextsListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiExtrasConfigContextsListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasConfigContextsListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device type
func (r ApiExtrasConfigContextsListRequest) DeviceTypeId(deviceTypeId []int32) ApiExtrasConfigContextsListRequest {
r.deviceTypeId = &deviceTypeId
@@ -3168,6 +3234,119 @@ func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigCont
parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", t, "multi")
}
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.deviceTypeId != nil {
t := *r.deviceTypeId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -6001,7 +6180,7 @@ type ApiExtrasConfigTemplatesRenderCreateRequest struct {
ApiService *ExtrasAPIService
id int32
writableConfigTemplateRequest *WritableConfigTemplateRequest
- format *string
+ format *DcimDevicesRenderConfigCreateFormatParameter
}
func (r ApiExtrasConfigTemplatesRenderCreateRequest) WritableConfigTemplateRequest(writableConfigTemplateRequest WritableConfigTemplateRequest) ApiExtrasConfigTemplatesRenderCreateRequest {
@@ -6009,7 +6188,7 @@ func (r ApiExtrasConfigTemplatesRenderCreateRequest) WritableConfigTemplateReque
return r
}
-func (r ApiExtrasConfigTemplatesRenderCreateRequest) Format(format string) ApiExtrasConfigTemplatesRenderCreateRequest {
+func (r ApiExtrasConfigTemplatesRenderCreateRequest) Format(format DcimDevicesRenderConfigCreateFormatParameter) ApiExtrasConfigTemplatesRenderCreateRequest {
r.format = &format
return r
}
@@ -9239,8 +9418,10 @@ type ApiExtrasCustomFieldsListRequest struct {
searchWeightN *[]int32
type_ *[]string
typeN *[]string
- uiVisibility *string
- uiVisibilityN *string
+ uiEditable *string
+ uiEditableN *string
+ uiVisible *string
+ uiVisibleN *string
weight *[]int32
weightEmpty *bool
weightGt *[]int32
@@ -9648,15 +9829,27 @@ func (r ApiExtrasCustomFieldsListRequest) TypeN(typeN []string) ApiExtrasCustomF
return r
}
-// Specifies the visibility of custom field in the UI
-func (r ApiExtrasCustomFieldsListRequest) UiVisibility(uiVisibility string) ApiExtrasCustomFieldsListRequest {
- r.uiVisibility = &uiVisibility
+// Specifies whether the custom field value can be edited in the UI
+func (r ApiExtrasCustomFieldsListRequest) UiEditable(uiEditable string) ApiExtrasCustomFieldsListRequest {
+ r.uiEditable = &uiEditable
return r
}
-// Specifies the visibility of custom field in the UI
-func (r ApiExtrasCustomFieldsListRequest) UiVisibilityN(uiVisibilityN string) ApiExtrasCustomFieldsListRequest {
- r.uiVisibilityN = &uiVisibilityN
+// Specifies whether the custom field value can be edited in the UI
+func (r ApiExtrasCustomFieldsListRequest) UiEditableN(uiEditableN string) ApiExtrasCustomFieldsListRequest {
+ r.uiEditableN = &uiEditableN
+ return r
+}
+
+// Specifies whether the custom field is displayed in the UI
+func (r ApiExtrasCustomFieldsListRequest) UiVisible(uiVisible string) ApiExtrasCustomFieldsListRequest {
+ r.uiVisible = &uiVisible
+ return r
+}
+
+// Specifies whether the custom field is displayed in the UI
+func (r ApiExtrasCustomFieldsListRequest) UiVisibleN(uiVisibleN string) ApiExtrasCustomFieldsListRequest {
+ r.uiVisibleN = &uiVisibleN
return r
}
@@ -10410,11 +10603,17 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields
parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi")
}
}
- if r.uiVisibility != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "ui_visibility", r.uiVisibility, "")
+ if r.uiEditable != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ui_editable", r.uiEditable, "")
+ }
+ if r.uiEditableN != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ui_editable__n", r.uiEditableN, "")
+ }
+ if r.uiVisible != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ui_visible", r.uiVisible, "")
}
- if r.uiVisibilityN != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "ui_visibility__n", r.uiVisibilityN, "")
+ if r.uiVisibleN != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ui_visible__n", r.uiVisibleN, "")
}
if r.weight != nil {
t := *r.weight
@@ -13494,56 +13693,56 @@ func (a *ExtrasAPIService) ExtrasDashboardUpdateExecute(r ApiExtrasDashboardUpda
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiExtrasExportTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- exportTemplateRequest *[]ExportTemplateRequest
+type ApiExtrasEventRulesBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ eventRuleRequest *[]EventRuleRequest
}
-func (r ApiExtrasExportTemplatesBulkDestroyRequest) ExportTemplateRequest(exportTemplateRequest []ExportTemplateRequest) ApiExtrasExportTemplatesBulkDestroyRequest {
- r.exportTemplateRequest = &exportTemplateRequest
+func (r ApiExtrasEventRulesBulkDestroyRequest) EventRuleRequest(eventRuleRequest []EventRuleRequest) ApiExtrasEventRulesBulkDestroyRequest {
+ r.eventRuleRequest = &eventRuleRequest
return r
}
-func (r ApiExtrasExportTemplatesBulkDestroyRequest) Execute() (*http.Response, error) {
- return r.ApiService.ExtrasExportTemplatesBulkDestroyExecute(r)
+func (r ApiExtrasEventRulesBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.ExtrasEventRulesBulkDestroyExecute(r)
}
/*
-ExtrasExportTemplatesBulkDestroy Method for ExtrasExportTemplatesBulkDestroy
+ExtrasEventRulesBulkDestroy Method for ExtrasEventRulesBulkDestroy
-Delete a list of export template objects.
+Delete a list of event rule objects.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesBulkDestroyRequest
+ @return ApiExtrasEventRulesBulkDestroyRequest
*/
-func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroy(ctx context.Context) ApiExtrasExportTemplatesBulkDestroyRequest {
- return ApiExtrasExportTemplatesBulkDestroyRequest{
+func (a *ExtrasAPIService) ExtrasEventRulesBulkDestroy(ctx context.Context) ApiExtrasEventRulesBulkDestroyRequest {
+ return ApiExtrasEventRulesBulkDestroyRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
-func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasExportTemplatesBulkDestroyRequest) (*http.Response, error) {
+func (a *ExtrasAPIService) ExtrasEventRulesBulkDestroyExecute(r ApiExtrasEventRulesBulkDestroyRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkDestroy")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesBulkDestroy")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/extras/export-templates/"
+ localVarPath := localBasePath + "/api/extras/event-rules/"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.exportTemplateRequest == nil {
- return nil, reportError("exportTemplateRequest is required and must be specified")
+ if r.eventRuleRequest == nil {
+ return nil, reportError("eventRuleRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -13564,7 +13763,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasEx
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.exportTemplateRequest
+ localVarPostBody = r.eventRuleRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -13607,31 +13806,31 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasEx
return localVarHTTPResponse, nil
}
-type ApiExtrasExportTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- exportTemplateRequest *[]ExportTemplateRequest
+type ApiExtrasEventRulesBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ eventRuleRequest *[]EventRuleRequest
}
-func (r ApiExtrasExportTemplatesBulkPartialUpdateRequest) ExportTemplateRequest(exportTemplateRequest []ExportTemplateRequest) ApiExtrasExportTemplatesBulkPartialUpdateRequest {
- r.exportTemplateRequest = &exportTemplateRequest
+func (r ApiExtrasEventRulesBulkPartialUpdateRequest) EventRuleRequest(eventRuleRequest []EventRuleRequest) ApiExtrasEventRulesBulkPartialUpdateRequest {
+ r.eventRuleRequest = &eventRuleRequest
return r
}
-func (r ApiExtrasExportTemplatesBulkPartialUpdateRequest) Execute() ([]ExportTemplate, *http.Response, error) {
- return r.ApiService.ExtrasExportTemplatesBulkPartialUpdateExecute(r)
+func (r ApiExtrasEventRulesBulkPartialUpdateRequest) Execute() ([]EventRule, *http.Response, error) {
+ return r.ApiService.ExtrasEventRulesBulkPartialUpdateExecute(r)
}
/*
-ExtrasExportTemplatesBulkPartialUpdate Method for ExtrasExportTemplatesBulkPartialUpdate
+ExtrasEventRulesBulkPartialUpdate Method for ExtrasEventRulesBulkPartialUpdate
-Patch a list of export template objects.
+Patch a list of event rule objects.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesBulkPartialUpdateRequest
+ @return ApiExtrasEventRulesBulkPartialUpdateRequest
*/
-func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkPartialUpdateRequest {
- return ApiExtrasExportTemplatesBulkPartialUpdateRequest{
+func (a *ExtrasAPIService) ExtrasEventRulesBulkPartialUpdate(ctx context.Context) ApiExtrasEventRulesBulkPartialUpdateRequest {
+ return ApiExtrasEventRulesBulkPartialUpdateRequest{
ApiService: a,
ctx: ctx,
}
@@ -13639,27 +13838,27 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdate(ctx context.Co
// Execute executes the request
//
-// @return []ExportTemplate
-func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiExtrasExportTemplatesBulkPartialUpdateRequest) ([]ExportTemplate, *http.Response, error) {
+// @return []EventRule
+func (a *ExtrasAPIService) ExtrasEventRulesBulkPartialUpdateExecute(r ApiExtrasEventRulesBulkPartialUpdateRequest) ([]EventRule, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
- localVarReturnValue []ExportTemplate
+ localVarReturnValue []EventRule
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkPartialUpdate")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesBulkPartialUpdate")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/extras/export-templates/"
+ localVarPath := localBasePath + "/api/extras/event-rules/"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.exportTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("exportTemplateRequest is required and must be specified")
+ if r.eventRuleRequest == nil {
+ return localVarReturnValue, nil, reportError("eventRuleRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -13680,7 +13879,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiEx
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.exportTemplateRequest
+ localVarPostBody = r.eventRuleRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -13732,31 +13931,31 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiEx
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiExtrasExportTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- exportTemplateRequest *[]ExportTemplateRequest
+type ApiExtrasEventRulesBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ eventRuleRequest *[]EventRuleRequest
}
-func (r ApiExtrasExportTemplatesBulkUpdateRequest) ExportTemplateRequest(exportTemplateRequest []ExportTemplateRequest) ApiExtrasExportTemplatesBulkUpdateRequest {
- r.exportTemplateRequest = &exportTemplateRequest
+func (r ApiExtrasEventRulesBulkUpdateRequest) EventRuleRequest(eventRuleRequest []EventRuleRequest) ApiExtrasEventRulesBulkUpdateRequest {
+ r.eventRuleRequest = &eventRuleRequest
return r
}
-func (r ApiExtrasExportTemplatesBulkUpdateRequest) Execute() ([]ExportTemplate, *http.Response, error) {
- return r.ApiService.ExtrasExportTemplatesBulkUpdateExecute(r)
+func (r ApiExtrasEventRulesBulkUpdateRequest) Execute() ([]EventRule, *http.Response, error) {
+ return r.ApiService.ExtrasEventRulesBulkUpdateExecute(r)
}
/*
-ExtrasExportTemplatesBulkUpdate Method for ExtrasExportTemplatesBulkUpdate
+ExtrasEventRulesBulkUpdate Method for ExtrasEventRulesBulkUpdate
-Put a list of export template objects.
+Put a list of event rule objects.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesBulkUpdateRequest
+ @return ApiExtrasEventRulesBulkUpdateRequest
*/
-func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkUpdateRequest {
- return ApiExtrasExportTemplatesBulkUpdateRequest{
+func (a *ExtrasAPIService) ExtrasEventRulesBulkUpdate(ctx context.Context) ApiExtrasEventRulesBulkUpdateRequest {
+ return ApiExtrasEventRulesBulkUpdateRequest{
ApiService: a,
ctx: ctx,
}
@@ -13764,27 +13963,27 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdate(ctx context.Context)
// Execute executes the request
//
-// @return []ExportTemplate
-func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExportTemplatesBulkUpdateRequest) ([]ExportTemplate, *http.Response, error) {
+// @return []EventRule
+func (a *ExtrasAPIService) ExtrasEventRulesBulkUpdateExecute(r ApiExtrasEventRulesBulkUpdateRequest) ([]EventRule, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
formFiles []formFile
- localVarReturnValue []ExportTemplate
+ localVarReturnValue []EventRule
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkUpdate")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesBulkUpdate")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/extras/export-templates/"
+ localVarPath := localBasePath + "/api/extras/event-rules/"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.exportTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("exportTemplateRequest is required and must be specified")
+ if r.eventRuleRequest == nil {
+ return localVarReturnValue, nil, reportError("eventRuleRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -13805,7 +14004,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExp
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.exportTemplateRequest
+ localVarPostBody = r.eventRuleRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -13857,28 +14056,2351 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExp
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiExtrasExportTemplatesCreateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- writableExportTemplateRequest *WritableExportTemplateRequest
+type ApiExtrasEventRulesCreateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ writableEventRuleRequest *WritableEventRuleRequest
}
-func (r ApiExtrasExportTemplatesCreateRequest) WritableExportTemplateRequest(writableExportTemplateRequest WritableExportTemplateRequest) ApiExtrasExportTemplatesCreateRequest {
- r.writableExportTemplateRequest = &writableExportTemplateRequest
+func (r ApiExtrasEventRulesCreateRequest) WritableEventRuleRequest(writableEventRuleRequest WritableEventRuleRequest) ApiExtrasEventRulesCreateRequest {
+ r.writableEventRuleRequest = &writableEventRuleRequest
return r
}
-func (r ApiExtrasExportTemplatesCreateRequest) Execute() (*ExportTemplate, *http.Response, error) {
- return r.ApiService.ExtrasExportTemplatesCreateExecute(r)
+func (r ApiExtrasEventRulesCreateRequest) Execute() (*EventRule, *http.Response, error) {
+ return r.ApiService.ExtrasEventRulesCreateExecute(r)
}
/*
-ExtrasExportTemplatesCreate Method for ExtrasExportTemplatesCreate
+ExtrasEventRulesCreate Method for ExtrasEventRulesCreate
-Post a list of export template objects.
+Post a list of event rule objects.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesCreateRequest
+ @return ApiExtrasEventRulesCreateRequest
+*/
+func (a *ExtrasAPIService) ExtrasEventRulesCreate(ctx context.Context) ApiExtrasEventRulesCreateRequest {
+ return ApiExtrasEventRulesCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return EventRule
+func (a *ExtrasAPIService) ExtrasEventRulesCreateExecute(r ApiExtrasEventRulesCreateRequest) (*EventRule, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *EventRule
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/event-rules/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableEventRuleRequest == nil {
+ return localVarReturnValue, nil, reportError("writableEventRuleRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // 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.writableEventRuleRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiExtrasEventRulesDestroyRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+}
+
+func (r ApiExtrasEventRulesDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.ExtrasEventRulesDestroyExecute(r)
+}
+
+/*
+ExtrasEventRulesDestroy Method for ExtrasEventRulesDestroy
+
+Delete a event rule object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this event rule.
+ @return ApiExtrasEventRulesDestroyRequest
+*/
+func (a *ExtrasAPIService) ExtrasEventRulesDestroy(ctx context.Context, id int32) ApiExtrasEventRulesDestroyRequest {
+ return ApiExtrasEventRulesDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *ExtrasAPIService) ExtrasEventRulesDestroyExecute(r ApiExtrasEventRulesDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/event-rules/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // 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 ApiExtrasEventRulesListRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ actionObjectId *[]int32
+ actionObjectIdEmpty *[]int32
+ actionObjectIdGt *[]int32
+ actionObjectIdGte *[]int32
+ actionObjectIdLt *[]int32
+ actionObjectIdLte *[]int32
+ actionObjectIdN *[]int32
+ actionObjectType *string
+ actionObjectTypeN *string
+ actionType *[]string
+ actionTypeN *[]string
+ contentTypeId *[]int32
+ contentTypeIdEmpty *[]int32
+ contentTypeIdGt *[]int32
+ contentTypeIdGte *[]int32
+ contentTypeIdLt *[]int32
+ contentTypeIdLte *[]int32
+ contentTypeIdN *[]int32
+ contentTypes *string
+ contentTypesIc *string
+ contentTypesIe *string
+ contentTypesIew *string
+ contentTypesIsw *string
+ contentTypesN *string
+ contentTypesNic *string
+ contentTypesNie *string
+ contentTypesNiew *string
+ contentTypesNisw *string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ 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
+ offset *int32
+ ordering *string
+ q *string
+ tag *[]string
+ tagN *[]string
+ typeCreate *bool
+ typeDelete *bool
+ typeJobEnd *bool
+ typeJobStart *bool
+ typeUpdate *bool
+ updatedByRequest *string
+}
+
+func (r ApiExtrasEventRulesListRequest) ActionObjectId(actionObjectId []int32) ApiExtrasEventRulesListRequest {
+ r.actionObjectId = &actionObjectId
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ActionObjectIdEmpty(actionObjectIdEmpty []int32) ApiExtrasEventRulesListRequest {
+ r.actionObjectIdEmpty = &actionObjectIdEmpty
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ActionObjectIdGt(actionObjectIdGt []int32) ApiExtrasEventRulesListRequest {
+ r.actionObjectIdGt = &actionObjectIdGt
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ActionObjectIdGte(actionObjectIdGte []int32) ApiExtrasEventRulesListRequest {
+ r.actionObjectIdGte = &actionObjectIdGte
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ActionObjectIdLt(actionObjectIdLt []int32) ApiExtrasEventRulesListRequest {
+ r.actionObjectIdLt = &actionObjectIdLt
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ActionObjectIdLte(actionObjectIdLte []int32) ApiExtrasEventRulesListRequest {
+ r.actionObjectIdLte = &actionObjectIdLte
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ActionObjectIdN(actionObjectIdN []int32) ApiExtrasEventRulesListRequest {
+ r.actionObjectIdN = &actionObjectIdN
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ActionObjectType(actionObjectType string) ApiExtrasEventRulesListRequest {
+ r.actionObjectType = &actionObjectType
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ActionObjectTypeN(actionObjectTypeN string) ApiExtrasEventRulesListRequest {
+ r.actionObjectTypeN = &actionObjectTypeN
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ActionType(actionType []string) ApiExtrasEventRulesListRequest {
+ r.actionType = &actionType
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ActionTypeN(actionTypeN []string) ApiExtrasEventRulesListRequest {
+ r.actionTypeN = &actionTypeN
+ 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
+}
+
+func (r ApiExtrasEventRulesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasEventRulesListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) CreatedGt(createdGt []time.Time) ApiExtrasEventRulesListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) CreatedGte(createdGte []time.Time) ApiExtrasEventRulesListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) CreatedLt(createdLt []time.Time) ApiExtrasEventRulesListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) CreatedLte(createdLte []time.Time) ApiExtrasEventRulesListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) CreatedN(createdN []time.Time) ApiExtrasEventRulesListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) CreatedByRequest(createdByRequest string) ApiExtrasEventRulesListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) Description(description []string) ApiExtrasEventRulesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasEventRulesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) DescriptionIc(descriptionIc []string) ApiExtrasEventRulesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) DescriptionIe(descriptionIe []string) ApiExtrasEventRulesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) DescriptionIew(descriptionIew []string) ApiExtrasEventRulesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasEventRulesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) DescriptionN(descriptionN []string) ApiExtrasEventRulesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) DescriptionNic(descriptionNic []string) ApiExtrasEventRulesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) DescriptionNie(descriptionNie []string) ApiExtrasEventRulesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasEventRulesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasEventRulesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) Enabled(enabled bool) ApiExtrasEventRulesListRequest {
+ r.enabled = &enabled
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) Id(id []int32) ApiExtrasEventRulesListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) IdEmpty(idEmpty bool) ApiExtrasEventRulesListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) IdGt(idGt []int32) ApiExtrasEventRulesListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) IdGte(idGte []int32) ApiExtrasEventRulesListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) IdLt(idLt []int32) ApiExtrasEventRulesListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) IdLte(idLte []int32) ApiExtrasEventRulesListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) IdN(idN []int32) ApiExtrasEventRulesListRequest {
+ r.idN = &idN
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasEventRulesListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasEventRulesListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasEventRulesListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasEventRulesListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasEventRulesListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasEventRulesListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasEventRulesListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiExtrasEventRulesListRequest) Limit(limit int32) ApiExtrasEventRulesListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasEventRulesListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) Name(name []string) ApiExtrasEventRulesListRequest {
+ r.name = &name
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) NameEmpty(nameEmpty bool) ApiExtrasEventRulesListRequest {
+ r.nameEmpty = &nameEmpty
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) NameIc(nameIc []string) ApiExtrasEventRulesListRequest {
+ r.nameIc = &nameIc
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) NameIe(nameIe []string) ApiExtrasEventRulesListRequest {
+ r.nameIe = &nameIe
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) NameIew(nameIew []string) ApiExtrasEventRulesListRequest {
+ r.nameIew = &nameIew
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) NameIsw(nameIsw []string) ApiExtrasEventRulesListRequest {
+ r.nameIsw = &nameIsw
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) NameN(nameN []string) ApiExtrasEventRulesListRequest {
+ r.nameN = &nameN
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) NameNic(nameNic []string) ApiExtrasEventRulesListRequest {
+ r.nameNic = &nameNic
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) NameNie(nameNie []string) ApiExtrasEventRulesListRequest {
+ r.nameNie = &nameNie
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) NameNiew(nameNiew []string) ApiExtrasEventRulesListRequest {
+ r.nameNiew = &nameNiew
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) NameNisw(nameNisw []string) ApiExtrasEventRulesListRequest {
+ r.nameNisw = &nameNisw
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiExtrasEventRulesListRequest) Offset(offset int32) ApiExtrasEventRulesListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiExtrasEventRulesListRequest) Ordering(ordering string) ApiExtrasEventRulesListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Search
+func (r ApiExtrasEventRulesListRequest) Q(q string) ApiExtrasEventRulesListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) Tag(tag []string) ApiExtrasEventRulesListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) TagN(tagN []string) ApiExtrasEventRulesListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) TypeCreate(typeCreate bool) ApiExtrasEventRulesListRequest {
+ r.typeCreate = &typeCreate
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) TypeDelete(typeDelete bool) ApiExtrasEventRulesListRequest {
+ r.typeDelete = &typeDelete
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) TypeJobEnd(typeJobEnd bool) ApiExtrasEventRulesListRequest {
+ r.typeJobEnd = &typeJobEnd
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) TypeJobStart(typeJobStart bool) ApiExtrasEventRulesListRequest {
+ r.typeJobStart = &typeJobStart
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) TypeUpdate(typeUpdate bool) ApiExtrasEventRulesListRequest {
+ r.typeUpdate = &typeUpdate
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasEventRulesListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) Execute() (*PaginatedEventRuleList, *http.Response, error) {
+ return r.ApiService.ExtrasEventRulesListExecute(r)
+}
+
+/*
+ExtrasEventRulesList Method for ExtrasEventRulesList
+
+Get a list of event rule objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasEventRulesListRequest
+*/
+func (a *ExtrasAPIService) ExtrasEventRulesList(ctx context.Context) ApiExtrasEventRulesListRequest {
+ return ApiExtrasEventRulesListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedEventRuleList
+func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesListRequest) (*PaginatedEventRuleList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedEventRuleList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/event-rules/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.actionObjectId != nil {
+ t := *r.actionObjectId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id", t, "multi")
+ }
+ }
+ if r.actionObjectIdEmpty != nil {
+ t := *r.actionObjectIdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__empty", t, "multi")
+ }
+ }
+ if r.actionObjectIdGt != nil {
+ t := *r.actionObjectIdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__gt", t, "multi")
+ }
+ }
+ if r.actionObjectIdGte != nil {
+ t := *r.actionObjectIdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__gte", t, "multi")
+ }
+ }
+ if r.actionObjectIdLt != nil {
+ t := *r.actionObjectIdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__lt", t, "multi")
+ }
+ }
+ if r.actionObjectIdLte != nil {
+ t := *r.actionObjectIdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__lte", t, "multi")
+ }
+ }
+ if r.actionObjectIdN != nil {
+ t := *r.actionObjectIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__n", t, "multi")
+ }
+ }
+ if r.actionObjectType != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_type", r.actionObjectType, "")
+ }
+ if r.actionObjectTypeN != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_type__n", r.actionObjectTypeN, "")
+ }
+ if r.actionType != nil {
+ t := *r.actionType
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_type", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_type", t, "multi")
+ }
+ }
+ if r.actionTypeN != nil {
+ t := *r.actionTypeN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ 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 {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
+ }
+ }
+ if r.createdEmpty != nil {
+ t := *r.createdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
+ }
+ }
+ if r.createdGt != nil {
+ t := *r.createdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
+ }
+ }
+ if r.createdGte != nil {
+ t := *r.createdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
+ }
+ }
+ if r.createdLt != nil {
+ t := *r.createdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
+ }
+ }
+ if r.createdLte != nil {
+ t := *r.createdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
+ }
+ }
+ if r.createdN != nil {
+ t := *r.createdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
+ }
+ }
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
+ }
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
+ if r.enabled != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "")
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
+ }
+ }
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
+ if r.name != nil {
+ t := *r.name
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi")
+ }
+ }
+ if r.nameEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "")
+ }
+ if r.nameIc != nil {
+ t := *r.nameIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi")
+ }
+ }
+ if r.nameIe != nil {
+ t := *r.nameIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi")
+ }
+ }
+ if r.nameIew != nil {
+ t := *r.nameIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi")
+ }
+ }
+ if r.nameIsw != nil {
+ t := *r.nameIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi")
+ }
+ }
+ if r.nameN != nil {
+ t := *r.nameN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi")
+ }
+ }
+ if r.nameNic != nil {
+ t := *r.nameNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi")
+ }
+ }
+ if r.nameNie != nil {
+ t := *r.nameNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi")
+ }
+ }
+ if r.nameNiew != nil {
+ t := *r.nameNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi")
+ }
+ }
+ if r.nameNisw != nil {
+ t := *r.nameNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi")
+ }
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ }
+ if r.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
+ }
+ }
+ if r.typeCreate != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "type_create", r.typeCreate, "")
+ }
+ if r.typeDelete != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "type_delete", r.typeDelete, "")
+ }
+ if r.typeJobEnd != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_end", r.typeJobEnd, "")
+ }
+ if r.typeJobStart != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_start", r.typeJobStart, "")
+ }
+ if r.typeUpdate != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "type_update", r.typeUpdate, "")
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiExtrasEventRulesPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ patchedWritableEventRuleRequest *PatchedWritableEventRuleRequest
+}
+
+func (r ApiExtrasEventRulesPartialUpdateRequest) PatchedWritableEventRuleRequest(patchedWritableEventRuleRequest PatchedWritableEventRuleRequest) ApiExtrasEventRulesPartialUpdateRequest {
+ r.patchedWritableEventRuleRequest = &patchedWritableEventRuleRequest
+ return r
+}
+
+func (r ApiExtrasEventRulesPartialUpdateRequest) Execute() (*EventRule, *http.Response, error) {
+ return r.ApiService.ExtrasEventRulesPartialUpdateExecute(r)
+}
+
+/*
+ExtrasEventRulesPartialUpdate Method for ExtrasEventRulesPartialUpdate
+
+Patch a event rule object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this event rule.
+ @return ApiExtrasEventRulesPartialUpdateRequest
+*/
+func (a *ExtrasAPIService) ExtrasEventRulesPartialUpdate(ctx context.Context, id int32) ApiExtrasEventRulesPartialUpdateRequest {
+ return ApiExtrasEventRulesPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return EventRule
+func (a *ExtrasAPIService) ExtrasEventRulesPartialUpdateExecute(r ApiExtrasEventRulesPartialUpdateRequest) (*EventRule, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *EventRule
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/event-rules/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // 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.patchedWritableEventRuleRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiExtrasEventRulesRetrieveRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+}
+
+func (r ApiExtrasEventRulesRetrieveRequest) Execute() (*EventRule, *http.Response, error) {
+ return r.ApiService.ExtrasEventRulesRetrieveExecute(r)
+}
+
+/*
+ExtrasEventRulesRetrieve Method for ExtrasEventRulesRetrieve
+
+Get a event rule object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this event rule.
+ @return ApiExtrasEventRulesRetrieveRequest
+*/
+func (a *ExtrasAPIService) ExtrasEventRulesRetrieve(ctx context.Context, id int32) ApiExtrasEventRulesRetrieveRequest {
+ return ApiExtrasEventRulesRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return EventRule
+func (a *ExtrasAPIService) ExtrasEventRulesRetrieveExecute(r ApiExtrasEventRulesRetrieveRequest) (*EventRule, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *EventRule
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/event-rules/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // 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 ApiExtrasEventRulesUpdateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ writableEventRuleRequest *WritableEventRuleRequest
+}
+
+func (r ApiExtrasEventRulesUpdateRequest) WritableEventRuleRequest(writableEventRuleRequest WritableEventRuleRequest) ApiExtrasEventRulesUpdateRequest {
+ r.writableEventRuleRequest = &writableEventRuleRequest
+ return r
+}
+
+func (r ApiExtrasEventRulesUpdateRequest) Execute() (*EventRule, *http.Response, error) {
+ return r.ApiService.ExtrasEventRulesUpdateExecute(r)
+}
+
+/*
+ExtrasEventRulesUpdate Method for ExtrasEventRulesUpdate
+
+Put a event rule object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this event rule.
+ @return ApiExtrasEventRulesUpdateRequest
+*/
+func (a *ExtrasAPIService) ExtrasEventRulesUpdate(ctx context.Context, id int32) ApiExtrasEventRulesUpdateRequest {
+ return ApiExtrasEventRulesUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return EventRule
+func (a *ExtrasAPIService) ExtrasEventRulesUpdateExecute(r ApiExtrasEventRulesUpdateRequest) (*EventRule, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *EventRule
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/event-rules/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableEventRuleRequest == nil {
+ return localVarReturnValue, nil, reportError("writableEventRuleRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // 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.writableEventRuleRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiExtrasExportTemplatesBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ exportTemplateRequest *[]ExportTemplateRequest
+}
+
+func (r ApiExtrasExportTemplatesBulkDestroyRequest) ExportTemplateRequest(exportTemplateRequest []ExportTemplateRequest) ApiExtrasExportTemplatesBulkDestroyRequest {
+ r.exportTemplateRequest = &exportTemplateRequest
+ return r
+}
+
+func (r ApiExtrasExportTemplatesBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.ExtrasExportTemplatesBulkDestroyExecute(r)
+}
+
+/*
+ExtrasExportTemplatesBulkDestroy Method for ExtrasExportTemplatesBulkDestroy
+
+Delete a list of export template objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesBulkDestroyRequest
+*/
+func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroy(ctx context.Context) ApiExtrasExportTemplatesBulkDestroyRequest {
+ return ApiExtrasExportTemplatesBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasExportTemplatesBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/export-templates/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.exportTemplateRequest == nil {
+ return nil, reportError("exportTemplateRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.exportTemplateRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return 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 ApiExtrasExportTemplatesBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ exportTemplateRequest *[]ExportTemplateRequest
+}
+
+func (r ApiExtrasExportTemplatesBulkPartialUpdateRequest) ExportTemplateRequest(exportTemplateRequest []ExportTemplateRequest) ApiExtrasExportTemplatesBulkPartialUpdateRequest {
+ r.exportTemplateRequest = &exportTemplateRequest
+ return r
+}
+
+func (r ApiExtrasExportTemplatesBulkPartialUpdateRequest) Execute() ([]ExportTemplate, *http.Response, error) {
+ return r.ApiService.ExtrasExportTemplatesBulkPartialUpdateExecute(r)
+}
+
+/*
+ExtrasExportTemplatesBulkPartialUpdate Method for ExtrasExportTemplatesBulkPartialUpdate
+
+Patch a list of export template objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesBulkPartialUpdateRequest
+*/
+func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkPartialUpdateRequest {
+ return ApiExtrasExportTemplatesBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []ExportTemplate
+func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiExtrasExportTemplatesBulkPartialUpdateRequest) ([]ExportTemplate, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ExportTemplate
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/export-templates/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.exportTemplateRequest == nil {
+ return localVarReturnValue, nil, reportError("exportTemplateRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.exportTemplateRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiExtrasExportTemplatesBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ exportTemplateRequest *[]ExportTemplateRequest
+}
+
+func (r ApiExtrasExportTemplatesBulkUpdateRequest) ExportTemplateRequest(exportTemplateRequest []ExportTemplateRequest) ApiExtrasExportTemplatesBulkUpdateRequest {
+ r.exportTemplateRequest = &exportTemplateRequest
+ return r
+}
+
+func (r ApiExtrasExportTemplatesBulkUpdateRequest) Execute() ([]ExportTemplate, *http.Response, error) {
+ return r.ApiService.ExtrasExportTemplatesBulkUpdateExecute(r)
+}
+
+/*
+ExtrasExportTemplatesBulkUpdate Method for ExtrasExportTemplatesBulkUpdate
+
+Put a list of export template objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesBulkUpdateRequest
+*/
+func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkUpdateRequest {
+ return ApiExtrasExportTemplatesBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []ExportTemplate
+func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExportTemplatesBulkUpdateRequest) ([]ExportTemplate, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ExportTemplate
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/export-templates/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.exportTemplateRequest == nil {
+ return localVarReturnValue, nil, reportError("exportTemplateRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.exportTemplateRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiExtrasExportTemplatesCreateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ writableExportTemplateRequest *WritableExportTemplateRequest
+}
+
+func (r ApiExtrasExportTemplatesCreateRequest) WritableExportTemplateRequest(writableExportTemplateRequest WritableExportTemplateRequest) ApiExtrasExportTemplatesCreateRequest {
+ r.writableExportTemplateRequest = &writableExportTemplateRequest
+ return r
+}
+
+func (r ApiExtrasExportTemplatesCreateRequest) Execute() (*ExportTemplate, *http.Response, error) {
+ return r.ApiService.ExtrasExportTemplatesCreateExecute(r)
+}
+
+/*
+ExtrasExportTemplatesCreate Method for ExtrasExportTemplatesCreate
+
+Post a list of export template objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesCreateRequest
*/
func (a *ExtrasAPIService) ExtrasExportTemplatesCreate(ctx context.Context) ApiExtrasExportTemplatesCreateRequest {
return ApiExtrasExportTemplatesCreateRequest{
@@ -24986,23 +27508,6 @@ type ApiExtrasWebhooksListRequest struct {
caFilePathNie *[]string
caFilePathNiew *[]string
caFilePathNisw *[]string
- contentTypeId *[]int32
- contentTypeIdEmpty *[]int32
- contentTypeIdGt *[]int32
- contentTypeIdGte *[]int32
- contentTypeIdLt *[]int32
- contentTypeIdLte *[]int32
- contentTypeIdN *[]int32
- contentTypes *string
- contentTypesIc *string
- contentTypesIe *string
- contentTypesIew *string
- contentTypesIsw *string
- contentTypesN *string
- contentTypesNic *string
- contentTypesNie *string
- contentTypesNiew *string
- contentTypesNisw *string
created *[]time.Time
createdEmpty *[]time.Time
createdGt *[]time.Time
@@ -25011,7 +27516,17 @@ type ApiExtrasWebhooksListRequest struct {
createdLte *[]time.Time
createdN *[]time.Time
createdByRequest *string
- enabled *bool
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
httpContentType *[]string
httpContentTypeEmpty *bool
httpContentTypeIc *[]string
@@ -25055,16 +27570,6 @@ type ApiExtrasWebhooksListRequest struct {
offset *int32
ordering *string
payloadUrl *[]string
- payloadUrlEmpty *bool
- payloadUrlIc *[]string
- payloadUrlIe *[]string
- payloadUrlIew *[]string
- payloadUrlIsw *[]string
- payloadUrlN *[]string
- payloadUrlNic *[]string
- payloadUrlNie *[]string
- payloadUrlNiew *[]string
- payloadUrlNisw *[]string
q *string
secret *[]string
secretEmpty *bool
@@ -25080,11 +27585,6 @@ type ApiExtrasWebhooksListRequest struct {
sslVerification *bool
tag *[]string
tagN *[]string
- typeCreate *bool
- typeDelete *bool
- typeJobEnd *bool
- typeJobStart *bool
- typeUpdate *bool
updatedByRequest *string
}
@@ -25143,133 +27643,98 @@ func (r ApiExtrasWebhooksListRequest) CaFilePathNisw(caFilePathNisw []string) Ap
return r
}
-func (r ApiExtrasWebhooksListRequest) ContentTypeId(contentTypeId []int32) ApiExtrasWebhooksListRequest {
- r.contentTypeId = &contentTypeId
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) ContentTypeIdEmpty(contentTypeIdEmpty []int32) ApiExtrasWebhooksListRequest {
- r.contentTypeIdEmpty = &contentTypeIdEmpty
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) ContentTypeIdGt(contentTypeIdGt []int32) ApiExtrasWebhooksListRequest {
- r.contentTypeIdGt = &contentTypeIdGt
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) ContentTypeIdGte(contentTypeIdGte []int32) ApiExtrasWebhooksListRequest {
- r.contentTypeIdGte = &contentTypeIdGte
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) ContentTypeIdLt(contentTypeIdLt []int32) ApiExtrasWebhooksListRequest {
- r.contentTypeIdLt = &contentTypeIdLt
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) ContentTypeIdLte(contentTypeIdLte []int32) ApiExtrasWebhooksListRequest {
- r.contentTypeIdLte = &contentTypeIdLte
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) ContentTypeIdN(contentTypeIdN []int32) ApiExtrasWebhooksListRequest {
- r.contentTypeIdN = &contentTypeIdN
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) ContentTypes(contentTypes string) ApiExtrasWebhooksListRequest {
- r.contentTypes = &contentTypes
+func (r ApiExtrasWebhooksListRequest) Created(created []time.Time) ApiExtrasWebhooksListRequest {
+ r.created = &created
return r
}
-func (r ApiExtrasWebhooksListRequest) ContentTypesIc(contentTypesIc string) ApiExtrasWebhooksListRequest {
- r.contentTypesIc = &contentTypesIc
+func (r ApiExtrasWebhooksListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasWebhooksListRequest {
+ r.createdEmpty = &createdEmpty
return r
}
-func (r ApiExtrasWebhooksListRequest) ContentTypesIe(contentTypesIe string) ApiExtrasWebhooksListRequest {
- r.contentTypesIe = &contentTypesIe
+func (r ApiExtrasWebhooksListRequest) CreatedGt(createdGt []time.Time) ApiExtrasWebhooksListRequest {
+ r.createdGt = &createdGt
return r
}
-func (r ApiExtrasWebhooksListRequest) ContentTypesIew(contentTypesIew string) ApiExtrasWebhooksListRequest {
- r.contentTypesIew = &contentTypesIew
+func (r ApiExtrasWebhooksListRequest) CreatedGte(createdGte []time.Time) ApiExtrasWebhooksListRequest {
+ r.createdGte = &createdGte
return r
}
-func (r ApiExtrasWebhooksListRequest) ContentTypesIsw(contentTypesIsw string) ApiExtrasWebhooksListRequest {
- r.contentTypesIsw = &contentTypesIsw
+func (r ApiExtrasWebhooksListRequest) CreatedLt(createdLt []time.Time) ApiExtrasWebhooksListRequest {
+ r.createdLt = &createdLt
return r
}
-func (r ApiExtrasWebhooksListRequest) ContentTypesN(contentTypesN string) ApiExtrasWebhooksListRequest {
- r.contentTypesN = &contentTypesN
+func (r ApiExtrasWebhooksListRequest) CreatedLte(createdLte []time.Time) ApiExtrasWebhooksListRequest {
+ r.createdLte = &createdLte
return r
}
-func (r ApiExtrasWebhooksListRequest) ContentTypesNic(contentTypesNic string) ApiExtrasWebhooksListRequest {
- r.contentTypesNic = &contentTypesNic
+func (r ApiExtrasWebhooksListRequest) CreatedN(createdN []time.Time) ApiExtrasWebhooksListRequest {
+ r.createdN = &createdN
return r
}
-func (r ApiExtrasWebhooksListRequest) ContentTypesNie(contentTypesNie string) ApiExtrasWebhooksListRequest {
- r.contentTypesNie = &contentTypesNie
+func (r ApiExtrasWebhooksListRequest) CreatedByRequest(createdByRequest string) ApiExtrasWebhooksListRequest {
+ r.createdByRequest = &createdByRequest
return r
}
-func (r ApiExtrasWebhooksListRequest) ContentTypesNiew(contentTypesNiew string) ApiExtrasWebhooksListRequest {
- r.contentTypesNiew = &contentTypesNiew
+func (r ApiExtrasWebhooksListRequest) Description(description []string) ApiExtrasWebhooksListRequest {
+ r.description = &description
return r
}
-func (r ApiExtrasWebhooksListRequest) ContentTypesNisw(contentTypesNisw string) ApiExtrasWebhooksListRequest {
- r.contentTypesNisw = &contentTypesNisw
+func (r ApiExtrasWebhooksListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasWebhooksListRequest {
+ r.descriptionEmpty = &descriptionEmpty
return r
}
-func (r ApiExtrasWebhooksListRequest) Created(created []time.Time) ApiExtrasWebhooksListRequest {
- r.created = &created
+func (r ApiExtrasWebhooksListRequest) DescriptionIc(descriptionIc []string) ApiExtrasWebhooksListRequest {
+ r.descriptionIc = &descriptionIc
return r
}
-func (r ApiExtrasWebhooksListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasWebhooksListRequest {
- r.createdEmpty = &createdEmpty
+func (r ApiExtrasWebhooksListRequest) DescriptionIe(descriptionIe []string) ApiExtrasWebhooksListRequest {
+ r.descriptionIe = &descriptionIe
return r
}
-func (r ApiExtrasWebhooksListRequest) CreatedGt(createdGt []time.Time) ApiExtrasWebhooksListRequest {
- r.createdGt = &createdGt
+func (r ApiExtrasWebhooksListRequest) DescriptionIew(descriptionIew []string) ApiExtrasWebhooksListRequest {
+ r.descriptionIew = &descriptionIew
return r
}
-func (r ApiExtrasWebhooksListRequest) CreatedGte(createdGte []time.Time) ApiExtrasWebhooksListRequest {
- r.createdGte = &createdGte
+func (r ApiExtrasWebhooksListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasWebhooksListRequest {
+ r.descriptionIsw = &descriptionIsw
return r
}
-func (r ApiExtrasWebhooksListRequest) CreatedLt(createdLt []time.Time) ApiExtrasWebhooksListRequest {
- r.createdLt = &createdLt
+func (r ApiExtrasWebhooksListRequest) DescriptionN(descriptionN []string) ApiExtrasWebhooksListRequest {
+ r.descriptionN = &descriptionN
return r
}
-func (r ApiExtrasWebhooksListRequest) CreatedLte(createdLte []time.Time) ApiExtrasWebhooksListRequest {
- r.createdLte = &createdLte
+func (r ApiExtrasWebhooksListRequest) DescriptionNic(descriptionNic []string) ApiExtrasWebhooksListRequest {
+ r.descriptionNic = &descriptionNic
return r
}
-func (r ApiExtrasWebhooksListRequest) CreatedN(createdN []time.Time) ApiExtrasWebhooksListRequest {
- r.createdN = &createdN
+func (r ApiExtrasWebhooksListRequest) DescriptionNie(descriptionNie []string) ApiExtrasWebhooksListRequest {
+ r.descriptionNie = &descriptionNie
return r
}
-func (r ApiExtrasWebhooksListRequest) CreatedByRequest(createdByRequest string) ApiExtrasWebhooksListRequest {
- r.createdByRequest = &createdByRequest
+func (r ApiExtrasWebhooksListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasWebhooksListRequest {
+ r.descriptionNiew = &descriptionNiew
return r
}
-func (r ApiExtrasWebhooksListRequest) Enabled(enabled bool) ApiExtrasWebhooksListRequest {
- r.enabled = &enabled
+func (r ApiExtrasWebhooksListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasWebhooksListRequest {
+ r.descriptionNisw = &descriptionNisw
return r
}
@@ -25491,56 +27956,6 @@ func (r ApiExtrasWebhooksListRequest) PayloadUrl(payloadUrl []string) ApiExtrasW
return r
}
-func (r ApiExtrasWebhooksListRequest) PayloadUrlEmpty(payloadUrlEmpty bool) ApiExtrasWebhooksListRequest {
- r.payloadUrlEmpty = &payloadUrlEmpty
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) PayloadUrlIc(payloadUrlIc []string) ApiExtrasWebhooksListRequest {
- r.payloadUrlIc = &payloadUrlIc
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) PayloadUrlIe(payloadUrlIe []string) ApiExtrasWebhooksListRequest {
- r.payloadUrlIe = &payloadUrlIe
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) PayloadUrlIew(payloadUrlIew []string) ApiExtrasWebhooksListRequest {
- r.payloadUrlIew = &payloadUrlIew
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) PayloadUrlIsw(payloadUrlIsw []string) ApiExtrasWebhooksListRequest {
- r.payloadUrlIsw = &payloadUrlIsw
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) PayloadUrlN(payloadUrlN []string) ApiExtrasWebhooksListRequest {
- r.payloadUrlN = &payloadUrlN
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) PayloadUrlNic(payloadUrlNic []string) ApiExtrasWebhooksListRequest {
- r.payloadUrlNic = &payloadUrlNic
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) PayloadUrlNie(payloadUrlNie []string) ApiExtrasWebhooksListRequest {
- r.payloadUrlNie = &payloadUrlNie
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) PayloadUrlNiew(payloadUrlNiew []string) ApiExtrasWebhooksListRequest {
- r.payloadUrlNiew = &payloadUrlNiew
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) PayloadUrlNisw(payloadUrlNisw []string) ApiExtrasWebhooksListRequest {
- r.payloadUrlNisw = &payloadUrlNisw
- return r
-}
-
// Search
func (r ApiExtrasWebhooksListRequest) Q(q string) ApiExtrasWebhooksListRequest {
r.q = &q
@@ -25617,31 +28032,6 @@ func (r ApiExtrasWebhooksListRequest) TagN(tagN []string) ApiExtrasWebhooksListR
return r
}
-func (r ApiExtrasWebhooksListRequest) TypeCreate(typeCreate bool) ApiExtrasWebhooksListRequest {
- r.typeCreate = &typeCreate
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) TypeDelete(typeDelete bool) ApiExtrasWebhooksListRequest {
- r.typeDelete = &typeDelete
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) TypeJobEnd(typeJobEnd bool) ApiExtrasWebhooksListRequest {
- r.typeJobEnd = &typeJobEnd
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) TypeJobStart(typeJobStart bool) ApiExtrasWebhooksListRequest {
- r.typeJobStart = &typeJobStart
- return r
-}
-
-func (r ApiExtrasWebhooksListRequest) TypeUpdate(typeUpdate bool) ApiExtrasWebhooksListRequest {
- r.typeUpdate = &typeUpdate
- return r
-}
-
func (r ApiExtrasWebhooksListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasWebhooksListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -25801,195 +28191,198 @@ func (a *ExtrasAPIService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nisw", 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.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
- if r.contentTypesNiew != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__niew", r.contentTypesNiew, "")
+ 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.contentTypesNisw != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nisw", r.contentTypesNisw, "")
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
}
- if r.created != nil {
- t := *r.created
+ 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, "created", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
}
}
- if r.createdEmpty != nil {
- t := *r.createdEmpty
+ 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, "created__empty", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
}
}
- if r.createdGt != nil {
- t := *r.createdGt
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
}
}
- if r.createdGte != nil {
- t := *r.createdGte
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
}
}
- if r.createdLt != nil {
- t := *r.createdLt
+ if r.descriptionN != nil {
+ t := *r.descriptionN
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
}
}
- if r.createdLte != nil {
- t := *r.createdLte
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
}
}
- if r.createdN != nil {
- t := *r.createdN
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
}
}
- if r.createdByRequest != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
+ 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.enabled != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "")
+ 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.httpContentType != nil {
t := *r.httpContentType
@@ -26408,108 +28801,6 @@ func (a *ExtrasAPIService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url", t, "multi")
}
}
- if r.payloadUrlEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__empty", r.payloadUrlEmpty, "")
- }
- if r.payloadUrlIc != nil {
- t := *r.payloadUrlIc
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__ic", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__ic", t, "multi")
- }
- }
- if r.payloadUrlIe != nil {
- t := *r.payloadUrlIe
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__ie", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__ie", t, "multi")
- }
- }
- if r.payloadUrlIew != nil {
- t := *r.payloadUrlIew
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__iew", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__iew", t, "multi")
- }
- }
- if r.payloadUrlIsw != nil {
- t := *r.payloadUrlIsw
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__isw", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__isw", t, "multi")
- }
- }
- if r.payloadUrlN != nil {
- t := *r.payloadUrlN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__n", t, "multi")
- }
- }
- if r.payloadUrlNic != nil {
- t := *r.payloadUrlNic
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nic", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nic", t, "multi")
- }
- }
- if r.payloadUrlNie != nil {
- t := *r.payloadUrlNie
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nie", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nie", t, "multi")
- }
- }
- if r.payloadUrlNiew != nil {
- t := *r.payloadUrlNiew
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__niew", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__niew", t, "multi")
- }
- }
- if r.payloadUrlNisw != nil {
- t := *r.payloadUrlNisw
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nisw", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nisw", t, "multi")
- }
- }
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
}
@@ -26651,21 +28942,6 @@ func (a *ExtrasAPIService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
}
}
- if r.typeCreate != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "type_create", r.typeCreate, "")
- }
- if r.typeDelete != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "type_delete", r.typeDelete, "")
- }
- if r.typeJobEnd != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_end", r.typeJobEnd, "")
- }
- if r.typeJobStart != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_start", r.typeJobStart, "")
- }
- if r.typeUpdate != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "type_update", r.typeUpdate, "")
- }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
}
diff --git a/api_ipam.go b/api_ipam.go
index b00329f884..63adb58d97 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -9212,6 +9212,17 @@ type ApiIpamFhrpGroupsListRequest 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
groupId *[]int32
groupIdEmpty *bool
groupIdGt *[]int32
@@ -9362,6 +9373,61 @@ func (r ApiIpamFhrpGroupsListRequest) CreatedByRequest(createdByRequest string)
return r
}
+func (r ApiIpamFhrpGroupsListRequest) Description(description []string) ApiIpamFhrpGroupsListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiIpamFhrpGroupsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamFhrpGroupsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiIpamFhrpGroupsListRequest) DescriptionIc(descriptionIc []string) ApiIpamFhrpGroupsListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiIpamFhrpGroupsListRequest) DescriptionIe(descriptionIe []string) ApiIpamFhrpGroupsListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiIpamFhrpGroupsListRequest) DescriptionIew(descriptionIew []string) ApiIpamFhrpGroupsListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiIpamFhrpGroupsListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamFhrpGroupsListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiIpamFhrpGroupsListRequest) DescriptionN(descriptionN []string) ApiIpamFhrpGroupsListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiIpamFhrpGroupsListRequest) DescriptionNic(descriptionNic []string) ApiIpamFhrpGroupsListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiIpamFhrpGroupsListRequest) DescriptionNie(descriptionNie []string) ApiIpamFhrpGroupsListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiIpamFhrpGroupsListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamFhrpGroupsListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiIpamFhrpGroupsListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamFhrpGroupsListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
func (r ApiIpamFhrpGroupsListRequest) GroupId(groupId []int32) ApiIpamFhrpGroupsListRequest {
r.groupId = &groupId
return r
@@ -9837,6 +9903,119 @@ func (a *IpamAPIService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.groupId != nil {
t := *r.groupId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -11333,7 +11512,9 @@ type ApiIpamIpAddressesListRequest struct {
lastUpdatedLte *[]time.Time
lastUpdatedN *[]time.Time
limit *int32
- maskLength *float32
+ maskLength *[]int32
+ maskLengthGte *float32
+ maskLengthLte *float32
modifiedByRequest *string
offset *int32
ordering *string
@@ -11662,12 +11843,21 @@ func (r ApiIpamIpAddressesListRequest) Limit(limit int32) ApiIpamIpAddressesList
return r
}
-// Mask length
-func (r ApiIpamIpAddressesListRequest) MaskLength(maskLength float32) ApiIpamIpAddressesListRequest {
+func (r ApiIpamIpAddressesListRequest) MaskLength(maskLength []int32) ApiIpamIpAddressesListRequest {
r.maskLength = &maskLength
return r
}
+func (r ApiIpamIpAddressesListRequest) MaskLengthGte(maskLengthGte float32) ApiIpamIpAddressesListRequest {
+ r.maskLengthGte = &maskLengthGte
+ return r
+}
+
+func (r ApiIpamIpAddressesListRequest) MaskLengthLte(maskLengthLte float32) ApiIpamIpAddressesListRequest {
+ r.maskLengthLte = &maskLengthLte
+ return r
+}
+
func (r ApiIpamIpAddressesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamIpAddressesListRequest {
r.modifiedByRequest = &modifiedByRequest
return r
@@ -12456,7 +12646,21 @@ func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
}
if r.maskLength != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length", r.maskLength, "")
+ t := *r.maskLength
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length", t, "multi")
+ }
+ }
+ if r.maskLengthGte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length__gte", r.maskLengthGte, "")
+ }
+ if r.maskLengthLte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length__lte", r.maskLengthLte, "")
}
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
@@ -15067,4690 +15271,52 @@ func (a *IpamAPIService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) (
parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi")
}
}
- if r.updatedByRequest != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
- }
- if r.vrf != nil {
- t := *r.vrf
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "multi")
- }
- }
- if r.vrfN != nil {
- t := *r.vrfN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "multi")
- }
- }
- if r.vrfId != nil {
- t := *r.vrfId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "multi")
- }
- }
- if r.vrfIdN != nil {
- t := *r.vrfIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "multi")
- }
- }
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- key = apiKey.Key
- }
- localVarHeaderParams["Authorization"] = key
- }
- }
- }
- req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, nil, err
- }
-
- localVarHTTPResponse, err := a.client.callAPI(req)
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, localVarHTTPResponse, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, localVarHTTPResponse, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &GenericOpenAPIError{
- body: localVarBody,
- error: localVarHTTPResponse.Status,
- }
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
-
- err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &GenericOpenAPIError{
- body: localVarBody,
- error: err.Error(),
- }
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
-
- return localVarReturnValue, localVarHTTPResponse, nil
-}
-
-type ApiIpamIpRangesPartialUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- patchedWritableIPRangeRequest *PatchedWritableIPRangeRequest
-}
-
-func (r ApiIpamIpRangesPartialUpdateRequest) PatchedWritableIPRangeRequest(patchedWritableIPRangeRequest PatchedWritableIPRangeRequest) ApiIpamIpRangesPartialUpdateRequest {
- r.patchedWritableIPRangeRequest = &patchedWritableIPRangeRequest
- return r
-}
-
-func (r ApiIpamIpRangesPartialUpdateRequest) Execute() (*IPRange, *http.Response, error) {
- return r.ApiService.IpamIpRangesPartialUpdateExecute(r)
-}
-
-/*
-IpamIpRangesPartialUpdate Method for IpamIpRangesPartialUpdate
-
-Patch a IP range object.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP range.
- @return ApiIpamIpRangesPartialUpdateRequest
-*/
-func (a *IpamAPIService) IpamIpRangesPartialUpdate(ctx context.Context, id int32) ApiIpamIpRangesPartialUpdateRequest {
- return ApiIpamIpRangesPartialUpdateRequest{
- ApiService: a,
- ctx: ctx,
- id: id,
- }
-}
-
-// Execute executes the request
-//
-// @return IPRange
-func (a *IpamAPIService) IpamIpRangesPartialUpdateExecute(r ApiIpamIpRangesPartialUpdateRequest) (*IPRange, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPRange
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesPartialUpdate")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/ip-ranges/{id}/"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- // body params
- localVarPostBody = r.patchedWritableIPRangeRequest
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- key = apiKey.Key
- }
- localVarHeaderParams["Authorization"] = key
- }
- }
- }
- 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 ApiIpamIpRangesRetrieveRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
-}
-
-func (r ApiIpamIpRangesRetrieveRequest) Execute() (*IPRange, *http.Response, error) {
- return r.ApiService.IpamIpRangesRetrieveExecute(r)
-}
-
-/*
-IpamIpRangesRetrieve Method for IpamIpRangesRetrieve
-
-Get a IP range object.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP range.
- @return ApiIpamIpRangesRetrieveRequest
-*/
-func (a *IpamAPIService) IpamIpRangesRetrieve(ctx context.Context, id int32) ApiIpamIpRangesRetrieveRequest {
- return ApiIpamIpRangesRetrieveRequest{
- ApiService: a,
- ctx: ctx,
- id: id,
- }
-}
-
-// Execute executes the request
-//
-// @return IPRange
-func (a *IpamAPIService) IpamIpRangesRetrieveExecute(r ApiIpamIpRangesRetrieveRequest) (*IPRange, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPRange
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesRetrieve")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/ip-ranges/{id}/"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // 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 ApiIpamIpRangesUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- writableIPRangeRequest *WritableIPRangeRequest
-}
-
-func (r ApiIpamIpRangesUpdateRequest) WritableIPRangeRequest(writableIPRangeRequest WritableIPRangeRequest) ApiIpamIpRangesUpdateRequest {
- r.writableIPRangeRequest = &writableIPRangeRequest
- return r
-}
-
-func (r ApiIpamIpRangesUpdateRequest) Execute() (*IPRange, *http.Response, error) {
- return r.ApiService.IpamIpRangesUpdateExecute(r)
-}
-
-/*
-IpamIpRangesUpdate Method for IpamIpRangesUpdate
-
-Put a IP range object.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP range.
- @return ApiIpamIpRangesUpdateRequest
-*/
-func (a *IpamAPIService) IpamIpRangesUpdate(ctx context.Context, id int32) ApiIpamIpRangesUpdateRequest {
- return ApiIpamIpRangesUpdateRequest{
- ApiService: a,
- ctx: ctx,
- id: id,
- }
-}
-
-// Execute executes the request
-//
-// @return IPRange
-func (a *IpamAPIService) IpamIpRangesUpdateExecute(r ApiIpamIpRangesUpdateRequest) (*IPRange, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPRange
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesUpdate")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/ip-ranges/{id}/"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
- if r.writableIPRangeRequest == nil {
- return localVarReturnValue, nil, reportError("writableIPRangeRequest is required and must be specified")
- }
-
- // 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.writableIPRangeRequest
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- key = apiKey.Key
- }
- localVarHeaderParams["Authorization"] = key
- }
- }
- }
- 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 ApiIpamL2vpnTerminationsBulkDestroyRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- l2VPNTerminationRequest *[]L2VPNTerminationRequest
-}
-
-func (r ApiIpamL2vpnTerminationsBulkDestroyRequest) L2VPNTerminationRequest(l2VPNTerminationRequest []L2VPNTerminationRequest) ApiIpamL2vpnTerminationsBulkDestroyRequest {
- r.l2VPNTerminationRequest = &l2VPNTerminationRequest
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsBulkDestroyRequest) Execute() (*http.Response, error) {
- return r.ApiService.IpamL2vpnTerminationsBulkDestroyExecute(r)
-}
-
-/*
-IpamL2vpnTerminationsBulkDestroy Method for IpamL2vpnTerminationsBulkDestroy
-
-Delete a list of L2VPN termination objects.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamL2vpnTerminationsBulkDestroyRequest
-*/
-func (a *IpamAPIService) IpamL2vpnTerminationsBulkDestroy(ctx context.Context) ApiIpamL2vpnTerminationsBulkDestroyRequest {
- return ApiIpamL2vpnTerminationsBulkDestroyRequest{
- ApiService: a,
- ctx: ctx,
- }
-}
-
-// Execute executes the request
-func (a *IpamAPIService) IpamL2vpnTerminationsBulkDestroyExecute(r ApiIpamL2vpnTerminationsBulkDestroyRequest) (*http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsBulkDestroy")
- if err != nil {
- return nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpn-terminations/"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
- if r.l2VPNTerminationRequest == nil {
- return nil, reportError("l2VPNTerminationRequest is required and must be specified")
- }
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- // body params
- localVarPostBody = r.l2VPNTerminationRequest
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- 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 ApiIpamL2vpnTerminationsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- l2VPNTerminationRequest *[]L2VPNTerminationRequest
-}
-
-func (r ApiIpamL2vpnTerminationsBulkPartialUpdateRequest) L2VPNTerminationRequest(l2VPNTerminationRequest []L2VPNTerminationRequest) ApiIpamL2vpnTerminationsBulkPartialUpdateRequest {
- r.l2VPNTerminationRequest = &l2VPNTerminationRequest
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsBulkPartialUpdateRequest) Execute() ([]L2VPNTermination, *http.Response, error) {
- return r.ApiService.IpamL2vpnTerminationsBulkPartialUpdateExecute(r)
-}
-
-/*
-IpamL2vpnTerminationsBulkPartialUpdate Method for IpamL2vpnTerminationsBulkPartialUpdate
-
-Patch a list of L2VPN termination objects.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamL2vpnTerminationsBulkPartialUpdateRequest
-*/
-func (a *IpamAPIService) IpamL2vpnTerminationsBulkPartialUpdate(ctx context.Context) ApiIpamL2vpnTerminationsBulkPartialUpdateRequest {
- return ApiIpamL2vpnTerminationsBulkPartialUpdateRequest{
- ApiService: a,
- ctx: ctx,
- }
-}
-
-// Execute executes the request
-//
-// @return []L2VPNTermination
-func (a *IpamAPIService) IpamL2vpnTerminationsBulkPartialUpdateExecute(r ApiIpamL2vpnTerminationsBulkPartialUpdateRequest) ([]L2VPNTermination, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []L2VPNTermination
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsBulkPartialUpdate")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpn-terminations/"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
- if r.l2VPNTerminationRequest == nil {
- return localVarReturnValue, nil, reportError("l2VPNTerminationRequest 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.l2VPNTerminationRequest
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- 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 ApiIpamL2vpnTerminationsBulkUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- l2VPNTerminationRequest *[]L2VPNTerminationRequest
-}
-
-func (r ApiIpamL2vpnTerminationsBulkUpdateRequest) L2VPNTerminationRequest(l2VPNTerminationRequest []L2VPNTerminationRequest) ApiIpamL2vpnTerminationsBulkUpdateRequest {
- r.l2VPNTerminationRequest = &l2VPNTerminationRequest
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsBulkUpdateRequest) Execute() ([]L2VPNTermination, *http.Response, error) {
- return r.ApiService.IpamL2vpnTerminationsBulkUpdateExecute(r)
-}
-
-/*
-IpamL2vpnTerminationsBulkUpdate Method for IpamL2vpnTerminationsBulkUpdate
-
-Put a list of L2VPN termination objects.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamL2vpnTerminationsBulkUpdateRequest
-*/
-func (a *IpamAPIService) IpamL2vpnTerminationsBulkUpdate(ctx context.Context) ApiIpamL2vpnTerminationsBulkUpdateRequest {
- return ApiIpamL2vpnTerminationsBulkUpdateRequest{
- ApiService: a,
- ctx: ctx,
- }
-}
-
-// Execute executes the request
-//
-// @return []L2VPNTermination
-func (a *IpamAPIService) IpamL2vpnTerminationsBulkUpdateExecute(r ApiIpamL2vpnTerminationsBulkUpdateRequest) ([]L2VPNTermination, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []L2VPNTermination
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsBulkUpdate")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpn-terminations/"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
- if r.l2VPNTerminationRequest == nil {
- return localVarReturnValue, nil, reportError("l2VPNTerminationRequest 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.l2VPNTerminationRequest
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- 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 ApiIpamL2vpnTerminationsCreateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- writableL2VPNTerminationRequest *WritableL2VPNTerminationRequest
-}
-
-func (r ApiIpamL2vpnTerminationsCreateRequest) WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest WritableL2VPNTerminationRequest) ApiIpamL2vpnTerminationsCreateRequest {
- r.writableL2VPNTerminationRequest = &writableL2VPNTerminationRequest
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsCreateRequest) Execute() (*L2VPNTermination, *http.Response, error) {
- return r.ApiService.IpamL2vpnTerminationsCreateExecute(r)
-}
-
-/*
-IpamL2vpnTerminationsCreate Method for IpamL2vpnTerminationsCreate
-
-Post a list of L2VPN termination objects.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamL2vpnTerminationsCreateRequest
-*/
-func (a *IpamAPIService) IpamL2vpnTerminationsCreate(ctx context.Context) ApiIpamL2vpnTerminationsCreateRequest {
- return ApiIpamL2vpnTerminationsCreateRequest{
- ApiService: a,
- ctx: ctx,
- }
-}
-
-// Execute executes the request
-//
-// @return L2VPNTermination
-func (a *IpamAPIService) IpamL2vpnTerminationsCreateExecute(r ApiIpamL2vpnTerminationsCreateRequest) (*L2VPNTermination, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *L2VPNTermination
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsCreate")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpn-terminations/"
-
- 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")
- }
-
- // 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.writableL2VPNTerminationRequest
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- 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 ApiIpamL2vpnTerminationsDestroyRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
-}
-
-func (r ApiIpamL2vpnTerminationsDestroyRequest) Execute() (*http.Response, error) {
- return r.ApiService.IpamL2vpnTerminationsDestroyExecute(r)
-}
-
-/*
-IpamL2vpnTerminationsDestroy Method for IpamL2vpnTerminationsDestroy
-
-Delete a L2VPN termination object.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN termination.
- @return ApiIpamL2vpnTerminationsDestroyRequest
-*/
-func (a *IpamAPIService) IpamL2vpnTerminationsDestroy(ctx context.Context, id int32) ApiIpamL2vpnTerminationsDestroyRequest {
- return ApiIpamL2vpnTerminationsDestroyRequest{
- ApiService: a,
- ctx: ctx,
- id: id,
- }
-}
-
-// Execute executes the request
-func (a *IpamAPIService) IpamL2vpnTerminationsDestroyExecute(r ApiIpamL2vpnTerminationsDestroyRequest) (*http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsDestroy")
- if err != nil {
- return nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpn-terminations/{id}/"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- key = apiKey.Key
- }
- localVarHeaderParams["Authorization"] = key
- }
- }
- }
- req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return nil, err
- }
-
- localVarHTTPResponse, err := a.client.callAPI(req)
- if err != nil || localVarHTTPResponse == nil {
- return localVarHTTPResponse, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarHTTPResponse, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &GenericOpenAPIError{
- body: localVarBody,
- error: localVarHTTPResponse.Status,
- }
- return localVarHTTPResponse, newErr
- }
-
- return localVarHTTPResponse, nil
-}
-
-type ApiIpamL2vpnTerminationsListRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- assignedObjectType *string
- assignedObjectTypeN *string
- assignedObjectTypeId *int32
- assignedObjectTypeIdN *int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- device *[]*string
- deviceN *[]*string
- deviceId *[]int32
- deviceIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interface_ *[]string
- interfaceN *[]string
- interfaceId *[]int32
- interfaceIdN *[]int32
- l2vpn *[]string
- l2vpnN *[]string
- l2vpnId *[]int32
- l2vpnIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- offset *int32
- ordering *string
- q *string
- region *[]string
- regionId *[]int32
- site *[]string
- siteId *[]int32
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- virtualMachine *[]string
- virtualMachineN *[]string
- virtualMachineId *[]int32
- virtualMachineIdN *[]int32
- vlan *[]string
- vlanN *[]string
- vlanId *[]int32
- vlanIdN *[]int32
- vlanVid *int32
- vlanVidEmpty *int32
- vlanVidGt *int32
- vlanVidGte *int32
- vlanVidLt *int32
- vlanVidLte *int32
- vlanVidN *int32
- vminterface *[]string
- vminterfaceN *[]string
- vminterfaceId *[]int32
- vminterfaceIdN *[]int32
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) AssignedObjectType(assignedObjectType string) ApiIpamL2vpnTerminationsListRequest {
- r.assignedObjectType = &assignedObjectType
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) AssignedObjectTypeN(assignedObjectTypeN string) ApiIpamL2vpnTerminationsListRequest {
- r.assignedObjectTypeN = &assignedObjectTypeN
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) AssignedObjectTypeId(assignedObjectTypeId int32) ApiIpamL2vpnTerminationsListRequest {
- r.assignedObjectTypeId = &assignedObjectTypeId
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) AssignedObjectTypeIdN(assignedObjectTypeIdN int32) ApiIpamL2vpnTerminationsListRequest {
- r.assignedObjectTypeIdN = &assignedObjectTypeIdN
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) Created(created []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.created = &created
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.createdEmpty = &createdEmpty
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) CreatedGt(createdGt []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.createdGt = &createdGt
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) CreatedGte(createdGte []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.createdGte = &createdGte
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) CreatedLt(createdLt []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.createdLt = &createdLt
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) CreatedLte(createdLte []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.createdLte = &createdLte
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) CreatedN(createdN []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.createdN = &createdN
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) CreatedByRequest(createdByRequest string) ApiIpamL2vpnTerminationsListRequest {
- r.createdByRequest = &createdByRequest
- return r
-}
-
-// Device (name)
-func (r ApiIpamL2vpnTerminationsListRequest) Device(device []*string) ApiIpamL2vpnTerminationsListRequest {
- r.device = &device
- return r
-}
-
-// Device (name)
-func (r ApiIpamL2vpnTerminationsListRequest) DeviceN(deviceN []*string) ApiIpamL2vpnTerminationsListRequest {
- r.deviceN = &deviceN
- return r
-}
-
-// Device (ID)
-func (r ApiIpamL2vpnTerminationsListRequest) DeviceId(deviceId []int32) ApiIpamL2vpnTerminationsListRequest {
- r.deviceId = &deviceId
- return r
-}
-
-// Device (ID)
-func (r ApiIpamL2vpnTerminationsListRequest) DeviceIdN(deviceIdN []int32) ApiIpamL2vpnTerminationsListRequest {
- r.deviceIdN = &deviceIdN
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) Id(id []int32) ApiIpamL2vpnTerminationsListRequest {
- r.id = &id
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) IdEmpty(idEmpty bool) ApiIpamL2vpnTerminationsListRequest {
- r.idEmpty = &idEmpty
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) IdGt(idGt []int32) ApiIpamL2vpnTerminationsListRequest {
- r.idGt = &idGt
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) IdGte(idGte []int32) ApiIpamL2vpnTerminationsListRequest {
- r.idGte = &idGte
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) IdLt(idLt []int32) ApiIpamL2vpnTerminationsListRequest {
- r.idLt = &idLt
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) IdLte(idLte []int32) ApiIpamL2vpnTerminationsListRequest {
- r.idLte = &idLte
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) IdN(idN []int32) ApiIpamL2vpnTerminationsListRequest {
- r.idN = &idN
- return r
-}
-
-// Interface (name)
-func (r ApiIpamL2vpnTerminationsListRequest) Interface_(interface_ []string) ApiIpamL2vpnTerminationsListRequest {
- r.interface_ = &interface_
- return r
-}
-
-// Interface (name)
-func (r ApiIpamL2vpnTerminationsListRequest) InterfaceN(interfaceN []string) ApiIpamL2vpnTerminationsListRequest {
- r.interfaceN = &interfaceN
- return r
-}
-
-// Interface (ID)
-func (r ApiIpamL2vpnTerminationsListRequest) InterfaceId(interfaceId []int32) ApiIpamL2vpnTerminationsListRequest {
- r.interfaceId = &interfaceId
- return r
-}
-
-// Interface (ID)
-func (r ApiIpamL2vpnTerminationsListRequest) InterfaceIdN(interfaceIdN []int32) ApiIpamL2vpnTerminationsListRequest {
- r.interfaceIdN = &interfaceIdN
- return r
-}
-
-// L2VPN (slug)
-func (r ApiIpamL2vpnTerminationsListRequest) L2vpn(l2vpn []string) ApiIpamL2vpnTerminationsListRequest {
- r.l2vpn = &l2vpn
- return r
-}
-
-// L2VPN (slug)
-func (r ApiIpamL2vpnTerminationsListRequest) L2vpnN(l2vpnN []string) ApiIpamL2vpnTerminationsListRequest {
- r.l2vpnN = &l2vpnN
- return r
-}
-
-// L2VPN (ID)
-func (r ApiIpamL2vpnTerminationsListRequest) L2vpnId(l2vpnId []int32) ApiIpamL2vpnTerminationsListRequest {
- r.l2vpnId = &l2vpnId
- return r
-}
-
-// L2VPN (ID)
-func (r ApiIpamL2vpnTerminationsListRequest) L2vpnIdN(l2vpnIdN []int32) ApiIpamL2vpnTerminationsListRequest {
- r.l2vpnIdN = &l2vpnIdN
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.lastUpdated = &lastUpdated
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.lastUpdatedEmpty = &lastUpdatedEmpty
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.lastUpdatedGt = &lastUpdatedGt
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.lastUpdatedGte = &lastUpdatedGte
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.lastUpdatedLt = &lastUpdatedLt
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.lastUpdatedLte = &lastUpdatedLte
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamL2vpnTerminationsListRequest {
- r.lastUpdatedN = &lastUpdatedN
- return r
-}
-
-// Number of results to return per page.
-func (r ApiIpamL2vpnTerminationsListRequest) Limit(limit int32) ApiIpamL2vpnTerminationsListRequest {
- r.limit = &limit
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamL2vpnTerminationsListRequest {
- r.modifiedByRequest = &modifiedByRequest
- return r
-}
-
-// The initial index from which to return the results.
-func (r ApiIpamL2vpnTerminationsListRequest) Offset(offset int32) ApiIpamL2vpnTerminationsListRequest {
- r.offset = &offset
- return r
-}
-
-// Which field to use when ordering the results.
-func (r ApiIpamL2vpnTerminationsListRequest) Ordering(ordering string) ApiIpamL2vpnTerminationsListRequest {
- r.ordering = &ordering
- return r
-}
-
-// Search
-func (r ApiIpamL2vpnTerminationsListRequest) Q(q string) ApiIpamL2vpnTerminationsListRequest {
- r.q = &q
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) Region(region []string) ApiIpamL2vpnTerminationsListRequest {
- r.region = ®ion
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) RegionId(regionId []int32) ApiIpamL2vpnTerminationsListRequest {
- r.regionId = ®ionId
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) Site(site []string) ApiIpamL2vpnTerminationsListRequest {
- r.site = &site
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) SiteId(siteId []int32) ApiIpamL2vpnTerminationsListRequest {
- r.siteId = &siteId
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) Tag(tag []string) ApiIpamL2vpnTerminationsListRequest {
- r.tag = &tag
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) TagN(tagN []string) ApiIpamL2vpnTerminationsListRequest {
- r.tagN = &tagN
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamL2vpnTerminationsListRequest {
- r.updatedByRequest = &updatedByRequest
- return r
-}
-
-// Virtual machine (name)
-func (r ApiIpamL2vpnTerminationsListRequest) VirtualMachine(virtualMachine []string) ApiIpamL2vpnTerminationsListRequest {
- r.virtualMachine = &virtualMachine
- return r
-}
-
-// Virtual machine (name)
-func (r ApiIpamL2vpnTerminationsListRequest) VirtualMachineN(virtualMachineN []string) ApiIpamL2vpnTerminationsListRequest {
- r.virtualMachineN = &virtualMachineN
- return r
-}
-
-// Virtual machine (ID)
-func (r ApiIpamL2vpnTerminationsListRequest) VirtualMachineId(virtualMachineId []int32) ApiIpamL2vpnTerminationsListRequest {
- r.virtualMachineId = &virtualMachineId
- return r
-}
-
-// Virtual machine (ID)
-func (r ApiIpamL2vpnTerminationsListRequest) VirtualMachineIdN(virtualMachineIdN []int32) ApiIpamL2vpnTerminationsListRequest {
- r.virtualMachineIdN = &virtualMachineIdN
- return r
-}
-
-// VLAN (name)
-func (r ApiIpamL2vpnTerminationsListRequest) Vlan(vlan []string) ApiIpamL2vpnTerminationsListRequest {
- r.vlan = &vlan
- return r
-}
-
-// VLAN (name)
-func (r ApiIpamL2vpnTerminationsListRequest) VlanN(vlanN []string) ApiIpamL2vpnTerminationsListRequest {
- r.vlanN = &vlanN
- return r
-}
-
-// VLAN (ID)
-func (r ApiIpamL2vpnTerminationsListRequest) VlanId(vlanId []int32) ApiIpamL2vpnTerminationsListRequest {
- r.vlanId = &vlanId
- return r
-}
-
-// VLAN (ID)
-func (r ApiIpamL2vpnTerminationsListRequest) VlanIdN(vlanIdN []int32) ApiIpamL2vpnTerminationsListRequest {
- r.vlanIdN = &vlanIdN
- return r
-}
-
-// VLAN number (1-4094)
-func (r ApiIpamL2vpnTerminationsListRequest) VlanVid(vlanVid int32) ApiIpamL2vpnTerminationsListRequest {
- r.vlanVid = &vlanVid
- return r
-}
-
-// VLAN number (1-4094)
-func (r ApiIpamL2vpnTerminationsListRequest) VlanVidEmpty(vlanVidEmpty int32) ApiIpamL2vpnTerminationsListRequest {
- r.vlanVidEmpty = &vlanVidEmpty
- return r
-}
-
-// VLAN number (1-4094)
-func (r ApiIpamL2vpnTerminationsListRequest) VlanVidGt(vlanVidGt int32) ApiIpamL2vpnTerminationsListRequest {
- r.vlanVidGt = &vlanVidGt
- return r
-}
-
-// VLAN number (1-4094)
-func (r ApiIpamL2vpnTerminationsListRequest) VlanVidGte(vlanVidGte int32) ApiIpamL2vpnTerminationsListRequest {
- r.vlanVidGte = &vlanVidGte
- return r
-}
-
-// VLAN number (1-4094)
-func (r ApiIpamL2vpnTerminationsListRequest) VlanVidLt(vlanVidLt int32) ApiIpamL2vpnTerminationsListRequest {
- r.vlanVidLt = &vlanVidLt
- return r
-}
-
-// VLAN number (1-4094)
-func (r ApiIpamL2vpnTerminationsListRequest) VlanVidLte(vlanVidLte int32) ApiIpamL2vpnTerminationsListRequest {
- r.vlanVidLte = &vlanVidLte
- return r
-}
-
-// VLAN number (1-4094)
-func (r ApiIpamL2vpnTerminationsListRequest) VlanVidN(vlanVidN int32) ApiIpamL2vpnTerminationsListRequest {
- r.vlanVidN = &vlanVidN
- return r
-}
-
-// VM interface (name)
-func (r ApiIpamL2vpnTerminationsListRequest) Vminterface(vminterface []string) ApiIpamL2vpnTerminationsListRequest {
- r.vminterface = &vminterface
- return r
-}
-
-// VM interface (name)
-func (r ApiIpamL2vpnTerminationsListRequest) VminterfaceN(vminterfaceN []string) ApiIpamL2vpnTerminationsListRequest {
- r.vminterfaceN = &vminterfaceN
- return r
-}
-
-// VM Interface (ID)
-func (r ApiIpamL2vpnTerminationsListRequest) VminterfaceId(vminterfaceId []int32) ApiIpamL2vpnTerminationsListRequest {
- r.vminterfaceId = &vminterfaceId
- return r
-}
-
-// VM Interface (ID)
-func (r ApiIpamL2vpnTerminationsListRequest) VminterfaceIdN(vminterfaceIdN []int32) ApiIpamL2vpnTerminationsListRequest {
- r.vminterfaceIdN = &vminterfaceIdN
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsListRequest) Execute() (*PaginatedL2VPNTerminationList, *http.Response, error) {
- return r.ApiService.IpamL2vpnTerminationsListExecute(r)
-}
-
-/*
-IpamL2vpnTerminationsList Method for IpamL2vpnTerminationsList
-
-Get a list of L2VPN termination objects.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamL2vpnTerminationsListRequest
-*/
-func (a *IpamAPIService) IpamL2vpnTerminationsList(ctx context.Context) ApiIpamL2vpnTerminationsListRequest {
- return ApiIpamL2vpnTerminationsListRequest{
- ApiService: a,
- ctx: ctx,
- }
-}
-
-// Execute executes the request
-//
-// @return PaginatedL2VPNTerminationList
-func (a *IpamAPIService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminationsListRequest) (*PaginatedL2VPNTerminationList, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedL2VPNTerminationList
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsList")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpn-terminations/"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- 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 {
- 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.device != nil {
- t := *r.device
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi")
- }
- }
- if r.deviceN != nil {
- t := *r.deviceN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi")
- }
- }
- if r.deviceId != nil {
- t := *r.deviceId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi")
- }
- }
- if r.deviceIdN != nil {
- t := *r.deviceIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi")
- }
- }
- if r.id != nil {
- t := *r.id
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
- }
- }
- if r.idEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
- }
- if r.idGt != nil {
- t := *r.idGt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
- }
- }
- if r.idGte != nil {
- t := *r.idGte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
- }
- }
- if r.idLt != nil {
- t := *r.idLt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
- }
- }
- if r.idLte != nil {
- t := *r.idLte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
- }
- }
- if r.idN != nil {
- t := *r.idN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
- }
- }
- if r.interface_ != nil {
- t := *r.interface_
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface", t, "multi")
- }
- }
- if r.interfaceN != nil {
- t := *r.interfaceN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface__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.l2vpn != nil {
- t := *r.l2vpn
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "multi")
- }
- }
- if r.l2vpnN != nil {
- t := *r.l2vpnN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "multi")
- }
- }
- if r.l2vpnId != nil {
- t := *r.l2vpnId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "multi")
- }
- }
- if r.l2vpnIdN != nil {
- t := *r.l2vpnIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "multi")
- }
- }
- if r.lastUpdated != nil {
- t := *r.lastUpdated
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
- }
- }
- if r.lastUpdatedEmpty != nil {
- t := *r.lastUpdatedEmpty
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
- }
- }
- if r.lastUpdatedGt != nil {
- t := *r.lastUpdatedGt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
- }
- }
- if r.lastUpdatedGte != nil {
- t := *r.lastUpdatedGte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
- }
- }
- if r.lastUpdatedLt != nil {
- t := *r.lastUpdatedLt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
- }
- }
- if r.lastUpdatedLte != nil {
- t := *r.lastUpdatedLte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
- }
- }
- if r.lastUpdatedN != nil {
- t := *r.lastUpdatedN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
- }
- }
- if r.limit != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
- }
- if r.modifiedByRequest != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
- }
- if r.offset != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
- }
- if r.ordering != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
- }
- if r.q != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
- }
- if r.region != nil {
- t := *r.region
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi")
- }
- }
- if r.regionId != nil {
- t := *r.regionId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi")
- }
- }
- if r.site != nil {
- t := *r.site
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi")
- }
- }
- if r.siteId != nil {
- t := *r.siteId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi")
- }
- }
- if r.tag != nil {
- t := *r.tag
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
- }
- }
- if r.tagN != nil {
- t := *r.tagN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
- }
- }
- if r.updatedByRequest != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
- }
- if r.virtualMachine != nil {
- t := *r.virtualMachine
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi")
- }
- }
- if r.virtualMachineN != nil {
- t := *r.virtualMachineN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "multi")
- }
- }
- if r.virtualMachineId != nil {
- t := *r.virtualMachineId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi")
- }
- }
- if r.virtualMachineIdN != nil {
- t := *r.virtualMachineIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "multi")
- }
- }
- if r.vlan != nil {
- t := *r.vlan
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", t, "multi")
- }
- }
- if r.vlanN != nil {
- t := *r.vlanN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan__n", t, "multi")
- }
- }
- if r.vlanId != nil {
- t := *r.vlanId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", t, "multi")
- }
- }
- if r.vlanIdN != nil {
- t := *r.vlanIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", t, "multi")
- }
- }
- if r.vlanVid != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid", r.vlanVid, "")
- }
- if r.vlanVidEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__empty", r.vlanVidEmpty, "")
- }
- if r.vlanVidGt != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__gt", r.vlanVidGt, "")
- }
- if r.vlanVidGte != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__gte", r.vlanVidGte, "")
- }
- if r.vlanVidLt != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__lt", r.vlanVidLt, "")
- }
- if r.vlanVidLte != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__lte", r.vlanVidLte, "")
- }
- if r.vlanVidN != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__n", r.vlanVidN, "")
- }
- if r.vminterface != nil {
- t := *r.vminterface
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", t, "multi")
- }
- }
- if r.vminterfaceN != nil {
- t := *r.vminterfaceN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", t, "multi")
- }
- }
- if r.vminterfaceId != nil {
- t := *r.vminterfaceId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", t, "multi")
- }
- }
- if r.vminterfaceIdN != nil {
- t := *r.vminterfaceIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", t, "multi")
- }
- }
- // 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 ApiIpamL2vpnTerminationsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- patchedWritableL2VPNTerminationRequest *PatchedWritableL2VPNTerminationRequest
-}
-
-func (r ApiIpamL2vpnTerminationsPartialUpdateRequest) PatchedWritableL2VPNTerminationRequest(patchedWritableL2VPNTerminationRequest PatchedWritableL2VPNTerminationRequest) ApiIpamL2vpnTerminationsPartialUpdateRequest {
- r.patchedWritableL2VPNTerminationRequest = &patchedWritableL2VPNTerminationRequest
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsPartialUpdateRequest) Execute() (*L2VPNTermination, *http.Response, error) {
- return r.ApiService.IpamL2vpnTerminationsPartialUpdateExecute(r)
-}
-
-/*
-IpamL2vpnTerminationsPartialUpdate Method for IpamL2vpnTerminationsPartialUpdate
-
-Patch a L2VPN termination object.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN termination.
- @return ApiIpamL2vpnTerminationsPartialUpdateRequest
-*/
-func (a *IpamAPIService) IpamL2vpnTerminationsPartialUpdate(ctx context.Context, id int32) ApiIpamL2vpnTerminationsPartialUpdateRequest {
- return ApiIpamL2vpnTerminationsPartialUpdateRequest{
- ApiService: a,
- ctx: ctx,
- id: id,
- }
-}
-
-// Execute executes the request
-//
-// @return L2VPNTermination
-func (a *IpamAPIService) IpamL2vpnTerminationsPartialUpdateExecute(r ApiIpamL2vpnTerminationsPartialUpdateRequest) (*L2VPNTermination, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *L2VPNTermination
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsPartialUpdate")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpn-terminations/{id}/"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- // body params
- localVarPostBody = r.patchedWritableL2VPNTerminationRequest
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- 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 ApiIpamL2vpnTerminationsRetrieveRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
-}
-
-func (r ApiIpamL2vpnTerminationsRetrieveRequest) Execute() (*L2VPNTermination, *http.Response, error) {
- return r.ApiService.IpamL2vpnTerminationsRetrieveExecute(r)
-}
-
-/*
-IpamL2vpnTerminationsRetrieve Method for IpamL2vpnTerminationsRetrieve
-
-Get a L2VPN termination object.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN termination.
- @return ApiIpamL2vpnTerminationsRetrieveRequest
-*/
-func (a *IpamAPIService) IpamL2vpnTerminationsRetrieve(ctx context.Context, id int32) ApiIpamL2vpnTerminationsRetrieveRequest {
- return ApiIpamL2vpnTerminationsRetrieveRequest{
- ApiService: a,
- ctx: ctx,
- id: id,
- }
-}
-
-// Execute executes the request
-//
-// @return L2VPNTermination
-func (a *IpamAPIService) IpamL2vpnTerminationsRetrieveExecute(r ApiIpamL2vpnTerminationsRetrieveRequest) (*L2VPNTermination, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *L2VPNTermination
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsRetrieve")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpn-terminations/{id}/"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- key = apiKey.Key
- }
- localVarHeaderParams["Authorization"] = key
- }
- }
- }
- req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, nil, err
- }
-
- localVarHTTPResponse, err := a.client.callAPI(req)
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, localVarHTTPResponse, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, localVarHTTPResponse, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &GenericOpenAPIError{
- body: localVarBody,
- error: localVarHTTPResponse.Status,
- }
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
-
- err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &GenericOpenAPIError{
- body: localVarBody,
- error: err.Error(),
- }
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
-
- return localVarReturnValue, localVarHTTPResponse, nil
-}
-
-type ApiIpamL2vpnTerminationsUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- writableL2VPNTerminationRequest *WritableL2VPNTerminationRequest
-}
-
-func (r ApiIpamL2vpnTerminationsUpdateRequest) WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest WritableL2VPNTerminationRequest) ApiIpamL2vpnTerminationsUpdateRequest {
- r.writableL2VPNTerminationRequest = &writableL2VPNTerminationRequest
- return r
-}
-
-func (r ApiIpamL2vpnTerminationsUpdateRequest) Execute() (*L2VPNTermination, *http.Response, error) {
- return r.ApiService.IpamL2vpnTerminationsUpdateExecute(r)
-}
-
-/*
-IpamL2vpnTerminationsUpdate Method for IpamL2vpnTerminationsUpdate
-
-Put a L2VPN termination object.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN termination.
- @return ApiIpamL2vpnTerminationsUpdateRequest
-*/
-func (a *IpamAPIService) IpamL2vpnTerminationsUpdate(ctx context.Context, id int32) ApiIpamL2vpnTerminationsUpdateRequest {
- return ApiIpamL2vpnTerminationsUpdateRequest{
- ApiService: a,
- ctx: ctx,
- id: id,
- }
-}
-
-// Execute executes the request
-//
-// @return L2VPNTermination
-func (a *IpamAPIService) IpamL2vpnTerminationsUpdateExecute(r ApiIpamL2vpnTerminationsUpdateRequest) (*L2VPNTermination, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *L2VPNTermination
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsUpdate")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpn-terminations/{id}/"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
- if r.writableL2VPNTerminationRequest == nil {
- return localVarReturnValue, nil, reportError("writableL2VPNTerminationRequest 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.writableL2VPNTerminationRequest
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- 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 ApiIpamL2vpnsBulkDestroyRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- l2VPNRequest *[]L2VPNRequest
-}
-
-func (r ApiIpamL2vpnsBulkDestroyRequest) L2VPNRequest(l2VPNRequest []L2VPNRequest) ApiIpamL2vpnsBulkDestroyRequest {
- r.l2VPNRequest = &l2VPNRequest
- return r
-}
-
-func (r ApiIpamL2vpnsBulkDestroyRequest) Execute() (*http.Response, error) {
- return r.ApiService.IpamL2vpnsBulkDestroyExecute(r)
-}
-
-/*
-IpamL2vpnsBulkDestroy Method for IpamL2vpnsBulkDestroy
-
-Delete a list of L2VPN objects.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamL2vpnsBulkDestroyRequest
-*/
-func (a *IpamAPIService) IpamL2vpnsBulkDestroy(ctx context.Context) ApiIpamL2vpnsBulkDestroyRequest {
- return ApiIpamL2vpnsBulkDestroyRequest{
- ApiService: a,
- ctx: ctx,
- }
-}
-
-// Execute executes the request
-func (a *IpamAPIService) IpamL2vpnsBulkDestroyExecute(r ApiIpamL2vpnsBulkDestroyRequest) (*http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsBulkDestroy")
- if err != nil {
- return nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpns/"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
- if r.l2VPNRequest == nil {
- return nil, reportError("l2VPNRequest is required and must be specified")
- }
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- // body params
- localVarPostBody = r.l2VPNRequest
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- 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 ApiIpamL2vpnsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- l2VPNRequest *[]L2VPNRequest
-}
-
-func (r ApiIpamL2vpnsBulkPartialUpdateRequest) L2VPNRequest(l2VPNRequest []L2VPNRequest) ApiIpamL2vpnsBulkPartialUpdateRequest {
- r.l2VPNRequest = &l2VPNRequest
- return r
-}
-
-func (r ApiIpamL2vpnsBulkPartialUpdateRequest) Execute() ([]L2VPN, *http.Response, error) {
- return r.ApiService.IpamL2vpnsBulkPartialUpdateExecute(r)
-}
-
-/*
-IpamL2vpnsBulkPartialUpdate Method for IpamL2vpnsBulkPartialUpdate
-
-Patch a list of L2VPN objects.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamL2vpnsBulkPartialUpdateRequest
-*/
-func (a *IpamAPIService) IpamL2vpnsBulkPartialUpdate(ctx context.Context) ApiIpamL2vpnsBulkPartialUpdateRequest {
- return ApiIpamL2vpnsBulkPartialUpdateRequest{
- ApiService: a,
- ctx: ctx,
- }
-}
-
-// Execute executes the request
-//
-// @return []L2VPN
-func (a *IpamAPIService) IpamL2vpnsBulkPartialUpdateExecute(r ApiIpamL2vpnsBulkPartialUpdateRequest) ([]L2VPN, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []L2VPN
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsBulkPartialUpdate")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpns/"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
- if r.l2VPNRequest == nil {
- return localVarReturnValue, nil, reportError("l2VPNRequest 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.l2VPNRequest
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- 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 ApiIpamL2vpnsBulkUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- l2VPNRequest *[]L2VPNRequest
-}
-
-func (r ApiIpamL2vpnsBulkUpdateRequest) L2VPNRequest(l2VPNRequest []L2VPNRequest) ApiIpamL2vpnsBulkUpdateRequest {
- r.l2VPNRequest = &l2VPNRequest
- return r
-}
-
-func (r ApiIpamL2vpnsBulkUpdateRequest) Execute() ([]L2VPN, *http.Response, error) {
- return r.ApiService.IpamL2vpnsBulkUpdateExecute(r)
-}
-
-/*
-IpamL2vpnsBulkUpdate Method for IpamL2vpnsBulkUpdate
-
-Put a list of L2VPN objects.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamL2vpnsBulkUpdateRequest
-*/
-func (a *IpamAPIService) IpamL2vpnsBulkUpdate(ctx context.Context) ApiIpamL2vpnsBulkUpdateRequest {
- return ApiIpamL2vpnsBulkUpdateRequest{
- ApiService: a,
- ctx: ctx,
- }
-}
-
-// Execute executes the request
-//
-// @return []L2VPN
-func (a *IpamAPIService) IpamL2vpnsBulkUpdateExecute(r ApiIpamL2vpnsBulkUpdateRequest) ([]L2VPN, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []L2VPN
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsBulkUpdate")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpns/"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
- if r.l2VPNRequest == nil {
- return localVarReturnValue, nil, reportError("l2VPNRequest 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.l2VPNRequest
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- 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 ApiIpamL2vpnsCreateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- writableL2VPNRequest *WritableL2VPNRequest
-}
-
-func (r ApiIpamL2vpnsCreateRequest) WritableL2VPNRequest(writableL2VPNRequest WritableL2VPNRequest) ApiIpamL2vpnsCreateRequest {
- r.writableL2VPNRequest = &writableL2VPNRequest
- return r
-}
-
-func (r ApiIpamL2vpnsCreateRequest) Execute() (*L2VPN, *http.Response, error) {
- return r.ApiService.IpamL2vpnsCreateExecute(r)
-}
-
-/*
-IpamL2vpnsCreate Method for IpamL2vpnsCreate
-
-Post a list of L2VPN objects.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamL2vpnsCreateRequest
-*/
-func (a *IpamAPIService) IpamL2vpnsCreate(ctx context.Context) ApiIpamL2vpnsCreateRequest {
- return ApiIpamL2vpnsCreateRequest{
- ApiService: a,
- ctx: ctx,
- }
-}
-
-// Execute executes the request
-//
-// @return L2VPN
-func (a *IpamAPIService) IpamL2vpnsCreateExecute(r ApiIpamL2vpnsCreateRequest) (*L2VPN, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *L2VPN
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsCreate")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpns/"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
- if r.writableL2VPNRequest == nil {
- return localVarReturnValue, nil, reportError("writableL2VPNRequest 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.writableL2VPNRequest
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- 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 ApiIpamL2vpnsDestroyRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
-}
-
-func (r ApiIpamL2vpnsDestroyRequest) Execute() (*http.Response, error) {
- return r.ApiService.IpamL2vpnsDestroyExecute(r)
-}
-
-/*
-IpamL2vpnsDestroy Method for IpamL2vpnsDestroy
-
-Delete a L2VPN object.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN.
- @return ApiIpamL2vpnsDestroyRequest
-*/
-func (a *IpamAPIService) IpamL2vpnsDestroy(ctx context.Context, id int32) ApiIpamL2vpnsDestroyRequest {
- return ApiIpamL2vpnsDestroyRequest{
- ApiService: a,
- ctx: ctx,
- id: id,
- }
-}
-
-// Execute executes the request
-func (a *IpamAPIService) IpamL2vpnsDestroyExecute(r ApiIpamL2vpnsDestroyRequest) (*http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsDestroy")
- if err != nil {
- return nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpns/{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 ApiIpamL2vpnsListRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- exportTarget *[]string
- exportTargetN *[]string
- exportTargetId *[]int32
- exportTargetIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- identifier *[]int32
- identifierEmpty *bool
- identifierGt *[]int32
- identifierGte *[]int32
- identifierLt *[]int32
- identifierLte *[]int32
- identifierN *[]int32
- importTarget *[]string
- importTargetN *[]string
- importTargetId *[]int32
- importTargetIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]int32
- tenantGroupN *[]int32
- tenantGroupId *[]int32
- tenantGroupIdN *[]int32
- tenantId *[]*int32
- tenantIdN *[]*int32
- type_ *[]string
- typeN *[]string
- updatedByRequest *string
-}
-
-func (r ApiIpamL2vpnsListRequest) Created(created []time.Time) ApiIpamL2vpnsListRequest {
- r.created = &created
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamL2vpnsListRequest {
- r.createdEmpty = &createdEmpty
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) CreatedGt(createdGt []time.Time) ApiIpamL2vpnsListRequest {
- r.createdGt = &createdGt
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) CreatedGte(createdGte []time.Time) ApiIpamL2vpnsListRequest {
- r.createdGte = &createdGte
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) CreatedLt(createdLt []time.Time) ApiIpamL2vpnsListRequest {
- r.createdLt = &createdLt
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) CreatedLte(createdLte []time.Time) ApiIpamL2vpnsListRequest {
- r.createdLte = &createdLte
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) CreatedN(createdN []time.Time) ApiIpamL2vpnsListRequest {
- r.createdN = &createdN
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) CreatedByRequest(createdByRequest string) ApiIpamL2vpnsListRequest {
- r.createdByRequest = &createdByRequest
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) Description(description []string) ApiIpamL2vpnsListRequest {
- r.description = &description
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamL2vpnsListRequest {
- r.descriptionEmpty = &descriptionEmpty
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) DescriptionIc(descriptionIc []string) ApiIpamL2vpnsListRequest {
- r.descriptionIc = &descriptionIc
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) DescriptionIe(descriptionIe []string) ApiIpamL2vpnsListRequest {
- r.descriptionIe = &descriptionIe
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) DescriptionIew(descriptionIew []string) ApiIpamL2vpnsListRequest {
- r.descriptionIew = &descriptionIew
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamL2vpnsListRequest {
- r.descriptionIsw = &descriptionIsw
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) DescriptionN(descriptionN []string) ApiIpamL2vpnsListRequest {
- r.descriptionN = &descriptionN
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) DescriptionNic(descriptionNic []string) ApiIpamL2vpnsListRequest {
- r.descriptionNic = &descriptionNic
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) DescriptionNie(descriptionNie []string) ApiIpamL2vpnsListRequest {
- r.descriptionNie = &descriptionNie
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamL2vpnsListRequest {
- r.descriptionNiew = &descriptionNiew
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamL2vpnsListRequest {
- r.descriptionNisw = &descriptionNisw
- return r
-}
-
-// Export target (name)
-func (r ApiIpamL2vpnsListRequest) ExportTarget(exportTarget []string) ApiIpamL2vpnsListRequest {
- r.exportTarget = &exportTarget
- return r
-}
-
-// Export target (name)
-func (r ApiIpamL2vpnsListRequest) ExportTargetN(exportTargetN []string) ApiIpamL2vpnsListRequest {
- r.exportTargetN = &exportTargetN
- return r
-}
-
-// Export target
-func (r ApiIpamL2vpnsListRequest) ExportTargetId(exportTargetId []int32) ApiIpamL2vpnsListRequest {
- r.exportTargetId = &exportTargetId
- return r
-}
-
-// Export target
-func (r ApiIpamL2vpnsListRequest) ExportTargetIdN(exportTargetIdN []int32) ApiIpamL2vpnsListRequest {
- r.exportTargetIdN = &exportTargetIdN
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) Id(id []int32) ApiIpamL2vpnsListRequest {
- r.id = &id
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) IdEmpty(idEmpty bool) ApiIpamL2vpnsListRequest {
- r.idEmpty = &idEmpty
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) IdGt(idGt []int32) ApiIpamL2vpnsListRequest {
- r.idGt = &idGt
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) IdGte(idGte []int32) ApiIpamL2vpnsListRequest {
- r.idGte = &idGte
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) IdLt(idLt []int32) ApiIpamL2vpnsListRequest {
- r.idLt = &idLt
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) IdLte(idLte []int32) ApiIpamL2vpnsListRequest {
- r.idLte = &idLte
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) IdN(idN []int32) ApiIpamL2vpnsListRequest {
- r.idN = &idN
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) Identifier(identifier []int32) ApiIpamL2vpnsListRequest {
- r.identifier = &identifier
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) IdentifierEmpty(identifierEmpty bool) ApiIpamL2vpnsListRequest {
- r.identifierEmpty = &identifierEmpty
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) IdentifierGt(identifierGt []int32) ApiIpamL2vpnsListRequest {
- r.identifierGt = &identifierGt
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) IdentifierGte(identifierGte []int32) ApiIpamL2vpnsListRequest {
- r.identifierGte = &identifierGte
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) IdentifierLt(identifierLt []int32) ApiIpamL2vpnsListRequest {
- r.identifierLt = &identifierLt
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) IdentifierLte(identifierLte []int32) ApiIpamL2vpnsListRequest {
- r.identifierLte = &identifierLte
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) IdentifierN(identifierN []int32) ApiIpamL2vpnsListRequest {
- r.identifierN = &identifierN
- return r
-}
-
-// Import target (name)
-func (r ApiIpamL2vpnsListRequest) ImportTarget(importTarget []string) ApiIpamL2vpnsListRequest {
- r.importTarget = &importTarget
- return r
-}
-
-// Import target (name)
-func (r ApiIpamL2vpnsListRequest) ImportTargetN(importTargetN []string) ApiIpamL2vpnsListRequest {
- r.importTargetN = &importTargetN
- return r
-}
-
-// Import target
-func (r ApiIpamL2vpnsListRequest) ImportTargetId(importTargetId []int32) ApiIpamL2vpnsListRequest {
- r.importTargetId = &importTargetId
- return r
-}
-
-// Import target
-func (r ApiIpamL2vpnsListRequest) ImportTargetIdN(importTargetIdN []int32) ApiIpamL2vpnsListRequest {
- r.importTargetIdN = &importTargetIdN
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamL2vpnsListRequest {
- r.lastUpdated = &lastUpdated
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamL2vpnsListRequest {
- r.lastUpdatedEmpty = &lastUpdatedEmpty
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamL2vpnsListRequest {
- r.lastUpdatedGt = &lastUpdatedGt
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamL2vpnsListRequest {
- r.lastUpdatedGte = &lastUpdatedGte
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamL2vpnsListRequest {
- r.lastUpdatedLt = &lastUpdatedLt
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamL2vpnsListRequest {
- r.lastUpdatedLte = &lastUpdatedLte
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamL2vpnsListRequest {
- r.lastUpdatedN = &lastUpdatedN
- return r
-}
-
-// Number of results to return per page.
-func (r ApiIpamL2vpnsListRequest) Limit(limit int32) ApiIpamL2vpnsListRequest {
- r.limit = &limit
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamL2vpnsListRequest {
- r.modifiedByRequest = &modifiedByRequest
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) Name(name []string) ApiIpamL2vpnsListRequest {
- r.name = &name
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) NameEmpty(nameEmpty bool) ApiIpamL2vpnsListRequest {
- r.nameEmpty = &nameEmpty
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) NameIc(nameIc []string) ApiIpamL2vpnsListRequest {
- r.nameIc = &nameIc
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) NameIe(nameIe []string) ApiIpamL2vpnsListRequest {
- r.nameIe = &nameIe
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) NameIew(nameIew []string) ApiIpamL2vpnsListRequest {
- r.nameIew = &nameIew
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) NameIsw(nameIsw []string) ApiIpamL2vpnsListRequest {
- r.nameIsw = &nameIsw
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) NameN(nameN []string) ApiIpamL2vpnsListRequest {
- r.nameN = &nameN
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) NameNic(nameNic []string) ApiIpamL2vpnsListRequest {
- r.nameNic = &nameNic
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) NameNie(nameNie []string) ApiIpamL2vpnsListRequest {
- r.nameNie = &nameNie
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) NameNiew(nameNiew []string) ApiIpamL2vpnsListRequest {
- r.nameNiew = &nameNiew
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) NameNisw(nameNisw []string) ApiIpamL2vpnsListRequest {
- r.nameNisw = &nameNisw
- return r
-}
-
-// The initial index from which to return the results.
-func (r ApiIpamL2vpnsListRequest) Offset(offset int32) ApiIpamL2vpnsListRequest {
- r.offset = &offset
- return r
-}
-
-// Which field to use when ordering the results.
-func (r ApiIpamL2vpnsListRequest) Ordering(ordering string) ApiIpamL2vpnsListRequest {
- r.ordering = &ordering
- return r
-}
-
-// Search
-func (r ApiIpamL2vpnsListRequest) Q(q string) ApiIpamL2vpnsListRequest {
- r.q = &q
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) Slug(slug []string) ApiIpamL2vpnsListRequest {
- r.slug = &slug
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) SlugEmpty(slugEmpty bool) ApiIpamL2vpnsListRequest {
- r.slugEmpty = &slugEmpty
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) SlugIc(slugIc []string) ApiIpamL2vpnsListRequest {
- r.slugIc = &slugIc
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) SlugIe(slugIe []string) ApiIpamL2vpnsListRequest {
- r.slugIe = &slugIe
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) SlugIew(slugIew []string) ApiIpamL2vpnsListRequest {
- r.slugIew = &slugIew
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) SlugIsw(slugIsw []string) ApiIpamL2vpnsListRequest {
- r.slugIsw = &slugIsw
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) SlugN(slugN []string) ApiIpamL2vpnsListRequest {
- r.slugN = &slugN
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) SlugNic(slugNic []string) ApiIpamL2vpnsListRequest {
- r.slugNic = &slugNic
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) SlugNie(slugNie []string) ApiIpamL2vpnsListRequest {
- r.slugNie = &slugNie
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) SlugNiew(slugNiew []string) ApiIpamL2vpnsListRequest {
- r.slugNiew = &slugNiew
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) SlugNisw(slugNisw []string) ApiIpamL2vpnsListRequest {
- r.slugNisw = &slugNisw
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) Tag(tag []string) ApiIpamL2vpnsListRequest {
- r.tag = &tag
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) TagN(tagN []string) ApiIpamL2vpnsListRequest {
- r.tagN = &tagN
- return r
-}
-
-// Tenant (slug)
-func (r ApiIpamL2vpnsListRequest) Tenant(tenant []string) ApiIpamL2vpnsListRequest {
- r.tenant = &tenant
- return r
-}
-
-// Tenant (slug)
-func (r ApiIpamL2vpnsListRequest) TenantN(tenantN []string) ApiIpamL2vpnsListRequest {
- r.tenantN = &tenantN
- return r
-}
-
-// Tenant Group (slug)
-func (r ApiIpamL2vpnsListRequest) TenantGroup(tenantGroup []int32) ApiIpamL2vpnsListRequest {
- r.tenantGroup = &tenantGroup
- return r
-}
-
-// Tenant Group (slug)
-func (r ApiIpamL2vpnsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamL2vpnsListRequest {
- r.tenantGroupN = &tenantGroupN
- return r
-}
-
-// Tenant Group (ID)
-func (r ApiIpamL2vpnsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamL2vpnsListRequest {
- r.tenantGroupId = &tenantGroupId
- return r
-}
-
-// Tenant Group (ID)
-func (r ApiIpamL2vpnsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamL2vpnsListRequest {
- r.tenantGroupIdN = &tenantGroupIdN
- return r
-}
-
-// Tenant (ID)
-func (r ApiIpamL2vpnsListRequest) TenantId(tenantId []*int32) ApiIpamL2vpnsListRequest {
- r.tenantId = &tenantId
- return r
-}
-
-// Tenant (ID)
-func (r ApiIpamL2vpnsListRequest) TenantIdN(tenantIdN []*int32) ApiIpamL2vpnsListRequest {
- r.tenantIdN = &tenantIdN
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) Type_(type_ []string) ApiIpamL2vpnsListRequest {
- r.type_ = &type_
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) TypeN(typeN []string) ApiIpamL2vpnsListRequest {
- r.typeN = &typeN
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamL2vpnsListRequest {
- r.updatedByRequest = &updatedByRequest
- return r
-}
-
-func (r ApiIpamL2vpnsListRequest) Execute() (*PaginatedL2VPNList, *http.Response, error) {
- return r.ApiService.IpamL2vpnsListExecute(r)
-}
-
-/*
-IpamL2vpnsList Method for IpamL2vpnsList
-
-Get a list of L2VPN objects.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamL2vpnsListRequest
-*/
-func (a *IpamAPIService) IpamL2vpnsList(ctx context.Context) ApiIpamL2vpnsListRequest {
- return ApiIpamL2vpnsListRequest{
- ApiService: a,
- ctx: ctx,
- }
-}
-
-// Execute executes the request
-//
-// @return PaginatedL2VPNList
-func (a *IpamAPIService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*PaginatedL2VPNList, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedL2VPNList
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsList")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/ipam/l2vpns/"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- if r.created != nil {
- t := *r.created
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
- }
- }
- if r.createdEmpty != nil {
- t := *r.createdEmpty
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
- }
- }
- if r.createdGt != nil {
- t := *r.createdGt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
- }
- }
- if r.createdGte != nil {
- t := *r.createdGte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
- }
- }
- if r.createdLt != nil {
- t := *r.createdLt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
- }
- }
- if r.createdLte != nil {
- t := *r.createdLte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
- }
- }
- if r.createdN != nil {
- t := *r.createdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
- }
- }
- if r.createdByRequest != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
- }
- if r.description != nil {
- t := *r.description
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
- }
- }
- if r.descriptionEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
- }
- if r.descriptionIc != nil {
- t := *r.descriptionIc
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
- }
- }
- if r.descriptionIe != nil {
- t := *r.descriptionIe
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
- }
- }
- if r.descriptionIew != nil {
- t := *r.descriptionIew
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
- }
- }
- if r.descriptionIsw != nil {
- t := *r.descriptionIsw
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
- }
- }
- if r.descriptionN != nil {
- t := *r.descriptionN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
- }
- }
- if r.descriptionNic != nil {
- t := *r.descriptionNic
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
- }
- }
- if r.descriptionNie != nil {
- t := *r.descriptionNie
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
- }
- }
- if r.descriptionNiew != nil {
- t := *r.descriptionNiew
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
- }
- }
- if r.descriptionNisw != nil {
- t := *r.descriptionNisw
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
- }
- }
- if r.exportTarget != nil {
- t := *r.exportTarget
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", t, "multi")
- }
- }
- if r.exportTargetN != nil {
- t := *r.exportTargetN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", t, "multi")
- }
- }
- if r.exportTargetId != nil {
- t := *r.exportTargetId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", t, "multi")
- }
- }
- if r.exportTargetIdN != nil {
- t := *r.exportTargetIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", t, "multi")
- }
- }
- if r.id != nil {
- t := *r.id
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
- }
- }
- if r.idEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
- }
- if r.idGt != nil {
- t := *r.idGt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
- }
- }
- if r.idGte != nil {
- t := *r.idGte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
- }
- }
- if r.idLt != nil {
- t := *r.idLt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
- }
- }
- if r.idLte != nil {
- t := *r.idLte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
- }
- }
- if r.idN != nil {
- t := *r.idN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
- }
- }
- if r.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.importTarget != nil {
- t := *r.importTarget
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", t, "multi")
- }
- }
- if r.importTargetN != nil {
- t := *r.importTargetN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", t, "multi")
- }
- }
- if r.importTargetId != nil {
- t := *r.importTargetId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", t, "multi")
- }
- }
- if r.importTargetIdN != nil {
- t := *r.importTargetIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", t, "multi")
- }
- }
- if r.lastUpdated != nil {
- t := *r.lastUpdated
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
- }
- }
- if r.lastUpdatedEmpty != nil {
- t := *r.lastUpdatedEmpty
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
- }
- }
- if r.lastUpdatedGt != nil {
- t := *r.lastUpdatedGt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
- }
- }
- if r.lastUpdatedGte != nil {
- t := *r.lastUpdatedGte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
- }
- }
- if r.lastUpdatedLt != nil {
- t := *r.lastUpdatedLt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
- }
- }
- if r.lastUpdatedLte != nil {
- t := *r.lastUpdatedLte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
- }
- }
- if r.lastUpdatedN != nil {
- t := *r.lastUpdatedN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
- }
- }
- if r.limit != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
- }
- if r.modifiedByRequest != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
- }
- if r.name != nil {
- t := *r.name
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi")
- }
- }
- if r.nameEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "")
- }
- if r.nameIc != nil {
- t := *r.nameIc
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi")
- }
- }
- if r.nameIe != nil {
- t := *r.nameIe
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi")
- }
- }
- if r.nameIew != nil {
- t := *r.nameIew
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi")
- }
- }
- if r.nameIsw != nil {
- t := *r.nameIsw
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi")
- }
- }
- if r.nameN != nil {
- t := *r.nameN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi")
- }
- }
- if r.nameNic != nil {
- t := *r.nameNic
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi")
- }
- }
- if r.nameNie != nil {
- t := *r.nameNie
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi")
- }
- }
- if r.nameNiew != nil {
- t := *r.nameNiew
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi")
- }
- }
- if r.nameNisw != nil {
- t := *r.nameNisw
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi")
- }
- }
- if r.offset != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
- }
- if r.ordering != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
- }
- if r.q != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
- }
- if r.slug != nil {
- t := *r.slug
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi")
- }
- }
- if r.slugEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "")
- }
- if r.slugIc != nil {
- t := *r.slugIc
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi")
- }
- }
- if r.slugIe != nil {
- t := *r.slugIe
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi")
- }
- }
- if r.slugIew != nil {
- t := *r.slugIew
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi")
- }
- }
- 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.tag != nil {
- t := *r.tag
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
- }
- }
- if r.tagN != nil {
- t := *r.tagN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
- }
- }
- if r.tenant != nil {
- t := *r.tenant
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi")
- }
- }
- if r.tenantN != nil {
- t := *r.tenantN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi")
- }
- }
- if r.tenantGroup != nil {
- t := *r.tenantGroup
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi")
- }
- }
- if r.tenantGroupN != nil {
- t := *r.tenantGroupN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi")
- }
- }
- if r.tenantGroupId != nil {
- t := *r.tenantGroupId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi")
- }
- }
- if r.tenantGroupIdN != nil {
- t := *r.tenantGroupIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi")
- }
- }
- if r.tenantId != nil {
- t := *r.tenantId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi")
- }
- }
- if r.tenantIdN != nil {
- t := *r.tenantIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi")
- }
- }
- if r.type_ != nil {
- t := *r.type_
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ if r.vrf != nil {
+ t := *r.vrf
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "multi")
}
}
- if r.typeN != nil {
- t := *r.typeN
+ if r.vrfN != nil {
+ t := *r.vrfN
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "multi")
}
}
- if r.updatedByRequest != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ if r.vrfId != nil {
+ t := *r.vrfId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "multi")
+ }
+ }
+ if r.vrfIdN != nil {
+ t := *r.vrfIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "multi")
+ }
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
@@ -19820,33 +15386,33 @@ func (a *IpamAPIService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiIpamL2vpnsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- patchedWritableL2VPNRequest *PatchedWritableL2VPNRequest
+type ApiIpamIpRangesPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *IpamAPIService
+ id int32
+ patchedWritableIPRangeRequest *PatchedWritableIPRangeRequest
}
-func (r ApiIpamL2vpnsPartialUpdateRequest) PatchedWritableL2VPNRequest(patchedWritableL2VPNRequest PatchedWritableL2VPNRequest) ApiIpamL2vpnsPartialUpdateRequest {
- r.patchedWritableL2VPNRequest = &patchedWritableL2VPNRequest
+func (r ApiIpamIpRangesPartialUpdateRequest) PatchedWritableIPRangeRequest(patchedWritableIPRangeRequest PatchedWritableIPRangeRequest) ApiIpamIpRangesPartialUpdateRequest {
+ r.patchedWritableIPRangeRequest = &patchedWritableIPRangeRequest
return r
}
-func (r ApiIpamL2vpnsPartialUpdateRequest) Execute() (*L2VPN, *http.Response, error) {
- return r.ApiService.IpamL2vpnsPartialUpdateExecute(r)
+func (r ApiIpamIpRangesPartialUpdateRequest) Execute() (*IPRange, *http.Response, error) {
+ return r.ApiService.IpamIpRangesPartialUpdateExecute(r)
}
/*
-IpamL2vpnsPartialUpdate Method for IpamL2vpnsPartialUpdate
+IpamIpRangesPartialUpdate Method for IpamIpRangesPartialUpdate
-Patch a L2VPN object.
+Patch a IP range object.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN.
- @return ApiIpamL2vpnsPartialUpdateRequest
+ @param id A unique integer value identifying this IP range.
+ @return ApiIpamIpRangesPartialUpdateRequest
*/
-func (a *IpamAPIService) IpamL2vpnsPartialUpdate(ctx context.Context, id int32) ApiIpamL2vpnsPartialUpdateRequest {
- return ApiIpamL2vpnsPartialUpdateRequest{
+func (a *IpamAPIService) IpamIpRangesPartialUpdate(ctx context.Context, id int32) ApiIpamIpRangesPartialUpdateRequest {
+ return ApiIpamIpRangesPartialUpdateRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -19855,21 +15421,21 @@ func (a *IpamAPIService) IpamL2vpnsPartialUpdate(ctx context.Context, id int32)
// Execute executes the request
//
-// @return L2VPN
-func (a *IpamAPIService) IpamL2vpnsPartialUpdateExecute(r ApiIpamL2vpnsPartialUpdateRequest) (*L2VPN, *http.Response, error) {
+// @return IPRange
+func (a *IpamAPIService) IpamIpRangesPartialUpdateExecute(r ApiIpamIpRangesPartialUpdateRequest) (*IPRange, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
- localVarReturnValue *L2VPN
+ localVarReturnValue *IPRange
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsPartialUpdate")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesPartialUpdate")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/ipam/l2vpns/{id}/"
+ localVarPath := localBasePath + "/api/ipam/ip-ranges/{id}/"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
localVarHeaderParams := make(map[string]string)
@@ -19894,7 +15460,7 @@ func (a *IpamAPIService) IpamL2vpnsPartialUpdateExecute(r ApiIpamL2vpnsPartialUp
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableL2VPNRequest
+ localVarPostBody = r.patchedWritableIPRangeRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -19946,27 +15512,27 @@ func (a *IpamAPIService) IpamL2vpnsPartialUpdateExecute(r ApiIpamL2vpnsPartialUp
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiIpamL2vpnsRetrieveRequest struct {
+type ApiIpamIpRangesRetrieveRequest struct {
ctx context.Context
ApiService *IpamAPIService
id int32
}
-func (r ApiIpamL2vpnsRetrieveRequest) Execute() (*L2VPN, *http.Response, error) {
- return r.ApiService.IpamL2vpnsRetrieveExecute(r)
+func (r ApiIpamIpRangesRetrieveRequest) Execute() (*IPRange, *http.Response, error) {
+ return r.ApiService.IpamIpRangesRetrieveExecute(r)
}
/*
-IpamL2vpnsRetrieve Method for IpamL2vpnsRetrieve
+IpamIpRangesRetrieve Method for IpamIpRangesRetrieve
-Get a L2VPN object.
+Get a IP range object.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN.
- @return ApiIpamL2vpnsRetrieveRequest
+ @param id A unique integer value identifying this IP range.
+ @return ApiIpamIpRangesRetrieveRequest
*/
-func (a *IpamAPIService) IpamL2vpnsRetrieve(ctx context.Context, id int32) ApiIpamL2vpnsRetrieveRequest {
- return ApiIpamL2vpnsRetrieveRequest{
+func (a *IpamAPIService) IpamIpRangesRetrieve(ctx context.Context, id int32) ApiIpamIpRangesRetrieveRequest {
+ return ApiIpamIpRangesRetrieveRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -19975,21 +15541,21 @@ func (a *IpamAPIService) IpamL2vpnsRetrieve(ctx context.Context, id int32) ApiIp
// Execute executes the request
//
-// @return L2VPN
-func (a *IpamAPIService) IpamL2vpnsRetrieveExecute(r ApiIpamL2vpnsRetrieveRequest) (*L2VPN, *http.Response, error) {
+// @return IPRange
+func (a *IpamAPIService) IpamIpRangesRetrieveExecute(r ApiIpamIpRangesRetrieveRequest) (*IPRange, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
- localVarReturnValue *L2VPN
+ localVarReturnValue *IPRange
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsRetrieve")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesRetrieve")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/ipam/l2vpns/{id}/"
+ localVarPath := localBasePath + "/api/ipam/ip-ranges/{id}/"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
localVarHeaderParams := make(map[string]string)
@@ -20064,33 +15630,33 @@ func (a *IpamAPIService) IpamL2vpnsRetrieveExecute(r ApiIpamL2vpnsRetrieveReques
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiIpamL2vpnsUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- writableL2VPNRequest *WritableL2VPNRequest
+type ApiIpamIpRangesUpdateRequest struct {
+ ctx context.Context
+ ApiService *IpamAPIService
+ id int32
+ writableIPRangeRequest *WritableIPRangeRequest
}
-func (r ApiIpamL2vpnsUpdateRequest) WritableL2VPNRequest(writableL2VPNRequest WritableL2VPNRequest) ApiIpamL2vpnsUpdateRequest {
- r.writableL2VPNRequest = &writableL2VPNRequest
+func (r ApiIpamIpRangesUpdateRequest) WritableIPRangeRequest(writableIPRangeRequest WritableIPRangeRequest) ApiIpamIpRangesUpdateRequest {
+ r.writableIPRangeRequest = &writableIPRangeRequest
return r
}
-func (r ApiIpamL2vpnsUpdateRequest) Execute() (*L2VPN, *http.Response, error) {
- return r.ApiService.IpamL2vpnsUpdateExecute(r)
+func (r ApiIpamIpRangesUpdateRequest) Execute() (*IPRange, *http.Response, error) {
+ return r.ApiService.IpamIpRangesUpdateExecute(r)
}
/*
-IpamL2vpnsUpdate Method for IpamL2vpnsUpdate
+IpamIpRangesUpdate Method for IpamIpRangesUpdate
-Put a L2VPN object.
+Put a IP range object.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN.
- @return ApiIpamL2vpnsUpdateRequest
+ @param id A unique integer value identifying this IP range.
+ @return ApiIpamIpRangesUpdateRequest
*/
-func (a *IpamAPIService) IpamL2vpnsUpdate(ctx context.Context, id int32) ApiIpamL2vpnsUpdateRequest {
- return ApiIpamL2vpnsUpdateRequest{
+func (a *IpamAPIService) IpamIpRangesUpdate(ctx context.Context, id int32) ApiIpamIpRangesUpdateRequest {
+ return ApiIpamIpRangesUpdateRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -20099,28 +15665,28 @@ func (a *IpamAPIService) IpamL2vpnsUpdate(ctx context.Context, id int32) ApiIpam
// Execute executes the request
//
-// @return L2VPN
-func (a *IpamAPIService) IpamL2vpnsUpdateExecute(r ApiIpamL2vpnsUpdateRequest) (*L2VPN, *http.Response, error) {
+// @return IPRange
+func (a *IpamAPIService) IpamIpRangesUpdateExecute(r ApiIpamIpRangesUpdateRequest) (*IPRange, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
formFiles []formFile
- localVarReturnValue *L2VPN
+ localVarReturnValue *IPRange
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsUpdate")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesUpdate")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/ipam/l2vpns/{id}/"
+ localVarPath := localBasePath + "/api/ipam/ip-ranges/{id}/"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableL2VPNRequest == nil {
- return localVarReturnValue, nil, reportError("writableL2VPNRequest is required and must be specified")
+ if r.writableIPRangeRequest == nil {
+ return localVarReturnValue, nil, reportError("writableIPRangeRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -20141,7 +15707,7 @@ func (a *IpamAPIService) IpamL2vpnsUpdateExecute(r ApiIpamL2vpnsUpdateRequest) (
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableL2VPNRequest
+ localVarPostBody = r.writableIPRangeRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -30335,6 +25901,17 @@ type ApiIpamServiceTemplatesListRequest 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
id *[]int32
idEmpty *bool
idGt *[]int32
@@ -30413,6 +25990,61 @@ func (r ApiIpamServiceTemplatesListRequest) CreatedByRequest(createdByRequest st
return r
}
+func (r ApiIpamServiceTemplatesListRequest) Description(description []string) ApiIpamServiceTemplatesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiIpamServiceTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamServiceTemplatesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiIpamServiceTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiIpamServiceTemplatesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiIpamServiceTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiIpamServiceTemplatesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiIpamServiceTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiIpamServiceTemplatesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiIpamServiceTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamServiceTemplatesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiIpamServiceTemplatesListRequest) DescriptionN(descriptionN []string) ApiIpamServiceTemplatesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiIpamServiceTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiIpamServiceTemplatesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiIpamServiceTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiIpamServiceTemplatesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiIpamServiceTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamServiceTemplatesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiIpamServiceTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamServiceTemplatesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
func (r ApiIpamServiceTemplatesListRequest) Id(id []int32) ApiIpamServiceTemplatesListRequest {
r.id = &id
return r
@@ -30718,6 +26350,119 @@ func (a *IpamAPIService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.id != nil {
t := *r.id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -36925,6 +32670,7 @@ func (a *IpamAPIService) IpamVlansDestroyExecute(r ApiIpamVlansDestroyRequest) (
type ApiIpamVlansListRequest struct {
ctx context.Context
ApiService *IpamAPIService
+ availableAtSite *string
availableOnDevice *string
availableOnVirtualmachine *string
created *[]time.Time
@@ -37022,6 +32768,11 @@ type ApiIpamVlansListRequest struct {
vidN *[]int32
}
+func (r ApiIpamVlansListRequest) AvailableAtSite(availableAtSite string) ApiIpamVlansListRequest {
+ r.availableAtSite = &availableAtSite
+ return r
+}
+
func (r ApiIpamVlansListRequest) AvailableOnDevice(availableOnDevice string) ApiIpamVlansListRequest {
r.availableOnDevice = &availableOnDevice
return r
@@ -37576,6 +33327,9 @@ func (a *IpamAPIService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.availableAtSite != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "available_at_site", r.availableAtSite, "")
+ }
if r.availableOnDevice != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "available_on_device", r.availableOnDevice, "")
}
diff --git a/api_schema.go b/api_schema.go
index d0db780bbf..39c1ec5fa2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,10 +24,10 @@ type SchemaAPIService service
type ApiSchemaRetrieveRequest struct {
ctx context.Context
ApiService *SchemaAPIService
- format *string
+ format *SchemaRetrieveFormatParameter
}
-func (r ApiSchemaRetrieveRequest) Format(format string) ApiSchemaRetrieveRequest {
+func (r ApiSchemaRetrieveRequest) Format(format SchemaRetrieveFormatParameter) ApiSchemaRetrieveRequest {
r.format = &format
return r
}
diff --git a/api_status.go b/api_status.go
index 05a057f2df..e583b21124 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/api_tenancy.go b/api_tenancy.go
index aac24d781c..fd266a5ea5 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -635,6 +635,10 @@ type ApiTenancyContactAssignmentsListRequest struct {
createdLte *[]time.Time
createdN *[]time.Time
createdByRequest *string
+ group *[]int32
+ groupN *[]int32
+ groupId *[]int32
+ groupIdN *[]int32
id *[]int32
idEmpty *bool
idGt *[]int32
@@ -744,6 +748,30 @@ func (r ApiTenancyContactAssignmentsListRequest) CreatedByRequest(createdByReque
return r
}
+// Contact group (slug)
+func (r ApiTenancyContactAssignmentsListRequest) Group(group []int32) ApiTenancyContactAssignmentsListRequest {
+ r.group = &group
+ return r
+}
+
+// Contact group (slug)
+func (r ApiTenancyContactAssignmentsListRequest) GroupN(groupN []int32) ApiTenancyContactAssignmentsListRequest {
+ r.groupN = &groupN
+ return r
+}
+
+// Contact group (ID)
+func (r ApiTenancyContactAssignmentsListRequest) GroupId(groupId []int32) ApiTenancyContactAssignmentsListRequest {
+ r.groupId = &groupId
+ return r
+}
+
+// Contact group (ID)
+func (r ApiTenancyContactAssignmentsListRequest) GroupIdN(groupIdN []int32) ApiTenancyContactAssignmentsListRequest {
+ r.groupIdN = &groupIdN
+ return r
+}
+
func (r ApiTenancyContactAssignmentsListRequest) Id(id []int32) ApiTenancyContactAssignmentsListRequest {
r.id = &id
return r
@@ -1082,6 +1110,50 @@ func (a *TenancyAPIService) TenancyContactAssignmentsListExecute(r ApiTenancyCon
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.group != nil {
+ t := *r.group
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi")
+ }
+ }
+ if r.groupN != nil {
+ t := *r.groupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi")
+ }
+ }
+ if r.groupId != nil {
+ t := *r.groupId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi")
+ }
+ }
+ if r.groupIdN != nil {
+ t := *r.groupIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi")
+ }
+ }
if r.id != nil {
t := *r.id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -6652,6 +6724,17 @@ type ApiTenancyContactsListRequest 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
email *[]string
emailEmpty *bool
emailIc *[]string
@@ -6830,6 +6913,61 @@ func (r ApiTenancyContactsListRequest) CreatedByRequest(createdByRequest string)
return r
}
+func (r ApiTenancyContactsListRequest) Description(description []string) ApiTenancyContactsListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiTenancyContactsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiTenancyContactsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiTenancyContactsListRequest) DescriptionIc(descriptionIc []string) ApiTenancyContactsListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiTenancyContactsListRequest) DescriptionIe(descriptionIe []string) ApiTenancyContactsListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiTenancyContactsListRequest) DescriptionIew(descriptionIew []string) ApiTenancyContactsListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiTenancyContactsListRequest) DescriptionIsw(descriptionIsw []string) ApiTenancyContactsListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiTenancyContactsListRequest) DescriptionN(descriptionN []string) ApiTenancyContactsListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiTenancyContactsListRequest) DescriptionNic(descriptionNic []string) ApiTenancyContactsListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiTenancyContactsListRequest) DescriptionNie(descriptionNie []string) ApiTenancyContactsListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiTenancyContactsListRequest) DescriptionNiew(descriptionNiew []string) ApiTenancyContactsListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiTenancyContactsListRequest) DescriptionNisw(descriptionNisw []string) ApiTenancyContactsListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
func (r ApiTenancyContactsListRequest) Email(email []string) ApiTenancyContactsListRequest {
r.email = &email
return r
@@ -7477,6 +7615,119 @@ func (a *TenancyAPIService) TenancyContactsListExecute(r ApiTenancyContactsListR
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.email != nil {
t := *r.email
if reflect.TypeOf(t).Kind() == reflect.Slice {
diff --git a/api_users.go b/api_users.go
index 17691a42b8..af8323820f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/api_virtualization.go b/api_virtualization.go
index 506310874a..c86be5e7a3 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -4879,6 +4879,17 @@ type ApiVirtualizationClustersListRequest 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
group *[]string
groupN *[]string
groupId *[]*int32
@@ -5020,6 +5031,61 @@ func (r ApiVirtualizationClustersListRequest) CreatedByRequest(createdByRequest
return r
}
+func (r ApiVirtualizationClustersListRequest) Description(description []string) ApiVirtualizationClustersListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiVirtualizationClustersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiVirtualizationClustersListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiVirtualizationClustersListRequest) DescriptionIc(descriptionIc []string) ApiVirtualizationClustersListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiVirtualizationClustersListRequest) DescriptionIe(descriptionIe []string) ApiVirtualizationClustersListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiVirtualizationClustersListRequest) DescriptionIew(descriptionIew []string) ApiVirtualizationClustersListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiVirtualizationClustersListRequest) DescriptionIsw(descriptionIsw []string) ApiVirtualizationClustersListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiVirtualizationClustersListRequest) DescriptionN(descriptionN []string) ApiVirtualizationClustersListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiVirtualizationClustersListRequest) DescriptionNic(descriptionNic []string) ApiVirtualizationClustersListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiVirtualizationClustersListRequest) DescriptionNie(descriptionNie []string) ApiVirtualizationClustersListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiVirtualizationClustersListRequest) DescriptionNiew(descriptionNiew []string) ApiVirtualizationClustersListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiVirtualizationClustersListRequest) DescriptionNisw(descriptionNisw []string) ApiVirtualizationClustersListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Parent group (slug)
func (r ApiVirtualizationClustersListRequest) Group(group []string) ApiVirtualizationClustersListRequest {
r.group = &group
@@ -5554,6 +5620,119 @@ func (a *VirtualizationAPIService) VirtualizationClustersListExecute(r ApiVirtua
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
if r.group != nil {
t := *r.group
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -9183,56 +9362,56 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesUpdateExecute(r ApiVi
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiVirtualizationVirtualMachinesBulkDestroyRequest struct {
- ctx context.Context
- ApiService *VirtualizationAPIService
- virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest
+type ApiVirtualizationVirtualDisksBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ virtualDiskRequest *[]VirtualDiskRequest
}
-func (r ApiVirtualizationVirtualMachinesBulkDestroyRequest) VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest []VirtualMachineWithConfigContextRequest) ApiVirtualizationVirtualMachinesBulkDestroyRequest {
- r.virtualMachineWithConfigContextRequest = &virtualMachineWithConfigContextRequest
+func (r ApiVirtualizationVirtualDisksBulkDestroyRequest) VirtualDiskRequest(virtualDiskRequest []VirtualDiskRequest) ApiVirtualizationVirtualDisksBulkDestroyRequest {
+ r.virtualDiskRequest = &virtualDiskRequest
return r
}
-func (r ApiVirtualizationVirtualMachinesBulkDestroyRequest) Execute() (*http.Response, error) {
- return r.ApiService.VirtualizationVirtualMachinesBulkDestroyExecute(r)
+func (r ApiVirtualizationVirtualDisksBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VirtualizationVirtualDisksBulkDestroyExecute(r)
}
/*
-VirtualizationVirtualMachinesBulkDestroy Method for VirtualizationVirtualMachinesBulkDestroy
+VirtualizationVirtualDisksBulkDestroy Method for VirtualizationVirtualDisksBulkDestroy
-Delete a list of virtual machine objects.
+Delete a list of virtual disk objects.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesBulkDestroyRequest
+ @return ApiVirtualizationVirtualDisksBulkDestroyRequest
*/
-func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkDestroy(ctx context.Context) ApiVirtualizationVirtualMachinesBulkDestroyRequest {
- return ApiVirtualizationVirtualMachinesBulkDestroyRequest{
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkDestroy(ctx context.Context) ApiVirtualizationVirtualDisksBulkDestroyRequest {
+ return ApiVirtualizationVirtualDisksBulkDestroyRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
-func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkDestroyExecute(r ApiVirtualizationVirtualMachinesBulkDestroyRequest) (*http.Response, error) {
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkDestroyExecute(r ApiVirtualizationVirtualDisksBulkDestroyRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesBulkDestroy")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksBulkDestroy")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/virtualization/virtual-machines/"
+ localVarPath := localBasePath + "/api/virtualization/virtual-disks/"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.virtualMachineWithConfigContextRequest == nil {
- return nil, reportError("virtualMachineWithConfigContextRequest is required and must be specified")
+ if r.virtualDiskRequest == nil {
+ return nil, reportError("virtualDiskRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -9253,7 +9432,7 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkDestroyExecu
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.virtualMachineWithConfigContextRequest
+ localVarPostBody = r.virtualDiskRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -9296,31 +9475,31 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkDestroyExecu
return localVarHTTPResponse, nil
}
-type ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService *VirtualizationAPIService
- virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest
+type ApiVirtualizationVirtualDisksBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ virtualDiskRequest *[]VirtualDiskRequest
}
-func (r ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest) VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest []VirtualMachineWithConfigContextRequest) ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest {
- r.virtualMachineWithConfigContextRequest = &virtualMachineWithConfigContextRequest
+func (r ApiVirtualizationVirtualDisksBulkPartialUpdateRequest) VirtualDiskRequest(virtualDiskRequest []VirtualDiskRequest) ApiVirtualizationVirtualDisksBulkPartialUpdateRequest {
+ r.virtualDiskRequest = &virtualDiskRequest
return r
}
-func (r ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest) Execute() ([]VirtualMachineWithConfigContext, *http.Response, error) {
- return r.ApiService.VirtualizationVirtualMachinesBulkPartialUpdateExecute(r)
+func (r ApiVirtualizationVirtualDisksBulkPartialUpdateRequest) Execute() ([]VirtualDisk, *http.Response, error) {
+ return r.ApiService.VirtualizationVirtualDisksBulkPartialUpdateExecute(r)
}
/*
-VirtualizationVirtualMachinesBulkPartialUpdate Method for VirtualizationVirtualMachinesBulkPartialUpdate
+VirtualizationVirtualDisksBulkPartialUpdate Method for VirtualizationVirtualDisksBulkPartialUpdate
-Patch a list of virtual machine objects.
+Patch a list of virtual disk objects.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest
+ @return ApiVirtualizationVirtualDisksBulkPartialUpdateRequest
*/
-func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkPartialUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest {
- return ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest{
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkPartialUpdate(ctx context.Context) ApiVirtualizationVirtualDisksBulkPartialUpdateRequest {
+ return ApiVirtualizationVirtualDisksBulkPartialUpdateRequest{
ApiService: a,
ctx: ctx,
}
@@ -9328,27 +9507,27 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkPartialUpdat
// Execute executes the request
//
-// @return []VirtualMachineWithConfigContext
-func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkPartialUpdateExecute(r ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error) {
+// @return []VirtualDisk
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkPartialUpdateExecute(r ApiVirtualizationVirtualDisksBulkPartialUpdateRequest) ([]VirtualDisk, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
- localVarReturnValue []VirtualMachineWithConfigContext
+ localVarReturnValue []VirtualDisk
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesBulkPartialUpdate")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksBulkPartialUpdate")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/virtualization/virtual-machines/"
+ localVarPath := localBasePath + "/api/virtualization/virtual-disks/"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.virtualMachineWithConfigContextRequest == nil {
- return localVarReturnValue, nil, reportError("virtualMachineWithConfigContextRequest 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
@@ -9369,7 +9548,7 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkPartialUpdat
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.virtualMachineWithConfigContextRequest
+ localVarPostBody = r.virtualDiskRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -9421,31 +9600,31 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkPartialUpdat
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiVirtualizationVirtualMachinesBulkUpdateRequest struct {
- ctx context.Context
- ApiService *VirtualizationAPIService
- virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest
+type ApiVirtualizationVirtualDisksBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ virtualDiskRequest *[]VirtualDiskRequest
}
-func (r ApiVirtualizationVirtualMachinesBulkUpdateRequest) VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest []VirtualMachineWithConfigContextRequest) ApiVirtualizationVirtualMachinesBulkUpdateRequest {
- r.virtualMachineWithConfigContextRequest = &virtualMachineWithConfigContextRequest
+func (r ApiVirtualizationVirtualDisksBulkUpdateRequest) VirtualDiskRequest(virtualDiskRequest []VirtualDiskRequest) ApiVirtualizationVirtualDisksBulkUpdateRequest {
+ r.virtualDiskRequest = &virtualDiskRequest
return r
}
-func (r ApiVirtualizationVirtualMachinesBulkUpdateRequest) Execute() ([]VirtualMachineWithConfigContext, *http.Response, error) {
- return r.ApiService.VirtualizationVirtualMachinesBulkUpdateExecute(r)
+func (r ApiVirtualizationVirtualDisksBulkUpdateRequest) Execute() ([]VirtualDisk, *http.Response, error) {
+ return r.ApiService.VirtualizationVirtualDisksBulkUpdateExecute(r)
}
/*
-VirtualizationVirtualMachinesBulkUpdate Method for VirtualizationVirtualMachinesBulkUpdate
+VirtualizationVirtualDisksBulkUpdate Method for VirtualizationVirtualDisksBulkUpdate
-Put a list of virtual machine objects.
+Put a list of virtual disk objects.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesBulkUpdateRequest
+ @return ApiVirtualizationVirtualDisksBulkUpdateRequest
*/
-func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkUpdateRequest {
- return ApiVirtualizationVirtualMachinesBulkUpdateRequest{
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkUpdate(ctx context.Context) ApiVirtualizationVirtualDisksBulkUpdateRequest {
+ return ApiVirtualizationVirtualDisksBulkUpdateRequest{
ApiService: a,
ctx: ctx,
}
@@ -9453,27 +9632,27 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkUpdate(ctx c
// Execute executes the request
//
-// @return []VirtualMachineWithConfigContext
-func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkUpdateExecute(r ApiVirtualizationVirtualMachinesBulkUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error) {
+// @return []VirtualDisk
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkUpdateExecute(r ApiVirtualizationVirtualDisksBulkUpdateRequest) ([]VirtualDisk, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
formFiles []formFile
- localVarReturnValue []VirtualMachineWithConfigContext
+ localVarReturnValue []VirtualDisk
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesBulkUpdate")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksBulkUpdate")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/virtualization/virtual-machines/"
+ localVarPath := localBasePath + "/api/virtualization/virtual-disks/"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.virtualMachineWithConfigContextRequest == nil {
- return localVarReturnValue, nil, reportError("virtualMachineWithConfigContextRequest 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
@@ -9494,7 +9673,7 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkUpdateExecut
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.virtualMachineWithConfigContextRequest
+ localVarPostBody = r.virtualDiskRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -9546,31 +9725,31 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkUpdateExecut
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiVirtualizationVirtualMachinesCreateRequest struct {
- ctx context.Context
- ApiService *VirtualizationAPIService
- writableVirtualMachineWithConfigContextRequest *WritableVirtualMachineWithConfigContextRequest
+type ApiVirtualizationVirtualDisksCreateRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ writableVirtualDiskRequest *WritableVirtualDiskRequest
}
-func (r ApiVirtualizationVirtualMachinesCreateRequest) WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest WritableVirtualMachineWithConfigContextRequest) ApiVirtualizationVirtualMachinesCreateRequest {
- r.writableVirtualMachineWithConfigContextRequest = &writableVirtualMachineWithConfigContextRequest
+func (r ApiVirtualizationVirtualDisksCreateRequest) WritableVirtualDiskRequest(writableVirtualDiskRequest WritableVirtualDiskRequest) ApiVirtualizationVirtualDisksCreateRequest {
+ r.writableVirtualDiskRequest = &writableVirtualDiskRequest
return r
}
-func (r ApiVirtualizationVirtualMachinesCreateRequest) Execute() (*VirtualMachineWithConfigContext, *http.Response, error) {
- return r.ApiService.VirtualizationVirtualMachinesCreateExecute(r)
+func (r ApiVirtualizationVirtualDisksCreateRequest) Execute() (*VirtualDisk, *http.Response, error) {
+ return r.ApiService.VirtualizationVirtualDisksCreateExecute(r)
}
/*
-VirtualizationVirtualMachinesCreate Method for VirtualizationVirtualMachinesCreate
+VirtualizationVirtualDisksCreate Method for VirtualizationVirtualDisksCreate
-Post a list of virtual machine objects.
+Post a list of virtual disk objects.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesCreateRequest
+ @return ApiVirtualizationVirtualDisksCreateRequest
*/
-func (a *VirtualizationAPIService) VirtualizationVirtualMachinesCreate(ctx context.Context) ApiVirtualizationVirtualMachinesCreateRequest {
- return ApiVirtualizationVirtualMachinesCreateRequest{
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksCreate(ctx context.Context) ApiVirtualizationVirtualDisksCreateRequest {
+ return ApiVirtualizationVirtualDisksCreateRequest{
ApiService: a,
ctx: ctx,
}
@@ -9578,26 +9757,2098 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesCreate(ctx conte
// Execute executes the request
//
-// @return VirtualMachineWithConfigContext
-func (a *VirtualizationAPIService) VirtualizationVirtualMachinesCreateExecute(r ApiVirtualizationVirtualMachinesCreateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) {
+// @return VirtualDisk
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksCreateExecute(r ApiVirtualizationVirtualDisksCreateRequest) (*VirtualDisk, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
- localVarReturnValue *VirtualMachineWithConfigContext
+ localVarReturnValue *VirtualDisk
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesCreate")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksCreate")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/virtualization/virtual-machines/"
+ localVarPath := localBasePath + "/api/virtualization/virtual-disks/"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableVirtualMachineWithConfigContextRequest == nil {
+ if r.writableVirtualDiskRequest == nil {
+ return localVarReturnValue, nil, reportError("writableVirtualDiskRequest 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.writableVirtualDiskRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVirtualizationVirtualDisksDestroyRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ id int32
+}
+
+func (r ApiVirtualizationVirtualDisksDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VirtualizationVirtualDisksDestroyExecute(r)
+}
+
+/*
+VirtualizationVirtualDisksDestroy Method for VirtualizationVirtualDisksDestroy
+
+Delete a virtual disk object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual disk.
+ @return ApiVirtualizationVirtualDisksDestroyRequest
+*/
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksDestroy(ctx context.Context, id int32) ApiVirtualizationVirtualDisksDestroyRequest {
+ return ApiVirtualizationVirtualDisksDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksDestroyExecute(r ApiVirtualizationVirtualDisksDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/virtualization/virtual-disks/{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 ApiVirtualizationVirtualDisksListRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ size *[]int32
+ sizeEmpty *bool
+ sizeGt *[]int32
+ sizeGte *[]int32
+ sizeLt *[]int32
+ sizeLte *[]int32
+ sizeN *[]int32
+ tag *[]string
+ tagN *[]string
+ updatedByRequest *string
+ virtualMachine *[]string
+ virtualMachineN *[]string
+ virtualMachineId *[]int32
+ virtualMachineIdN *[]int32
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) Created(created []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) CreatedGt(createdGt []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) CreatedGte(createdGte []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) CreatedLt(createdLt []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) CreatedLte(createdLte []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) CreatedN(createdN []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) CreatedByRequest(createdByRequest string) ApiVirtualizationVirtualDisksListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) Description(description []string) ApiVirtualizationVirtualDisksListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) DescriptionEmpty(descriptionEmpty bool) ApiVirtualizationVirtualDisksListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) DescriptionIc(descriptionIc []string) ApiVirtualizationVirtualDisksListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) DescriptionIe(descriptionIe []string) ApiVirtualizationVirtualDisksListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) DescriptionIew(descriptionIew []string) ApiVirtualizationVirtualDisksListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) DescriptionIsw(descriptionIsw []string) ApiVirtualizationVirtualDisksListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) DescriptionN(descriptionN []string) ApiVirtualizationVirtualDisksListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) DescriptionNic(descriptionNic []string) ApiVirtualizationVirtualDisksListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) DescriptionNie(descriptionNie []string) ApiVirtualizationVirtualDisksListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) DescriptionNiew(descriptionNiew []string) ApiVirtualizationVirtualDisksListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) DescriptionNisw(descriptionNisw []string) ApiVirtualizationVirtualDisksListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) Id(id []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) IdEmpty(idEmpty bool) ApiVirtualizationVirtualDisksListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) IdGt(idGt []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) IdGte(idGte []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) IdLt(idLt []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) IdLte(idLte []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) IdN(idN []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.idN = &idN
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) LastUpdated(lastUpdated []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiVirtualizationVirtualDisksListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiVirtualizationVirtualDisksListRequest) Limit(limit int32) ApiVirtualizationVirtualDisksListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) ModifiedByRequest(modifiedByRequest string) ApiVirtualizationVirtualDisksListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) Name(name []string) ApiVirtualizationVirtualDisksListRequest {
+ r.name = &name
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) NameEmpty(nameEmpty bool) ApiVirtualizationVirtualDisksListRequest {
+ r.nameEmpty = &nameEmpty
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) NameIc(nameIc []string) ApiVirtualizationVirtualDisksListRequest {
+ r.nameIc = &nameIc
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) NameIe(nameIe []string) ApiVirtualizationVirtualDisksListRequest {
+ r.nameIe = &nameIe
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) NameIew(nameIew []string) ApiVirtualizationVirtualDisksListRequest {
+ r.nameIew = &nameIew
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) NameIsw(nameIsw []string) ApiVirtualizationVirtualDisksListRequest {
+ r.nameIsw = &nameIsw
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) NameN(nameN []string) ApiVirtualizationVirtualDisksListRequest {
+ r.nameN = &nameN
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) NameNic(nameNic []string) ApiVirtualizationVirtualDisksListRequest {
+ r.nameNic = &nameNic
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) NameNie(nameNie []string) ApiVirtualizationVirtualDisksListRequest {
+ r.nameNie = &nameNie
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) NameNiew(nameNiew []string) ApiVirtualizationVirtualDisksListRequest {
+ r.nameNiew = &nameNiew
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) NameNisw(nameNisw []string) ApiVirtualizationVirtualDisksListRequest {
+ r.nameNisw = &nameNisw
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiVirtualizationVirtualDisksListRequest) Offset(offset int32) ApiVirtualizationVirtualDisksListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiVirtualizationVirtualDisksListRequest) Ordering(ordering string) ApiVirtualizationVirtualDisksListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Search
+func (r ApiVirtualizationVirtualDisksListRequest) Q(q string) ApiVirtualizationVirtualDisksListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) Size(size []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.size = &size
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) SizeEmpty(sizeEmpty bool) ApiVirtualizationVirtualDisksListRequest {
+ r.sizeEmpty = &sizeEmpty
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) SizeGt(sizeGt []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.sizeGt = &sizeGt
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) SizeGte(sizeGte []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.sizeGte = &sizeGte
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) SizeLt(sizeLt []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.sizeLt = &sizeLt
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) SizeLte(sizeLte []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.sizeLte = &sizeLte
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) SizeN(sizeN []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.sizeN = &sizeN
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) Tag(tag []string) ApiVirtualizationVirtualDisksListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) TagN(tagN []string) ApiVirtualizationVirtualDisksListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) UpdatedByRequest(updatedByRequest string) ApiVirtualizationVirtualDisksListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+// Virtual machine
+func (r ApiVirtualizationVirtualDisksListRequest) VirtualMachine(virtualMachine []string) ApiVirtualizationVirtualDisksListRequest {
+ r.virtualMachine = &virtualMachine
+ return r
+}
+
+// Virtual machine
+func (r ApiVirtualizationVirtualDisksListRequest) VirtualMachineN(virtualMachineN []string) ApiVirtualizationVirtualDisksListRequest {
+ r.virtualMachineN = &virtualMachineN
+ return r
+}
+
+// Virtual machine (ID)
+func (r ApiVirtualizationVirtualDisksListRequest) VirtualMachineId(virtualMachineId []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.virtualMachineId = &virtualMachineId
+ return r
+}
+
+// Virtual machine (ID)
+func (r ApiVirtualizationVirtualDisksListRequest) VirtualMachineIdN(virtualMachineIdN []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.virtualMachineIdN = &virtualMachineIdN
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) Execute() (*PaginatedVirtualDiskList, *http.Response, error) {
+ return r.ApiService.VirtualizationVirtualDisksListExecute(r)
+}
+
+/*
+VirtualizationVirtualDisksList Method for VirtualizationVirtualDisksList
+
+Get a list of virtual disk objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualDisksListRequest
+*/
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksList(ctx context.Context) ApiVirtualizationVirtualDisksListRequest {
+ return ApiVirtualizationVirtualDisksListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedVirtualDiskList
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVirtualizationVirtualDisksListRequest) (*PaginatedVirtualDiskList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVirtualDiskList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/virtualization/virtual-disks/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.created != nil {
+ t := *r.created
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
+ }
+ }
+ if r.createdEmpty != nil {
+ t := *r.createdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
+ }
+ }
+ if r.createdGt != nil {
+ t := *r.createdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
+ }
+ }
+ if r.createdGte != nil {
+ t := *r.createdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
+ }
+ }
+ if r.createdLt != nil {
+ t := *r.createdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
+ }
+ }
+ if r.createdLte != nil {
+ t := *r.createdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
+ }
+ }
+ if r.createdN != nil {
+ t := *r.createdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
+ }
+ }
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
+ }
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
+ }
+ }
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
+ if r.name != nil {
+ t := *r.name
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi")
+ }
+ }
+ if r.nameEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "")
+ }
+ if r.nameIc != nil {
+ t := *r.nameIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi")
+ }
+ }
+ if r.nameIe != nil {
+ t := *r.nameIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi")
+ }
+ }
+ if r.nameIew != nil {
+ t := *r.nameIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi")
+ }
+ }
+ if r.nameIsw != nil {
+ t := *r.nameIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi")
+ }
+ }
+ if r.nameN != nil {
+ t := *r.nameN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi")
+ }
+ }
+ if r.nameNic != nil {
+ t := *r.nameNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi")
+ }
+ }
+ if r.nameNie != nil {
+ t := *r.nameNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi")
+ }
+ }
+ if r.nameNiew != nil {
+ t := *r.nameNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi")
+ }
+ }
+ if r.nameNisw != nil {
+ t := *r.nameNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi")
+ }
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ }
+ 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.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
+ }
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ if r.virtualMachine != nil {
+ t := *r.virtualMachine
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi")
+ }
+ }
+ if r.virtualMachineN != nil {
+ t := *r.virtualMachineN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "multi")
+ }
+ }
+ if r.virtualMachineId != nil {
+ t := *r.virtualMachineId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi")
+ }
+ }
+ if r.virtualMachineIdN != nil {
+ t := *r.virtualMachineIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "multi")
+ }
+ }
+ // 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 ApiVirtualizationVirtualDisksPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ id int32
+ patchedWritableVirtualDiskRequest *PatchedWritableVirtualDiskRequest
+}
+
+func (r ApiVirtualizationVirtualDisksPartialUpdateRequest) PatchedWritableVirtualDiskRequest(patchedWritableVirtualDiskRequest PatchedWritableVirtualDiskRequest) ApiVirtualizationVirtualDisksPartialUpdateRequest {
+ r.patchedWritableVirtualDiskRequest = &patchedWritableVirtualDiskRequest
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksPartialUpdateRequest) Execute() (*VirtualDisk, *http.Response, error) {
+ return r.ApiService.VirtualizationVirtualDisksPartialUpdateExecute(r)
+}
+
+/*
+VirtualizationVirtualDisksPartialUpdate Method for VirtualizationVirtualDisksPartialUpdate
+
+Patch a virtual disk object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual disk.
+ @return ApiVirtualizationVirtualDisksPartialUpdateRequest
+*/
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksPartialUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualDisksPartialUpdateRequest {
+ return ApiVirtualizationVirtualDisksPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return VirtualDisk
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksPartialUpdateExecute(r ApiVirtualizationVirtualDisksPartialUpdateRequest) (*VirtualDisk, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualDisk
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/virtualization/virtual-disks/{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.patchedWritableVirtualDiskRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVirtualizationVirtualDisksRetrieveRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ id int32
+}
+
+func (r ApiVirtualizationVirtualDisksRetrieveRequest) Execute() (*VirtualDisk, *http.Response, error) {
+ return r.ApiService.VirtualizationVirtualDisksRetrieveExecute(r)
+}
+
+/*
+VirtualizationVirtualDisksRetrieve Method for VirtualizationVirtualDisksRetrieve
+
+Get a virtual disk object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual disk.
+ @return ApiVirtualizationVirtualDisksRetrieveRequest
+*/
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksRetrieve(ctx context.Context, id int32) ApiVirtualizationVirtualDisksRetrieveRequest {
+ return ApiVirtualizationVirtualDisksRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return VirtualDisk
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksRetrieveExecute(r ApiVirtualizationVirtualDisksRetrieveRequest) (*VirtualDisk, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualDisk
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/virtualization/virtual-disks/{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 ApiVirtualizationVirtualDisksUpdateRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ id int32
+ writableVirtualDiskRequest *WritableVirtualDiskRequest
+}
+
+func (r ApiVirtualizationVirtualDisksUpdateRequest) WritableVirtualDiskRequest(writableVirtualDiskRequest WritableVirtualDiskRequest) ApiVirtualizationVirtualDisksUpdateRequest {
+ r.writableVirtualDiskRequest = &writableVirtualDiskRequest
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksUpdateRequest) Execute() (*VirtualDisk, *http.Response, error) {
+ return r.ApiService.VirtualizationVirtualDisksUpdateExecute(r)
+}
+
+/*
+VirtualizationVirtualDisksUpdate Method for VirtualizationVirtualDisksUpdate
+
+Put a virtual disk object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual disk.
+ @return ApiVirtualizationVirtualDisksUpdateRequest
+*/
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualDisksUpdateRequest {
+ return ApiVirtualizationVirtualDisksUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return VirtualDisk
+func (a *VirtualizationAPIService) VirtualizationVirtualDisksUpdateExecute(r ApiVirtualizationVirtualDisksUpdateRequest) (*VirtualDisk, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualDisk
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/virtualization/virtual-disks/{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.writableVirtualDiskRequest == nil {
+ return localVarReturnValue, nil, reportError("writableVirtualDiskRequest 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.writableVirtualDiskRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVirtualizationVirtualMachinesBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest
+}
+
+func (r ApiVirtualizationVirtualMachinesBulkDestroyRequest) VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest []VirtualMachineWithConfigContextRequest) ApiVirtualizationVirtualMachinesBulkDestroyRequest {
+ r.virtualMachineWithConfigContextRequest = &virtualMachineWithConfigContextRequest
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VirtualizationVirtualMachinesBulkDestroyExecute(r)
+}
+
+/*
+VirtualizationVirtualMachinesBulkDestroy Method for VirtualizationVirtualMachinesBulkDestroy
+
+Delete a list of virtual machine objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesBulkDestroyRequest
+*/
+func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkDestroy(ctx context.Context) ApiVirtualizationVirtualMachinesBulkDestroyRequest {
+ return ApiVirtualizationVirtualMachinesBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkDestroyExecute(r ApiVirtualizationVirtualMachinesBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/virtualization/virtual-machines/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.virtualMachineWithConfigContextRequest == nil {
+ return nil, reportError("virtualMachineWithConfigContextRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.virtualMachineWithConfigContextRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest
+}
+
+func (r ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest) VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest []VirtualMachineWithConfigContextRequest) ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest {
+ r.virtualMachineWithConfigContextRequest = &virtualMachineWithConfigContextRequest
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest) Execute() ([]VirtualMachineWithConfigContext, *http.Response, error) {
+ return r.ApiService.VirtualizationVirtualMachinesBulkPartialUpdateExecute(r)
+}
+
+/*
+VirtualizationVirtualMachinesBulkPartialUpdate Method for VirtualizationVirtualMachinesBulkPartialUpdate
+
+Patch a list of virtual machine objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest
+*/
+func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkPartialUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest {
+ return ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []VirtualMachineWithConfigContext
+func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkPartialUpdateExecute(r ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualMachineWithConfigContext
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/virtualization/virtual-machines/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.virtualMachineWithConfigContextRequest == nil {
+ return localVarReturnValue, nil, reportError("virtualMachineWithConfigContextRequest 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.virtualMachineWithConfigContextRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVirtualizationVirtualMachinesBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest
+}
+
+func (r ApiVirtualizationVirtualMachinesBulkUpdateRequest) VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest []VirtualMachineWithConfigContextRequest) ApiVirtualizationVirtualMachinesBulkUpdateRequest {
+ r.virtualMachineWithConfigContextRequest = &virtualMachineWithConfigContextRequest
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesBulkUpdateRequest) Execute() ([]VirtualMachineWithConfigContext, *http.Response, error) {
+ return r.ApiService.VirtualizationVirtualMachinesBulkUpdateExecute(r)
+}
+
+/*
+VirtualizationVirtualMachinesBulkUpdate Method for VirtualizationVirtualMachinesBulkUpdate
+
+Put a list of virtual machine objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesBulkUpdateRequest
+*/
+func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkUpdateRequest {
+ return ApiVirtualizationVirtualMachinesBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []VirtualMachineWithConfigContext
+func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkUpdateExecute(r ApiVirtualizationVirtualMachinesBulkUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualMachineWithConfigContext
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/virtualization/virtual-machines/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.virtualMachineWithConfigContextRequest == nil {
+ return localVarReturnValue, nil, reportError("virtualMachineWithConfigContextRequest 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.virtualMachineWithConfigContextRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVirtualizationVirtualMachinesCreateRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ writableVirtualMachineWithConfigContextRequest *WritableVirtualMachineWithConfigContextRequest
+}
+
+func (r ApiVirtualizationVirtualMachinesCreateRequest) WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest WritableVirtualMachineWithConfigContextRequest) ApiVirtualizationVirtualMachinesCreateRequest {
+ r.writableVirtualMachineWithConfigContextRequest = &writableVirtualMachineWithConfigContextRequest
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesCreateRequest) Execute() (*VirtualMachineWithConfigContext, *http.Response, error) {
+ return r.ApiService.VirtualizationVirtualMachinesCreateExecute(r)
+}
+
+/*
+VirtualizationVirtualMachinesCreate Method for VirtualizationVirtualMachinesCreate
+
+Post a list of virtual machine objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesCreateRequest
+*/
+func (a *VirtualizationAPIService) VirtualizationVirtualMachinesCreate(ctx context.Context) ApiVirtualizationVirtualMachinesCreateRequest {
+ return ApiVirtualizationVirtualMachinesCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return VirtualMachineWithConfigContext
+func (a *VirtualizationAPIService) VirtualizationVirtualMachinesCreateExecute(r ApiVirtualizationVirtualMachinesCreateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualMachineWithConfigContext
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/virtualization/virtual-machines/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableVirtualMachineWithConfigContextRequest == nil {
return localVarReturnValue, nil, reportError("writableVirtualMachineWithConfigContextRequest is required and must be specified")
}
@@ -9808,6 +12059,17 @@ type ApiVirtualizationVirtualMachinesListRequest 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
@@ -9871,6 +12133,10 @@ type ApiVirtualizationVirtualMachinesListRequest struct {
platformN *[]string
platformId *[]*int32
platformIdN *[]*int32
+ primaryIp4Id *[]int32
+ primaryIp4IdN *[]int32
+ primaryIp6Id *[]int32
+ primaryIp6IdN *[]int32
q *string
region *[]int32
regionN *[]int32
@@ -10070,6 +12336,61 @@ func (r ApiVirtualizationVirtualMachinesListRequest) CreatedByRequest(createdByR
return r
}
+func (r ApiVirtualizationVirtualMachinesListRequest) Description(description []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiVirtualizationVirtualMachinesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) DescriptionIc(descriptionIc []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) DescriptionIe(descriptionIe []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) DescriptionIew(descriptionIew []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) DescriptionIsw(descriptionIsw []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) DescriptionN(descriptionN []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) DescriptionNic(descriptionNic []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) DescriptionNie(descriptionNie []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) DescriptionNiew(descriptionNiew []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) DescriptionNisw(descriptionNisw []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
// Device
func (r ApiVirtualizationVirtualMachinesListRequest) Device(device []*string) ApiVirtualizationVirtualMachinesListRequest {
r.device = &device
@@ -10398,6 +12719,30 @@ func (r ApiVirtualizationVirtualMachinesListRequest) PlatformIdN(platformIdN []*
return r
}
+// Primary IPv4 (ID)
+func (r ApiVirtualizationVirtualMachinesListRequest) PrimaryIp4Id(primaryIp4Id []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.primaryIp4Id = &primaryIp4Id
+ return r
+}
+
+// Primary IPv4 (ID)
+func (r ApiVirtualizationVirtualMachinesListRequest) PrimaryIp4IdN(primaryIp4IdN []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.primaryIp4IdN = &primaryIp4IdN
+ return r
+}
+
+// Primary IPv6 (ID)
+func (r ApiVirtualizationVirtualMachinesListRequest) PrimaryIp6Id(primaryIp6Id []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.primaryIp6Id = &primaryIp6Id
+ return r
+}
+
+// Primary IPv6 (ID)
+func (r ApiVirtualizationVirtualMachinesListRequest) PrimaryIp6IdN(primaryIp6IdN []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.primaryIp6IdN = &primaryIp6IdN
+ return r
+}
+
// Search
func (r ApiVirtualizationVirtualMachinesListRequest) Q(q string) ApiVirtualizationVirtualMachinesListRequest {
r.q = &q
@@ -10811,144 +13156,257 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap
parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi")
+ }
+ }
+ if r.contactN != nil {
+ t := *r.contactN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi")
+ }
+ }
+ if r.contactGroup != nil {
+ t := *r.contactGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi")
+ }
+ }
+ if r.contactGroupN != nil {
+ t := *r.contactGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi")
+ }
+ }
+ if r.contactRole != nil {
+ t := *r.contactRole
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi")
+ }
+ }
+ if r.contactRoleN != nil {
+ t := *r.contactRoleN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi")
+ }
+ }
+ if r.created != nil {
+ t := *r.created
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
+ }
+ } 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.contactN != nil {
- t := *r.contactN
+ 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, "contact__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
}
}
- if r.contactGroup != nil {
- t := *r.contactGroup
+ 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, "contact_group", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
}
}
- if r.contactGroupN != nil {
- t := *r.contactGroupN
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
+ }
+ if r.description != nil {
+ t := *r.description
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
}
}
- if r.contactRole != nil {
- t := *r.contactRole
+ 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, "contact_role", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
}
}
- if r.contactRoleN != nil {
- t := *r.contactRoleN
+ 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, "contact_role__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
}
}
- if r.created != nil {
- t := *r.created
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
}
}
- if r.createdEmpty != nil {
- t := *r.createdEmpty
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
}
}
- if r.createdGt != nil {
- t := *r.createdGt
+ if r.descriptionN != nil {
+ t := *r.descriptionN
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
}
}
- if r.createdGte != nil {
- t := *r.createdGte
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
}
}
- if r.createdLt != nil {
- t := *r.createdLt
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
}
}
- if r.createdLte != nil {
- t := *r.createdLte
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
}
}
- if r.createdN != nil {
- t := *r.createdN
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
}
}
- if r.createdByRequest != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
- }
if r.device != nil {
t := *r.device
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -11562,6 +14020,50 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap
parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", t, "multi")
}
}
+ if r.primaryIp4Id != nil {
+ t := *r.primaryIp4Id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", t, "multi")
+ }
+ }
+ if r.primaryIp4IdN != nil {
+ t := *r.primaryIp4IdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", t, "multi")
+ }
+ }
+ if r.primaryIp6Id != nil {
+ t := *r.primaryIp6Id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", t, "multi")
+ }
+ }
+ if r.primaryIp6IdN != nil {
+ t := *r.primaryIp6IdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", t, "multi")
+ }
+ }
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
}
@@ -12139,6 +14641,144 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesPartialUpdateExe
return localVarReturnValue, localVarHTTPResponse, nil
}
+type ApiVirtualizationVirtualMachinesRenderConfigCreateRequest struct {
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ id int32
+ writableVirtualMachineWithConfigContextRequest *WritableVirtualMachineWithConfigContextRequest
+ format *DcimDevicesRenderConfigCreateFormatParameter
+}
+
+func (r ApiVirtualizationVirtualMachinesRenderConfigCreateRequest) WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest WritableVirtualMachineWithConfigContextRequest) ApiVirtualizationVirtualMachinesRenderConfigCreateRequest {
+ r.writableVirtualMachineWithConfigContextRequest = &writableVirtualMachineWithConfigContextRequest
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesRenderConfigCreateRequest) Format(format DcimDevicesRenderConfigCreateFormatParameter) ApiVirtualizationVirtualMachinesRenderConfigCreateRequest {
+ r.format = &format
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesRenderConfigCreateRequest) Execute() (*VirtualMachineWithConfigContext, *http.Response, error) {
+ return r.ApiService.VirtualizationVirtualMachinesRenderConfigCreateExecute(r)
+}
+
+/*
+VirtualizationVirtualMachinesRenderConfigCreate Method for VirtualizationVirtualMachinesRenderConfigCreate
+
+Resolve and render the preferred ConfigTemplate for this Device.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual machine.
+ @return ApiVirtualizationVirtualMachinesRenderConfigCreateRequest
+*/
+func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRenderConfigCreate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesRenderConfigCreateRequest {
+ return ApiVirtualizationVirtualMachinesRenderConfigCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return VirtualMachineWithConfigContext
+func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRenderConfigCreateExecute(r ApiVirtualizationVirtualMachinesRenderConfigCreateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualMachineWithConfigContext
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesRenderConfigCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/virtualization/virtual-machines/{id}/render-config/"
+ 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.writableVirtualMachineWithConfigContextRequest == nil {
+ return localVarReturnValue, nil, reportError("writableVirtualMachineWithConfigContextRequest is required and must be specified")
+ }
+
+ if r.format != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "format", r.format, "")
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json", "text/plain"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.writableVirtualMachineWithConfigContextRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVirtualizationVirtualMachinesRetrieveRequest struct {
ctx context.Context
ApiService *VirtualizationAPIService
diff --git a/api_vpn.go b/api_vpn.go
new file mode 100644
index 0000000000..13e84dc3bc
--- /dev/null
+++ b/api_vpn.go
@@ -0,0 +1,21874 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "bytes"
+ "context"
+ "io"
+ "net/http"
+ "net/url"
+ "reflect"
+ "strings"
+ "time"
+)
+
+// VpnAPIService VpnAPI service
+type VpnAPIService service
+
+type ApiVpnIkePoliciesBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iKEPolicyRequest *[]IKEPolicyRequest
+}
+
+func (r ApiVpnIkePoliciesBulkDestroyRequest) IKEPolicyRequest(iKEPolicyRequest []IKEPolicyRequest) ApiVpnIkePoliciesBulkDestroyRequest {
+ r.iKEPolicyRequest = &iKEPolicyRequest
+ return r
+}
+
+func (r ApiVpnIkePoliciesBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnIkePoliciesBulkDestroyExecute(r)
+}
+
+/*
+VpnIkePoliciesBulkDestroy Method for VpnIkePoliciesBulkDestroy
+
+Delete a list of IKE policy objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkePoliciesBulkDestroyRequest
+*/
+func (a *VpnAPIService) VpnIkePoliciesBulkDestroy(ctx context.Context) ApiVpnIkePoliciesBulkDestroyRequest {
+ return ApiVpnIkePoliciesBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnIkePoliciesBulkDestroyExecute(r ApiVpnIkePoliciesBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-policies/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iKEPolicyRequest == nil {
+ return nil, reportError("iKEPolicyRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.iKEPolicyRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarHTTPResponse, newErr
+ }
+
+ return localVarHTTPResponse, nil
+}
+
+type ApiVpnIkePoliciesBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iKEPolicyRequest *[]IKEPolicyRequest
+}
+
+func (r ApiVpnIkePoliciesBulkPartialUpdateRequest) IKEPolicyRequest(iKEPolicyRequest []IKEPolicyRequest) ApiVpnIkePoliciesBulkPartialUpdateRequest {
+ r.iKEPolicyRequest = &iKEPolicyRequest
+ return r
+}
+
+func (r ApiVpnIkePoliciesBulkPartialUpdateRequest) Execute() ([]IKEPolicy, *http.Response, error) {
+ return r.ApiService.VpnIkePoliciesBulkPartialUpdateExecute(r)
+}
+
+/*
+VpnIkePoliciesBulkPartialUpdate Method for VpnIkePoliciesBulkPartialUpdate
+
+Patch a list of IKE policy objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkePoliciesBulkPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnIkePoliciesBulkPartialUpdate(ctx context.Context) ApiVpnIkePoliciesBulkPartialUpdateRequest {
+ return ApiVpnIkePoliciesBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []IKEPolicy
+func (a *VpnAPIService) VpnIkePoliciesBulkPartialUpdateExecute(r ApiVpnIkePoliciesBulkPartialUpdateRequest) ([]IKEPolicy, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IKEPolicy
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-policies/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iKEPolicyRequest == nil {
+ return localVarReturnValue, nil, reportError("iKEPolicyRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.iKEPolicyRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiVpnIkePoliciesBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iKEPolicyRequest *[]IKEPolicyRequest
+}
+
+func (r ApiVpnIkePoliciesBulkUpdateRequest) IKEPolicyRequest(iKEPolicyRequest []IKEPolicyRequest) ApiVpnIkePoliciesBulkUpdateRequest {
+ r.iKEPolicyRequest = &iKEPolicyRequest
+ return r
+}
+
+func (r ApiVpnIkePoliciesBulkUpdateRequest) Execute() ([]IKEPolicy, *http.Response, error) {
+ return r.ApiService.VpnIkePoliciesBulkUpdateExecute(r)
+}
+
+/*
+VpnIkePoliciesBulkUpdate Method for VpnIkePoliciesBulkUpdate
+
+Put a list of IKE policy objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkePoliciesBulkUpdateRequest
+*/
+func (a *VpnAPIService) VpnIkePoliciesBulkUpdate(ctx context.Context) ApiVpnIkePoliciesBulkUpdateRequest {
+ return ApiVpnIkePoliciesBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []IKEPolicy
+func (a *VpnAPIService) VpnIkePoliciesBulkUpdateExecute(r ApiVpnIkePoliciesBulkUpdateRequest) ([]IKEPolicy, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IKEPolicy
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-policies/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iKEPolicyRequest == nil {
+ return localVarReturnValue, nil, reportError("iKEPolicyRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.iKEPolicyRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiVpnIkePoliciesCreateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ writableIKEPolicyRequest *WritableIKEPolicyRequest
+}
+
+func (r ApiVpnIkePoliciesCreateRequest) WritableIKEPolicyRequest(writableIKEPolicyRequest WritableIKEPolicyRequest) ApiVpnIkePoliciesCreateRequest {
+ r.writableIKEPolicyRequest = &writableIKEPolicyRequest
+ return r
+}
+
+func (r ApiVpnIkePoliciesCreateRequest) Execute() (*IKEPolicy, *http.Response, error) {
+ return r.ApiService.VpnIkePoliciesCreateExecute(r)
+}
+
+/*
+VpnIkePoliciesCreate Method for VpnIkePoliciesCreate
+
+Post a list of IKE policy objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkePoliciesCreateRequest
+*/
+func (a *VpnAPIService) VpnIkePoliciesCreate(ctx context.Context) ApiVpnIkePoliciesCreateRequest {
+ return ApiVpnIkePoliciesCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return IKEPolicy
+func (a *VpnAPIService) VpnIkePoliciesCreateExecute(r ApiVpnIkePoliciesCreateRequest) (*IKEPolicy, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEPolicy
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-policies/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableIKEPolicyRequest == nil {
+ return localVarReturnValue, nil, reportError("writableIKEPolicyRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.writableIKEPolicyRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiVpnIkePoliciesDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnIkePoliciesDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnIkePoliciesDestroyExecute(r)
+}
+
+/*
+VpnIkePoliciesDestroy Method for VpnIkePoliciesDestroy
+
+Delete a IKE policy object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE policy.
+ @return ApiVpnIkePoliciesDestroyRequest
+*/
+func (a *VpnAPIService) VpnIkePoliciesDestroy(ctx context.Context, id int32) ApiVpnIkePoliciesDestroyRequest {
+ return ApiVpnIkePoliciesDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnIkePoliciesDestroyExecute(r ApiVpnIkePoliciesDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-policies/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarHTTPResponse, newErr
+ }
+
+ return localVarHTTPResponse, nil
+}
+
+type ApiVpnIkePoliciesListRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ mode *[]string
+ modeN *[]string
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ presharedKey *string
+ presharedKeyIc *string
+ presharedKeyIe *string
+ presharedKeyIew *string
+ presharedKeyIsw *string
+ presharedKeyN *string
+ presharedKeyNic *string
+ presharedKeyNie *string
+ presharedKeyNiew *string
+ presharedKeyNisw *string
+ proposal *[]string
+ 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
+ tagN *[]string
+ updatedByRequest *string
+ version *[]int32
+ versionN *[]int32
+}
+
+func (r ApiVpnIkePoliciesListRequest) Created(created []time.Time) ApiVpnIkePoliciesListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVpnIkePoliciesListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) CreatedGt(createdGt []time.Time) ApiVpnIkePoliciesListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) CreatedGte(createdGte []time.Time) ApiVpnIkePoliciesListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) CreatedLt(createdLt []time.Time) ApiVpnIkePoliciesListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) CreatedLte(createdLte []time.Time) ApiVpnIkePoliciesListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) CreatedN(createdN []time.Time) ApiVpnIkePoliciesListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) CreatedByRequest(createdByRequest string) ApiVpnIkePoliciesListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) Description(description []string) ApiVpnIkePoliciesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiVpnIkePoliciesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) DescriptionIc(descriptionIc []string) ApiVpnIkePoliciesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) DescriptionIe(descriptionIe []string) ApiVpnIkePoliciesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) DescriptionIew(descriptionIew []string) ApiVpnIkePoliciesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) DescriptionIsw(descriptionIsw []string) ApiVpnIkePoliciesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) DescriptionN(descriptionN []string) ApiVpnIkePoliciesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) DescriptionNic(descriptionNic []string) ApiVpnIkePoliciesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) DescriptionNie(descriptionNie []string) ApiVpnIkePoliciesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) DescriptionNiew(descriptionNiew []string) ApiVpnIkePoliciesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) DescriptionNisw(descriptionNisw []string) ApiVpnIkePoliciesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) Id(id []int32) ApiVpnIkePoliciesListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) IdEmpty(idEmpty bool) ApiVpnIkePoliciesListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) IdGt(idGt []int32) ApiVpnIkePoliciesListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) IdGte(idGte []int32) ApiVpnIkePoliciesListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) IdLt(idLt []int32) ApiVpnIkePoliciesListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) IdLte(idLte []int32) ApiVpnIkePoliciesListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) IdN(idN []int32) ApiVpnIkePoliciesListRequest {
+ r.idN = &idN
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnIkePoliciesListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVpnIkePoliciesListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVpnIkePoliciesListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiVpnIkePoliciesListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiVpnIkePoliciesListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiVpnIkePoliciesListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiVpnIkePoliciesListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiVpnIkePoliciesListRequest) Limit(limit int32) ApiVpnIkePoliciesListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) Mode(mode []string) ApiVpnIkePoliciesListRequest {
+ r.mode = &mode
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) ModeN(modeN []string) ApiVpnIkePoliciesListRequest {
+ r.modeN = &modeN
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnIkePoliciesListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) Name(name []string) ApiVpnIkePoliciesListRequest {
+ r.name = &name
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) NameEmpty(nameEmpty bool) ApiVpnIkePoliciesListRequest {
+ r.nameEmpty = &nameEmpty
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) NameIc(nameIc []string) ApiVpnIkePoliciesListRequest {
+ r.nameIc = &nameIc
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) NameIe(nameIe []string) ApiVpnIkePoliciesListRequest {
+ r.nameIe = &nameIe
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) NameIew(nameIew []string) ApiVpnIkePoliciesListRequest {
+ r.nameIew = &nameIew
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) NameIsw(nameIsw []string) ApiVpnIkePoliciesListRequest {
+ r.nameIsw = &nameIsw
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) NameN(nameN []string) ApiVpnIkePoliciesListRequest {
+ r.nameN = &nameN
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) NameNic(nameNic []string) ApiVpnIkePoliciesListRequest {
+ r.nameNic = &nameNic
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) NameNie(nameNie []string) ApiVpnIkePoliciesListRequest {
+ r.nameNie = &nameNie
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) NameNiew(nameNiew []string) ApiVpnIkePoliciesListRequest {
+ r.nameNiew = &nameNiew
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) NameNisw(nameNisw []string) ApiVpnIkePoliciesListRequest {
+ r.nameNisw = &nameNisw
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiVpnIkePoliciesListRequest) Offset(offset int32) ApiVpnIkePoliciesListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiVpnIkePoliciesListRequest) Ordering(ordering string) ApiVpnIkePoliciesListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) PresharedKey(presharedKey string) ApiVpnIkePoliciesListRequest {
+ r.presharedKey = &presharedKey
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) PresharedKeyIc(presharedKeyIc string) ApiVpnIkePoliciesListRequest {
+ r.presharedKeyIc = &presharedKeyIc
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) PresharedKeyIe(presharedKeyIe string) ApiVpnIkePoliciesListRequest {
+ r.presharedKeyIe = &presharedKeyIe
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) PresharedKeyIew(presharedKeyIew string) ApiVpnIkePoliciesListRequest {
+ r.presharedKeyIew = &presharedKeyIew
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) PresharedKeyIsw(presharedKeyIsw string) ApiVpnIkePoliciesListRequest {
+ r.presharedKeyIsw = &presharedKeyIsw
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) PresharedKeyN(presharedKeyN string) ApiVpnIkePoliciesListRequest {
+ r.presharedKeyN = &presharedKeyN
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) PresharedKeyNic(presharedKeyNic string) ApiVpnIkePoliciesListRequest {
+ r.presharedKeyNic = &presharedKeyNic
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) PresharedKeyNie(presharedKeyNie string) ApiVpnIkePoliciesListRequest {
+ r.presharedKeyNie = &presharedKeyNie
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) PresharedKeyNiew(presharedKeyNiew string) ApiVpnIkePoliciesListRequest {
+ r.presharedKeyNiew = &presharedKeyNiew
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) PresharedKeyNisw(presharedKeyNisw string) ApiVpnIkePoliciesListRequest {
+ r.presharedKeyNisw = &presharedKeyNisw
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) Proposal(proposal []string) ApiVpnIkePoliciesListRequest {
+ r.proposal = &proposal
+ 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
+}
+
+// Search
+func (r ApiVpnIkePoliciesListRequest) Q(q string) ApiVpnIkePoliciesListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) Tag(tag []string) ApiVpnIkePoliciesListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) TagN(tagN []string) ApiVpnIkePoliciesListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIkePoliciesListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) Version(version []int32) ApiVpnIkePoliciesListRequest {
+ r.version = &version
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) VersionN(versionN []int32) ApiVpnIkePoliciesListRequest {
+ r.versionN = &versionN
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) Execute() (*PaginatedIKEPolicyList, *http.Response, error) {
+ return r.ApiService.VpnIkePoliciesListExecute(r)
+}
+
+/*
+VpnIkePoliciesList Method for VpnIkePoliciesList
+
+Get a list of IKE policy objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkePoliciesListRequest
+*/
+func (a *VpnAPIService) VpnIkePoliciesList(ctx context.Context) ApiVpnIkePoliciesListRequest {
+ return ApiVpnIkePoliciesListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedIKEPolicyList
+func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest) (*PaginatedIKEPolicyList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedIKEPolicyList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-policies/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.created != nil {
+ t := *r.created
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
+ }
+ }
+ if r.createdEmpty != nil {
+ t := *r.createdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
+ }
+ }
+ if r.createdGt != nil {
+ t := *r.createdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
+ }
+ }
+ if r.createdGte != nil {
+ t := *r.createdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
+ }
+ }
+ if r.createdLt != nil {
+ t := *r.createdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
+ }
+ }
+ if r.createdLte != nil {
+ t := *r.createdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
+ }
+ }
+ if r.createdN != nil {
+ t := *r.createdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
+ }
+ }
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
+ }
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
+ }
+ }
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ }
+ if r.mode != nil {
+ t := *r.mode
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode", t, "multi")
+ }
+ }
+ if r.modeN != nil {
+ t := *r.modeN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", t, "multi")
+ }
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
+ if r.name != nil {
+ t := *r.name
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi")
+ }
+ }
+ if r.nameEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "")
+ }
+ if r.nameIc != nil {
+ t := *r.nameIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi")
+ }
+ }
+ if r.nameIe != nil {
+ t := *r.nameIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi")
+ }
+ }
+ if r.nameIew != nil {
+ t := *r.nameIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi")
+ }
+ }
+ if r.nameIsw != nil {
+ t := *r.nameIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi")
+ }
+ }
+ if r.nameN != nil {
+ t := *r.nameN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi")
+ }
+ }
+ if r.nameNic != nil {
+ t := *r.nameNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi")
+ }
+ }
+ if r.nameNie != nil {
+ t := *r.nameNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi")
+ }
+ }
+ if r.nameNiew != nil {
+ t := *r.nameNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi")
+ }
+ }
+ if r.nameNisw != nil {
+ t := *r.nameNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi")
+ }
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ }
+ if r.presharedKey != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key", r.presharedKey, "")
+ }
+ if r.presharedKeyIc != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__ic", r.presharedKeyIc, "")
+ }
+ if r.presharedKeyIe != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__ie", r.presharedKeyIe, "")
+ }
+ if r.presharedKeyIew != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__iew", r.presharedKeyIew, "")
+ }
+ if r.presharedKeyIsw != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__isw", r.presharedKeyIsw, "")
+ }
+ if r.presharedKeyN != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__n", r.presharedKeyN, "")
+ }
+ if r.presharedKeyNic != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__nic", r.presharedKeyNic, "")
+ }
+ if r.presharedKeyNie != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__nie", r.presharedKeyNie, "")
+ }
+ if r.presharedKeyNiew != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__niew", r.presharedKeyNiew, "")
+ }
+ if r.presharedKeyNisw != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__nisw", r.presharedKeyNisw, "")
+ }
+ if r.proposal != nil {
+ t := *r.proposal
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ 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
+ 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 {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", t, "multi")
+ }
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ }
+ if r.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
+ }
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ if r.version != nil {
+ t := *r.version
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "version", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "version", t, "multi")
+ }
+ }
+ if r.versionN != nil {
+ t := *r.versionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "version__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "version__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 ApiVpnIkePoliciesPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ patchedWritableIKEPolicyRequest *PatchedWritableIKEPolicyRequest
+}
+
+func (r ApiVpnIkePoliciesPartialUpdateRequest) PatchedWritableIKEPolicyRequest(patchedWritableIKEPolicyRequest PatchedWritableIKEPolicyRequest) ApiVpnIkePoliciesPartialUpdateRequest {
+ r.patchedWritableIKEPolicyRequest = &patchedWritableIKEPolicyRequest
+ return r
+}
+
+func (r ApiVpnIkePoliciesPartialUpdateRequest) Execute() (*IKEPolicy, *http.Response, error) {
+ return r.ApiService.VpnIkePoliciesPartialUpdateExecute(r)
+}
+
+/*
+VpnIkePoliciesPartialUpdate Method for VpnIkePoliciesPartialUpdate
+
+Patch a IKE policy object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE policy.
+ @return ApiVpnIkePoliciesPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnIkePoliciesPartialUpdate(ctx context.Context, id int32) ApiVpnIkePoliciesPartialUpdateRequest {
+ return ApiVpnIkePoliciesPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IKEPolicy
+func (a *VpnAPIService) VpnIkePoliciesPartialUpdateExecute(r ApiVpnIkePoliciesPartialUpdateRequest) (*IKEPolicy, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEPolicy
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-policies/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"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.patchedWritableIKEPolicyRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIkePoliciesRetrieveRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnIkePoliciesRetrieveRequest) Execute() (*IKEPolicy, *http.Response, error) {
+ return r.ApiService.VpnIkePoliciesRetrieveExecute(r)
+}
+
+/*
+VpnIkePoliciesRetrieve Method for VpnIkePoliciesRetrieve
+
+Get a IKE policy object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE policy.
+ @return ApiVpnIkePoliciesRetrieveRequest
+*/
+func (a *VpnAPIService) VpnIkePoliciesRetrieve(ctx context.Context, id int32) ApiVpnIkePoliciesRetrieveRequest {
+ return ApiVpnIkePoliciesRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IKEPolicy
+func (a *VpnAPIService) VpnIkePoliciesRetrieveExecute(r ApiVpnIkePoliciesRetrieveRequest) (*IKEPolicy, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEPolicy
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-policies/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"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 ApiVpnIkePoliciesUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ writableIKEPolicyRequest *WritableIKEPolicyRequest
+}
+
+func (r ApiVpnIkePoliciesUpdateRequest) WritableIKEPolicyRequest(writableIKEPolicyRequest WritableIKEPolicyRequest) ApiVpnIkePoliciesUpdateRequest {
+ r.writableIKEPolicyRequest = &writableIKEPolicyRequest
+ return r
+}
+
+func (r ApiVpnIkePoliciesUpdateRequest) Execute() (*IKEPolicy, *http.Response, error) {
+ return r.ApiService.VpnIkePoliciesUpdateExecute(r)
+}
+
+/*
+VpnIkePoliciesUpdate Method for VpnIkePoliciesUpdate
+
+Put a IKE policy object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE policy.
+ @return ApiVpnIkePoliciesUpdateRequest
+*/
+func (a *VpnAPIService) VpnIkePoliciesUpdate(ctx context.Context, id int32) ApiVpnIkePoliciesUpdateRequest {
+ return ApiVpnIkePoliciesUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IKEPolicy
+func (a *VpnAPIService) VpnIkePoliciesUpdateExecute(r ApiVpnIkePoliciesUpdateRequest) (*IKEPolicy, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEPolicy
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-policies/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableIKEPolicyRequest == nil {
+ return localVarReturnValue, nil, reportError("writableIKEPolicyRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.writableIKEPolicyRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiVpnIkeProposalsBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iKEProposalRequest *[]IKEProposalRequest
+}
+
+func (r ApiVpnIkeProposalsBulkDestroyRequest) IKEProposalRequest(iKEProposalRequest []IKEProposalRequest) ApiVpnIkeProposalsBulkDestroyRequest {
+ r.iKEProposalRequest = &iKEProposalRequest
+ return r
+}
+
+func (r ApiVpnIkeProposalsBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnIkeProposalsBulkDestroyExecute(r)
+}
+
+/*
+VpnIkeProposalsBulkDestroy Method for VpnIkeProposalsBulkDestroy
+
+Delete a list of IKE proposal objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsBulkDestroyRequest
+*/
+func (a *VpnAPIService) VpnIkeProposalsBulkDestroy(ctx context.Context) ApiVpnIkeProposalsBulkDestroyRequest {
+ return ApiVpnIkeProposalsBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnIkeProposalsBulkDestroyExecute(r ApiVpnIkeProposalsBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-proposals/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iKEProposalRequest == nil {
+ return nil, reportError("iKEProposalRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.iKEProposalRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIkeProposalsBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iKEProposalRequest *[]IKEProposalRequest
+}
+
+func (r ApiVpnIkeProposalsBulkPartialUpdateRequest) IKEProposalRequest(iKEProposalRequest []IKEProposalRequest) ApiVpnIkeProposalsBulkPartialUpdateRequest {
+ r.iKEProposalRequest = &iKEProposalRequest
+ return r
+}
+
+func (r ApiVpnIkeProposalsBulkPartialUpdateRequest) Execute() ([]IKEProposal, *http.Response, error) {
+ return r.ApiService.VpnIkeProposalsBulkPartialUpdateExecute(r)
+}
+
+/*
+VpnIkeProposalsBulkPartialUpdate Method for VpnIkeProposalsBulkPartialUpdate
+
+Patch a list of IKE proposal objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsBulkPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnIkeProposalsBulkPartialUpdate(ctx context.Context) ApiVpnIkeProposalsBulkPartialUpdateRequest {
+ return ApiVpnIkeProposalsBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []IKEProposal
+func (a *VpnAPIService) VpnIkeProposalsBulkPartialUpdateExecute(r ApiVpnIkeProposalsBulkPartialUpdateRequest) ([]IKEProposal, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IKEProposal
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-proposals/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iKEProposalRequest == nil {
+ return localVarReturnValue, nil, reportError("iKEProposalRequest 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.iKEProposalRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIkeProposalsBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iKEProposalRequest *[]IKEProposalRequest
+}
+
+func (r ApiVpnIkeProposalsBulkUpdateRequest) IKEProposalRequest(iKEProposalRequest []IKEProposalRequest) ApiVpnIkeProposalsBulkUpdateRequest {
+ r.iKEProposalRequest = &iKEProposalRequest
+ return r
+}
+
+func (r ApiVpnIkeProposalsBulkUpdateRequest) Execute() ([]IKEProposal, *http.Response, error) {
+ return r.ApiService.VpnIkeProposalsBulkUpdateExecute(r)
+}
+
+/*
+VpnIkeProposalsBulkUpdate Method for VpnIkeProposalsBulkUpdate
+
+Put a list of IKE proposal objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsBulkUpdateRequest
+*/
+func (a *VpnAPIService) VpnIkeProposalsBulkUpdate(ctx context.Context) ApiVpnIkeProposalsBulkUpdateRequest {
+ return ApiVpnIkeProposalsBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []IKEProposal
+func (a *VpnAPIService) VpnIkeProposalsBulkUpdateExecute(r ApiVpnIkeProposalsBulkUpdateRequest) ([]IKEProposal, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IKEProposal
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-proposals/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iKEProposalRequest == nil {
+ return localVarReturnValue, nil, reportError("iKEProposalRequest 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.iKEProposalRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIkeProposalsCreateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ writableIKEProposalRequest *WritableIKEProposalRequest
+}
+
+func (r ApiVpnIkeProposalsCreateRequest) WritableIKEProposalRequest(writableIKEProposalRequest WritableIKEProposalRequest) ApiVpnIkeProposalsCreateRequest {
+ r.writableIKEProposalRequest = &writableIKEProposalRequest
+ return r
+}
+
+func (r ApiVpnIkeProposalsCreateRequest) Execute() (*IKEProposal, *http.Response, error) {
+ return r.ApiService.VpnIkeProposalsCreateExecute(r)
+}
+
+/*
+VpnIkeProposalsCreate Method for VpnIkeProposalsCreate
+
+Post a list of IKE proposal objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsCreateRequest
+*/
+func (a *VpnAPIService) VpnIkeProposalsCreate(ctx context.Context) ApiVpnIkeProposalsCreateRequest {
+ return ApiVpnIkeProposalsCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return IKEProposal
+func (a *VpnAPIService) VpnIkeProposalsCreateExecute(r ApiVpnIkeProposalsCreateRequest) (*IKEProposal, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEProposal
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-proposals/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableIKEProposalRequest == nil {
+ return localVarReturnValue, nil, reportError("writableIKEProposalRequest 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.writableIKEProposalRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIkeProposalsDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnIkeProposalsDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnIkeProposalsDestroyExecute(r)
+}
+
+/*
+VpnIkeProposalsDestroy Method for VpnIkeProposalsDestroy
+
+Delete a IKE proposal object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE proposal.
+ @return ApiVpnIkeProposalsDestroyRequest
+*/
+func (a *VpnAPIService) VpnIkeProposalsDestroy(ctx context.Context, id int32) ApiVpnIkeProposalsDestroyRequest {
+ return ApiVpnIkeProposalsDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnIkeProposalsDestroyExecute(r ApiVpnIkeProposalsDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-proposals/{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 ApiVpnIkeProposalsListRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ authenticationAlgorithm *[]string
+ authenticationAlgorithmN *[]string
+ authenticationMethod *[]string
+ authenticationMethodN *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ encryptionAlgorithm *[]string
+ encryptionAlgorithmN *[]string
+ group *[]int32
+ groupN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ saLifetime *[]int32
+ saLifetimeEmpty *bool
+ saLifetimeGt *[]int32
+ saLifetimeGte *[]int32
+ saLifetimeLt *[]int32
+ saLifetimeLte *[]int32
+ saLifetimeN *[]int32
+ tag *[]string
+ tagN *[]string
+ updatedByRequest *string
+}
+
+func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithm(authenticationAlgorithm []string) ApiVpnIkeProposalsListRequest {
+ r.authenticationAlgorithm = &authenticationAlgorithm
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmN(authenticationAlgorithmN []string) ApiVpnIkeProposalsListRequest {
+ r.authenticationAlgorithmN = &authenticationAlgorithmN
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) AuthenticationMethod(authenticationMethod []string) ApiVpnIkeProposalsListRequest {
+ r.authenticationMethod = &authenticationMethod
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodN(authenticationMethodN []string) ApiVpnIkeProposalsListRequest {
+ r.authenticationMethodN = &authenticationMethodN
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) Created(created []time.Time) ApiVpnIkeProposalsListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVpnIkeProposalsListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) CreatedGt(createdGt []time.Time) ApiVpnIkeProposalsListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) CreatedGte(createdGte []time.Time) ApiVpnIkeProposalsListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) CreatedLt(createdLt []time.Time) ApiVpnIkeProposalsListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) CreatedLte(createdLte []time.Time) ApiVpnIkeProposalsListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) CreatedN(createdN []time.Time) ApiVpnIkeProposalsListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) CreatedByRequest(createdByRequest string) ApiVpnIkeProposalsListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) Description(description []string) ApiVpnIkeProposalsListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiVpnIkeProposalsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) DescriptionIc(descriptionIc []string) ApiVpnIkeProposalsListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) DescriptionIe(descriptionIe []string) ApiVpnIkeProposalsListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) DescriptionIew(descriptionIew []string) ApiVpnIkeProposalsListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) DescriptionIsw(descriptionIsw []string) ApiVpnIkeProposalsListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) DescriptionN(descriptionN []string) ApiVpnIkeProposalsListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) DescriptionNic(descriptionNic []string) ApiVpnIkeProposalsListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) DescriptionNie(descriptionNie []string) ApiVpnIkeProposalsListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) DescriptionNiew(descriptionNiew []string) ApiVpnIkeProposalsListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) DescriptionNisw(descriptionNisw []string) ApiVpnIkeProposalsListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithm(encryptionAlgorithm []string) ApiVpnIkeProposalsListRequest {
+ r.encryptionAlgorithm = &encryptionAlgorithm
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmN(encryptionAlgorithmN []string) ApiVpnIkeProposalsListRequest {
+ r.encryptionAlgorithmN = &encryptionAlgorithmN
+ return r
+}
+
+// Diffie-Hellman group ID
+func (r ApiVpnIkeProposalsListRequest) Group(group []int32) ApiVpnIkeProposalsListRequest {
+ r.group = &group
+ return r
+}
+
+// Diffie-Hellman group ID
+func (r ApiVpnIkeProposalsListRequest) GroupN(groupN []int32) ApiVpnIkeProposalsListRequest {
+ r.groupN = &groupN
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) Id(id []int32) ApiVpnIkeProposalsListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) IdEmpty(idEmpty bool) ApiVpnIkeProposalsListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) IdGt(idGt []int32) ApiVpnIkeProposalsListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) IdGte(idGte []int32) ApiVpnIkeProposalsListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) IdLt(idLt []int32) ApiVpnIkeProposalsListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) IdLte(idLte []int32) ApiVpnIkeProposalsListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) IdN(idN []int32) ApiVpnIkeProposalsListRequest {
+ r.idN = &idN
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnIkeProposalsListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVpnIkeProposalsListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVpnIkeProposalsListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiVpnIkeProposalsListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiVpnIkeProposalsListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiVpnIkeProposalsListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiVpnIkeProposalsListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiVpnIkeProposalsListRequest) Limit(limit int32) ApiVpnIkeProposalsListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnIkeProposalsListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) Name(name []string) ApiVpnIkeProposalsListRequest {
+ r.name = &name
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) NameEmpty(nameEmpty bool) ApiVpnIkeProposalsListRequest {
+ r.nameEmpty = &nameEmpty
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) NameIc(nameIc []string) ApiVpnIkeProposalsListRequest {
+ r.nameIc = &nameIc
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) NameIe(nameIe []string) ApiVpnIkeProposalsListRequest {
+ r.nameIe = &nameIe
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) NameIew(nameIew []string) ApiVpnIkeProposalsListRequest {
+ r.nameIew = &nameIew
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) NameIsw(nameIsw []string) ApiVpnIkeProposalsListRequest {
+ r.nameIsw = &nameIsw
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) NameN(nameN []string) ApiVpnIkeProposalsListRequest {
+ r.nameN = &nameN
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) NameNic(nameNic []string) ApiVpnIkeProposalsListRequest {
+ r.nameNic = &nameNic
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) NameNie(nameNie []string) ApiVpnIkeProposalsListRequest {
+ r.nameNie = &nameNie
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) NameNiew(nameNiew []string) ApiVpnIkeProposalsListRequest {
+ r.nameNiew = &nameNiew
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) NameNisw(nameNisw []string) ApiVpnIkeProposalsListRequest {
+ r.nameNisw = &nameNisw
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiVpnIkeProposalsListRequest) Offset(offset int32) ApiVpnIkeProposalsListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiVpnIkeProposalsListRequest) Ordering(ordering string) ApiVpnIkeProposalsListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Search
+func (r ApiVpnIkeProposalsListRequest) Q(q string) ApiVpnIkeProposalsListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) SaLifetime(saLifetime []int32) ApiVpnIkeProposalsListRequest {
+ r.saLifetime = &saLifetime
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) SaLifetimeEmpty(saLifetimeEmpty bool) ApiVpnIkeProposalsListRequest {
+ r.saLifetimeEmpty = &saLifetimeEmpty
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) SaLifetimeGt(saLifetimeGt []int32) ApiVpnIkeProposalsListRequest {
+ r.saLifetimeGt = &saLifetimeGt
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) SaLifetimeGte(saLifetimeGte []int32) ApiVpnIkeProposalsListRequest {
+ r.saLifetimeGte = &saLifetimeGte
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) SaLifetimeLt(saLifetimeLt []int32) ApiVpnIkeProposalsListRequest {
+ r.saLifetimeLt = &saLifetimeLt
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) SaLifetimeLte(saLifetimeLte []int32) ApiVpnIkeProposalsListRequest {
+ r.saLifetimeLte = &saLifetimeLte
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) SaLifetimeN(saLifetimeN []int32) ApiVpnIkeProposalsListRequest {
+ r.saLifetimeN = &saLifetimeN
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) Tag(tag []string) ApiVpnIkeProposalsListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) TagN(tagN []string) ApiVpnIkeProposalsListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIkeProposalsListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) Execute() (*PaginatedIKEProposalList, *http.Response, error) {
+ return r.ApiService.VpnIkeProposalsListExecute(r)
+}
+
+/*
+VpnIkeProposalsList Method for VpnIkeProposalsList
+
+Get a list of IKE proposal objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsListRequest
+*/
+func (a *VpnAPIService) VpnIkeProposalsList(ctx context.Context) ApiVpnIkeProposalsListRequest {
+ return ApiVpnIkeProposalsListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedIKEProposalList
+func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListRequest) (*PaginatedIKEProposalList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedIKEProposalList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-proposals/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.authenticationAlgorithm != nil {
+ t := *r.authenticationAlgorithm
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", t, "multi")
+ }
+ }
+ if r.authenticationAlgorithmN != nil {
+ t := *r.authenticationAlgorithmN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", t, "multi")
+ }
+ }
+ if r.authenticationMethod != nil {
+ t := *r.authenticationMethod
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method", t, "multi")
+ }
+ }
+ if r.authenticationMethodN != nil {
+ t := *r.authenticationMethodN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__n", t, "multi")
+ }
+ }
+ if r.created != nil {
+ t := *r.created
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
+ }
+ }
+ if r.createdEmpty != nil {
+ t := *r.createdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
+ }
+ }
+ if r.createdGt != nil {
+ t := *r.createdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
+ }
+ }
+ if r.createdGte != nil {
+ t := *r.createdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
+ }
+ }
+ if r.createdLt != nil {
+ t := *r.createdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
+ }
+ }
+ if r.createdLte != nil {
+ t := *r.createdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
+ }
+ }
+ if r.createdN != nil {
+ t := *r.createdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
+ }
+ }
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
+ }
+ if r.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.encryptionAlgorithm != nil {
+ t := *r.encryptionAlgorithm
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", t, "multi")
+ }
+ }
+ if r.encryptionAlgorithmN != nil {
+ t := *r.encryptionAlgorithmN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", t, "multi")
+ }
+ }
+ if r.group != nil {
+ t := *r.group
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi")
+ }
+ }
+ if r.groupN != nil {
+ t := *r.groupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi")
+ }
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
+ }
+ }
+ if r.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.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.saLifetime != nil {
+ t := *r.saLifetime
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime", t, "multi")
+ }
+ }
+ if r.saLifetimeEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__empty", r.saLifetimeEmpty, "")
+ }
+ if r.saLifetimeGt != nil {
+ t := *r.saLifetimeGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__gt", t, "multi")
+ }
+ }
+ if r.saLifetimeGte != nil {
+ t := *r.saLifetimeGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__gte", t, "multi")
+ }
+ }
+ if r.saLifetimeLt != nil {
+ t := *r.saLifetimeLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__lt", t, "multi")
+ }
+ }
+ if r.saLifetimeLte != nil {
+ t := *r.saLifetimeLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__lte", t, "multi")
+ }
+ }
+ if r.saLifetimeN != nil {
+ t := *r.saLifetimeN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__n", t, "multi")
+ }
+ }
+ if r.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
+ }
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ // 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 ApiVpnIkeProposalsPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ patchedWritableIKEProposalRequest *PatchedWritableIKEProposalRequest
+}
+
+func (r ApiVpnIkeProposalsPartialUpdateRequest) PatchedWritableIKEProposalRequest(patchedWritableIKEProposalRequest PatchedWritableIKEProposalRequest) ApiVpnIkeProposalsPartialUpdateRequest {
+ r.patchedWritableIKEProposalRequest = &patchedWritableIKEProposalRequest
+ return r
+}
+
+func (r ApiVpnIkeProposalsPartialUpdateRequest) Execute() (*IKEProposal, *http.Response, error) {
+ return r.ApiService.VpnIkeProposalsPartialUpdateExecute(r)
+}
+
+/*
+VpnIkeProposalsPartialUpdate Method for VpnIkeProposalsPartialUpdate
+
+Patch a IKE proposal object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE proposal.
+ @return ApiVpnIkeProposalsPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnIkeProposalsPartialUpdate(ctx context.Context, id int32) ApiVpnIkeProposalsPartialUpdateRequest {
+ return ApiVpnIkeProposalsPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IKEProposal
+func (a *VpnAPIService) VpnIkeProposalsPartialUpdateExecute(r ApiVpnIkeProposalsPartialUpdateRequest) (*IKEProposal, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEProposal
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-proposals/{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.patchedWritableIKEProposalRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIkeProposalsRetrieveRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnIkeProposalsRetrieveRequest) Execute() (*IKEProposal, *http.Response, error) {
+ return r.ApiService.VpnIkeProposalsRetrieveExecute(r)
+}
+
+/*
+VpnIkeProposalsRetrieve Method for VpnIkeProposalsRetrieve
+
+Get a IKE proposal object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE proposal.
+ @return ApiVpnIkeProposalsRetrieveRequest
+*/
+func (a *VpnAPIService) VpnIkeProposalsRetrieve(ctx context.Context, id int32) ApiVpnIkeProposalsRetrieveRequest {
+ return ApiVpnIkeProposalsRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IKEProposal
+func (a *VpnAPIService) VpnIkeProposalsRetrieveExecute(r ApiVpnIkeProposalsRetrieveRequest) (*IKEProposal, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEProposal
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-proposals/{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 ApiVpnIkeProposalsUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ writableIKEProposalRequest *WritableIKEProposalRequest
+}
+
+func (r ApiVpnIkeProposalsUpdateRequest) WritableIKEProposalRequest(writableIKEProposalRequest WritableIKEProposalRequest) ApiVpnIkeProposalsUpdateRequest {
+ r.writableIKEProposalRequest = &writableIKEProposalRequest
+ return r
+}
+
+func (r ApiVpnIkeProposalsUpdateRequest) Execute() (*IKEProposal, *http.Response, error) {
+ return r.ApiService.VpnIkeProposalsUpdateExecute(r)
+}
+
+/*
+VpnIkeProposalsUpdate Method for VpnIkeProposalsUpdate
+
+Put a IKE proposal object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE proposal.
+ @return ApiVpnIkeProposalsUpdateRequest
+*/
+func (a *VpnAPIService) VpnIkeProposalsUpdate(ctx context.Context, id int32) ApiVpnIkeProposalsUpdateRequest {
+ return ApiVpnIkeProposalsUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IKEProposal
+func (a *VpnAPIService) VpnIkeProposalsUpdateExecute(r ApiVpnIkeProposalsUpdateRequest) (*IKEProposal, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEProposal
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ike-proposals/{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.writableIKEProposalRequest == nil {
+ return localVarReturnValue, nil, reportError("writableIKEProposalRequest 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.writableIKEProposalRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecPoliciesBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iPSecPolicyRequest *[]IPSecPolicyRequest
+}
+
+func (r ApiVpnIpsecPoliciesBulkDestroyRequest) IPSecPolicyRequest(iPSecPolicyRequest []IPSecPolicyRequest) ApiVpnIpsecPoliciesBulkDestroyRequest {
+ r.iPSecPolicyRequest = &iPSecPolicyRequest
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnIpsecPoliciesBulkDestroyExecute(r)
+}
+
+/*
+VpnIpsecPoliciesBulkDestroy Method for VpnIpsecPoliciesBulkDestroy
+
+Delete a list of IPSec policy objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesBulkDestroyRequest
+*/
+func (a *VpnAPIService) VpnIpsecPoliciesBulkDestroy(ctx context.Context) ApiVpnIpsecPoliciesBulkDestroyRequest {
+ return ApiVpnIpsecPoliciesBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnIpsecPoliciesBulkDestroyExecute(r ApiVpnIpsecPoliciesBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-policies/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iPSecPolicyRequest == nil {
+ return nil, reportError("iPSecPolicyRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.iPSecPolicyRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecPoliciesBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iPSecPolicyRequest *[]IPSecPolicyRequest
+}
+
+func (r ApiVpnIpsecPoliciesBulkPartialUpdateRequest) IPSecPolicyRequest(iPSecPolicyRequest []IPSecPolicyRequest) ApiVpnIpsecPoliciesBulkPartialUpdateRequest {
+ r.iPSecPolicyRequest = &iPSecPolicyRequest
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesBulkPartialUpdateRequest) Execute() ([]IPSecPolicy, *http.Response, error) {
+ return r.ApiService.VpnIpsecPoliciesBulkPartialUpdateExecute(r)
+}
+
+/*
+VpnIpsecPoliciesBulkPartialUpdate Method for VpnIpsecPoliciesBulkPartialUpdate
+
+Patch a list of IPSec policy objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesBulkPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnIpsecPoliciesBulkPartialUpdate(ctx context.Context) ApiVpnIpsecPoliciesBulkPartialUpdateRequest {
+ return ApiVpnIpsecPoliciesBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []IPSecPolicy
+func (a *VpnAPIService) VpnIpsecPoliciesBulkPartialUpdateExecute(r ApiVpnIpsecPoliciesBulkPartialUpdateRequest) ([]IPSecPolicy, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPSecPolicy
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-policies/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iPSecPolicyRequest == nil {
+ return localVarReturnValue, nil, reportError("iPSecPolicyRequest 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.iPSecPolicyRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecPoliciesBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iPSecPolicyRequest *[]IPSecPolicyRequest
+}
+
+func (r ApiVpnIpsecPoliciesBulkUpdateRequest) IPSecPolicyRequest(iPSecPolicyRequest []IPSecPolicyRequest) ApiVpnIpsecPoliciesBulkUpdateRequest {
+ r.iPSecPolicyRequest = &iPSecPolicyRequest
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesBulkUpdateRequest) Execute() ([]IPSecPolicy, *http.Response, error) {
+ return r.ApiService.VpnIpsecPoliciesBulkUpdateExecute(r)
+}
+
+/*
+VpnIpsecPoliciesBulkUpdate Method for VpnIpsecPoliciesBulkUpdate
+
+Put a list of IPSec policy objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesBulkUpdateRequest
+*/
+func (a *VpnAPIService) VpnIpsecPoliciesBulkUpdate(ctx context.Context) ApiVpnIpsecPoliciesBulkUpdateRequest {
+ return ApiVpnIpsecPoliciesBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []IPSecPolicy
+func (a *VpnAPIService) VpnIpsecPoliciesBulkUpdateExecute(r ApiVpnIpsecPoliciesBulkUpdateRequest) ([]IPSecPolicy, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPSecPolicy
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-policies/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iPSecPolicyRequest == nil {
+ return localVarReturnValue, nil, reportError("iPSecPolicyRequest 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.iPSecPolicyRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecPoliciesCreateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ writableIPSecPolicyRequest *WritableIPSecPolicyRequest
+}
+
+func (r ApiVpnIpsecPoliciesCreateRequest) WritableIPSecPolicyRequest(writableIPSecPolicyRequest WritableIPSecPolicyRequest) ApiVpnIpsecPoliciesCreateRequest {
+ r.writableIPSecPolicyRequest = &writableIPSecPolicyRequest
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesCreateRequest) Execute() (*IPSecPolicy, *http.Response, error) {
+ return r.ApiService.VpnIpsecPoliciesCreateExecute(r)
+}
+
+/*
+VpnIpsecPoliciesCreate Method for VpnIpsecPoliciesCreate
+
+Post a list of IPSec policy objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesCreateRequest
+*/
+func (a *VpnAPIService) VpnIpsecPoliciesCreate(ctx context.Context) ApiVpnIpsecPoliciesCreateRequest {
+ return ApiVpnIpsecPoliciesCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return IPSecPolicy
+func (a *VpnAPIService) VpnIpsecPoliciesCreateExecute(r ApiVpnIpsecPoliciesCreateRequest) (*IPSecPolicy, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecPolicy
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-policies/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableIPSecPolicyRequest == nil {
+ return localVarReturnValue, nil, reportError("writableIPSecPolicyRequest 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.writableIPSecPolicyRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecPoliciesDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnIpsecPoliciesDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnIpsecPoliciesDestroyExecute(r)
+}
+
+/*
+VpnIpsecPoliciesDestroy Method for VpnIpsecPoliciesDestroy
+
+Delete a IPSec policy object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec policy.
+ @return ApiVpnIpsecPoliciesDestroyRequest
+*/
+func (a *VpnAPIService) VpnIpsecPoliciesDestroy(ctx context.Context, id int32) ApiVpnIpsecPoliciesDestroyRequest {
+ return ApiVpnIpsecPoliciesDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnIpsecPoliciesDestroyExecute(r ApiVpnIpsecPoliciesDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-policies/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarHTTPResponse, newErr
+ }
+
+ return localVarHTTPResponse, nil
+}
+
+type ApiVpnIpsecPoliciesListRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ pfsGroup *[]*int32
+ pfsGroupN *[]*int32
+ proposal *[]string
+ 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
+ tagN *[]string
+ updatedByRequest *string
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) Created(created []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) CreatedGt(createdGt []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) CreatedGte(createdGte []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) CreatedLt(createdLt []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) CreatedLte(createdLte []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) CreatedN(createdN []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) CreatedByRequest(createdByRequest string) ApiVpnIpsecPoliciesListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) Description(description []string) ApiVpnIpsecPoliciesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiVpnIpsecPoliciesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) DescriptionIc(descriptionIc []string) ApiVpnIpsecPoliciesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) DescriptionIe(descriptionIe []string) ApiVpnIpsecPoliciesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) DescriptionIew(descriptionIew []string) ApiVpnIpsecPoliciesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) DescriptionIsw(descriptionIsw []string) ApiVpnIpsecPoliciesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) DescriptionN(descriptionN []string) ApiVpnIpsecPoliciesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) DescriptionNic(descriptionNic []string) ApiVpnIpsecPoliciesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) DescriptionNie(descriptionNie []string) ApiVpnIpsecPoliciesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) DescriptionNiew(descriptionNiew []string) ApiVpnIpsecPoliciesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) DescriptionNisw(descriptionNisw []string) ApiVpnIpsecPoliciesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) Id(id []int32) ApiVpnIpsecPoliciesListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) IdEmpty(idEmpty bool) ApiVpnIpsecPoliciesListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) IdGt(idGt []int32) ApiVpnIpsecPoliciesListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) IdGte(idGte []int32) ApiVpnIpsecPoliciesListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) IdLt(idLt []int32) ApiVpnIpsecPoliciesListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) IdLte(idLte []int32) ApiVpnIpsecPoliciesListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) IdN(idN []int32) ApiVpnIpsecPoliciesListRequest {
+ r.idN = &idN
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiVpnIpsecPoliciesListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiVpnIpsecPoliciesListRequest) Limit(limit int32) ApiVpnIpsecPoliciesListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnIpsecPoliciesListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) Name(name []string) ApiVpnIpsecPoliciesListRequest {
+ r.name = &name
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) NameEmpty(nameEmpty bool) ApiVpnIpsecPoliciesListRequest {
+ r.nameEmpty = &nameEmpty
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) NameIc(nameIc []string) ApiVpnIpsecPoliciesListRequest {
+ r.nameIc = &nameIc
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) NameIe(nameIe []string) ApiVpnIpsecPoliciesListRequest {
+ r.nameIe = &nameIe
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) NameIew(nameIew []string) ApiVpnIpsecPoliciesListRequest {
+ r.nameIew = &nameIew
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) NameIsw(nameIsw []string) ApiVpnIpsecPoliciesListRequest {
+ r.nameIsw = &nameIsw
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) NameN(nameN []string) ApiVpnIpsecPoliciesListRequest {
+ r.nameN = &nameN
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) NameNic(nameNic []string) ApiVpnIpsecPoliciesListRequest {
+ r.nameNic = &nameNic
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) NameNie(nameNie []string) ApiVpnIpsecPoliciesListRequest {
+ r.nameNie = &nameNie
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) NameNiew(nameNiew []string) ApiVpnIpsecPoliciesListRequest {
+ r.nameNiew = &nameNiew
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) NameNisw(nameNisw []string) ApiVpnIpsecPoliciesListRequest {
+ r.nameNisw = &nameNisw
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiVpnIpsecPoliciesListRequest) Offset(offset int32) ApiVpnIpsecPoliciesListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiVpnIpsecPoliciesListRequest) Ordering(ordering string) ApiVpnIpsecPoliciesListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Diffie-Hellman group for Perfect Forward Secrecy
+func (r ApiVpnIpsecPoliciesListRequest) PfsGroup(pfsGroup []*int32) ApiVpnIpsecPoliciesListRequest {
+ r.pfsGroup = &pfsGroup
+ return r
+}
+
+// Diffie-Hellman group for Perfect Forward Secrecy
+func (r ApiVpnIpsecPoliciesListRequest) PfsGroupN(pfsGroupN []*int32) ApiVpnIpsecPoliciesListRequest {
+ r.pfsGroupN = &pfsGroupN
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) Proposal(proposal []string) ApiVpnIpsecPoliciesListRequest {
+ r.proposal = &proposal
+ 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
+}
+
+// Search
+func (r ApiVpnIpsecPoliciesListRequest) Q(q string) ApiVpnIpsecPoliciesListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) Tag(tag []string) ApiVpnIpsecPoliciesListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) TagN(tagN []string) ApiVpnIpsecPoliciesListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIpsecPoliciesListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) Execute() (*PaginatedIPSecPolicyList, *http.Response, error) {
+ return r.ApiService.VpnIpsecPoliciesListExecute(r)
+}
+
+/*
+VpnIpsecPoliciesList Method for VpnIpsecPoliciesList
+
+Get a list of IPSec policy objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesListRequest
+*/
+func (a *VpnAPIService) VpnIpsecPoliciesList(ctx context.Context) ApiVpnIpsecPoliciesListRequest {
+ return ApiVpnIpsecPoliciesListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedIPSecPolicyList
+func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListRequest) (*PaginatedIPSecPolicyList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedIPSecPolicyList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-policies/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.created != nil {
+ t := *r.created
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
+ }
+ }
+ if r.createdEmpty != nil {
+ t := *r.createdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
+ }
+ }
+ if r.createdGt != nil {
+ t := *r.createdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
+ }
+ }
+ if r.createdGte != nil {
+ t := *r.createdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
+ }
+ }
+ if r.createdLt != nil {
+ t := *r.createdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
+ }
+ }
+ if r.createdLte != nil {
+ t := *r.createdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
+ }
+ }
+ if r.createdN != nil {
+ t := *r.createdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
+ }
+ }
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
+ }
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
+ }
+ }
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
+ if r.name != nil {
+ t := *r.name
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi")
+ }
+ }
+ if r.nameEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "")
+ }
+ if r.nameIc != nil {
+ t := *r.nameIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi")
+ }
+ }
+ if r.nameIe != nil {
+ t := *r.nameIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi")
+ }
+ }
+ if r.nameIew != nil {
+ t := *r.nameIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi")
+ }
+ }
+ if r.nameIsw != nil {
+ t := *r.nameIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi")
+ }
+ }
+ if r.nameN != nil {
+ t := *r.nameN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi")
+ }
+ }
+ if r.nameNic != nil {
+ t := *r.nameNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi")
+ }
+ }
+ if r.nameNie != nil {
+ t := *r.nameNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi")
+ }
+ }
+ if r.nameNiew != nil {
+ t := *r.nameNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi")
+ }
+ }
+ if r.nameNisw != nil {
+ t := *r.nameNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi")
+ }
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ }
+ if r.pfsGroup != nil {
+ t := *r.pfsGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group", t, "multi")
+ }
+ }
+ if r.pfsGroupN != nil {
+ t := *r.pfsGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__n", t, "multi")
+ }
+ }
+ if r.proposal != nil {
+ t := *r.proposal
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ 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
+ 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 {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", t, "multi")
+ }
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ }
+ if r.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
+ }
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiVpnIpsecPoliciesPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ patchedWritableIPSecPolicyRequest *PatchedWritableIPSecPolicyRequest
+}
+
+func (r ApiVpnIpsecPoliciesPartialUpdateRequest) PatchedWritableIPSecPolicyRequest(patchedWritableIPSecPolicyRequest PatchedWritableIPSecPolicyRequest) ApiVpnIpsecPoliciesPartialUpdateRequest {
+ r.patchedWritableIPSecPolicyRequest = &patchedWritableIPSecPolicyRequest
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesPartialUpdateRequest) Execute() (*IPSecPolicy, *http.Response, error) {
+ return r.ApiService.VpnIpsecPoliciesPartialUpdateExecute(r)
+}
+
+/*
+VpnIpsecPoliciesPartialUpdate Method for VpnIpsecPoliciesPartialUpdate
+
+Patch a IPSec policy object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec policy.
+ @return ApiVpnIpsecPoliciesPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnIpsecPoliciesPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecPoliciesPartialUpdateRequest {
+ return ApiVpnIpsecPoliciesPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IPSecPolicy
+func (a *VpnAPIService) VpnIpsecPoliciesPartialUpdateExecute(r ApiVpnIpsecPoliciesPartialUpdateRequest) (*IPSecPolicy, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecPolicy
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-policies/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"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.patchedWritableIPSecPolicyRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecPoliciesRetrieveRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnIpsecPoliciesRetrieveRequest) Execute() (*IPSecPolicy, *http.Response, error) {
+ return r.ApiService.VpnIpsecPoliciesRetrieveExecute(r)
+}
+
+/*
+VpnIpsecPoliciesRetrieve Method for VpnIpsecPoliciesRetrieve
+
+Get a IPSec policy object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec policy.
+ @return ApiVpnIpsecPoliciesRetrieveRequest
+*/
+func (a *VpnAPIService) VpnIpsecPoliciesRetrieve(ctx context.Context, id int32) ApiVpnIpsecPoliciesRetrieveRequest {
+ return ApiVpnIpsecPoliciesRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IPSecPolicy
+func (a *VpnAPIService) VpnIpsecPoliciesRetrieveExecute(r ApiVpnIpsecPoliciesRetrieveRequest) (*IPSecPolicy, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecPolicy
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-policies/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"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 ApiVpnIpsecPoliciesUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ writableIPSecPolicyRequest *WritableIPSecPolicyRequest
+}
+
+func (r ApiVpnIpsecPoliciesUpdateRequest) WritableIPSecPolicyRequest(writableIPSecPolicyRequest WritableIPSecPolicyRequest) ApiVpnIpsecPoliciesUpdateRequest {
+ r.writableIPSecPolicyRequest = &writableIPSecPolicyRequest
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesUpdateRequest) Execute() (*IPSecPolicy, *http.Response, error) {
+ return r.ApiService.VpnIpsecPoliciesUpdateExecute(r)
+}
+
+/*
+VpnIpsecPoliciesUpdate Method for VpnIpsecPoliciesUpdate
+
+Put a IPSec policy object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec policy.
+ @return ApiVpnIpsecPoliciesUpdateRequest
+*/
+func (a *VpnAPIService) VpnIpsecPoliciesUpdate(ctx context.Context, id int32) ApiVpnIpsecPoliciesUpdateRequest {
+ return ApiVpnIpsecPoliciesUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IPSecPolicy
+func (a *VpnAPIService) VpnIpsecPoliciesUpdateExecute(r ApiVpnIpsecPoliciesUpdateRequest) (*IPSecPolicy, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecPolicy
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-policies/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableIPSecPolicyRequest == nil {
+ return localVarReturnValue, nil, reportError("writableIPSecPolicyRequest 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.writableIPSecPolicyRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecProfilesBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iPSecProfileRequest *[]IPSecProfileRequest
+}
+
+func (r ApiVpnIpsecProfilesBulkDestroyRequest) IPSecProfileRequest(iPSecProfileRequest []IPSecProfileRequest) ApiVpnIpsecProfilesBulkDestroyRequest {
+ r.iPSecProfileRequest = &iPSecProfileRequest
+ return r
+}
+
+func (r ApiVpnIpsecProfilesBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnIpsecProfilesBulkDestroyExecute(r)
+}
+
+/*
+VpnIpsecProfilesBulkDestroy Method for VpnIpsecProfilesBulkDestroy
+
+Delete a list of IPSec profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesBulkDestroyRequest
+*/
+func (a *VpnAPIService) VpnIpsecProfilesBulkDestroy(ctx context.Context) ApiVpnIpsecProfilesBulkDestroyRequest {
+ return ApiVpnIpsecProfilesBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnIpsecProfilesBulkDestroyExecute(r ApiVpnIpsecProfilesBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-profiles/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iPSecProfileRequest == nil {
+ return nil, reportError("iPSecProfileRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.iPSecProfileRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecProfilesBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iPSecProfileRequest *[]IPSecProfileRequest
+}
+
+func (r ApiVpnIpsecProfilesBulkPartialUpdateRequest) IPSecProfileRequest(iPSecProfileRequest []IPSecProfileRequest) ApiVpnIpsecProfilesBulkPartialUpdateRequest {
+ r.iPSecProfileRequest = &iPSecProfileRequest
+ return r
+}
+
+func (r ApiVpnIpsecProfilesBulkPartialUpdateRequest) Execute() ([]IPSecProfile, *http.Response, error) {
+ return r.ApiService.VpnIpsecProfilesBulkPartialUpdateExecute(r)
+}
+
+/*
+VpnIpsecProfilesBulkPartialUpdate Method for VpnIpsecProfilesBulkPartialUpdate
+
+Patch a list of IPSec profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesBulkPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnIpsecProfilesBulkPartialUpdate(ctx context.Context) ApiVpnIpsecProfilesBulkPartialUpdateRequest {
+ return ApiVpnIpsecProfilesBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []IPSecProfile
+func (a *VpnAPIService) VpnIpsecProfilesBulkPartialUpdateExecute(r ApiVpnIpsecProfilesBulkPartialUpdateRequest) ([]IPSecProfile, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPSecProfile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-profiles/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iPSecProfileRequest == nil {
+ return localVarReturnValue, nil, reportError("iPSecProfileRequest 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.iPSecProfileRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecProfilesBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iPSecProfileRequest *[]IPSecProfileRequest
+}
+
+func (r ApiVpnIpsecProfilesBulkUpdateRequest) IPSecProfileRequest(iPSecProfileRequest []IPSecProfileRequest) ApiVpnIpsecProfilesBulkUpdateRequest {
+ r.iPSecProfileRequest = &iPSecProfileRequest
+ return r
+}
+
+func (r ApiVpnIpsecProfilesBulkUpdateRequest) Execute() ([]IPSecProfile, *http.Response, error) {
+ return r.ApiService.VpnIpsecProfilesBulkUpdateExecute(r)
+}
+
+/*
+VpnIpsecProfilesBulkUpdate Method for VpnIpsecProfilesBulkUpdate
+
+Put a list of IPSec profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesBulkUpdateRequest
+*/
+func (a *VpnAPIService) VpnIpsecProfilesBulkUpdate(ctx context.Context) ApiVpnIpsecProfilesBulkUpdateRequest {
+ return ApiVpnIpsecProfilesBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []IPSecProfile
+func (a *VpnAPIService) VpnIpsecProfilesBulkUpdateExecute(r ApiVpnIpsecProfilesBulkUpdateRequest) ([]IPSecProfile, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPSecProfile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-profiles/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iPSecProfileRequest == nil {
+ return localVarReturnValue, nil, reportError("iPSecProfileRequest 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.iPSecProfileRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecProfilesCreateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ writableIPSecProfileRequest *WritableIPSecProfileRequest
+}
+
+func (r ApiVpnIpsecProfilesCreateRequest) WritableIPSecProfileRequest(writableIPSecProfileRequest WritableIPSecProfileRequest) ApiVpnIpsecProfilesCreateRequest {
+ r.writableIPSecProfileRequest = &writableIPSecProfileRequest
+ return r
+}
+
+func (r ApiVpnIpsecProfilesCreateRequest) Execute() (*IPSecProfile, *http.Response, error) {
+ return r.ApiService.VpnIpsecProfilesCreateExecute(r)
+}
+
+/*
+VpnIpsecProfilesCreate Method for VpnIpsecProfilesCreate
+
+Post a list of IPSec profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesCreateRequest
+*/
+func (a *VpnAPIService) VpnIpsecProfilesCreate(ctx context.Context) ApiVpnIpsecProfilesCreateRequest {
+ return ApiVpnIpsecProfilesCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return IPSecProfile
+func (a *VpnAPIService) VpnIpsecProfilesCreateExecute(r ApiVpnIpsecProfilesCreateRequest) (*IPSecProfile, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProfile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-profiles/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableIPSecProfileRequest == nil {
+ return localVarReturnValue, nil, reportError("writableIPSecProfileRequest 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.writableIPSecProfileRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecProfilesDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnIpsecProfilesDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnIpsecProfilesDestroyExecute(r)
+}
+
+/*
+VpnIpsecProfilesDestroy Method for VpnIpsecProfilesDestroy
+
+Delete a IPSec profile object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec profile.
+ @return ApiVpnIpsecProfilesDestroyRequest
+*/
+func (a *VpnAPIService) VpnIpsecProfilesDestroy(ctx context.Context, id int32) ApiVpnIpsecProfilesDestroyRequest {
+ return ApiVpnIpsecProfilesDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnIpsecProfilesDestroyExecute(r ApiVpnIpsecProfilesDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-profiles/{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 ApiVpnIpsecProfilesListRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ ikePolicy *[]string
+ ikePolicyN *[]string
+ ikePolicyId *[]int32
+ ikePolicyIdN *[]int32
+ ipsecPolicy *[]string
+ ipsecPolicyN *[]string
+ ipsecPolicyId *[]int32
+ ipsecPolicyIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ mode *[]string
+ modeN *[]string
+ 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 ApiVpnIpsecProfilesListRequest) Created(created []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) CreatedGt(createdGt []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) CreatedGte(createdGte []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) CreatedLt(createdLt []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) CreatedLte(createdLte []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) CreatedN(createdN []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) CreatedByRequest(createdByRequest string) ApiVpnIpsecProfilesListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) Description(description []string) ApiVpnIpsecProfilesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiVpnIpsecProfilesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) DescriptionIc(descriptionIc []string) ApiVpnIpsecProfilesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) DescriptionIe(descriptionIe []string) ApiVpnIpsecProfilesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) DescriptionIew(descriptionIew []string) ApiVpnIpsecProfilesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) DescriptionIsw(descriptionIsw []string) ApiVpnIpsecProfilesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) DescriptionN(descriptionN []string) ApiVpnIpsecProfilesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) DescriptionNic(descriptionNic []string) ApiVpnIpsecProfilesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) DescriptionNie(descriptionNie []string) ApiVpnIpsecProfilesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) DescriptionNiew(descriptionNiew []string) ApiVpnIpsecProfilesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) DescriptionNisw(descriptionNisw []string) ApiVpnIpsecProfilesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) Id(id []int32) ApiVpnIpsecProfilesListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) IdEmpty(idEmpty bool) ApiVpnIpsecProfilesListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) IdGt(idGt []int32) ApiVpnIpsecProfilesListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) IdGte(idGte []int32) ApiVpnIpsecProfilesListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) IdLt(idLt []int32) ApiVpnIpsecProfilesListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) IdLte(idLte []int32) ApiVpnIpsecProfilesListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) IdN(idN []int32) ApiVpnIpsecProfilesListRequest {
+ r.idN = &idN
+ return r
+}
+
+// IKE policy (name)
+func (r ApiVpnIpsecProfilesListRequest) IkePolicy(ikePolicy []string) ApiVpnIpsecProfilesListRequest {
+ r.ikePolicy = &ikePolicy
+ return r
+}
+
+// IKE policy (name)
+func (r ApiVpnIpsecProfilesListRequest) IkePolicyN(ikePolicyN []string) ApiVpnIpsecProfilesListRequest {
+ r.ikePolicyN = &ikePolicyN
+ return r
+}
+
+// IKE policy (ID)
+func (r ApiVpnIpsecProfilesListRequest) IkePolicyId(ikePolicyId []int32) ApiVpnIpsecProfilesListRequest {
+ r.ikePolicyId = &ikePolicyId
+ return r
+}
+
+// IKE policy (ID)
+func (r ApiVpnIpsecProfilesListRequest) IkePolicyIdN(ikePolicyIdN []int32) ApiVpnIpsecProfilesListRequest {
+ r.ikePolicyIdN = &ikePolicyIdN
+ return r
+}
+
+// IPSec policy (name)
+func (r ApiVpnIpsecProfilesListRequest) IpsecPolicy(ipsecPolicy []string) ApiVpnIpsecProfilesListRequest {
+ r.ipsecPolicy = &ipsecPolicy
+ return r
+}
+
+// IPSec policy (name)
+func (r ApiVpnIpsecProfilesListRequest) IpsecPolicyN(ipsecPolicyN []string) ApiVpnIpsecProfilesListRequest {
+ r.ipsecPolicyN = &ipsecPolicyN
+ return r
+}
+
+// IPSec policy (ID)
+func (r ApiVpnIpsecProfilesListRequest) IpsecPolicyId(ipsecPolicyId []int32) ApiVpnIpsecProfilesListRequest {
+ r.ipsecPolicyId = &ipsecPolicyId
+ return r
+}
+
+// IPSec policy (ID)
+func (r ApiVpnIpsecProfilesListRequest) IpsecPolicyIdN(ipsecPolicyIdN []int32) ApiVpnIpsecProfilesListRequest {
+ r.ipsecPolicyIdN = &ipsecPolicyIdN
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiVpnIpsecProfilesListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiVpnIpsecProfilesListRequest) Limit(limit int32) ApiVpnIpsecProfilesListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) Mode(mode []string) ApiVpnIpsecProfilesListRequest {
+ r.mode = &mode
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) ModeN(modeN []string) ApiVpnIpsecProfilesListRequest {
+ r.modeN = &modeN
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnIpsecProfilesListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) Name(name []string) ApiVpnIpsecProfilesListRequest {
+ r.name = &name
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) NameEmpty(nameEmpty bool) ApiVpnIpsecProfilesListRequest {
+ r.nameEmpty = &nameEmpty
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) NameIc(nameIc []string) ApiVpnIpsecProfilesListRequest {
+ r.nameIc = &nameIc
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) NameIe(nameIe []string) ApiVpnIpsecProfilesListRequest {
+ r.nameIe = &nameIe
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) NameIew(nameIew []string) ApiVpnIpsecProfilesListRequest {
+ r.nameIew = &nameIew
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) NameIsw(nameIsw []string) ApiVpnIpsecProfilesListRequest {
+ r.nameIsw = &nameIsw
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) NameN(nameN []string) ApiVpnIpsecProfilesListRequest {
+ r.nameN = &nameN
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) NameNic(nameNic []string) ApiVpnIpsecProfilesListRequest {
+ r.nameNic = &nameNic
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) NameNie(nameNie []string) ApiVpnIpsecProfilesListRequest {
+ r.nameNie = &nameNie
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) NameNiew(nameNiew []string) ApiVpnIpsecProfilesListRequest {
+ r.nameNiew = &nameNiew
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) NameNisw(nameNisw []string) ApiVpnIpsecProfilesListRequest {
+ r.nameNisw = &nameNisw
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiVpnIpsecProfilesListRequest) Offset(offset int32) ApiVpnIpsecProfilesListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiVpnIpsecProfilesListRequest) Ordering(ordering string) ApiVpnIpsecProfilesListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Search
+func (r ApiVpnIpsecProfilesListRequest) Q(q string) ApiVpnIpsecProfilesListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) Tag(tag []string) ApiVpnIpsecProfilesListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) TagN(tagN []string) ApiVpnIpsecProfilesListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIpsecProfilesListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) Execute() (*PaginatedIPSecProfileList, *http.Response, error) {
+ return r.ApiService.VpnIpsecProfilesListExecute(r)
+}
+
+/*
+VpnIpsecProfilesList Method for VpnIpsecProfilesList
+
+Get a list of IPSec profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesListRequest
+*/
+func (a *VpnAPIService) VpnIpsecProfilesList(ctx context.Context) ApiVpnIpsecProfilesListRequest {
+ return ApiVpnIpsecProfilesListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedIPSecProfileList
+func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListRequest) (*PaginatedIPSecProfileList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedIPSecProfileList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-profiles/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.created != nil {
+ t := *r.created
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
+ }
+ }
+ if r.createdEmpty != nil {
+ t := *r.createdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
+ }
+ }
+ if r.createdGt != nil {
+ t := *r.createdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
+ }
+ }
+ if r.createdGte != nil {
+ t := *r.createdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
+ }
+ }
+ if r.createdLt != nil {
+ t := *r.createdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
+ }
+ }
+ if r.createdLte != nil {
+ t := *r.createdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
+ }
+ }
+ if r.createdN != nil {
+ t := *r.createdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
+ }
+ }
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
+ }
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
+ }
+ }
+ if r.ikePolicy != nil {
+ t := *r.ikePolicy
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy", t, "multi")
+ }
+ }
+ if r.ikePolicyN != nil {
+ t := *r.ikePolicyN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy__n", t, "multi")
+ }
+ }
+ if r.ikePolicyId != nil {
+ t := *r.ikePolicyId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id", t, "multi")
+ }
+ }
+ if r.ikePolicyIdN != nil {
+ t := *r.ikePolicyIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_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 {
+ 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.mode != nil {
+ t := *r.mode
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode", t, "multi")
+ }
+ }
+ if r.modeN != nil {
+ t := *r.modeN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", t, "multi")
+ }
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
+ if r.name != nil {
+ t := *r.name
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi")
+ }
+ }
+ if r.nameEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "")
+ }
+ if r.nameIc != nil {
+ t := *r.nameIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi")
+ }
+ }
+ if r.nameIe != nil {
+ t := *r.nameIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi")
+ }
+ }
+ if r.nameIew != nil {
+ t := *r.nameIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi")
+ }
+ }
+ if r.nameIsw != nil {
+ t := *r.nameIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi")
+ }
+ }
+ if r.nameN != nil {
+ t := *r.nameN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi")
+ }
+ }
+ if r.nameNic != nil {
+ t := *r.nameNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi")
+ }
+ }
+ if r.nameNie != nil {
+ t := *r.nameNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi")
+ }
+ }
+ if r.nameNiew != nil {
+ t := *r.nameNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi")
+ }
+ }
+ if r.nameNisw != nil {
+ t := *r.nameNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi")
+ }
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ }
+ if r.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
+ }
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiVpnIpsecProfilesPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ patchedWritableIPSecProfileRequest *PatchedWritableIPSecProfileRequest
+}
+
+func (r ApiVpnIpsecProfilesPartialUpdateRequest) PatchedWritableIPSecProfileRequest(patchedWritableIPSecProfileRequest PatchedWritableIPSecProfileRequest) ApiVpnIpsecProfilesPartialUpdateRequest {
+ r.patchedWritableIPSecProfileRequest = &patchedWritableIPSecProfileRequest
+ return r
+}
+
+func (r ApiVpnIpsecProfilesPartialUpdateRequest) Execute() (*IPSecProfile, *http.Response, error) {
+ return r.ApiService.VpnIpsecProfilesPartialUpdateExecute(r)
+}
+
+/*
+VpnIpsecProfilesPartialUpdate Method for VpnIpsecProfilesPartialUpdate
+
+Patch a IPSec profile object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec profile.
+ @return ApiVpnIpsecProfilesPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnIpsecProfilesPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecProfilesPartialUpdateRequest {
+ return ApiVpnIpsecProfilesPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IPSecProfile
+func (a *VpnAPIService) VpnIpsecProfilesPartialUpdateExecute(r ApiVpnIpsecProfilesPartialUpdateRequest) (*IPSecProfile, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProfile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-profiles/{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.patchedWritableIPSecProfileRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecProfilesRetrieveRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnIpsecProfilesRetrieveRequest) Execute() (*IPSecProfile, *http.Response, error) {
+ return r.ApiService.VpnIpsecProfilesRetrieveExecute(r)
+}
+
+/*
+VpnIpsecProfilesRetrieve Method for VpnIpsecProfilesRetrieve
+
+Get a IPSec profile object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec profile.
+ @return ApiVpnIpsecProfilesRetrieveRequest
+*/
+func (a *VpnAPIService) VpnIpsecProfilesRetrieve(ctx context.Context, id int32) ApiVpnIpsecProfilesRetrieveRequest {
+ return ApiVpnIpsecProfilesRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IPSecProfile
+func (a *VpnAPIService) VpnIpsecProfilesRetrieveExecute(r ApiVpnIpsecProfilesRetrieveRequest) (*IPSecProfile, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProfile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-profiles/{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 ApiVpnIpsecProfilesUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ writableIPSecProfileRequest *WritableIPSecProfileRequest
+}
+
+func (r ApiVpnIpsecProfilesUpdateRequest) WritableIPSecProfileRequest(writableIPSecProfileRequest WritableIPSecProfileRequest) ApiVpnIpsecProfilesUpdateRequest {
+ r.writableIPSecProfileRequest = &writableIPSecProfileRequest
+ return r
+}
+
+func (r ApiVpnIpsecProfilesUpdateRequest) Execute() (*IPSecProfile, *http.Response, error) {
+ return r.ApiService.VpnIpsecProfilesUpdateExecute(r)
+}
+
+/*
+VpnIpsecProfilesUpdate Method for VpnIpsecProfilesUpdate
+
+Put a IPSec profile object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec profile.
+ @return ApiVpnIpsecProfilesUpdateRequest
+*/
+func (a *VpnAPIService) VpnIpsecProfilesUpdate(ctx context.Context, id int32) ApiVpnIpsecProfilesUpdateRequest {
+ return ApiVpnIpsecProfilesUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IPSecProfile
+func (a *VpnAPIService) VpnIpsecProfilesUpdateExecute(r ApiVpnIpsecProfilesUpdateRequest) (*IPSecProfile, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProfile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-profiles/{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.writableIPSecProfileRequest == nil {
+ return localVarReturnValue, nil, reportError("writableIPSecProfileRequest 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.writableIPSecProfileRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecProposalsBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iPSecProposalRequest *[]IPSecProposalRequest
+}
+
+func (r ApiVpnIpsecProposalsBulkDestroyRequest) IPSecProposalRequest(iPSecProposalRequest []IPSecProposalRequest) ApiVpnIpsecProposalsBulkDestroyRequest {
+ r.iPSecProposalRequest = &iPSecProposalRequest
+ return r
+}
+
+func (r ApiVpnIpsecProposalsBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnIpsecProposalsBulkDestroyExecute(r)
+}
+
+/*
+VpnIpsecProposalsBulkDestroy Method for VpnIpsecProposalsBulkDestroy
+
+Delete a list of IPSec proposal objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsBulkDestroyRequest
+*/
+func (a *VpnAPIService) VpnIpsecProposalsBulkDestroy(ctx context.Context) ApiVpnIpsecProposalsBulkDestroyRequest {
+ return ApiVpnIpsecProposalsBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnIpsecProposalsBulkDestroyExecute(r ApiVpnIpsecProposalsBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-proposals/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iPSecProposalRequest == nil {
+ return nil, reportError("iPSecProposalRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.iPSecProposalRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecProposalsBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iPSecProposalRequest *[]IPSecProposalRequest
+}
+
+func (r ApiVpnIpsecProposalsBulkPartialUpdateRequest) IPSecProposalRequest(iPSecProposalRequest []IPSecProposalRequest) ApiVpnIpsecProposalsBulkPartialUpdateRequest {
+ r.iPSecProposalRequest = &iPSecProposalRequest
+ return r
+}
+
+func (r ApiVpnIpsecProposalsBulkPartialUpdateRequest) Execute() ([]IPSecProposal, *http.Response, error) {
+ return r.ApiService.VpnIpsecProposalsBulkPartialUpdateExecute(r)
+}
+
+/*
+VpnIpsecProposalsBulkPartialUpdate Method for VpnIpsecProposalsBulkPartialUpdate
+
+Patch a list of IPSec proposal objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsBulkPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnIpsecProposalsBulkPartialUpdate(ctx context.Context) ApiVpnIpsecProposalsBulkPartialUpdateRequest {
+ return ApiVpnIpsecProposalsBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []IPSecProposal
+func (a *VpnAPIService) VpnIpsecProposalsBulkPartialUpdateExecute(r ApiVpnIpsecProposalsBulkPartialUpdateRequest) ([]IPSecProposal, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPSecProposal
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-proposals/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iPSecProposalRequest == nil {
+ return localVarReturnValue, nil, reportError("iPSecProposalRequest 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.iPSecProposalRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecProposalsBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ iPSecProposalRequest *[]IPSecProposalRequest
+}
+
+func (r ApiVpnIpsecProposalsBulkUpdateRequest) IPSecProposalRequest(iPSecProposalRequest []IPSecProposalRequest) ApiVpnIpsecProposalsBulkUpdateRequest {
+ r.iPSecProposalRequest = &iPSecProposalRequest
+ return r
+}
+
+func (r ApiVpnIpsecProposalsBulkUpdateRequest) Execute() ([]IPSecProposal, *http.Response, error) {
+ return r.ApiService.VpnIpsecProposalsBulkUpdateExecute(r)
+}
+
+/*
+VpnIpsecProposalsBulkUpdate Method for VpnIpsecProposalsBulkUpdate
+
+Put a list of IPSec proposal objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsBulkUpdateRequest
+*/
+func (a *VpnAPIService) VpnIpsecProposalsBulkUpdate(ctx context.Context) ApiVpnIpsecProposalsBulkUpdateRequest {
+ return ApiVpnIpsecProposalsBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []IPSecProposal
+func (a *VpnAPIService) VpnIpsecProposalsBulkUpdateExecute(r ApiVpnIpsecProposalsBulkUpdateRequest) ([]IPSecProposal, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPSecProposal
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-proposals/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.iPSecProposalRequest == nil {
+ return localVarReturnValue, nil, reportError("iPSecProposalRequest 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.iPSecProposalRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecProposalsCreateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ writableIPSecProposalRequest *WritableIPSecProposalRequest
+}
+
+func (r ApiVpnIpsecProposalsCreateRequest) WritableIPSecProposalRequest(writableIPSecProposalRequest WritableIPSecProposalRequest) ApiVpnIpsecProposalsCreateRequest {
+ r.writableIPSecProposalRequest = &writableIPSecProposalRequest
+ return r
+}
+
+func (r ApiVpnIpsecProposalsCreateRequest) Execute() (*IPSecProposal, *http.Response, error) {
+ return r.ApiService.VpnIpsecProposalsCreateExecute(r)
+}
+
+/*
+VpnIpsecProposalsCreate Method for VpnIpsecProposalsCreate
+
+Post a list of IPSec proposal objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsCreateRequest
+*/
+func (a *VpnAPIService) VpnIpsecProposalsCreate(ctx context.Context) ApiVpnIpsecProposalsCreateRequest {
+ return ApiVpnIpsecProposalsCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return IPSecProposal
+func (a *VpnAPIService) VpnIpsecProposalsCreateExecute(r ApiVpnIpsecProposalsCreateRequest) (*IPSecProposal, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProposal
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-proposals/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableIPSecProposalRequest == nil {
+ return localVarReturnValue, nil, reportError("writableIPSecProposalRequest 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.writableIPSecProposalRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecProposalsDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnIpsecProposalsDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnIpsecProposalsDestroyExecute(r)
+}
+
+/*
+VpnIpsecProposalsDestroy Method for VpnIpsecProposalsDestroy
+
+Delete a IPSec proposal object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec proposal.
+ @return ApiVpnIpsecProposalsDestroyRequest
+*/
+func (a *VpnAPIService) VpnIpsecProposalsDestroy(ctx context.Context, id int32) ApiVpnIpsecProposalsDestroyRequest {
+ return ApiVpnIpsecProposalsDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnIpsecProposalsDestroyExecute(r ApiVpnIpsecProposalsDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-proposals/{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 ApiVpnIpsecProposalsListRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ authenticationAlgorithm *[]string
+ authenticationAlgorithmN *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ encryptionAlgorithm *[]string
+ encryptionAlgorithmN *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ saLifetimeData *[]int32
+ saLifetimeDataEmpty *bool
+ saLifetimeDataGt *[]int32
+ saLifetimeDataGte *[]int32
+ saLifetimeDataLt *[]int32
+ saLifetimeDataLte *[]int32
+ saLifetimeDataN *[]int32
+ saLifetimeSeconds *[]int32
+ saLifetimeSecondsEmpty *bool
+ saLifetimeSecondsGt *[]int32
+ saLifetimeSecondsGte *[]int32
+ saLifetimeSecondsLt *[]int32
+ saLifetimeSecondsLte *[]int32
+ saLifetimeSecondsN *[]int32
+ tag *[]string
+ tagN *[]string
+ updatedByRequest *string
+}
+
+func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithm(authenticationAlgorithm []string) ApiVpnIpsecProposalsListRequest {
+ r.authenticationAlgorithm = &authenticationAlgorithm
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmN(authenticationAlgorithmN []string) ApiVpnIpsecProposalsListRequest {
+ r.authenticationAlgorithmN = &authenticationAlgorithmN
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) Created(created []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) CreatedGt(createdGt []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) CreatedGte(createdGte []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) CreatedLt(createdLt []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) CreatedLte(createdLte []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) CreatedN(createdN []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) CreatedByRequest(createdByRequest string) ApiVpnIpsecProposalsListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) Description(description []string) ApiVpnIpsecProposalsListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiVpnIpsecProposalsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) DescriptionIc(descriptionIc []string) ApiVpnIpsecProposalsListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) DescriptionIe(descriptionIe []string) ApiVpnIpsecProposalsListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) DescriptionIew(descriptionIew []string) ApiVpnIpsecProposalsListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) DescriptionIsw(descriptionIsw []string) ApiVpnIpsecProposalsListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) DescriptionN(descriptionN []string) ApiVpnIpsecProposalsListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) DescriptionNic(descriptionNic []string) ApiVpnIpsecProposalsListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) DescriptionNie(descriptionNie []string) ApiVpnIpsecProposalsListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) DescriptionNiew(descriptionNiew []string) ApiVpnIpsecProposalsListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) DescriptionNisw(descriptionNisw []string) ApiVpnIpsecProposalsListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithm(encryptionAlgorithm []string) ApiVpnIpsecProposalsListRequest {
+ r.encryptionAlgorithm = &encryptionAlgorithm
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmN(encryptionAlgorithmN []string) ApiVpnIpsecProposalsListRequest {
+ r.encryptionAlgorithmN = &encryptionAlgorithmN
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) Id(id []int32) ApiVpnIpsecProposalsListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) IdEmpty(idEmpty bool) ApiVpnIpsecProposalsListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) IdGt(idGt []int32) ApiVpnIpsecProposalsListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) IdGte(idGte []int32) ApiVpnIpsecProposalsListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) IdLt(idLt []int32) ApiVpnIpsecProposalsListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) IdLte(idLte []int32) ApiVpnIpsecProposalsListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) IdN(idN []int32) ApiVpnIpsecProposalsListRequest {
+ r.idN = &idN
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiVpnIpsecProposalsListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiVpnIpsecProposalsListRequest) Limit(limit int32) ApiVpnIpsecProposalsListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnIpsecProposalsListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) Name(name []string) ApiVpnIpsecProposalsListRequest {
+ r.name = &name
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) NameEmpty(nameEmpty bool) ApiVpnIpsecProposalsListRequest {
+ r.nameEmpty = &nameEmpty
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) NameIc(nameIc []string) ApiVpnIpsecProposalsListRequest {
+ r.nameIc = &nameIc
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) NameIe(nameIe []string) ApiVpnIpsecProposalsListRequest {
+ r.nameIe = &nameIe
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) NameIew(nameIew []string) ApiVpnIpsecProposalsListRequest {
+ r.nameIew = &nameIew
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) NameIsw(nameIsw []string) ApiVpnIpsecProposalsListRequest {
+ r.nameIsw = &nameIsw
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) NameN(nameN []string) ApiVpnIpsecProposalsListRequest {
+ r.nameN = &nameN
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) NameNic(nameNic []string) ApiVpnIpsecProposalsListRequest {
+ r.nameNic = &nameNic
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) NameNie(nameNie []string) ApiVpnIpsecProposalsListRequest {
+ r.nameNie = &nameNie
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) NameNiew(nameNiew []string) ApiVpnIpsecProposalsListRequest {
+ r.nameNiew = &nameNiew
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) NameNisw(nameNisw []string) ApiVpnIpsecProposalsListRequest {
+ r.nameNisw = &nameNisw
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiVpnIpsecProposalsListRequest) Offset(offset int32) ApiVpnIpsecProposalsListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiVpnIpsecProposalsListRequest) Ordering(ordering string) ApiVpnIpsecProposalsListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Search
+func (r ApiVpnIpsecProposalsListRequest) Q(q string) ApiVpnIpsecProposalsListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeData(saLifetimeData []int32) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeData = &saLifetimeData
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeDataEmpty(saLifetimeDataEmpty bool) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeDataEmpty = &saLifetimeDataEmpty
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeDataGt(saLifetimeDataGt []int32) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeDataGt = &saLifetimeDataGt
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeDataGte(saLifetimeDataGte []int32) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeDataGte = &saLifetimeDataGte
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeDataLt(saLifetimeDataLt []int32) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeDataLt = &saLifetimeDataLt
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeDataLte(saLifetimeDataLte []int32) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeDataLte = &saLifetimeDataLte
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeDataN(saLifetimeDataN []int32) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeDataN = &saLifetimeDataN
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeSeconds(saLifetimeSeconds []int32) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeSeconds = &saLifetimeSeconds
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeSecondsEmpty(saLifetimeSecondsEmpty bool) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeSecondsEmpty = &saLifetimeSecondsEmpty
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeSecondsGt(saLifetimeSecondsGt []int32) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeSecondsGt = &saLifetimeSecondsGt
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeSecondsGte(saLifetimeSecondsGte []int32) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeSecondsGte = &saLifetimeSecondsGte
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeSecondsLt(saLifetimeSecondsLt []int32) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeSecondsLt = &saLifetimeSecondsLt
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeSecondsLte(saLifetimeSecondsLte []int32) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeSecondsLte = &saLifetimeSecondsLte
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) SaLifetimeSecondsN(saLifetimeSecondsN []int32) ApiVpnIpsecProposalsListRequest {
+ r.saLifetimeSecondsN = &saLifetimeSecondsN
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) Tag(tag []string) ApiVpnIpsecProposalsListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) TagN(tagN []string) ApiVpnIpsecProposalsListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIpsecProposalsListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) Execute() (*PaginatedIPSecProposalList, *http.Response, error) {
+ return r.ApiService.VpnIpsecProposalsListExecute(r)
+}
+
+/*
+VpnIpsecProposalsList Method for VpnIpsecProposalsList
+
+Get a list of IPSec proposal objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsListRequest
+*/
+func (a *VpnAPIService) VpnIpsecProposalsList(ctx context.Context) ApiVpnIpsecProposalsListRequest {
+ return ApiVpnIpsecProposalsListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedIPSecProposalList
+func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListRequest) (*PaginatedIPSecProposalList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedIPSecProposalList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-proposals/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.authenticationAlgorithm != nil {
+ t := *r.authenticationAlgorithm
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", t, "multi")
+ }
+ }
+ if r.authenticationAlgorithmN != nil {
+ t := *r.authenticationAlgorithmN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", t, "multi")
+ }
+ }
+ if r.created != nil {
+ t := *r.created
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
+ }
+ }
+ if r.createdEmpty != nil {
+ t := *r.createdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
+ }
+ }
+ if r.createdGt != nil {
+ t := *r.createdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
+ }
+ }
+ if r.createdGte != nil {
+ t := *r.createdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
+ }
+ }
+ if r.createdLt != nil {
+ t := *r.createdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
+ }
+ }
+ if r.createdLte != nil {
+ t := *r.createdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
+ }
+ }
+ if r.createdN != nil {
+ t := *r.createdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
+ }
+ }
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
+ }
+ if r.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.encryptionAlgorithm != nil {
+ t := *r.encryptionAlgorithm
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", t, "multi")
+ }
+ }
+ if r.encryptionAlgorithmN != nil {
+ t := *r.encryptionAlgorithmN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", t, "multi")
+ }
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
+ }
+ }
+ if r.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.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.saLifetimeData != nil {
+ t := *r.saLifetimeData
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data", t, "multi")
+ }
+ }
+ if r.saLifetimeDataEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__empty", r.saLifetimeDataEmpty, "")
+ }
+ if r.saLifetimeDataGt != nil {
+ t := *r.saLifetimeDataGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__gt", t, "multi")
+ }
+ }
+ if r.saLifetimeDataGte != nil {
+ t := *r.saLifetimeDataGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__gte", t, "multi")
+ }
+ }
+ if r.saLifetimeDataLt != nil {
+ t := *r.saLifetimeDataLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__lt", t, "multi")
+ }
+ }
+ if r.saLifetimeDataLte != nil {
+ t := *r.saLifetimeDataLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__lte", t, "multi")
+ }
+ }
+ if r.saLifetimeDataN != nil {
+ t := *r.saLifetimeDataN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__n", t, "multi")
+ }
+ }
+ if r.saLifetimeSeconds != nil {
+ t := *r.saLifetimeSeconds
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds", t, "multi")
+ }
+ }
+ if r.saLifetimeSecondsEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__empty", r.saLifetimeSecondsEmpty, "")
+ }
+ if r.saLifetimeSecondsGt != nil {
+ t := *r.saLifetimeSecondsGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__gt", t, "multi")
+ }
+ }
+ if r.saLifetimeSecondsGte != nil {
+ t := *r.saLifetimeSecondsGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__gte", t, "multi")
+ }
+ }
+ if r.saLifetimeSecondsLt != nil {
+ t := *r.saLifetimeSecondsLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__lt", t, "multi")
+ }
+ }
+ if r.saLifetimeSecondsLte != nil {
+ t := *r.saLifetimeSecondsLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__lte", t, "multi")
+ }
+ }
+ if r.saLifetimeSecondsN != nil {
+ t := *r.saLifetimeSecondsN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__n", t, "multi")
+ }
+ }
+ if r.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
+ }
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ // 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 ApiVpnIpsecProposalsPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ patchedWritableIPSecProposalRequest *PatchedWritableIPSecProposalRequest
+}
+
+func (r ApiVpnIpsecProposalsPartialUpdateRequest) PatchedWritableIPSecProposalRequest(patchedWritableIPSecProposalRequest PatchedWritableIPSecProposalRequest) ApiVpnIpsecProposalsPartialUpdateRequest {
+ r.patchedWritableIPSecProposalRequest = &patchedWritableIPSecProposalRequest
+ return r
+}
+
+func (r ApiVpnIpsecProposalsPartialUpdateRequest) Execute() (*IPSecProposal, *http.Response, error) {
+ return r.ApiService.VpnIpsecProposalsPartialUpdateExecute(r)
+}
+
+/*
+VpnIpsecProposalsPartialUpdate Method for VpnIpsecProposalsPartialUpdate
+
+Patch a IPSec proposal object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec proposal.
+ @return ApiVpnIpsecProposalsPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnIpsecProposalsPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecProposalsPartialUpdateRequest {
+ return ApiVpnIpsecProposalsPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IPSecProposal
+func (a *VpnAPIService) VpnIpsecProposalsPartialUpdateExecute(r ApiVpnIpsecProposalsPartialUpdateRequest) (*IPSecProposal, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProposal
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-proposals/{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.patchedWritableIPSecProposalRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnIpsecProposalsRetrieveRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnIpsecProposalsRetrieveRequest) Execute() (*IPSecProposal, *http.Response, error) {
+ return r.ApiService.VpnIpsecProposalsRetrieveExecute(r)
+}
+
+/*
+VpnIpsecProposalsRetrieve Method for VpnIpsecProposalsRetrieve
+
+Get a IPSec proposal object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec proposal.
+ @return ApiVpnIpsecProposalsRetrieveRequest
+*/
+func (a *VpnAPIService) VpnIpsecProposalsRetrieve(ctx context.Context, id int32) ApiVpnIpsecProposalsRetrieveRequest {
+ return ApiVpnIpsecProposalsRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IPSecProposal
+func (a *VpnAPIService) VpnIpsecProposalsRetrieveExecute(r ApiVpnIpsecProposalsRetrieveRequest) (*IPSecProposal, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProposal
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-proposals/{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 ApiVpnIpsecProposalsUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ writableIPSecProposalRequest *WritableIPSecProposalRequest
+}
+
+func (r ApiVpnIpsecProposalsUpdateRequest) WritableIPSecProposalRequest(writableIPSecProposalRequest WritableIPSecProposalRequest) ApiVpnIpsecProposalsUpdateRequest {
+ r.writableIPSecProposalRequest = &writableIPSecProposalRequest
+ return r
+}
+
+func (r ApiVpnIpsecProposalsUpdateRequest) Execute() (*IPSecProposal, *http.Response, error) {
+ return r.ApiService.VpnIpsecProposalsUpdateExecute(r)
+}
+
+/*
+VpnIpsecProposalsUpdate Method for VpnIpsecProposalsUpdate
+
+Put a IPSec proposal object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec proposal.
+ @return ApiVpnIpsecProposalsUpdateRequest
+*/
+func (a *VpnAPIService) VpnIpsecProposalsUpdate(ctx context.Context, id int32) ApiVpnIpsecProposalsUpdateRequest {
+ return ApiVpnIpsecProposalsUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return IPSecProposal
+func (a *VpnAPIService) VpnIpsecProposalsUpdateExecute(r ApiVpnIpsecProposalsUpdateRequest) (*IPSecProposal, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProposal
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/ipsec-proposals/{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.writableIPSecProposalRequest == nil {
+ return localVarReturnValue, nil, reportError("writableIPSecProposalRequest 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.writableIPSecProposalRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnL2vpnTerminationsBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ l2VPNTerminationRequest *[]L2VPNTerminationRequest
+}
+
+func (r ApiVpnL2vpnTerminationsBulkDestroyRequest) L2VPNTerminationRequest(l2VPNTerminationRequest []L2VPNTerminationRequest) ApiVpnL2vpnTerminationsBulkDestroyRequest {
+ r.l2VPNTerminationRequest = &l2VPNTerminationRequest
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnL2vpnTerminationsBulkDestroyExecute(r)
+}
+
+/*
+VpnL2vpnTerminationsBulkDestroy Method for VpnL2vpnTerminationsBulkDestroy
+
+Delete a list of L2VPN termination objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsBulkDestroyRequest
+*/
+func (a *VpnAPIService) VpnL2vpnTerminationsBulkDestroy(ctx context.Context) ApiVpnL2vpnTerminationsBulkDestroyRequest {
+ return ApiVpnL2vpnTerminationsBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnL2vpnTerminationsBulkDestroyExecute(r ApiVpnL2vpnTerminationsBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpn-terminations/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.l2VPNTerminationRequest == nil {
+ return nil, reportError("l2VPNTerminationRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.l2VPNTerminationRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnL2vpnTerminationsBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ l2VPNTerminationRequest *[]L2VPNTerminationRequest
+}
+
+func (r ApiVpnL2vpnTerminationsBulkPartialUpdateRequest) L2VPNTerminationRequest(l2VPNTerminationRequest []L2VPNTerminationRequest) ApiVpnL2vpnTerminationsBulkPartialUpdateRequest {
+ r.l2VPNTerminationRequest = &l2VPNTerminationRequest
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsBulkPartialUpdateRequest) Execute() ([]L2VPNTermination, *http.Response, error) {
+ return r.ApiService.VpnL2vpnTerminationsBulkPartialUpdateExecute(r)
+}
+
+/*
+VpnL2vpnTerminationsBulkPartialUpdate Method for VpnL2vpnTerminationsBulkPartialUpdate
+
+Patch a list of L2VPN termination objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsBulkPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnL2vpnTerminationsBulkPartialUpdate(ctx context.Context) ApiVpnL2vpnTerminationsBulkPartialUpdateRequest {
+ return ApiVpnL2vpnTerminationsBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []L2VPNTermination
+func (a *VpnAPIService) VpnL2vpnTerminationsBulkPartialUpdateExecute(r ApiVpnL2vpnTerminationsBulkPartialUpdateRequest) ([]L2VPNTermination, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []L2VPNTermination
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpn-terminations/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.l2VPNTerminationRequest == nil {
+ return localVarReturnValue, nil, reportError("l2VPNTerminationRequest 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.l2VPNTerminationRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnL2vpnTerminationsBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ l2VPNTerminationRequest *[]L2VPNTerminationRequest
+}
+
+func (r ApiVpnL2vpnTerminationsBulkUpdateRequest) L2VPNTerminationRequest(l2VPNTerminationRequest []L2VPNTerminationRequest) ApiVpnL2vpnTerminationsBulkUpdateRequest {
+ r.l2VPNTerminationRequest = &l2VPNTerminationRequest
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsBulkUpdateRequest) Execute() ([]L2VPNTermination, *http.Response, error) {
+ return r.ApiService.VpnL2vpnTerminationsBulkUpdateExecute(r)
+}
+
+/*
+VpnL2vpnTerminationsBulkUpdate Method for VpnL2vpnTerminationsBulkUpdate
+
+Put a list of L2VPN termination objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsBulkUpdateRequest
+*/
+func (a *VpnAPIService) VpnL2vpnTerminationsBulkUpdate(ctx context.Context) ApiVpnL2vpnTerminationsBulkUpdateRequest {
+ return ApiVpnL2vpnTerminationsBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []L2VPNTermination
+func (a *VpnAPIService) VpnL2vpnTerminationsBulkUpdateExecute(r ApiVpnL2vpnTerminationsBulkUpdateRequest) ([]L2VPNTermination, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []L2VPNTermination
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpn-terminations/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.l2VPNTerminationRequest == nil {
+ return localVarReturnValue, nil, reportError("l2VPNTerminationRequest 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.l2VPNTerminationRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnL2vpnTerminationsCreateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ writableL2VPNTerminationRequest *WritableL2VPNTerminationRequest
+}
+
+func (r ApiVpnL2vpnTerminationsCreateRequest) WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest WritableL2VPNTerminationRequest) ApiVpnL2vpnTerminationsCreateRequest {
+ r.writableL2VPNTerminationRequest = &writableL2VPNTerminationRequest
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsCreateRequest) Execute() (*L2VPNTermination, *http.Response, error) {
+ return r.ApiService.VpnL2vpnTerminationsCreateExecute(r)
+}
+
+/*
+VpnL2vpnTerminationsCreate Method for VpnL2vpnTerminationsCreate
+
+Post a list of L2VPN termination objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsCreateRequest
+*/
+func (a *VpnAPIService) VpnL2vpnTerminationsCreate(ctx context.Context) ApiVpnL2vpnTerminationsCreateRequest {
+ return ApiVpnL2vpnTerminationsCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return L2VPNTermination
+func (a *VpnAPIService) VpnL2vpnTerminationsCreateExecute(r ApiVpnL2vpnTerminationsCreateRequest) (*L2VPNTermination, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPNTermination
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpn-terminations/"
+
+ 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")
+ }
+
+ // 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.writableL2VPNTerminationRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnL2vpnTerminationsDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnL2vpnTerminationsDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnL2vpnTerminationsDestroyExecute(r)
+}
+
+/*
+VpnL2vpnTerminationsDestroy Method for VpnL2vpnTerminationsDestroy
+
+Delete a L2VPN termination object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN termination.
+ @return ApiVpnL2vpnTerminationsDestroyRequest
+*/
+func (a *VpnAPIService) VpnL2vpnTerminationsDestroy(ctx context.Context, id int32) ApiVpnL2vpnTerminationsDestroyRequest {
+ return ApiVpnL2vpnTerminationsDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnL2vpnTerminationsDestroyExecute(r ApiVpnL2vpnTerminationsDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpn-terminations/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarHTTPResponse, newErr
+ }
+
+ return localVarHTTPResponse, nil
+}
+
+type ApiVpnL2vpnTerminationsListRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ assignedObjectType *string
+ assignedObjectTypeN *string
+ assignedObjectTypeId *int32
+ assignedObjectTypeIdN *int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]int32
+ deviceIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interface_ *[]string
+ interfaceN *[]string
+ interfaceId *[]int32
+ interfaceIdN *[]int32
+ l2vpn *[]string
+ l2vpnN *[]string
+ l2vpnId *[]int32
+ l2vpnIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ offset *int32
+ ordering *string
+ q *string
+ region *[]string
+ regionId *[]int32
+ site *[]string
+ siteId *[]int32
+ tag *[]string
+ tagN *[]string
+ updatedByRequest *string
+ virtualMachine *[]string
+ virtualMachineN *[]string
+ virtualMachineId *[]int32
+ virtualMachineIdN *[]int32
+ vlan *[]string
+ vlanN *[]string
+ vlanId *[]int32
+ vlanIdN *[]int32
+ vlanVid *int32
+ vlanVidEmpty *int32
+ vlanVidGt *int32
+ vlanVidGte *int32
+ vlanVidLt *int32
+ vlanVidLte *int32
+ vlanVidN *int32
+ vminterface *[]string
+ vminterfaceN *[]string
+ vminterfaceId *[]int32
+ vminterfaceIdN *[]int32
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectType(assignedObjectType string) ApiVpnL2vpnTerminationsListRequest {
+ r.assignedObjectType = &assignedObjectType
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectTypeN(assignedObjectTypeN string) ApiVpnL2vpnTerminationsListRequest {
+ r.assignedObjectTypeN = &assignedObjectTypeN
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectTypeId(assignedObjectTypeId int32) ApiVpnL2vpnTerminationsListRequest {
+ r.assignedObjectTypeId = &assignedObjectTypeId
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectTypeIdN(assignedObjectTypeIdN int32) ApiVpnL2vpnTerminationsListRequest {
+ r.assignedObjectTypeIdN = &assignedObjectTypeIdN
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) Created(created []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) CreatedGt(createdGt []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) CreatedGte(createdGte []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) CreatedLt(createdLt []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) CreatedLte(createdLte []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) CreatedN(createdN []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) CreatedByRequest(createdByRequest string) ApiVpnL2vpnTerminationsListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+// Device (name)
+func (r ApiVpnL2vpnTerminationsListRequest) Device(device []*string) ApiVpnL2vpnTerminationsListRequest {
+ r.device = &device
+ return r
+}
+
+// Device (name)
+func (r ApiVpnL2vpnTerminationsListRequest) DeviceN(deviceN []*string) ApiVpnL2vpnTerminationsListRequest {
+ r.deviceN = &deviceN
+ return r
+}
+
+// Device (ID)
+func (r ApiVpnL2vpnTerminationsListRequest) DeviceId(deviceId []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.deviceId = &deviceId
+ return r
+}
+
+// Device (ID)
+func (r ApiVpnL2vpnTerminationsListRequest) DeviceIdN(deviceIdN []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.deviceIdN = &deviceIdN
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) Id(id []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) IdEmpty(idEmpty bool) ApiVpnL2vpnTerminationsListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) IdGt(idGt []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) IdGte(idGte []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) IdLt(idLt []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) IdLte(idLte []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) IdN(idN []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.idN = &idN
+ return r
+}
+
+// Interface (name)
+func (r ApiVpnL2vpnTerminationsListRequest) Interface_(interface_ []string) ApiVpnL2vpnTerminationsListRequest {
+ r.interface_ = &interface_
+ return r
+}
+
+// Interface (name)
+func (r ApiVpnL2vpnTerminationsListRequest) InterfaceN(interfaceN []string) ApiVpnL2vpnTerminationsListRequest {
+ r.interfaceN = &interfaceN
+ return r
+}
+
+// Interface (ID)
+func (r ApiVpnL2vpnTerminationsListRequest) InterfaceId(interfaceId []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.interfaceId = &interfaceId
+ return r
+}
+
+// Interface (ID)
+func (r ApiVpnL2vpnTerminationsListRequest) InterfaceIdN(interfaceIdN []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.interfaceIdN = &interfaceIdN
+ return r
+}
+
+// L2VPN (slug)
+func (r ApiVpnL2vpnTerminationsListRequest) L2vpn(l2vpn []string) ApiVpnL2vpnTerminationsListRequest {
+ r.l2vpn = &l2vpn
+ return r
+}
+
+// L2VPN (slug)
+func (r ApiVpnL2vpnTerminationsListRequest) L2vpnN(l2vpnN []string) ApiVpnL2vpnTerminationsListRequest {
+ r.l2vpnN = &l2vpnN
+ return r
+}
+
+// L2VPN (ID)
+func (r ApiVpnL2vpnTerminationsListRequest) L2vpnId(l2vpnId []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.l2vpnId = &l2vpnId
+ return r
+}
+
+// L2VPN (ID)
+func (r ApiVpnL2vpnTerminationsListRequest) L2vpnIdN(l2vpnIdN []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.l2vpnIdN = &l2vpnIdN
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiVpnL2vpnTerminationsListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiVpnL2vpnTerminationsListRequest) Limit(limit int32) ApiVpnL2vpnTerminationsListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnL2vpnTerminationsListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiVpnL2vpnTerminationsListRequest) Offset(offset int32) ApiVpnL2vpnTerminationsListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiVpnL2vpnTerminationsListRequest) Ordering(ordering string) ApiVpnL2vpnTerminationsListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Search
+func (r ApiVpnL2vpnTerminationsListRequest) Q(q string) ApiVpnL2vpnTerminationsListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) Region(region []string) ApiVpnL2vpnTerminationsListRequest {
+ r.region = ®ion
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) RegionId(regionId []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.regionId = ®ionId
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) Site(site []string) ApiVpnL2vpnTerminationsListRequest {
+ r.site = &site
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) SiteId(siteId []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.siteId = &siteId
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) Tag(tag []string) ApiVpnL2vpnTerminationsListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) TagN(tagN []string) ApiVpnL2vpnTerminationsListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnL2vpnTerminationsListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+// Virtual machine (name)
+func (r ApiVpnL2vpnTerminationsListRequest) VirtualMachine(virtualMachine []string) ApiVpnL2vpnTerminationsListRequest {
+ r.virtualMachine = &virtualMachine
+ return r
+}
+
+// Virtual machine (name)
+func (r ApiVpnL2vpnTerminationsListRequest) VirtualMachineN(virtualMachineN []string) ApiVpnL2vpnTerminationsListRequest {
+ r.virtualMachineN = &virtualMachineN
+ return r
+}
+
+// Virtual machine (ID)
+func (r ApiVpnL2vpnTerminationsListRequest) VirtualMachineId(virtualMachineId []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.virtualMachineId = &virtualMachineId
+ return r
+}
+
+// Virtual machine (ID)
+func (r ApiVpnL2vpnTerminationsListRequest) VirtualMachineIdN(virtualMachineIdN []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.virtualMachineIdN = &virtualMachineIdN
+ return r
+}
+
+// VLAN (name)
+func (r ApiVpnL2vpnTerminationsListRequest) Vlan(vlan []string) ApiVpnL2vpnTerminationsListRequest {
+ r.vlan = &vlan
+ return r
+}
+
+// VLAN (name)
+func (r ApiVpnL2vpnTerminationsListRequest) VlanN(vlanN []string) ApiVpnL2vpnTerminationsListRequest {
+ r.vlanN = &vlanN
+ return r
+}
+
+// VLAN (ID)
+func (r ApiVpnL2vpnTerminationsListRequest) VlanId(vlanId []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.vlanId = &vlanId
+ return r
+}
+
+// VLAN (ID)
+func (r ApiVpnL2vpnTerminationsListRequest) VlanIdN(vlanIdN []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.vlanIdN = &vlanIdN
+ return r
+}
+
+// VLAN number (1-4094)
+func (r ApiVpnL2vpnTerminationsListRequest) VlanVid(vlanVid int32) ApiVpnL2vpnTerminationsListRequest {
+ r.vlanVid = &vlanVid
+ return r
+}
+
+// VLAN number (1-4094)
+func (r ApiVpnL2vpnTerminationsListRequest) VlanVidEmpty(vlanVidEmpty int32) ApiVpnL2vpnTerminationsListRequest {
+ r.vlanVidEmpty = &vlanVidEmpty
+ return r
+}
+
+// VLAN number (1-4094)
+func (r ApiVpnL2vpnTerminationsListRequest) VlanVidGt(vlanVidGt int32) ApiVpnL2vpnTerminationsListRequest {
+ r.vlanVidGt = &vlanVidGt
+ return r
+}
+
+// VLAN number (1-4094)
+func (r ApiVpnL2vpnTerminationsListRequest) VlanVidGte(vlanVidGte int32) ApiVpnL2vpnTerminationsListRequest {
+ r.vlanVidGte = &vlanVidGte
+ return r
+}
+
+// VLAN number (1-4094)
+func (r ApiVpnL2vpnTerminationsListRequest) VlanVidLt(vlanVidLt int32) ApiVpnL2vpnTerminationsListRequest {
+ r.vlanVidLt = &vlanVidLt
+ return r
+}
+
+// VLAN number (1-4094)
+func (r ApiVpnL2vpnTerminationsListRequest) VlanVidLte(vlanVidLte int32) ApiVpnL2vpnTerminationsListRequest {
+ r.vlanVidLte = &vlanVidLte
+ return r
+}
+
+// VLAN number (1-4094)
+func (r ApiVpnL2vpnTerminationsListRequest) VlanVidN(vlanVidN int32) ApiVpnL2vpnTerminationsListRequest {
+ r.vlanVidN = &vlanVidN
+ return r
+}
+
+// VM interface (name)
+func (r ApiVpnL2vpnTerminationsListRequest) Vminterface(vminterface []string) ApiVpnL2vpnTerminationsListRequest {
+ r.vminterface = &vminterface
+ return r
+}
+
+// VM interface (name)
+func (r ApiVpnL2vpnTerminationsListRequest) VminterfaceN(vminterfaceN []string) ApiVpnL2vpnTerminationsListRequest {
+ r.vminterfaceN = &vminterfaceN
+ return r
+}
+
+// VM Interface (ID)
+func (r ApiVpnL2vpnTerminationsListRequest) VminterfaceId(vminterfaceId []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.vminterfaceId = &vminterfaceId
+ return r
+}
+
+// VM Interface (ID)
+func (r ApiVpnL2vpnTerminationsListRequest) VminterfaceIdN(vminterfaceIdN []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.vminterfaceIdN = &vminterfaceIdN
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) Execute() (*PaginatedL2VPNTerminationList, *http.Response, error) {
+ return r.ApiService.VpnL2vpnTerminationsListExecute(r)
+}
+
+/*
+VpnL2vpnTerminationsList Method for VpnL2vpnTerminationsList
+
+Get a list of L2VPN termination objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsListRequest
+*/
+func (a *VpnAPIService) VpnL2vpnTerminationsList(ctx context.Context) ApiVpnL2vpnTerminationsListRequest {
+ return ApiVpnL2vpnTerminationsListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedL2VPNTerminationList
+func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTerminationsListRequest) (*PaginatedL2VPNTerminationList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedL2VPNTerminationList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpn-terminations/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ 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 {
+ 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.device != nil {
+ t := *r.device
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi")
+ }
+ }
+ if r.deviceN != nil {
+ t := *r.deviceN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi")
+ }
+ }
+ if r.deviceId != nil {
+ t := *r.deviceId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi")
+ }
+ }
+ if r.deviceIdN != nil {
+ t := *r.deviceIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi")
+ }
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
+ }
+ }
+ if r.interface_ != nil {
+ t := *r.interface_
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface", t, "multi")
+ }
+ }
+ if r.interfaceN != nil {
+ t := *r.interfaceN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface__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.l2vpn != nil {
+ t := *r.l2vpn
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "multi")
+ }
+ }
+ if r.l2vpnN != nil {
+ t := *r.l2vpnN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "multi")
+ }
+ }
+ if r.l2vpnId != nil {
+ t := *r.l2vpnId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "multi")
+ }
+ }
+ if r.l2vpnIdN != nil {
+ t := *r.l2vpnIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "multi")
+ }
+ }
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ }
+ if r.region != nil {
+ t := *r.region
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi")
+ }
+ }
+ if r.regionId != nil {
+ t := *r.regionId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi")
+ }
+ }
+ if r.site != nil {
+ t := *r.site
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi")
+ }
+ }
+ if r.siteId != nil {
+ t := *r.siteId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi")
+ }
+ }
+ if r.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
+ }
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ if r.virtualMachine != nil {
+ t := *r.virtualMachine
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi")
+ }
+ }
+ if r.virtualMachineN != nil {
+ t := *r.virtualMachineN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "multi")
+ }
+ }
+ if r.virtualMachineId != nil {
+ t := *r.virtualMachineId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi")
+ }
+ }
+ if r.virtualMachineIdN != nil {
+ t := *r.virtualMachineIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "multi")
+ }
+ }
+ if r.vlan != nil {
+ t := *r.vlan
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", t, "multi")
+ }
+ }
+ if r.vlanN != nil {
+ t := *r.vlanN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan__n", t, "multi")
+ }
+ }
+ if r.vlanId != nil {
+ t := *r.vlanId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", t, "multi")
+ }
+ }
+ if r.vlanIdN != nil {
+ t := *r.vlanIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", t, "multi")
+ }
+ }
+ if r.vlanVid != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid", r.vlanVid, "")
+ }
+ if r.vlanVidEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__empty", r.vlanVidEmpty, "")
+ }
+ if r.vlanVidGt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__gt", r.vlanVidGt, "")
+ }
+ if r.vlanVidGte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__gte", r.vlanVidGte, "")
+ }
+ if r.vlanVidLt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__lt", r.vlanVidLt, "")
+ }
+ if r.vlanVidLte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__lte", r.vlanVidLte, "")
+ }
+ if r.vlanVidN != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__n", r.vlanVidN, "")
+ }
+ if r.vminterface != nil {
+ t := *r.vminterface
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", t, "multi")
+ }
+ }
+ if r.vminterfaceN != nil {
+ t := *r.vminterfaceN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", t, "multi")
+ }
+ }
+ if r.vminterfaceId != nil {
+ t := *r.vminterfaceId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", t, "multi")
+ }
+ }
+ if r.vminterfaceIdN != nil {
+ t := *r.vminterfaceIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", t, "multi")
+ }
+ }
+ // 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 ApiVpnL2vpnTerminationsPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ patchedWritableL2VPNTerminationRequest *PatchedWritableL2VPNTerminationRequest
+}
+
+func (r ApiVpnL2vpnTerminationsPartialUpdateRequest) PatchedWritableL2VPNTerminationRequest(patchedWritableL2VPNTerminationRequest PatchedWritableL2VPNTerminationRequest) ApiVpnL2vpnTerminationsPartialUpdateRequest {
+ r.patchedWritableL2VPNTerminationRequest = &patchedWritableL2VPNTerminationRequest
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsPartialUpdateRequest) Execute() (*L2VPNTermination, *http.Response, error) {
+ return r.ApiService.VpnL2vpnTerminationsPartialUpdateExecute(r)
+}
+
+/*
+VpnL2vpnTerminationsPartialUpdate Method for VpnL2vpnTerminationsPartialUpdate
+
+Patch a L2VPN termination object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN termination.
+ @return ApiVpnL2vpnTerminationsPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnL2vpnTerminationsPartialUpdate(ctx context.Context, id int32) ApiVpnL2vpnTerminationsPartialUpdateRequest {
+ return ApiVpnL2vpnTerminationsPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return L2VPNTermination
+func (a *VpnAPIService) VpnL2vpnTerminationsPartialUpdateExecute(r ApiVpnL2vpnTerminationsPartialUpdateRequest) (*L2VPNTermination, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPNTermination
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpn-terminations/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.patchedWritableL2VPNTerminationRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnL2vpnTerminationsRetrieveRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnL2vpnTerminationsRetrieveRequest) Execute() (*L2VPNTermination, *http.Response, error) {
+ return r.ApiService.VpnL2vpnTerminationsRetrieveExecute(r)
+}
+
+/*
+VpnL2vpnTerminationsRetrieve Method for VpnL2vpnTerminationsRetrieve
+
+Get a L2VPN termination object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN termination.
+ @return ApiVpnL2vpnTerminationsRetrieveRequest
+*/
+func (a *VpnAPIService) VpnL2vpnTerminationsRetrieve(ctx context.Context, id int32) ApiVpnL2vpnTerminationsRetrieveRequest {
+ return ApiVpnL2vpnTerminationsRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return L2VPNTermination
+func (a *VpnAPIService) VpnL2vpnTerminationsRetrieveExecute(r ApiVpnL2vpnTerminationsRetrieveRequest) (*L2VPNTermination, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPNTermination
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpn-terminations/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiVpnL2vpnTerminationsUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ writableL2VPNTerminationRequest *WritableL2VPNTerminationRequest
+}
+
+func (r ApiVpnL2vpnTerminationsUpdateRequest) WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest WritableL2VPNTerminationRequest) ApiVpnL2vpnTerminationsUpdateRequest {
+ r.writableL2VPNTerminationRequest = &writableL2VPNTerminationRequest
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsUpdateRequest) Execute() (*L2VPNTermination, *http.Response, error) {
+ return r.ApiService.VpnL2vpnTerminationsUpdateExecute(r)
+}
+
+/*
+VpnL2vpnTerminationsUpdate Method for VpnL2vpnTerminationsUpdate
+
+Put a L2VPN termination object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN termination.
+ @return ApiVpnL2vpnTerminationsUpdateRequest
+*/
+func (a *VpnAPIService) VpnL2vpnTerminationsUpdate(ctx context.Context, id int32) ApiVpnL2vpnTerminationsUpdateRequest {
+ return ApiVpnL2vpnTerminationsUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return L2VPNTermination
+func (a *VpnAPIService) VpnL2vpnTerminationsUpdateExecute(r ApiVpnL2vpnTerminationsUpdateRequest) (*L2VPNTermination, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPNTermination
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpn-terminations/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableL2VPNTerminationRequest == nil {
+ return localVarReturnValue, nil, reportError("writableL2VPNTerminationRequest 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.writableL2VPNTerminationRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnL2vpnsBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ l2VPNRequest *[]L2VPNRequest
+}
+
+func (r ApiVpnL2vpnsBulkDestroyRequest) L2VPNRequest(l2VPNRequest []L2VPNRequest) ApiVpnL2vpnsBulkDestroyRequest {
+ r.l2VPNRequest = &l2VPNRequest
+ return r
+}
+
+func (r ApiVpnL2vpnsBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnL2vpnsBulkDestroyExecute(r)
+}
+
+/*
+VpnL2vpnsBulkDestroy Method for VpnL2vpnsBulkDestroy
+
+Delete a list of L2VPN objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsBulkDestroyRequest
+*/
+func (a *VpnAPIService) VpnL2vpnsBulkDestroy(ctx context.Context) ApiVpnL2vpnsBulkDestroyRequest {
+ return ApiVpnL2vpnsBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnL2vpnsBulkDestroyExecute(r ApiVpnL2vpnsBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpns/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.l2VPNRequest == nil {
+ return nil, reportError("l2VPNRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.l2VPNRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnL2vpnsBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ l2VPNRequest *[]L2VPNRequest
+}
+
+func (r ApiVpnL2vpnsBulkPartialUpdateRequest) L2VPNRequest(l2VPNRequest []L2VPNRequest) ApiVpnL2vpnsBulkPartialUpdateRequest {
+ r.l2VPNRequest = &l2VPNRequest
+ return r
+}
+
+func (r ApiVpnL2vpnsBulkPartialUpdateRequest) Execute() ([]L2VPN, *http.Response, error) {
+ return r.ApiService.VpnL2vpnsBulkPartialUpdateExecute(r)
+}
+
+/*
+VpnL2vpnsBulkPartialUpdate Method for VpnL2vpnsBulkPartialUpdate
+
+Patch a list of L2VPN objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsBulkPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnL2vpnsBulkPartialUpdate(ctx context.Context) ApiVpnL2vpnsBulkPartialUpdateRequest {
+ return ApiVpnL2vpnsBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []L2VPN
+func (a *VpnAPIService) VpnL2vpnsBulkPartialUpdateExecute(r ApiVpnL2vpnsBulkPartialUpdateRequest) ([]L2VPN, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []L2VPN
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpns/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.l2VPNRequest == nil {
+ return localVarReturnValue, nil, reportError("l2VPNRequest 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.l2VPNRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnL2vpnsBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ l2VPNRequest *[]L2VPNRequest
+}
+
+func (r ApiVpnL2vpnsBulkUpdateRequest) L2VPNRequest(l2VPNRequest []L2VPNRequest) ApiVpnL2vpnsBulkUpdateRequest {
+ r.l2VPNRequest = &l2VPNRequest
+ return r
+}
+
+func (r ApiVpnL2vpnsBulkUpdateRequest) Execute() ([]L2VPN, *http.Response, error) {
+ return r.ApiService.VpnL2vpnsBulkUpdateExecute(r)
+}
+
+/*
+VpnL2vpnsBulkUpdate Method for VpnL2vpnsBulkUpdate
+
+Put a list of L2VPN objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsBulkUpdateRequest
+*/
+func (a *VpnAPIService) VpnL2vpnsBulkUpdate(ctx context.Context) ApiVpnL2vpnsBulkUpdateRequest {
+ return ApiVpnL2vpnsBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []L2VPN
+func (a *VpnAPIService) VpnL2vpnsBulkUpdateExecute(r ApiVpnL2vpnsBulkUpdateRequest) ([]L2VPN, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []L2VPN
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpns/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.l2VPNRequest == nil {
+ return localVarReturnValue, nil, reportError("l2VPNRequest 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.l2VPNRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnL2vpnsCreateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ writableL2VPNRequest *WritableL2VPNRequest
+}
+
+func (r ApiVpnL2vpnsCreateRequest) WritableL2VPNRequest(writableL2VPNRequest WritableL2VPNRequest) ApiVpnL2vpnsCreateRequest {
+ r.writableL2VPNRequest = &writableL2VPNRequest
+ return r
+}
+
+func (r ApiVpnL2vpnsCreateRequest) Execute() (*L2VPN, *http.Response, error) {
+ return r.ApiService.VpnL2vpnsCreateExecute(r)
+}
+
+/*
+VpnL2vpnsCreate Method for VpnL2vpnsCreate
+
+Post a list of L2VPN objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsCreateRequest
+*/
+func (a *VpnAPIService) VpnL2vpnsCreate(ctx context.Context) ApiVpnL2vpnsCreateRequest {
+ return ApiVpnL2vpnsCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return L2VPN
+func (a *VpnAPIService) VpnL2vpnsCreateExecute(r ApiVpnL2vpnsCreateRequest) (*L2VPN, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPN
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpns/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableL2VPNRequest == nil {
+ return localVarReturnValue, nil, reportError("writableL2VPNRequest 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.writableL2VPNRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnL2vpnsDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnL2vpnsDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnL2vpnsDestroyExecute(r)
+}
+
+/*
+VpnL2vpnsDestroy Method for VpnL2vpnsDestroy
+
+Delete a L2VPN object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN.
+ @return ApiVpnL2vpnsDestroyRequest
+*/
+func (a *VpnAPIService) VpnL2vpnsDestroy(ctx context.Context, id int32) ApiVpnL2vpnsDestroyRequest {
+ return ApiVpnL2vpnsDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnL2vpnsDestroyExecute(r ApiVpnL2vpnsDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpns/{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 ApiVpnL2vpnsListRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ exportTarget *[]string
+ exportTargetN *[]string
+ exportTargetId *[]int32
+ exportTargetIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ identifier *[]int32
+ identifierEmpty *bool
+ identifierGt *[]int32
+ identifierGte *[]int32
+ identifierLt *[]int32
+ identifierLte *[]int32
+ identifierN *[]int32
+ importTarget *[]string
+ importTargetN *[]string
+ importTargetId *[]int32
+ importTargetIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]int32
+ tenantGroupN *[]int32
+ tenantGroupId *[]int32
+ tenantGroupIdN *[]int32
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ type_ *[]string
+ typeN *[]string
+ updatedByRequest *string
+}
+
+func (r ApiVpnL2vpnsListRequest) Created(created []time.Time) ApiVpnL2vpnsListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVpnL2vpnsListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) CreatedGt(createdGt []time.Time) ApiVpnL2vpnsListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) CreatedGte(createdGte []time.Time) ApiVpnL2vpnsListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) CreatedLt(createdLt []time.Time) ApiVpnL2vpnsListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) CreatedLte(createdLte []time.Time) ApiVpnL2vpnsListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) CreatedN(createdN []time.Time) ApiVpnL2vpnsListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) CreatedByRequest(createdByRequest string) ApiVpnL2vpnsListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) Description(description []string) ApiVpnL2vpnsListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiVpnL2vpnsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) DescriptionIc(descriptionIc []string) ApiVpnL2vpnsListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) DescriptionIe(descriptionIe []string) ApiVpnL2vpnsListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) DescriptionIew(descriptionIew []string) ApiVpnL2vpnsListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) DescriptionIsw(descriptionIsw []string) ApiVpnL2vpnsListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) DescriptionN(descriptionN []string) ApiVpnL2vpnsListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) DescriptionNic(descriptionNic []string) ApiVpnL2vpnsListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) DescriptionNie(descriptionNie []string) ApiVpnL2vpnsListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) DescriptionNiew(descriptionNiew []string) ApiVpnL2vpnsListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) DescriptionNisw(descriptionNisw []string) ApiVpnL2vpnsListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
+// Export target (name)
+func (r ApiVpnL2vpnsListRequest) ExportTarget(exportTarget []string) ApiVpnL2vpnsListRequest {
+ r.exportTarget = &exportTarget
+ return r
+}
+
+// Export target (name)
+func (r ApiVpnL2vpnsListRequest) ExportTargetN(exportTargetN []string) ApiVpnL2vpnsListRequest {
+ r.exportTargetN = &exportTargetN
+ return r
+}
+
+// Export target
+func (r ApiVpnL2vpnsListRequest) ExportTargetId(exportTargetId []int32) ApiVpnL2vpnsListRequest {
+ r.exportTargetId = &exportTargetId
+ return r
+}
+
+// Export target
+func (r ApiVpnL2vpnsListRequest) ExportTargetIdN(exportTargetIdN []int32) ApiVpnL2vpnsListRequest {
+ r.exportTargetIdN = &exportTargetIdN
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) Id(id []int32) ApiVpnL2vpnsListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) IdEmpty(idEmpty bool) ApiVpnL2vpnsListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) IdGt(idGt []int32) ApiVpnL2vpnsListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) IdGte(idGte []int32) ApiVpnL2vpnsListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) IdLt(idLt []int32) ApiVpnL2vpnsListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) IdLte(idLte []int32) ApiVpnL2vpnsListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) IdN(idN []int32) ApiVpnL2vpnsListRequest {
+ r.idN = &idN
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) Identifier(identifier []int32) ApiVpnL2vpnsListRequest {
+ r.identifier = &identifier
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) IdentifierEmpty(identifierEmpty bool) ApiVpnL2vpnsListRequest {
+ r.identifierEmpty = &identifierEmpty
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) IdentifierGt(identifierGt []int32) ApiVpnL2vpnsListRequest {
+ r.identifierGt = &identifierGt
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) IdentifierGte(identifierGte []int32) ApiVpnL2vpnsListRequest {
+ r.identifierGte = &identifierGte
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) IdentifierLt(identifierLt []int32) ApiVpnL2vpnsListRequest {
+ r.identifierLt = &identifierLt
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) IdentifierLte(identifierLte []int32) ApiVpnL2vpnsListRequest {
+ r.identifierLte = &identifierLte
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) IdentifierN(identifierN []int32) ApiVpnL2vpnsListRequest {
+ r.identifierN = &identifierN
+ return r
+}
+
+// Import target (name)
+func (r ApiVpnL2vpnsListRequest) ImportTarget(importTarget []string) ApiVpnL2vpnsListRequest {
+ r.importTarget = &importTarget
+ return r
+}
+
+// Import target (name)
+func (r ApiVpnL2vpnsListRequest) ImportTargetN(importTargetN []string) ApiVpnL2vpnsListRequest {
+ r.importTargetN = &importTargetN
+ return r
+}
+
+// Import target
+func (r ApiVpnL2vpnsListRequest) ImportTargetId(importTargetId []int32) ApiVpnL2vpnsListRequest {
+ r.importTargetId = &importTargetId
+ return r
+}
+
+// Import target
+func (r ApiVpnL2vpnsListRequest) ImportTargetIdN(importTargetIdN []int32) ApiVpnL2vpnsListRequest {
+ r.importTargetIdN = &importTargetIdN
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnL2vpnsListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVpnL2vpnsListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVpnL2vpnsListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiVpnL2vpnsListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiVpnL2vpnsListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiVpnL2vpnsListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiVpnL2vpnsListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiVpnL2vpnsListRequest) Limit(limit int32) ApiVpnL2vpnsListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnL2vpnsListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) Name(name []string) ApiVpnL2vpnsListRequest {
+ r.name = &name
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) NameEmpty(nameEmpty bool) ApiVpnL2vpnsListRequest {
+ r.nameEmpty = &nameEmpty
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) NameIc(nameIc []string) ApiVpnL2vpnsListRequest {
+ r.nameIc = &nameIc
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) NameIe(nameIe []string) ApiVpnL2vpnsListRequest {
+ r.nameIe = &nameIe
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) NameIew(nameIew []string) ApiVpnL2vpnsListRequest {
+ r.nameIew = &nameIew
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) NameIsw(nameIsw []string) ApiVpnL2vpnsListRequest {
+ r.nameIsw = &nameIsw
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) NameN(nameN []string) ApiVpnL2vpnsListRequest {
+ r.nameN = &nameN
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) NameNic(nameNic []string) ApiVpnL2vpnsListRequest {
+ r.nameNic = &nameNic
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) NameNie(nameNie []string) ApiVpnL2vpnsListRequest {
+ r.nameNie = &nameNie
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) NameNiew(nameNiew []string) ApiVpnL2vpnsListRequest {
+ r.nameNiew = &nameNiew
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) NameNisw(nameNisw []string) ApiVpnL2vpnsListRequest {
+ r.nameNisw = &nameNisw
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiVpnL2vpnsListRequest) Offset(offset int32) ApiVpnL2vpnsListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiVpnL2vpnsListRequest) Ordering(ordering string) ApiVpnL2vpnsListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Search
+func (r ApiVpnL2vpnsListRequest) Q(q string) ApiVpnL2vpnsListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) Slug(slug []string) ApiVpnL2vpnsListRequest {
+ r.slug = &slug
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) SlugEmpty(slugEmpty bool) ApiVpnL2vpnsListRequest {
+ r.slugEmpty = &slugEmpty
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) SlugIc(slugIc []string) ApiVpnL2vpnsListRequest {
+ r.slugIc = &slugIc
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) SlugIe(slugIe []string) ApiVpnL2vpnsListRequest {
+ r.slugIe = &slugIe
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) SlugIew(slugIew []string) ApiVpnL2vpnsListRequest {
+ r.slugIew = &slugIew
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) SlugIsw(slugIsw []string) ApiVpnL2vpnsListRequest {
+ r.slugIsw = &slugIsw
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) SlugN(slugN []string) ApiVpnL2vpnsListRequest {
+ r.slugN = &slugN
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) SlugNic(slugNic []string) ApiVpnL2vpnsListRequest {
+ r.slugNic = &slugNic
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) SlugNie(slugNie []string) ApiVpnL2vpnsListRequest {
+ r.slugNie = &slugNie
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) SlugNiew(slugNiew []string) ApiVpnL2vpnsListRequest {
+ r.slugNiew = &slugNiew
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) SlugNisw(slugNisw []string) ApiVpnL2vpnsListRequest {
+ r.slugNisw = &slugNisw
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) Tag(tag []string) ApiVpnL2vpnsListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) TagN(tagN []string) ApiVpnL2vpnsListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+// Tenant (slug)
+func (r ApiVpnL2vpnsListRequest) Tenant(tenant []string) ApiVpnL2vpnsListRequest {
+ r.tenant = &tenant
+ return r
+}
+
+// Tenant (slug)
+func (r ApiVpnL2vpnsListRequest) TenantN(tenantN []string) ApiVpnL2vpnsListRequest {
+ r.tenantN = &tenantN
+ return r
+}
+
+// Tenant Group (slug)
+func (r ApiVpnL2vpnsListRequest) TenantGroup(tenantGroup []int32) ApiVpnL2vpnsListRequest {
+ r.tenantGroup = &tenantGroup
+ return r
+}
+
+// Tenant Group (slug)
+func (r ApiVpnL2vpnsListRequest) TenantGroupN(tenantGroupN []int32) ApiVpnL2vpnsListRequest {
+ r.tenantGroupN = &tenantGroupN
+ return r
+}
+
+// Tenant Group (ID)
+func (r ApiVpnL2vpnsListRequest) TenantGroupId(tenantGroupId []int32) ApiVpnL2vpnsListRequest {
+ r.tenantGroupId = &tenantGroupId
+ return r
+}
+
+// Tenant Group (ID)
+func (r ApiVpnL2vpnsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVpnL2vpnsListRequest {
+ r.tenantGroupIdN = &tenantGroupIdN
+ return r
+}
+
+// Tenant (ID)
+func (r ApiVpnL2vpnsListRequest) TenantId(tenantId []*int32) ApiVpnL2vpnsListRequest {
+ r.tenantId = &tenantId
+ return r
+}
+
+// Tenant (ID)
+func (r ApiVpnL2vpnsListRequest) TenantIdN(tenantIdN []*int32) ApiVpnL2vpnsListRequest {
+ r.tenantIdN = &tenantIdN
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) Type_(type_ []string) ApiVpnL2vpnsListRequest {
+ r.type_ = &type_
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) TypeN(typeN []string) ApiVpnL2vpnsListRequest {
+ r.typeN = &typeN
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnL2vpnsListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) Execute() (*PaginatedL2VPNList, *http.Response, error) {
+ return r.ApiService.VpnL2vpnsListExecute(r)
+}
+
+/*
+VpnL2vpnsList Method for VpnL2vpnsList
+
+Get a list of L2VPN objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsListRequest
+*/
+func (a *VpnAPIService) VpnL2vpnsList(ctx context.Context) ApiVpnL2vpnsListRequest {
+ return ApiVpnL2vpnsListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedL2VPNList
+func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*PaginatedL2VPNList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedL2VPNList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpns/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.created != nil {
+ t := *r.created
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
+ }
+ }
+ if r.createdEmpty != nil {
+ t := *r.createdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
+ }
+ }
+ if r.createdGt != nil {
+ t := *r.createdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
+ }
+ }
+ if r.createdGte != nil {
+ t := *r.createdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
+ }
+ }
+ if r.createdLt != nil {
+ t := *r.createdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
+ }
+ }
+ if r.createdLte != nil {
+ t := *r.createdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
+ }
+ }
+ if r.createdN != nil {
+ t := *r.createdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
+ }
+ }
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
+ }
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
+ if r.exportTarget != nil {
+ t := *r.exportTarget
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", t, "multi")
+ }
+ }
+ if r.exportTargetN != nil {
+ t := *r.exportTargetN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", t, "multi")
+ }
+ }
+ if r.exportTargetId != nil {
+ t := *r.exportTargetId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", t, "multi")
+ }
+ }
+ if r.exportTargetIdN != nil {
+ t := *r.exportTargetIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", t, "multi")
+ }
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
+ }
+ }
+ if r.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.importTarget != nil {
+ t := *r.importTarget
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", t, "multi")
+ }
+ }
+ if r.importTargetN != nil {
+ t := *r.importTargetN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", t, "multi")
+ }
+ }
+ if r.importTargetId != nil {
+ t := *r.importTargetId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", t, "multi")
+ }
+ }
+ if r.importTargetIdN != nil {
+ t := *r.importTargetIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", t, "multi")
+ }
+ }
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
+ if r.name != nil {
+ t := *r.name
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi")
+ }
+ }
+ if r.nameEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "")
+ }
+ if r.nameIc != nil {
+ t := *r.nameIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi")
+ }
+ }
+ if r.nameIe != nil {
+ t := *r.nameIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi")
+ }
+ }
+ if r.nameIew != nil {
+ t := *r.nameIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi")
+ }
+ }
+ if r.nameIsw != nil {
+ t := *r.nameIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi")
+ }
+ }
+ if r.nameN != nil {
+ t := *r.nameN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi")
+ }
+ }
+ if r.nameNic != nil {
+ t := *r.nameNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi")
+ }
+ }
+ if r.nameNie != nil {
+ t := *r.nameNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi")
+ }
+ }
+ if r.nameNiew != nil {
+ t := *r.nameNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi")
+ }
+ }
+ if r.nameNisw != nil {
+ t := *r.nameNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi")
+ }
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ }
+ if r.slug != nil {
+ t := *r.slug
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi")
+ }
+ }
+ if r.slugEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "")
+ }
+ if r.slugIc != nil {
+ t := *r.slugIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi")
+ }
+ }
+ if r.slugIe != nil {
+ t := *r.slugIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi")
+ }
+ }
+ if r.slugIew != nil {
+ t := *r.slugIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi")
+ }
+ }
+ 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.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
+ }
+ }
+ if r.tenant != nil {
+ t := *r.tenant
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi")
+ }
+ }
+ if r.tenantN != nil {
+ t := *r.tenantN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi")
+ }
+ }
+ if r.tenantGroup != nil {
+ t := *r.tenantGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi")
+ }
+ }
+ if r.tenantGroupN != nil {
+ t := *r.tenantGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi")
+ }
+ }
+ if r.tenantGroupId != nil {
+ t := *r.tenantGroupId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi")
+ }
+ }
+ if r.tenantGroupIdN != nil {
+ t := *r.tenantGroupIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi")
+ }
+ }
+ if r.tenantId != nil {
+ t := *r.tenantId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi")
+ }
+ }
+ if r.tenantIdN != nil {
+ t := *r.tenantIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi")
+ }
+ }
+ if r.type_ != nil {
+ t := *r.type_
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi")
+ }
+ }
+ if r.typeN != nil {
+ t := *r.typeN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi")
+ }
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiVpnL2vpnsPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ patchedWritableL2VPNRequest *PatchedWritableL2VPNRequest
+}
+
+func (r ApiVpnL2vpnsPartialUpdateRequest) PatchedWritableL2VPNRequest(patchedWritableL2VPNRequest PatchedWritableL2VPNRequest) ApiVpnL2vpnsPartialUpdateRequest {
+ r.patchedWritableL2VPNRequest = &patchedWritableL2VPNRequest
+ return r
+}
+
+func (r ApiVpnL2vpnsPartialUpdateRequest) Execute() (*L2VPN, *http.Response, error) {
+ return r.ApiService.VpnL2vpnsPartialUpdateExecute(r)
+}
+
+/*
+VpnL2vpnsPartialUpdate Method for VpnL2vpnsPartialUpdate
+
+Patch a L2VPN object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN.
+ @return ApiVpnL2vpnsPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnL2vpnsPartialUpdate(ctx context.Context, id int32) ApiVpnL2vpnsPartialUpdateRequest {
+ return ApiVpnL2vpnsPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return L2VPN
+func (a *VpnAPIService) VpnL2vpnsPartialUpdateExecute(r ApiVpnL2vpnsPartialUpdateRequest) (*L2VPN, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPN
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpns/{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.patchedWritableL2VPNRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnL2vpnsRetrieveRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnL2vpnsRetrieveRequest) Execute() (*L2VPN, *http.Response, error) {
+ return r.ApiService.VpnL2vpnsRetrieveExecute(r)
+}
+
+/*
+VpnL2vpnsRetrieve Method for VpnL2vpnsRetrieve
+
+Get a L2VPN object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN.
+ @return ApiVpnL2vpnsRetrieveRequest
+*/
+func (a *VpnAPIService) VpnL2vpnsRetrieve(ctx context.Context, id int32) ApiVpnL2vpnsRetrieveRequest {
+ return ApiVpnL2vpnsRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return L2VPN
+func (a *VpnAPIService) VpnL2vpnsRetrieveExecute(r ApiVpnL2vpnsRetrieveRequest) (*L2VPN, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPN
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpns/{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 ApiVpnL2vpnsUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ writableL2VPNRequest *WritableL2VPNRequest
+}
+
+func (r ApiVpnL2vpnsUpdateRequest) WritableL2VPNRequest(writableL2VPNRequest WritableL2VPNRequest) ApiVpnL2vpnsUpdateRequest {
+ r.writableL2VPNRequest = &writableL2VPNRequest
+ return r
+}
+
+func (r ApiVpnL2vpnsUpdateRequest) Execute() (*L2VPN, *http.Response, error) {
+ return r.ApiService.VpnL2vpnsUpdateExecute(r)
+}
+
+/*
+VpnL2vpnsUpdate Method for VpnL2vpnsUpdate
+
+Put a L2VPN object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN.
+ @return ApiVpnL2vpnsUpdateRequest
+*/
+func (a *VpnAPIService) VpnL2vpnsUpdate(ctx context.Context, id int32) ApiVpnL2vpnsUpdateRequest {
+ return ApiVpnL2vpnsUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return L2VPN
+func (a *VpnAPIService) VpnL2vpnsUpdateExecute(r ApiVpnL2vpnsUpdateRequest) (*L2VPN, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPN
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/l2vpns/{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.writableL2VPNRequest == nil {
+ return localVarReturnValue, nil, reportError("writableL2VPNRequest 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.writableL2VPNRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelGroupsBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ tunnelGroupRequest *[]TunnelGroupRequest
+}
+
+func (r ApiVpnTunnelGroupsBulkDestroyRequest) TunnelGroupRequest(tunnelGroupRequest []TunnelGroupRequest) ApiVpnTunnelGroupsBulkDestroyRequest {
+ r.tunnelGroupRequest = &tunnelGroupRequest
+ return r
+}
+
+func (r ApiVpnTunnelGroupsBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnTunnelGroupsBulkDestroyExecute(r)
+}
+
+/*
+VpnTunnelGroupsBulkDestroy Method for VpnTunnelGroupsBulkDestroy
+
+Delete a list of tunnel group objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsBulkDestroyRequest
+*/
+func (a *VpnAPIService) VpnTunnelGroupsBulkDestroy(ctx context.Context) ApiVpnTunnelGroupsBulkDestroyRequest {
+ return ApiVpnTunnelGroupsBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnTunnelGroupsBulkDestroyExecute(r ApiVpnTunnelGroupsBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-groups/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tunnelGroupRequest == nil {
+ return nil, reportError("tunnelGroupRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.tunnelGroupRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelGroupsBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ tunnelGroupRequest *[]TunnelGroupRequest
+}
+
+func (r ApiVpnTunnelGroupsBulkPartialUpdateRequest) TunnelGroupRequest(tunnelGroupRequest []TunnelGroupRequest) ApiVpnTunnelGroupsBulkPartialUpdateRequest {
+ r.tunnelGroupRequest = &tunnelGroupRequest
+ return r
+}
+
+func (r ApiVpnTunnelGroupsBulkPartialUpdateRequest) Execute() ([]TunnelGroup, *http.Response, error) {
+ return r.ApiService.VpnTunnelGroupsBulkPartialUpdateExecute(r)
+}
+
+/*
+VpnTunnelGroupsBulkPartialUpdate Method for VpnTunnelGroupsBulkPartialUpdate
+
+Patch a list of tunnel group objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsBulkPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnTunnelGroupsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelGroupsBulkPartialUpdateRequest {
+ return ApiVpnTunnelGroupsBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []TunnelGroup
+func (a *VpnAPIService) VpnTunnelGroupsBulkPartialUpdateExecute(r ApiVpnTunnelGroupsBulkPartialUpdateRequest) ([]TunnelGroup, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []TunnelGroup
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-groups/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tunnelGroupRequest == nil {
+ return localVarReturnValue, nil, reportError("tunnelGroupRequest 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.tunnelGroupRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelGroupsBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ tunnelGroupRequest *[]TunnelGroupRequest
+}
+
+func (r ApiVpnTunnelGroupsBulkUpdateRequest) TunnelGroupRequest(tunnelGroupRequest []TunnelGroupRequest) ApiVpnTunnelGroupsBulkUpdateRequest {
+ r.tunnelGroupRequest = &tunnelGroupRequest
+ return r
+}
+
+func (r ApiVpnTunnelGroupsBulkUpdateRequest) Execute() ([]TunnelGroup, *http.Response, error) {
+ return r.ApiService.VpnTunnelGroupsBulkUpdateExecute(r)
+}
+
+/*
+VpnTunnelGroupsBulkUpdate Method for VpnTunnelGroupsBulkUpdate
+
+Put a list of tunnel group objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsBulkUpdateRequest
+*/
+func (a *VpnAPIService) VpnTunnelGroupsBulkUpdate(ctx context.Context) ApiVpnTunnelGroupsBulkUpdateRequest {
+ return ApiVpnTunnelGroupsBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []TunnelGroup
+func (a *VpnAPIService) VpnTunnelGroupsBulkUpdateExecute(r ApiVpnTunnelGroupsBulkUpdateRequest) ([]TunnelGroup, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []TunnelGroup
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-groups/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tunnelGroupRequest == nil {
+ return localVarReturnValue, nil, reportError("tunnelGroupRequest 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.tunnelGroupRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelGroupsCreateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ tunnelGroupRequest *TunnelGroupRequest
+}
+
+func (r ApiVpnTunnelGroupsCreateRequest) TunnelGroupRequest(tunnelGroupRequest TunnelGroupRequest) ApiVpnTunnelGroupsCreateRequest {
+ r.tunnelGroupRequest = &tunnelGroupRequest
+ return r
+}
+
+func (r ApiVpnTunnelGroupsCreateRequest) Execute() (*TunnelGroup, *http.Response, error) {
+ return r.ApiService.VpnTunnelGroupsCreateExecute(r)
+}
+
+/*
+VpnTunnelGroupsCreate Method for VpnTunnelGroupsCreate
+
+Post a list of tunnel group objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsCreateRequest
+*/
+func (a *VpnAPIService) VpnTunnelGroupsCreate(ctx context.Context) ApiVpnTunnelGroupsCreateRequest {
+ return ApiVpnTunnelGroupsCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return TunnelGroup
+func (a *VpnAPIService) VpnTunnelGroupsCreateExecute(r ApiVpnTunnelGroupsCreateRequest) (*TunnelGroup, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelGroup
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-groups/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tunnelGroupRequest == nil {
+ return localVarReturnValue, nil, reportError("tunnelGroupRequest 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.tunnelGroupRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelGroupsDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnTunnelGroupsDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnTunnelGroupsDestroyExecute(r)
+}
+
+/*
+VpnTunnelGroupsDestroy Method for VpnTunnelGroupsDestroy
+
+Delete a tunnel group object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel group.
+ @return ApiVpnTunnelGroupsDestroyRequest
+*/
+func (a *VpnAPIService) VpnTunnelGroupsDestroy(ctx context.Context, id int32) ApiVpnTunnelGroupsDestroyRequest {
+ return ApiVpnTunnelGroupsDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnTunnelGroupsDestroyExecute(r ApiVpnTunnelGroupsDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-groups/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarHTTPResponse, newErr
+ }
+
+ return localVarHTTPResponse, nil
+}
+
+type ApiVpnTunnelGroupsListRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ updatedByRequest *string
+}
+
+func (r ApiVpnTunnelGroupsListRequest) Created(created []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) CreatedGt(createdGt []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) CreatedGte(createdGte []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) CreatedLt(createdLt []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) CreatedLte(createdLte []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) CreatedN(createdN []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) CreatedByRequest(createdByRequest string) ApiVpnTunnelGroupsListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) Description(description []string) ApiVpnTunnelGroupsListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiVpnTunnelGroupsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) DescriptionIc(descriptionIc []string) ApiVpnTunnelGroupsListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) DescriptionIe(descriptionIe []string) ApiVpnTunnelGroupsListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) DescriptionIew(descriptionIew []string) ApiVpnTunnelGroupsListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) DescriptionIsw(descriptionIsw []string) ApiVpnTunnelGroupsListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) DescriptionN(descriptionN []string) ApiVpnTunnelGroupsListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) DescriptionNic(descriptionNic []string) ApiVpnTunnelGroupsListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) DescriptionNie(descriptionNie []string) ApiVpnTunnelGroupsListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) DescriptionNiew(descriptionNiew []string) ApiVpnTunnelGroupsListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) DescriptionNisw(descriptionNisw []string) ApiVpnTunnelGroupsListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) Id(id []int32) ApiVpnTunnelGroupsListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) IdEmpty(idEmpty bool) ApiVpnTunnelGroupsListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) IdGt(idGt []int32) ApiVpnTunnelGroupsListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) IdGte(idGte []int32) ApiVpnTunnelGroupsListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) IdLt(idLt []int32) ApiVpnTunnelGroupsListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) IdLte(idLte []int32) ApiVpnTunnelGroupsListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) IdN(idN []int32) ApiVpnTunnelGroupsListRequest {
+ r.idN = &idN
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiVpnTunnelGroupsListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiVpnTunnelGroupsListRequest) Limit(limit int32) ApiVpnTunnelGroupsListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnTunnelGroupsListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) Name(name []string) ApiVpnTunnelGroupsListRequest {
+ r.name = &name
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) NameEmpty(nameEmpty bool) ApiVpnTunnelGroupsListRequest {
+ r.nameEmpty = &nameEmpty
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) NameIc(nameIc []string) ApiVpnTunnelGroupsListRequest {
+ r.nameIc = &nameIc
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) NameIe(nameIe []string) ApiVpnTunnelGroupsListRequest {
+ r.nameIe = &nameIe
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) NameIew(nameIew []string) ApiVpnTunnelGroupsListRequest {
+ r.nameIew = &nameIew
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) NameIsw(nameIsw []string) ApiVpnTunnelGroupsListRequest {
+ r.nameIsw = &nameIsw
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) NameN(nameN []string) ApiVpnTunnelGroupsListRequest {
+ r.nameN = &nameN
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) NameNic(nameNic []string) ApiVpnTunnelGroupsListRequest {
+ r.nameNic = &nameNic
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) NameNie(nameNie []string) ApiVpnTunnelGroupsListRequest {
+ r.nameNie = &nameNie
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) NameNiew(nameNiew []string) ApiVpnTunnelGroupsListRequest {
+ r.nameNiew = &nameNiew
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) NameNisw(nameNisw []string) ApiVpnTunnelGroupsListRequest {
+ r.nameNisw = &nameNisw
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiVpnTunnelGroupsListRequest) Offset(offset int32) ApiVpnTunnelGroupsListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiVpnTunnelGroupsListRequest) Ordering(ordering string) ApiVpnTunnelGroupsListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Search
+func (r ApiVpnTunnelGroupsListRequest) Q(q string) ApiVpnTunnelGroupsListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) Slug(slug []string) ApiVpnTunnelGroupsListRequest {
+ r.slug = &slug
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) SlugEmpty(slugEmpty bool) ApiVpnTunnelGroupsListRequest {
+ r.slugEmpty = &slugEmpty
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) SlugIc(slugIc []string) ApiVpnTunnelGroupsListRequest {
+ r.slugIc = &slugIc
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) SlugIe(slugIe []string) ApiVpnTunnelGroupsListRequest {
+ r.slugIe = &slugIe
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) SlugIew(slugIew []string) ApiVpnTunnelGroupsListRequest {
+ r.slugIew = &slugIew
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) SlugIsw(slugIsw []string) ApiVpnTunnelGroupsListRequest {
+ r.slugIsw = &slugIsw
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) SlugN(slugN []string) ApiVpnTunnelGroupsListRequest {
+ r.slugN = &slugN
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) SlugNic(slugNic []string) ApiVpnTunnelGroupsListRequest {
+ r.slugNic = &slugNic
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) SlugNie(slugNie []string) ApiVpnTunnelGroupsListRequest {
+ r.slugNie = &slugNie
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) SlugNiew(slugNiew []string) ApiVpnTunnelGroupsListRequest {
+ r.slugNiew = &slugNiew
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) SlugNisw(slugNisw []string) ApiVpnTunnelGroupsListRequest {
+ r.slugNisw = &slugNisw
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) Tag(tag []string) ApiVpnTunnelGroupsListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) TagN(tagN []string) ApiVpnTunnelGroupsListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnTunnelGroupsListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) Execute() (*PaginatedTunnelGroupList, *http.Response, error) {
+ return r.ApiService.VpnTunnelGroupsListExecute(r)
+}
+
+/*
+VpnTunnelGroupsList Method for VpnTunnelGroupsList
+
+Get a list of tunnel group objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsListRequest
+*/
+func (a *VpnAPIService) VpnTunnelGroupsList(ctx context.Context) ApiVpnTunnelGroupsListRequest {
+ return ApiVpnTunnelGroupsListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedTunnelGroupList
+func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListRequest) (*PaginatedTunnelGroupList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedTunnelGroupList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-groups/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.created != nil {
+ t := *r.created
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
+ }
+ }
+ if r.createdEmpty != nil {
+ t := *r.createdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
+ }
+ }
+ if r.createdGt != nil {
+ t := *r.createdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
+ }
+ }
+ if r.createdGte != nil {
+ t := *r.createdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
+ }
+ }
+ if r.createdLt != nil {
+ t := *r.createdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
+ }
+ }
+ if r.createdLte != nil {
+ t := *r.createdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
+ }
+ }
+ if r.createdN != nil {
+ t := *r.createdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
+ }
+ }
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
+ }
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
+ }
+ }
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
+ if r.name != nil {
+ t := *r.name
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi")
+ }
+ }
+ if r.nameEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "")
+ }
+ if r.nameIc != nil {
+ t := *r.nameIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi")
+ }
+ }
+ if r.nameIe != nil {
+ t := *r.nameIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi")
+ }
+ }
+ if r.nameIew != nil {
+ t := *r.nameIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi")
+ }
+ }
+ if r.nameIsw != nil {
+ t := *r.nameIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi")
+ }
+ }
+ if r.nameN != nil {
+ t := *r.nameN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi")
+ }
+ }
+ if r.nameNic != nil {
+ t := *r.nameNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi")
+ }
+ }
+ if r.nameNie != nil {
+ t := *r.nameNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi")
+ }
+ }
+ if r.nameNiew != nil {
+ t := *r.nameNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi")
+ }
+ }
+ if r.nameNisw != nil {
+ t := *r.nameNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi")
+ }
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ }
+ if r.slug != nil {
+ t := *r.slug
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi")
+ }
+ }
+ if r.slugEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "")
+ }
+ if r.slugIc != nil {
+ t := *r.slugIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi")
+ }
+ }
+ if r.slugIe != nil {
+ t := *r.slugIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi")
+ }
+ }
+ if r.slugIew != nil {
+ t := *r.slugIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi")
+ }
+ }
+ 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.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
+ }
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ // 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 ApiVpnTunnelGroupsPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ patchedTunnelGroupRequest *PatchedTunnelGroupRequest
+}
+
+func (r ApiVpnTunnelGroupsPartialUpdateRequest) PatchedTunnelGroupRequest(patchedTunnelGroupRequest PatchedTunnelGroupRequest) ApiVpnTunnelGroupsPartialUpdateRequest {
+ r.patchedTunnelGroupRequest = &patchedTunnelGroupRequest
+ return r
+}
+
+func (r ApiVpnTunnelGroupsPartialUpdateRequest) Execute() (*TunnelGroup, *http.Response, error) {
+ return r.ApiService.VpnTunnelGroupsPartialUpdateExecute(r)
+}
+
+/*
+VpnTunnelGroupsPartialUpdate Method for VpnTunnelGroupsPartialUpdate
+
+Patch a tunnel group object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel group.
+ @return ApiVpnTunnelGroupsPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnTunnelGroupsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelGroupsPartialUpdateRequest {
+ return ApiVpnTunnelGroupsPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return TunnelGroup
+func (a *VpnAPIService) VpnTunnelGroupsPartialUpdateExecute(r ApiVpnTunnelGroupsPartialUpdateRequest) (*TunnelGroup, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelGroup
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-groups/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.patchedTunnelGroupRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelGroupsRetrieveRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnTunnelGroupsRetrieveRequest) Execute() (*TunnelGroup, *http.Response, error) {
+ return r.ApiService.VpnTunnelGroupsRetrieveExecute(r)
+}
+
+/*
+VpnTunnelGroupsRetrieve Method for VpnTunnelGroupsRetrieve
+
+Get a tunnel group object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel group.
+ @return ApiVpnTunnelGroupsRetrieveRequest
+*/
+func (a *VpnAPIService) VpnTunnelGroupsRetrieve(ctx context.Context, id int32) ApiVpnTunnelGroupsRetrieveRequest {
+ return ApiVpnTunnelGroupsRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return TunnelGroup
+func (a *VpnAPIService) VpnTunnelGroupsRetrieveExecute(r ApiVpnTunnelGroupsRetrieveRequest) (*TunnelGroup, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelGroup
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-groups/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiVpnTunnelGroupsUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ tunnelGroupRequest *TunnelGroupRequest
+}
+
+func (r ApiVpnTunnelGroupsUpdateRequest) TunnelGroupRequest(tunnelGroupRequest TunnelGroupRequest) ApiVpnTunnelGroupsUpdateRequest {
+ r.tunnelGroupRequest = &tunnelGroupRequest
+ return r
+}
+
+func (r ApiVpnTunnelGroupsUpdateRequest) Execute() (*TunnelGroup, *http.Response, error) {
+ return r.ApiService.VpnTunnelGroupsUpdateExecute(r)
+}
+
+/*
+VpnTunnelGroupsUpdate Method for VpnTunnelGroupsUpdate
+
+Put a tunnel group object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel group.
+ @return ApiVpnTunnelGroupsUpdateRequest
+*/
+func (a *VpnAPIService) VpnTunnelGroupsUpdate(ctx context.Context, id int32) ApiVpnTunnelGroupsUpdateRequest {
+ return ApiVpnTunnelGroupsUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return TunnelGroup
+func (a *VpnAPIService) VpnTunnelGroupsUpdateExecute(r ApiVpnTunnelGroupsUpdateRequest) (*TunnelGroup, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelGroup
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-groups/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tunnelGroupRequest == nil {
+ return localVarReturnValue, nil, reportError("tunnelGroupRequest 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.tunnelGroupRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelTerminationsBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ tunnelTerminationRequest *[]TunnelTerminationRequest
+}
+
+func (r ApiVpnTunnelTerminationsBulkDestroyRequest) TunnelTerminationRequest(tunnelTerminationRequest []TunnelTerminationRequest) ApiVpnTunnelTerminationsBulkDestroyRequest {
+ r.tunnelTerminationRequest = &tunnelTerminationRequest
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnTunnelTerminationsBulkDestroyExecute(r)
+}
+
+/*
+VpnTunnelTerminationsBulkDestroy Method for VpnTunnelTerminationsBulkDestroy
+
+Delete a list of tunnel termination objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsBulkDestroyRequest
+*/
+func (a *VpnAPIService) VpnTunnelTerminationsBulkDestroy(ctx context.Context) ApiVpnTunnelTerminationsBulkDestroyRequest {
+ return ApiVpnTunnelTerminationsBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnTunnelTerminationsBulkDestroyExecute(r ApiVpnTunnelTerminationsBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-terminations/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tunnelTerminationRequest == nil {
+ return nil, reportError("tunnelTerminationRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.tunnelTerminationRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelTerminationsBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ tunnelTerminationRequest *[]TunnelTerminationRequest
+}
+
+func (r ApiVpnTunnelTerminationsBulkPartialUpdateRequest) TunnelTerminationRequest(tunnelTerminationRequest []TunnelTerminationRequest) ApiVpnTunnelTerminationsBulkPartialUpdateRequest {
+ r.tunnelTerminationRequest = &tunnelTerminationRequest
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsBulkPartialUpdateRequest) Execute() ([]TunnelTermination, *http.Response, error) {
+ return r.ApiService.VpnTunnelTerminationsBulkPartialUpdateExecute(r)
+}
+
+/*
+VpnTunnelTerminationsBulkPartialUpdate Method for VpnTunnelTerminationsBulkPartialUpdate
+
+Patch a list of tunnel termination objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsBulkPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnTunnelTerminationsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelTerminationsBulkPartialUpdateRequest {
+ return ApiVpnTunnelTerminationsBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []TunnelTermination
+func (a *VpnAPIService) VpnTunnelTerminationsBulkPartialUpdateExecute(r ApiVpnTunnelTerminationsBulkPartialUpdateRequest) ([]TunnelTermination, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []TunnelTermination
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-terminations/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tunnelTerminationRequest == nil {
+ return localVarReturnValue, nil, reportError("tunnelTerminationRequest 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.tunnelTerminationRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelTerminationsBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ tunnelTerminationRequest *[]TunnelTerminationRequest
+}
+
+func (r ApiVpnTunnelTerminationsBulkUpdateRequest) TunnelTerminationRequest(tunnelTerminationRequest []TunnelTerminationRequest) ApiVpnTunnelTerminationsBulkUpdateRequest {
+ r.tunnelTerminationRequest = &tunnelTerminationRequest
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsBulkUpdateRequest) Execute() ([]TunnelTermination, *http.Response, error) {
+ return r.ApiService.VpnTunnelTerminationsBulkUpdateExecute(r)
+}
+
+/*
+VpnTunnelTerminationsBulkUpdate Method for VpnTunnelTerminationsBulkUpdate
+
+Put a list of tunnel termination objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsBulkUpdateRequest
+*/
+func (a *VpnAPIService) VpnTunnelTerminationsBulkUpdate(ctx context.Context) ApiVpnTunnelTerminationsBulkUpdateRequest {
+ return ApiVpnTunnelTerminationsBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []TunnelTermination
+func (a *VpnAPIService) VpnTunnelTerminationsBulkUpdateExecute(r ApiVpnTunnelTerminationsBulkUpdateRequest) ([]TunnelTermination, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []TunnelTermination
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-terminations/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tunnelTerminationRequest == nil {
+ return localVarReturnValue, nil, reportError("tunnelTerminationRequest 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.tunnelTerminationRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelTerminationsCreateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ writableTunnelTerminationRequest *WritableTunnelTerminationRequest
+}
+
+func (r ApiVpnTunnelTerminationsCreateRequest) WritableTunnelTerminationRequest(writableTunnelTerminationRequest WritableTunnelTerminationRequest) ApiVpnTunnelTerminationsCreateRequest {
+ r.writableTunnelTerminationRequest = &writableTunnelTerminationRequest
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsCreateRequest) Execute() (*TunnelTermination, *http.Response, error) {
+ return r.ApiService.VpnTunnelTerminationsCreateExecute(r)
+}
+
+/*
+VpnTunnelTerminationsCreate Method for VpnTunnelTerminationsCreate
+
+Post a list of tunnel termination objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsCreateRequest
+*/
+func (a *VpnAPIService) VpnTunnelTerminationsCreate(ctx context.Context) ApiVpnTunnelTerminationsCreateRequest {
+ return ApiVpnTunnelTerminationsCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return TunnelTermination
+func (a *VpnAPIService) VpnTunnelTerminationsCreateExecute(r ApiVpnTunnelTerminationsCreateRequest) (*TunnelTermination, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelTermination
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-terminations/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableTunnelTerminationRequest == nil {
+ return localVarReturnValue, nil, reportError("writableTunnelTerminationRequest 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.writableTunnelTerminationRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelTerminationsDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnTunnelTerminationsDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnTunnelTerminationsDestroyExecute(r)
+}
+
+/*
+VpnTunnelTerminationsDestroy Method for VpnTunnelTerminationsDestroy
+
+Delete a tunnel termination object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel termination.
+ @return ApiVpnTunnelTerminationsDestroyRequest
+*/
+func (a *VpnAPIService) VpnTunnelTerminationsDestroy(ctx context.Context, id int32) ApiVpnTunnelTerminationsDestroyRequest {
+ return ApiVpnTunnelTerminationsDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnTunnelTerminationsDestroyExecute(r ApiVpnTunnelTerminationsDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-terminations/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarHTTPResponse, newErr
+ }
+
+ return localVarHTTPResponse, nil
+}
+
+type 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
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) Created(created []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) CreatedGt(createdGt []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) CreatedGte(createdGte []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) CreatedLt(createdLt []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) CreatedLte(createdLte []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) CreatedN(createdN []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) CreatedByRequest(createdByRequest string) ApiVpnTunnelTerminationsListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) Id(id []int32) ApiVpnTunnelTerminationsListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) IdEmpty(idEmpty bool) ApiVpnTunnelTerminationsListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) IdGt(idGt []int32) ApiVpnTunnelTerminationsListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) IdGte(idGte []int32) ApiVpnTunnelTerminationsListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) IdLt(idLt []int32) ApiVpnTunnelTerminationsListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) IdLte(idLte []int32) ApiVpnTunnelTerminationsListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) IdN(idN []int32) ApiVpnTunnelTerminationsListRequest {
+ r.idN = &idN
+ return r
+}
+
+// Interface (name)
+func (r ApiVpnTunnelTerminationsListRequest) Interface_(interface_ []string) ApiVpnTunnelTerminationsListRequest {
+ r.interface_ = &interface_
+ return r
+}
+
+// Interface (name)
+func (r ApiVpnTunnelTerminationsListRequest) InterfaceN(interfaceN []string) ApiVpnTunnelTerminationsListRequest {
+ r.interfaceN = &interfaceN
+ return r
+}
+
+// Interface (ID)
+func (r ApiVpnTunnelTerminationsListRequest) InterfaceId(interfaceId []int32) ApiVpnTunnelTerminationsListRequest {
+ r.interfaceId = &interfaceId
+ return r
+}
+
+// Interface (ID)
+func (r ApiVpnTunnelTerminationsListRequest) InterfaceIdN(interfaceIdN []int32) ApiVpnTunnelTerminationsListRequest {
+ r.interfaceIdN = &interfaceIdN
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiVpnTunnelTerminationsListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiVpnTunnelTerminationsListRequest) Limit(limit int32) ApiVpnTunnelTerminationsListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnTunnelTerminationsListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiVpnTunnelTerminationsListRequest) Offset(offset int32) ApiVpnTunnelTerminationsListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiVpnTunnelTerminationsListRequest) Ordering(ordering string) ApiVpnTunnelTerminationsListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Outside IP (ID)
+func (r ApiVpnTunnelTerminationsListRequest) OutsideIpId(outsideIpId []int32) ApiVpnTunnelTerminationsListRequest {
+ r.outsideIpId = &outsideIpId
+ return r
+}
+
+// Outside IP (ID)
+func (r ApiVpnTunnelTerminationsListRequest) OutsideIpIdN(outsideIpIdN []int32) ApiVpnTunnelTerminationsListRequest {
+ r.outsideIpIdN = &outsideIpIdN
+ return r
+}
+
+// Search
+func (r ApiVpnTunnelTerminationsListRequest) Q(q string) ApiVpnTunnelTerminationsListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) Role(role []string) ApiVpnTunnelTerminationsListRequest {
+ r.role = &role
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) RoleN(roleN []string) ApiVpnTunnelTerminationsListRequest {
+ r.roleN = &roleN
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) Tag(tag []string) ApiVpnTunnelTerminationsListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) TagN(tagN []string) ApiVpnTunnelTerminationsListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) TerminationType(terminationType string) ApiVpnTunnelTerminationsListRequest {
+ r.terminationType = &terminationType
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) TerminationTypeN(terminationTypeN string) ApiVpnTunnelTerminationsListRequest {
+ r.terminationTypeN = &terminationTypeN
+ return r
+}
+
+// Tunnel (name)
+func (r ApiVpnTunnelTerminationsListRequest) Tunnel(tunnel []string) ApiVpnTunnelTerminationsListRequest {
+ r.tunnel = &tunnel
+ return r
+}
+
+// Tunnel (name)
+func (r ApiVpnTunnelTerminationsListRequest) TunnelN(tunnelN []string) ApiVpnTunnelTerminationsListRequest {
+ r.tunnelN = &tunnelN
+ return r
+}
+
+// Tunnel (ID)
+func (r ApiVpnTunnelTerminationsListRequest) TunnelId(tunnelId []int32) ApiVpnTunnelTerminationsListRequest {
+ r.tunnelId = &tunnelId
+ return r
+}
+
+// Tunnel (ID)
+func (r ApiVpnTunnelTerminationsListRequest) TunnelIdN(tunnelIdN []int32) ApiVpnTunnelTerminationsListRequest {
+ r.tunnelIdN = &tunnelIdN
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnTunnelTerminationsListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+// VM interface (name)
+func (r ApiVpnTunnelTerminationsListRequest) Vminterface(vminterface []string) ApiVpnTunnelTerminationsListRequest {
+ r.vminterface = &vminterface
+ return r
+}
+
+// VM interface (name)
+func (r ApiVpnTunnelTerminationsListRequest) VminterfaceN(vminterfaceN []string) ApiVpnTunnelTerminationsListRequest {
+ r.vminterfaceN = &vminterfaceN
+ return r
+}
+
+// VM interface (ID)
+func (r ApiVpnTunnelTerminationsListRequest) VminterfaceId(vminterfaceId []int32) ApiVpnTunnelTerminationsListRequest {
+ r.vminterfaceId = &vminterfaceId
+ return r
+}
+
+// VM interface (ID)
+func (r ApiVpnTunnelTerminationsListRequest) VminterfaceIdN(vminterfaceIdN []int32) ApiVpnTunnelTerminationsListRequest {
+ r.vminterfaceIdN = &vminterfaceIdN
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) Execute() (*PaginatedTunnelTerminationList, *http.Response, error) {
+ return r.ApiService.VpnTunnelTerminationsListExecute(r)
+}
+
+/*
+VpnTunnelTerminationsList Method for VpnTunnelTerminationsList
+
+Get a list of tunnel termination objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsListRequest
+*/
+func (a *VpnAPIService) VpnTunnelTerminationsList(ctx context.Context) ApiVpnTunnelTerminationsListRequest {
+ return ApiVpnTunnelTerminationsListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedTunnelTerminationList
+func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminationsListRequest) (*PaginatedTunnelTerminationList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedTunnelTerminationList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-terminations/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.created != nil {
+ t := *r.created
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
+ }
+ }
+ if r.createdEmpty != nil {
+ t := *r.createdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
+ }
+ }
+ if r.createdGt != nil {
+ t := *r.createdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
+ }
+ }
+ if r.createdGte != nil {
+ t := *r.createdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
+ }
+ }
+ if r.createdLt != nil {
+ t := *r.createdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
+ }
+ }
+ if r.createdLte != nil {
+ t := *r.createdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
+ }
+ }
+ if r.createdN != nil {
+ t := *r.createdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
+ }
+ }
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
+ }
+ }
+ if r.interface_ != nil {
+ t := *r.interface_
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface", t, "multi")
+ }
+ }
+ if r.interfaceN != nil {
+ t := *r.interfaceN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface__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 {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ }
+ if r.outsideIpId != nil {
+ t := *r.outsideIpId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outside_ip_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outside_ip_id", t, "multi")
+ }
+ }
+ if r.outsideIpIdN != nil {
+ t := *r.outsideIpIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outside_ip_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outside_ip_id__n", t, "multi")
+ }
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ }
+ if r.role != nil {
+ t := *r.role
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi")
+ }
+ }
+ if r.roleN != nil {
+ t := *r.roleN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi")
+ }
+ }
+ if r.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
+ }
+ }
+ if r.terminationType != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "termination_type", r.terminationType, "")
+ }
+ if r.terminationTypeN != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "termination_type__n", r.terminationTypeN, "")
+ }
+ if r.tunnel != nil {
+ t := *r.tunnel
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel", t, "multi")
+ }
+ }
+ if r.tunnelN != nil {
+ t := *r.tunnelN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel__n", t, "multi")
+ }
+ }
+ if r.tunnelId != nil {
+ t := *r.tunnelId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id", t, "multi")
+ }
+ }
+ if r.tunnelIdN != nil {
+ t := *r.tunnelIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__n", t, "multi")
+ }
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ if r.vminterface != nil {
+ t := *r.vminterface
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", t, "multi")
+ }
+ }
+ if r.vminterfaceN != nil {
+ t := *r.vminterfaceN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", t, "multi")
+ }
+ }
+ if r.vminterfaceId != nil {
+ t := *r.vminterfaceId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", t, "multi")
+ }
+ }
+ if r.vminterfaceIdN != nil {
+ t := *r.vminterfaceIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", t, "multi")
+ }
+ }
+ // 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 ApiVpnTunnelTerminationsPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ patchedWritableTunnelTerminationRequest *PatchedWritableTunnelTerminationRequest
+}
+
+func (r ApiVpnTunnelTerminationsPartialUpdateRequest) PatchedWritableTunnelTerminationRequest(patchedWritableTunnelTerminationRequest PatchedWritableTunnelTerminationRequest) ApiVpnTunnelTerminationsPartialUpdateRequest {
+ r.patchedWritableTunnelTerminationRequest = &patchedWritableTunnelTerminationRequest
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsPartialUpdateRequest) Execute() (*TunnelTermination, *http.Response, error) {
+ return r.ApiService.VpnTunnelTerminationsPartialUpdateExecute(r)
+}
+
+/*
+VpnTunnelTerminationsPartialUpdate Method for VpnTunnelTerminationsPartialUpdate
+
+Patch a tunnel termination object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel termination.
+ @return ApiVpnTunnelTerminationsPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnTunnelTerminationsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelTerminationsPartialUpdateRequest {
+ return ApiVpnTunnelTerminationsPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return TunnelTermination
+func (a *VpnAPIService) VpnTunnelTerminationsPartialUpdateExecute(r ApiVpnTunnelTerminationsPartialUpdateRequest) (*TunnelTermination, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelTermination
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-terminations/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.patchedWritableTunnelTerminationRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelTerminationsRetrieveRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnTunnelTerminationsRetrieveRequest) Execute() (*TunnelTermination, *http.Response, error) {
+ return r.ApiService.VpnTunnelTerminationsRetrieveExecute(r)
+}
+
+/*
+VpnTunnelTerminationsRetrieve Method for VpnTunnelTerminationsRetrieve
+
+Get a tunnel termination object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel termination.
+ @return ApiVpnTunnelTerminationsRetrieveRequest
+*/
+func (a *VpnAPIService) VpnTunnelTerminationsRetrieve(ctx context.Context, id int32) ApiVpnTunnelTerminationsRetrieveRequest {
+ return ApiVpnTunnelTerminationsRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return TunnelTermination
+func (a *VpnAPIService) VpnTunnelTerminationsRetrieveExecute(r ApiVpnTunnelTerminationsRetrieveRequest) (*TunnelTermination, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelTermination
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-terminations/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiVpnTunnelTerminationsUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ writableTunnelTerminationRequest *WritableTunnelTerminationRequest
+}
+
+func (r ApiVpnTunnelTerminationsUpdateRequest) WritableTunnelTerminationRequest(writableTunnelTerminationRequest WritableTunnelTerminationRequest) ApiVpnTunnelTerminationsUpdateRequest {
+ r.writableTunnelTerminationRequest = &writableTunnelTerminationRequest
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsUpdateRequest) Execute() (*TunnelTermination, *http.Response, error) {
+ return r.ApiService.VpnTunnelTerminationsUpdateExecute(r)
+}
+
+/*
+VpnTunnelTerminationsUpdate Method for VpnTunnelTerminationsUpdate
+
+Put a tunnel termination object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel termination.
+ @return ApiVpnTunnelTerminationsUpdateRequest
+*/
+func (a *VpnAPIService) VpnTunnelTerminationsUpdate(ctx context.Context, id int32) ApiVpnTunnelTerminationsUpdateRequest {
+ return ApiVpnTunnelTerminationsUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return TunnelTermination
+func (a *VpnAPIService) VpnTunnelTerminationsUpdateExecute(r ApiVpnTunnelTerminationsUpdateRequest) (*TunnelTermination, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelTermination
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnel-terminations/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableTunnelTerminationRequest == nil {
+ return localVarReturnValue, nil, reportError("writableTunnelTerminationRequest 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.writableTunnelTerminationRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelsBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ tunnelRequest *[]TunnelRequest
+}
+
+func (r ApiVpnTunnelsBulkDestroyRequest) TunnelRequest(tunnelRequest []TunnelRequest) ApiVpnTunnelsBulkDestroyRequest {
+ r.tunnelRequest = &tunnelRequest
+ return r
+}
+
+func (r ApiVpnTunnelsBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnTunnelsBulkDestroyExecute(r)
+}
+
+/*
+VpnTunnelsBulkDestroy Method for VpnTunnelsBulkDestroy
+
+Delete a list of tunnel objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsBulkDestroyRequest
+*/
+func (a *VpnAPIService) VpnTunnelsBulkDestroy(ctx context.Context) ApiVpnTunnelsBulkDestroyRequest {
+ return ApiVpnTunnelsBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnTunnelsBulkDestroyExecute(r ApiVpnTunnelsBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnels/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tunnelRequest == nil {
+ return nil, reportError("tunnelRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.tunnelRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelsBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ tunnelRequest *[]TunnelRequest
+}
+
+func (r ApiVpnTunnelsBulkPartialUpdateRequest) TunnelRequest(tunnelRequest []TunnelRequest) ApiVpnTunnelsBulkPartialUpdateRequest {
+ r.tunnelRequest = &tunnelRequest
+ return r
+}
+
+func (r ApiVpnTunnelsBulkPartialUpdateRequest) Execute() ([]Tunnel, *http.Response, error) {
+ return r.ApiService.VpnTunnelsBulkPartialUpdateExecute(r)
+}
+
+/*
+VpnTunnelsBulkPartialUpdate Method for VpnTunnelsBulkPartialUpdate
+
+Patch a list of tunnel objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsBulkPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnTunnelsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelsBulkPartialUpdateRequest {
+ return ApiVpnTunnelsBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []Tunnel
+func (a *VpnAPIService) VpnTunnelsBulkPartialUpdateExecute(r ApiVpnTunnelsBulkPartialUpdateRequest) ([]Tunnel, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Tunnel
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnels/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tunnelRequest == nil {
+ return localVarReturnValue, nil, reportError("tunnelRequest 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.tunnelRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelsBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ tunnelRequest *[]TunnelRequest
+}
+
+func (r ApiVpnTunnelsBulkUpdateRequest) TunnelRequest(tunnelRequest []TunnelRequest) ApiVpnTunnelsBulkUpdateRequest {
+ r.tunnelRequest = &tunnelRequest
+ return r
+}
+
+func (r ApiVpnTunnelsBulkUpdateRequest) Execute() ([]Tunnel, *http.Response, error) {
+ return r.ApiService.VpnTunnelsBulkUpdateExecute(r)
+}
+
+/*
+VpnTunnelsBulkUpdate Method for VpnTunnelsBulkUpdate
+
+Put a list of tunnel objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsBulkUpdateRequest
+*/
+func (a *VpnAPIService) VpnTunnelsBulkUpdate(ctx context.Context) ApiVpnTunnelsBulkUpdateRequest {
+ return ApiVpnTunnelsBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []Tunnel
+func (a *VpnAPIService) VpnTunnelsBulkUpdateExecute(r ApiVpnTunnelsBulkUpdateRequest) ([]Tunnel, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Tunnel
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnels/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tunnelRequest == nil {
+ return localVarReturnValue, nil, reportError("tunnelRequest 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.tunnelRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelsCreateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ writableTunnelRequest *WritableTunnelRequest
+}
+
+func (r ApiVpnTunnelsCreateRequest) WritableTunnelRequest(writableTunnelRequest WritableTunnelRequest) ApiVpnTunnelsCreateRequest {
+ r.writableTunnelRequest = &writableTunnelRequest
+ return r
+}
+
+func (r ApiVpnTunnelsCreateRequest) Execute() (*Tunnel, *http.Response, error) {
+ return r.ApiService.VpnTunnelsCreateExecute(r)
+}
+
+/*
+VpnTunnelsCreate Method for VpnTunnelsCreate
+
+Post a list of tunnel objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsCreateRequest
+*/
+func (a *VpnAPIService) VpnTunnelsCreate(ctx context.Context) ApiVpnTunnelsCreateRequest {
+ return ApiVpnTunnelsCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return Tunnel
+func (a *VpnAPIService) VpnTunnelsCreateExecute(r ApiVpnTunnelsCreateRequest) (*Tunnel, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tunnel
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnels/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.writableTunnelRequest == nil {
+ return localVarReturnValue, nil, reportError("writableTunnelRequest 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.writableTunnelRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelsDestroyRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnTunnelsDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.VpnTunnelsDestroyExecute(r)
+}
+
+/*
+VpnTunnelsDestroy Method for VpnTunnelsDestroy
+
+Delete a tunnel object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel.
+ @return ApiVpnTunnelsDestroyRequest
+*/
+func (a *VpnAPIService) VpnTunnelsDestroy(ctx context.Context, id int32) ApiVpnTunnelsDestroyRequest {
+ return ApiVpnTunnelsDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *VpnAPIService) VpnTunnelsDestroyExecute(r ApiVpnTunnelsDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnels/{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 ApiVpnTunnelsListRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ encapsulation *[]string
+ encapsulationN *[]string
+ group *[]string
+ groupN *[]string
+ groupId *[]*int32
+ groupIdN *[]*int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ ipsecProfile *[]string
+ ipsecProfileN *[]string
+ ipsecProfileId *[]*int32
+ ipsecProfileIdN *[]*int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ status *[]string
+ statusN *[]string
+ tag *[]string
+ tagN *[]string
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]int32
+ tenantGroupN *[]int32
+ tenantGroupId *[]int32
+ tenantGroupIdN *[]int32
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ tunnelId *[]int32
+ tunnelIdEmpty *bool
+ tunnelIdGt *[]int32
+ tunnelIdGte *[]int32
+ tunnelIdLt *[]int32
+ tunnelIdLte *[]int32
+ tunnelIdN *[]int32
+ updatedByRequest *string
+}
+
+func (r ApiVpnTunnelsListRequest) Created(created []time.Time) ApiVpnTunnelsListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVpnTunnelsListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) CreatedGt(createdGt []time.Time) ApiVpnTunnelsListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) CreatedGte(createdGte []time.Time) ApiVpnTunnelsListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) CreatedLt(createdLt []time.Time) ApiVpnTunnelsListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) CreatedLte(createdLte []time.Time) ApiVpnTunnelsListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) CreatedN(createdN []time.Time) ApiVpnTunnelsListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) CreatedByRequest(createdByRequest string) ApiVpnTunnelsListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) Description(description []string) ApiVpnTunnelsListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiVpnTunnelsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) DescriptionIc(descriptionIc []string) ApiVpnTunnelsListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) DescriptionIe(descriptionIe []string) ApiVpnTunnelsListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) DescriptionIew(descriptionIew []string) ApiVpnTunnelsListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) DescriptionIsw(descriptionIsw []string) ApiVpnTunnelsListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) DescriptionN(descriptionN []string) ApiVpnTunnelsListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) DescriptionNic(descriptionNic []string) ApiVpnTunnelsListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) DescriptionNie(descriptionNie []string) ApiVpnTunnelsListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) DescriptionNiew(descriptionNiew []string) ApiVpnTunnelsListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) DescriptionNisw(descriptionNisw []string) ApiVpnTunnelsListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) Encapsulation(encapsulation []string) ApiVpnTunnelsListRequest {
+ r.encapsulation = &encapsulation
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) EncapsulationN(encapsulationN []string) ApiVpnTunnelsListRequest {
+ r.encapsulationN = &encapsulationN
+ return r
+}
+
+// Tunnel group (slug)
+func (r ApiVpnTunnelsListRequest) Group(group []string) ApiVpnTunnelsListRequest {
+ r.group = &group
+ return r
+}
+
+// Tunnel group (slug)
+func (r ApiVpnTunnelsListRequest) GroupN(groupN []string) ApiVpnTunnelsListRequest {
+ r.groupN = &groupN
+ return r
+}
+
+// Tunnel group (ID)
+func (r ApiVpnTunnelsListRequest) GroupId(groupId []*int32) ApiVpnTunnelsListRequest {
+ r.groupId = &groupId
+ return r
+}
+
+// Tunnel group (ID)
+func (r ApiVpnTunnelsListRequest) GroupIdN(groupIdN []*int32) ApiVpnTunnelsListRequest {
+ r.groupIdN = &groupIdN
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) Id(id []int32) ApiVpnTunnelsListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) IdEmpty(idEmpty bool) ApiVpnTunnelsListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) IdGt(idGt []int32) ApiVpnTunnelsListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) IdGte(idGte []int32) ApiVpnTunnelsListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) IdLt(idLt []int32) ApiVpnTunnelsListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) IdLte(idLte []int32) ApiVpnTunnelsListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) IdN(idN []int32) ApiVpnTunnelsListRequest {
+ r.idN = &idN
+ return r
+}
+
+// IPSec profile (name)
+func (r ApiVpnTunnelsListRequest) IpsecProfile(ipsecProfile []string) ApiVpnTunnelsListRequest {
+ r.ipsecProfile = &ipsecProfile
+ return r
+}
+
+// IPSec profile (name)
+func (r ApiVpnTunnelsListRequest) IpsecProfileN(ipsecProfileN []string) ApiVpnTunnelsListRequest {
+ r.ipsecProfileN = &ipsecProfileN
+ return r
+}
+
+// IPSec profile (ID)
+func (r ApiVpnTunnelsListRequest) IpsecProfileId(ipsecProfileId []*int32) ApiVpnTunnelsListRequest {
+ r.ipsecProfileId = &ipsecProfileId
+ return r
+}
+
+// IPSec profile (ID)
+func (r ApiVpnTunnelsListRequest) IpsecProfileIdN(ipsecProfileIdN []*int32) ApiVpnTunnelsListRequest {
+ r.ipsecProfileIdN = &ipsecProfileIdN
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnTunnelsListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVpnTunnelsListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVpnTunnelsListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiVpnTunnelsListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiVpnTunnelsListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiVpnTunnelsListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiVpnTunnelsListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiVpnTunnelsListRequest) Limit(limit int32) ApiVpnTunnelsListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnTunnelsListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) Name(name []string) ApiVpnTunnelsListRequest {
+ r.name = &name
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) NameEmpty(nameEmpty bool) ApiVpnTunnelsListRequest {
+ r.nameEmpty = &nameEmpty
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) NameIc(nameIc []string) ApiVpnTunnelsListRequest {
+ r.nameIc = &nameIc
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) NameIe(nameIe []string) ApiVpnTunnelsListRequest {
+ r.nameIe = &nameIe
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) NameIew(nameIew []string) ApiVpnTunnelsListRequest {
+ r.nameIew = &nameIew
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) NameIsw(nameIsw []string) ApiVpnTunnelsListRequest {
+ r.nameIsw = &nameIsw
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) NameN(nameN []string) ApiVpnTunnelsListRequest {
+ r.nameN = &nameN
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) NameNic(nameNic []string) ApiVpnTunnelsListRequest {
+ r.nameNic = &nameNic
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) NameNie(nameNie []string) ApiVpnTunnelsListRequest {
+ r.nameNie = &nameNie
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) NameNiew(nameNiew []string) ApiVpnTunnelsListRequest {
+ r.nameNiew = &nameNiew
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) NameNisw(nameNisw []string) ApiVpnTunnelsListRequest {
+ r.nameNisw = &nameNisw
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiVpnTunnelsListRequest) Offset(offset int32) ApiVpnTunnelsListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiVpnTunnelsListRequest) Ordering(ordering string) ApiVpnTunnelsListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Search
+func (r ApiVpnTunnelsListRequest) Q(q string) ApiVpnTunnelsListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) Status(status []string) ApiVpnTunnelsListRequest {
+ r.status = &status
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) StatusN(statusN []string) ApiVpnTunnelsListRequest {
+ r.statusN = &statusN
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) Tag(tag []string) ApiVpnTunnelsListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) TagN(tagN []string) ApiVpnTunnelsListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+// Tenant (slug)
+func (r ApiVpnTunnelsListRequest) Tenant(tenant []string) ApiVpnTunnelsListRequest {
+ r.tenant = &tenant
+ return r
+}
+
+// Tenant (slug)
+func (r ApiVpnTunnelsListRequest) TenantN(tenantN []string) ApiVpnTunnelsListRequest {
+ r.tenantN = &tenantN
+ return r
+}
+
+// Tenant Group (slug)
+func (r ApiVpnTunnelsListRequest) TenantGroup(tenantGroup []int32) ApiVpnTunnelsListRequest {
+ r.tenantGroup = &tenantGroup
+ return r
+}
+
+// Tenant Group (slug)
+func (r ApiVpnTunnelsListRequest) TenantGroupN(tenantGroupN []int32) ApiVpnTunnelsListRequest {
+ r.tenantGroupN = &tenantGroupN
+ return r
+}
+
+// Tenant Group (ID)
+func (r ApiVpnTunnelsListRequest) TenantGroupId(tenantGroupId []int32) ApiVpnTunnelsListRequest {
+ r.tenantGroupId = &tenantGroupId
+ return r
+}
+
+// Tenant Group (ID)
+func (r ApiVpnTunnelsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVpnTunnelsListRequest {
+ r.tenantGroupIdN = &tenantGroupIdN
+ return r
+}
+
+// Tenant (ID)
+func (r ApiVpnTunnelsListRequest) TenantId(tenantId []*int32) ApiVpnTunnelsListRequest {
+ r.tenantId = &tenantId
+ return r
+}
+
+// Tenant (ID)
+func (r ApiVpnTunnelsListRequest) TenantIdN(tenantIdN []*int32) ApiVpnTunnelsListRequest {
+ r.tenantIdN = &tenantIdN
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) TunnelId(tunnelId []int32) ApiVpnTunnelsListRequest {
+ r.tunnelId = &tunnelId
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) TunnelIdEmpty(tunnelIdEmpty bool) ApiVpnTunnelsListRequest {
+ r.tunnelIdEmpty = &tunnelIdEmpty
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) TunnelIdGt(tunnelIdGt []int32) ApiVpnTunnelsListRequest {
+ r.tunnelIdGt = &tunnelIdGt
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) TunnelIdGte(tunnelIdGte []int32) ApiVpnTunnelsListRequest {
+ r.tunnelIdGte = &tunnelIdGte
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) TunnelIdLt(tunnelIdLt []int32) ApiVpnTunnelsListRequest {
+ r.tunnelIdLt = &tunnelIdLt
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) TunnelIdLte(tunnelIdLte []int32) ApiVpnTunnelsListRequest {
+ r.tunnelIdLte = &tunnelIdLte
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) TunnelIdN(tunnelIdN []int32) ApiVpnTunnelsListRequest {
+ r.tunnelIdN = &tunnelIdN
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnTunnelsListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) Execute() (*PaginatedTunnelList, *http.Response, error) {
+ return r.ApiService.VpnTunnelsListExecute(r)
+}
+
+/*
+VpnTunnelsList Method for VpnTunnelsList
+
+Get a list of tunnel objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsListRequest
+*/
+func (a *VpnAPIService) VpnTunnelsList(ctx context.Context) ApiVpnTunnelsListRequest {
+ return ApiVpnTunnelsListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedTunnelList
+func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*PaginatedTunnelList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedTunnelList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnels/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.created != nil {
+ t := *r.created
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
+ }
+ }
+ if r.createdEmpty != nil {
+ t := *r.createdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
+ }
+ }
+ if r.createdGt != nil {
+ t := *r.createdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
+ }
+ }
+ if r.createdGte != nil {
+ t := *r.createdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
+ }
+ }
+ if r.createdLt != nil {
+ t := *r.createdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
+ }
+ }
+ if r.createdLte != nil {
+ t := *r.createdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
+ }
+ }
+ if r.createdN != nil {
+ t := *r.createdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
+ }
+ }
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
+ }
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
+ }
+ }
+ if r.encapsulation != nil {
+ t := *r.encapsulation
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation", t, "multi")
+ }
+ }
+ if r.encapsulationN != nil {
+ t := *r.encapsulationN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__n", t, "multi")
+ }
+ }
+ if r.group != nil {
+ t := *r.group
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi")
+ }
+ }
+ if r.groupN != nil {
+ t := *r.groupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi")
+ }
+ }
+ if r.groupId != nil {
+ t := *r.groupId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi")
+ }
+ }
+ if r.groupIdN != nil {
+ t := *r.groupIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi")
+ }
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
+ }
+ }
+ if r.ipsecProfile != nil {
+ t := *r.ipsecProfile
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile", t, "multi")
+ }
+ }
+ if r.ipsecProfileN != nil {
+ t := *r.ipsecProfileN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile__n", t, "multi")
+ }
+ }
+ if r.ipsecProfileId != nil {
+ t := *r.ipsecProfileId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile_id", t, "multi")
+ }
+ }
+ if r.ipsecProfileIdN != nil {
+ t := *r.ipsecProfileIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile_id__n", t, "multi")
+ }
+ }
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
+ if r.name != nil {
+ t := *r.name
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi")
+ }
+ }
+ if r.nameEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "")
+ }
+ if r.nameIc != nil {
+ t := *r.nameIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi")
+ }
+ }
+ if r.nameIe != nil {
+ t := *r.nameIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi")
+ }
+ }
+ if r.nameIew != nil {
+ t := *r.nameIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi")
+ }
+ }
+ if r.nameIsw != nil {
+ t := *r.nameIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi")
+ }
+ }
+ if r.nameN != nil {
+ t := *r.nameN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi")
+ }
+ }
+ if r.nameNic != nil {
+ t := *r.nameNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi")
+ }
+ }
+ if r.nameNie != nil {
+ t := *r.nameNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi")
+ }
+ }
+ if r.nameNiew != nil {
+ t := *r.nameNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi")
+ }
+ }
+ if r.nameNisw != nil {
+ t := *r.nameNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi")
+ }
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ }
+ if r.status != nil {
+ t := *r.status
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi")
+ }
+ }
+ if r.statusN != nil {
+ t := *r.statusN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi")
+ }
+ }
+ if r.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
+ }
+ }
+ if r.tenant != nil {
+ t := *r.tenant
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi")
+ }
+ }
+ if r.tenantN != nil {
+ t := *r.tenantN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi")
+ }
+ }
+ if r.tenantGroup != nil {
+ t := *r.tenantGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi")
+ }
+ }
+ if r.tenantGroupN != nil {
+ t := *r.tenantGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi")
+ }
+ }
+ if r.tenantGroupId != nil {
+ t := *r.tenantGroupId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi")
+ }
+ }
+ if r.tenantGroupIdN != nil {
+ t := *r.tenantGroupIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi")
+ }
+ }
+ if r.tenantId != nil {
+ t := *r.tenantId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi")
+ }
+ }
+ if r.tenantIdN != nil {
+ t := *r.tenantIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi")
+ }
+ }
+ if r.tunnelId != nil {
+ t := *r.tunnelId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id", t, "multi")
+ }
+ }
+ if r.tunnelIdEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__empty", r.tunnelIdEmpty, "")
+ }
+ if r.tunnelIdGt != nil {
+ t := *r.tunnelIdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__gt", t, "multi")
+ }
+ }
+ if r.tunnelIdGte != nil {
+ t := *r.tunnelIdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__gte", t, "multi")
+ }
+ }
+ if r.tunnelIdLt != nil {
+ t := *r.tunnelIdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__lt", t, "multi")
+ }
+ }
+ if r.tunnelIdLte != nil {
+ t := *r.tunnelIdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__lte", t, "multi")
+ }
+ }
+ if r.tunnelIdN != nil {
+ t := *r.tunnelIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__n", t, "multi")
+ }
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiVpnTunnelsPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ patchedWritableTunnelRequest *PatchedWritableTunnelRequest
+}
+
+func (r ApiVpnTunnelsPartialUpdateRequest) PatchedWritableTunnelRequest(patchedWritableTunnelRequest PatchedWritableTunnelRequest) ApiVpnTunnelsPartialUpdateRequest {
+ r.patchedWritableTunnelRequest = &patchedWritableTunnelRequest
+ return r
+}
+
+func (r ApiVpnTunnelsPartialUpdateRequest) Execute() (*Tunnel, *http.Response, error) {
+ return r.ApiService.VpnTunnelsPartialUpdateExecute(r)
+}
+
+/*
+VpnTunnelsPartialUpdate Method for VpnTunnelsPartialUpdate
+
+Patch a tunnel object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel.
+ @return ApiVpnTunnelsPartialUpdateRequest
+*/
+func (a *VpnAPIService) VpnTunnelsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelsPartialUpdateRequest {
+ return ApiVpnTunnelsPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return Tunnel
+func (a *VpnAPIService) VpnTunnelsPartialUpdateExecute(r ApiVpnTunnelsPartialUpdateRequest) (*Tunnel, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tunnel
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnels/{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.patchedWritableTunnelRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiVpnTunnelsRetrieveRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+}
+
+func (r ApiVpnTunnelsRetrieveRequest) Execute() (*Tunnel, *http.Response, error) {
+ return r.ApiService.VpnTunnelsRetrieveExecute(r)
+}
+
+/*
+VpnTunnelsRetrieve Method for VpnTunnelsRetrieve
+
+Get a tunnel object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel.
+ @return ApiVpnTunnelsRetrieveRequest
+*/
+func (a *VpnAPIService) VpnTunnelsRetrieve(ctx context.Context, id int32) ApiVpnTunnelsRetrieveRequest {
+ return ApiVpnTunnelsRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return Tunnel
+func (a *VpnAPIService) VpnTunnelsRetrieveExecute(r ApiVpnTunnelsRetrieveRequest) (*Tunnel, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tunnel
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnels/{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 ApiVpnTunnelsUpdateRequest struct {
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ writableTunnelRequest *WritableTunnelRequest
+}
+
+func (r ApiVpnTunnelsUpdateRequest) WritableTunnelRequest(writableTunnelRequest WritableTunnelRequest) ApiVpnTunnelsUpdateRequest {
+ r.writableTunnelRequest = &writableTunnelRequest
+ return r
+}
+
+func (r ApiVpnTunnelsUpdateRequest) Execute() (*Tunnel, *http.Response, error) {
+ return r.ApiService.VpnTunnelsUpdateExecute(r)
+}
+
+/*
+VpnTunnelsUpdate Method for VpnTunnelsUpdate
+
+Put a tunnel object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel.
+ @return ApiVpnTunnelsUpdateRequest
+*/
+func (a *VpnAPIService) VpnTunnelsUpdate(ctx context.Context, id int32) ApiVpnTunnelsUpdateRequest {
+ return ApiVpnTunnelsUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return Tunnel
+func (a *VpnAPIService) VpnTunnelsUpdateExecute(r ApiVpnTunnelsUpdateRequest) (*Tunnel, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tunnel
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/vpn/tunnels/{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.writableTunnelRequest == nil {
+ return localVarReturnValue, nil, reportError("writableTunnelRequest 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.writableTunnelRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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
+}
diff --git a/api_wireless.go b/api_wireless.go
index 541abfe681..94e4144a70 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/client.go b/client.go
index 1fddfc4029..0772bf84ef 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -34,13 +34,13 @@ import (
)
var (
- jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`)
- xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`)
+ JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
+ XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]")
)
-// APIClient manages communication with the NetBox REST API API v3.6.2 (3.6)
+// APIClient manages communication with the NetBox REST API API v3.7.0 (3.7)
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
@@ -68,6 +68,8 @@ type APIClient struct {
VirtualizationAPI *VirtualizationAPIService
+ VpnAPI *VpnAPIService
+
WirelessAPI *WirelessAPIService
}
@@ -97,6 +99,7 @@ func NewAPIClient(cfg *Configuration) *APIClient {
c.TenancyAPI = (*TenancyAPIService)(&c.common)
c.UsersAPI = (*UsersAPIService)(&c.common)
c.VirtualizationAPI = (*VirtualizationAPIService)(&c.common)
+ c.VpnAPI = (*VpnAPIService)(&c.common)
c.WirelessAPI = (*WirelessAPIService)(&c.common)
return c
@@ -465,7 +468,6 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err
return
}
_, err = f.Seek(0, io.SeekStart)
- err = os.Remove(f.Name())
return
}
if f, ok := v.(**os.File); ok {
@@ -478,16 +480,15 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err
return
}
_, err = (*f).Seek(0, io.SeekStart)
- err = os.Remove((*f).Name())
return
}
- if xmlCheck.MatchString(contentType) {
+ if XmlCheck.MatchString(contentType) {
if err = xml.Unmarshal(b, v); err != nil {
return err
}
return nil
}
- if jsonCheck.MatchString(contentType) {
+ if JsonCheck.MatchString(contentType) {
if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas
if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined
if err = unmarshalObj.UnmarshalJSON(b); err != nil {
@@ -552,9 +553,9 @@ func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err e
_, err = bodyBuf.WriteString(s)
} else if s, ok := body.(*string); ok {
_, err = bodyBuf.WriteString(*s)
- } else if jsonCheck.MatchString(contentType) {
+ } else if JsonCheck.MatchString(contentType) {
err = json.NewEncoder(bodyBuf).Encode(body)
- } else if xmlCheck.MatchString(contentType) {
+ } else if XmlCheck.MatchString(contentType) {
var bs []byte
bs, err = xml.Marshal(body)
if err == nil {
diff --git a/configuration.go b/configuration.go
index 306671d095..4cee7269fb 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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.6.2",
+ UserAgent: "go-netbox/3.7.0",
Debug: false,
Servers: ServerConfigurations{
{
diff --git a/docker-compose.yml b/docker-compose.yml
index dc4ee24815..a1768263c7 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,5 +1,5 @@
services:
- app:
+ main:
build:
context: .
target: development
@@ -8,8 +8,6 @@ services:
volumes:
- .:/go/src/app
- cache:/go/pkg
- env_file: .env
- hostname: app
tty: true
volumes:
diff --git a/docs/AggregateFamily.md b/docs/AggregateFamily.md
index a25b1785e4..f562e2e700 100644
--- a/docs/AggregateFamily.md
+++ b/docs/AggregateFamily.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **int32** | * `4` - IPv4 * `6` - IPv6 | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**AggregateFamilyValue**](AggregateFamilyValue.md) | | [optional]
+**Label** | Pointer to [**AggregateFamilyLabel**](AggregateFamilyLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *AggregateFamily) GetValue() int32`
+`func (o *AggregateFamily) GetValue() AggregateFamilyValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *AggregateFamily) GetValueOk() (*int32, bool)`
+`func (o *AggregateFamily) GetValueOk() (*AggregateFamilyValue, 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 *AggregateFamily) SetValue(v int32)`
+`func (o *AggregateFamily) SetValue(v AggregateFamilyValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *AggregateFamily) GetLabel() string`
+`func (o *AggregateFamily) GetLabel() AggregateFamilyLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *AggregateFamily) GetLabelOk() (*string, bool)`
+`func (o *AggregateFamily) GetLabelOk() (*AggregateFamilyLabel, 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 *AggregateFamily) SetLabel(v string)`
+`func (o *AggregateFamily) SetLabel(v AggregateFamilyLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/AggregateFamilyLabel.md b/docs/AggregateFamilyLabel.md
new file mode 100644
index 0000000000..4068d262c3
--- /dev/null
+++ b/docs/AggregateFamilyLabel.md
@@ -0,0 +1,13 @@
+# AggregateFamilyLabel
+
+## Enum
+
+
+* `IPV4` (value: `"IPv4"`)
+
+* `IPV6` (value: `"IPv6"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/AggregateFamilyValue.md b/docs/AggregateFamilyValue.md
new file mode 100644
index 0000000000..36ab7023bf
--- /dev/null
+++ b/docs/AggregateFamilyValue.md
@@ -0,0 +1,13 @@
+# AggregateFamilyValue
+
+## Enum
+
+
+* `_4` (value: `4`)
+
+* `_6` (value: `6`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Authentication.md b/docs/Authentication.md
new file mode 100644
index 0000000000..1e2ffd4f65
--- /dev/null
+++ b/docs/Authentication.md
@@ -0,0 +1,21 @@
+# Authentication
+
+## Enum
+
+
+* `HMAC_SHA1` (value: `"hmac-sha1"`)
+
+* `HMAC_SHA256` (value: `"hmac-sha256"`)
+
+* `HMAC_SHA384` (value: `"hmac-sha384"`)
+
+* `HMAC_SHA512` (value: `"hmac-sha512"`)
+
+* `HMAC_MD5` (value: `"hmac-md5"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/AuthenticationCipher.md b/docs/AuthenticationCipher.md
new file mode 100644
index 0000000000..d6f1451af8
--- /dev/null
+++ b/docs/AuthenticationCipher.md
@@ -0,0 +1,17 @@
+# AuthenticationCipher
+
+## Enum
+
+
+* `AUTO` (value: `"auto"`)
+
+* `TKIP` (value: `"tkip"`)
+
+* `AES` (value: `"aes"`)
+
+* `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/AuthenticationType.md b/docs/AuthenticationType.md
new file mode 100644
index 0000000000..7d11f5f6d6
--- /dev/null
+++ b/docs/AuthenticationType.md
@@ -0,0 +1,15 @@
+# AuthenticationType
+
+## Enum
+
+
+* `PLAINTEXT` (value: `"plaintext"`)
+
+* `MD5` (value: `"md5"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/AuthenticationType1.md b/docs/AuthenticationType1.md
new file mode 100644
index 0000000000..64f268e227
--- /dev/null
+++ b/docs/AuthenticationType1.md
@@ -0,0 +1,19 @@
+# AuthenticationType1
+
+## Enum
+
+
+* `OPEN` (value: `"open"`)
+
+* `WEP` (value: `"wep"`)
+
+* `WPA_PERSONAL` (value: `"wpa-personal"`)
+
+* `WPA_ENTERPRISE` (value: `"wpa-enterprise"`)
+
+* `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/Bookmark.md b/docs/Bookmark.md
index 44bbe47cdd..bc555cf96a 100644
--- a/docs/Bookmark.md
+++ b/docs/Bookmark.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**ObjectType** | **string** | |
**ObjectId** | **int64** | |
-**Object** | **map[string]interface{}** | | [readonly]
+**Object** | **interface{}** | | [readonly]
**User** | [**NestedUser**](NestedUser.md) | |
**Created** | **time.Time** | | [readonly]
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
### NewBookmark
-`func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, user NestedUser, created time.Time, ) *Bookmark`
+`func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user NestedUser, created time.Time, ) *Bookmark`
NewBookmark instantiates a new Bookmark object
This constructor will assign default values to properties that have it defined,
@@ -134,20 +134,20 @@ SetObjectId sets ObjectId field to given value.
### GetObject
-`func (o *Bookmark) GetObject() map[string]interface{}`
+`func (o *Bookmark) GetObject() interface{}`
GetObject returns the Object field if non-nil, zero value otherwise.
### GetObjectOk
-`func (o *Bookmark) GetObjectOk() (*map[string]interface{}, bool)`
+`func (o *Bookmark) 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 *Bookmark) SetObject(v map[string]interface{})`
+`func (o *Bookmark) SetObject(v interface{})`
SetObject sets Object field to given value.
diff --git a/docs/Cable.md b/docs/Cable.md
index b4fb7a699b..3482a2c754 100644
--- a/docs/Cable.md
+++ b/docs/Cable.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Type** | Pointer to **string** | * `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 | [optional]
+**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]
@@ -104,20 +104,20 @@ SetDisplay sets Display field to given value.
### GetType
-`func (o *Cable) GetType() string`
+`func (o *Cable) GetType() CableType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *Cable) GetTypeOk() (*string, bool)`
+`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 string)`
+`func (o *Cable) SetType(v CableType)`
SetType sets Type field to given value.
diff --git a/docs/CableLengthUnit.md b/docs/CableLengthUnit.md
index 27c8f8b80d..0ca0923d95 100644
--- a/docs/CableLengthUnit.md
+++ b/docs/CableLengthUnit.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional]
+**Label** | Pointer to [**CableLengthUnitLabel**](CableLengthUnitLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *CableLengthUnit) GetValue() string`
+`func (o *CableLengthUnit) GetValue() CableLengthUnitValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *CableLengthUnit) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *CableLengthUnit) SetValue(v CableLengthUnitValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *CableLengthUnit) GetLabel() string`
+`func (o *CableLengthUnit) GetLabel() CableLengthUnitLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *CableLengthUnit) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *CableLengthUnit) SetLabel(v CableLengthUnitLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/CableLengthUnitLabel.md b/docs/CableLengthUnitLabel.md
new file mode 100644
index 0000000000..5e953b5a9e
--- /dev/null
+++ b/docs/CableLengthUnitLabel.md
@@ -0,0 +1,21 @@
+# 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/CableLengthUnitValue.md b/docs/CableLengthUnitValue.md
new file mode 100644
index 0000000000..a9a0eebea3
--- /dev/null
+++ b/docs/CableLengthUnitValue.md
@@ -0,0 +1,23 @@
+# CableLengthUnitValue
+
+## Enum
+
+
+* `KM` (value: `"km"`)
+
+* `M` (value: `"m"`)
+
+* `CM` (value: `"cm"`)
+
+* `MI` (value: `"mi"`)
+
+* `FT` (value: `"ft"`)
+
+* `IN` (value: `"in"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CableRequest.md b/docs/CableRequest.md
index 92825adbbd..461c9e9d37 100644
--- a/docs/CableRequest.md
+++ b/docs/CableRequest.md
@@ -4,15 +4,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Type** | Pointer to **string** | * `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 | [optional]
+**Type** | Pointer to [**CableType**](CableType.md) | | [optional]
**ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional]
**BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional]
-**Status** | Pointer to **string** | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | [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 **NullableString** | * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches | [optional]
+**LengthUnit** | Pointer to [**NullableCableRequestLengthUnit**](CableRequestLengthUnit.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set
### GetType
-`func (o *CableRequest) GetType() string`
+`func (o *CableRequest) GetType() CableType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *CableRequest) GetTypeOk() (*string, bool)`
+`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 string)`
+`func (o *CableRequest) SetType(v CableType)`
SetType sets Type field to given value.
@@ -114,20 +114,20 @@ HasBTerminations returns a boolean if a field has been set.
### GetStatus
-`func (o *CableRequest) GetStatus() string`
+`func (o *CableRequest) GetStatus() CableStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *CableRequest) GetStatusOk() (*string, bool)`
+`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 string)`
+`func (o *CableRequest) SetStatus(v CableStatusValue)`
SetStatus sets Status 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 *CableRequest) GetLengthUnit() string`
+`func (o *CableRequest) GetLengthUnit() CableRequestLengthUnit`
GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise.
### GetLengthUnitOk
-`func (o *CableRequest) GetLengthUnitOk() (*string, bool)`
+`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 string)`
+`func (o *CableRequest) SetLengthUnit(v CableRequestLengthUnit)`
SetLengthUnit sets LengthUnit field to given value.
diff --git a/docs/CableRequestLengthUnit.md b/docs/CableRequestLengthUnit.md
new file mode 100644
index 0000000000..c549b14b86
--- /dev/null
+++ b/docs/CableRequestLengthUnit.md
@@ -0,0 +1,23 @@
+# CableRequestLengthUnit
+
+## Enum
+
+
+* `KM` (value: `"km"`)
+
+* `M` (value: `"m"`)
+
+* `CM` (value: `"cm"`)
+
+* `MI` (value: `"mi"`)
+
+* `FT` (value: `"ft"`)
+
+* `IN` (value: `"in"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CableStatus.md b/docs/CableStatus.md
index 4aa19b25c0..3cdd8c4b35 100644
--- a/docs/CableStatus.md
+++ b/docs/CableStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional]
+**Label** | Pointer to [**CableStatusLabel**](CableStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *CableStatus) GetValue() string`
+`func (o *CableStatus) GetValue() CableStatusValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *CableStatus) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *CableStatus) SetValue(v CableStatusValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *CableStatus) GetLabel() string`
+`func (o *CableStatus) GetLabel() CableStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *CableStatus) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *CableStatus) SetLabel(v CableStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/CableStatusLabel.md b/docs/CableStatusLabel.md
new file mode 100644
index 0000000000..b90ffa9fd2
--- /dev/null
+++ b/docs/CableStatusLabel.md
@@ -0,0 +1,15 @@
+# CableStatusLabel
+
+## Enum
+
+
+* `CONNECTED` (value: `"Connected"`)
+
+* `PLANNED` (value: `"Planned"`)
+
+* `DECOMMISSIONING` (value: `"Decommissioning"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CableStatusValue.md b/docs/CableStatusValue.md
new file mode 100644
index 0000000000..35769fef10
--- /dev/null
+++ b/docs/CableStatusValue.md
@@ -0,0 +1,15 @@
+# CableStatusValue
+
+## Enum
+
+
+* `CONNECTED` (value: `"connected"`)
+
+* `PLANNED` (value: `"planned"`)
+
+* `DECOMMISSIONING` (value: `"decommissioning"`)
+
+
+[[Back to Model list]](../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 91219f5f77..db0ab3afb2 100644
--- a/docs/CableTermination.md
+++ b/docs/CableTermination.md
@@ -8,10 +8,10 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Cable** | **int32** | |
-**CableEnd** | **string** | * `A` - A * `B` - B |
+**CableEnd** | [**End**](End.md) | |
**TerminationType** | **string** | |
**TerminationId** | **int64** | |
-**Termination** | **map[string]interface{}** | | [readonly]
+**Termination** | **interface{}** | | [readonly]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
### NewCableTermination
-`func NewCableTermination(id int32, url string, display string, cable int32, cableEnd string, terminationType string, terminationId int64, termination map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *CableTermination`
+`func NewCableTermination(id int32, url string, display string, cable int32, cableEnd End, 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() string`
+`func (o *CableTermination) GetCableEnd() End`
GetCableEnd returns the CableEnd field if non-nil, zero value otherwise.
### GetCableEndOk
-`func (o *CableTermination) GetCableEndOk() (*string, bool)`
+`func (o *CableTermination) GetCableEndOk() (*End, 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 string)`
+`func (o *CableTermination) SetCableEnd(v End)`
SetCableEnd sets CableEnd field to given value.
@@ -176,20 +176,20 @@ SetTerminationId sets TerminationId field to given value.
### GetTermination
-`func (o *CableTermination) GetTermination() map[string]interface{}`
+`func (o *CableTermination) GetTermination() interface{}`
GetTermination returns the Termination field if non-nil, zero value otherwise.
### GetTerminationOk
-`func (o *CableTermination) GetTerminationOk() (*map[string]interface{}, bool)`
+`func (o *CableTermination) GetTerminationOk() (*interface{}, bool)`
GetTerminationOk returns a tuple with the Termination field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTermination
-`func (o *CableTermination) SetTermination(v map[string]interface{})`
+`func (o *CableTermination) SetTermination(v interface{})`
SetTermination sets Termination field to given value.
diff --git a/docs/CableTerminationRequest.md b/docs/CableTerminationRequest.md
index 64ef926fe7..c2bbdf603e 100644
--- a/docs/CableTerminationRequest.md
+++ b/docs/CableTerminationRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Cable** | **int32** | |
-**CableEnd** | **string** | * `A` - A * `B` - B |
+**CableEnd** | [**End**](End.md) | |
**TerminationType** | **string** | |
**TerminationId** | **int64** | |
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
### NewCableTerminationRequest
-`func NewCableTerminationRequest(cable int32, cableEnd string, terminationType string, terminationId int64, ) *CableTerminationRequest`
+`func NewCableTerminationRequest(cable int32, cableEnd End, 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() string`
+`func (o *CableTerminationRequest) GetCableEnd() End`
GetCableEnd returns the CableEnd field if non-nil, zero value otherwise.
### GetCableEndOk
-`func (o *CableTerminationRequest) GetCableEndOk() (*string, bool)`
+`func (o *CableTerminationRequest) GetCableEndOk() (*End, 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 string)`
+`func (o *CableTerminationRequest) SetCableEnd(v End)`
SetCableEnd sets CableEnd field to given value.
diff --git a/docs/CableType.md b/docs/CableType.md
new file mode 100644
index 0000000000..c893535f7b
--- /dev/null
+++ b/docs/CableType.md
@@ -0,0 +1,57 @@
+# CableType
+
+## Enum
+
+
+* `CAT3` (value: `"cat3"`)
+
+* `CAT5` (value: `"cat5"`)
+
+* `CAT5E` (value: `"cat5e"`)
+
+* `CAT6` (value: `"cat6"`)
+
+* `CAT6A` (value: `"cat6a"`)
+
+* `CAT7` (value: `"cat7"`)
+
+* `CAT7A` (value: `"cat7a"`)
+
+* `CAT8` (value: `"cat8"`)
+
+* `DAC_ACTIVE` (value: `"dac-active"`)
+
+* `DAC_PASSIVE` (value: `"dac-passive"`)
+
+* `MRJ21_TRUNK` (value: `"mrj21-trunk"`)
+
+* `COAXIAL` (value: `"coaxial"`)
+
+* `MMF` (value: `"mmf"`)
+
+* `MMF_OM1` (value: `"mmf-om1"`)
+
+* `MMF_OM2` (value: `"mmf-om2"`)
+
+* `MMF_OM3` (value: `"mmf-om3"`)
+
+* `MMF_OM4` (value: `"mmf-om4"`)
+
+* `MMF_OM5` (value: `"mmf-om5"`)
+
+* `SMF` (value: `"smf"`)
+
+* `SMF_OS1` (value: `"smf-os1"`)
+
+* `SMF_OS2` (value: `"smf-os2"`)
+
+* `AOC` (value: `"aoc"`)
+
+* `POWER` (value: `"power"`)
+
+* `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/CircuitRequest.md b/docs/CircuitRequest.md
index 4bbb0484a3..edcb0bd7f5 100644
--- a/docs/CircuitRequest.md
+++ b/docs/CircuitRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Provider** | [**NestedProviderRequest**](NestedProviderRequest.md) | |
**ProviderAccount** | Pointer to [**NullableNestedProviderAccountRequest**](NestedProviderAccountRequest.md) | | [optional]
**Type** | [**NestedCircuitTypeRequest**](NestedCircuitTypeRequest.md) | |
-**Status** | Pointer to **string** | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned | [optional]
+**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional]
**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
**InstallDate** | Pointer to **NullableString** | | [optional]
**TerminationDate** | Pointer to **NullableString** | | [optional]
@@ -134,20 +134,20 @@ SetType sets Type field to given value.
### GetStatus
-`func (o *CircuitRequest) GetStatus() string`
+`func (o *CircuitRequest) GetStatus() CircuitStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *CircuitRequest) GetStatusOk() (*string, bool)`
+`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 string)`
+`func (o *CircuitRequest) SetStatus(v CircuitStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/CircuitStatus.md b/docs/CircuitStatus.md
index 8864cff4ca..8815d2697f 100644
--- a/docs/CircuitStatus.md
+++ b/docs/CircuitStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional]
+**Label** | Pointer to [**CircuitStatusLabel**](CircuitStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *CircuitStatus) GetValue() string`
+`func (o *CircuitStatus) GetValue() CircuitStatusValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *CircuitStatus) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *CircuitStatus) SetValue(v CircuitStatusValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *CircuitStatus) GetLabel() string`
+`func (o *CircuitStatus) GetLabel() CircuitStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *CircuitStatus) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *CircuitStatus) SetLabel(v CircuitStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/CircuitStatusLabel.md b/docs/CircuitStatusLabel.md
new file mode 100644
index 0000000000..594cdc8dcb
--- /dev/null
+++ b/docs/CircuitStatusLabel.md
@@ -0,0 +1,21 @@
+# 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/CircuitStatusValue.md b/docs/CircuitStatusValue.md
new file mode 100644
index 0000000000..c49a8ea53e
--- /dev/null
+++ b/docs/CircuitStatusValue.md
@@ -0,0 +1,21 @@
+# CircuitStatusValue
+
+## 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 a2cf1b7759..bbc393e5c8 100644
--- a/docs/CircuitTermination.md
+++ b/docs/CircuitTermination.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Circuit** | [**NestedCircuit**](NestedCircuit.md) | |
-**TermSide** | **string** | * `A` - A * `Z` - Z |
+**TermSide** | [**Termination**](Termination.md) | |
**Site** | Pointer to [**NullableNestedSite**](NestedSite.md) | | [optional]
**ProviderNetwork** | Pointer to [**NullableNestedProviderNetwork**](NestedProviderNetwork.md) | | [optional]
**PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional]
@@ -31,7 +31,7 @@ Name | Type | Description | Notes
### NewCircuitTermination
-`func NewCircuitTermination(id int32, url string, display string, circuit NestedCircuit, termSide string, cable NullableNestedCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *CircuitTermination`
+`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`
NewCircuitTermination instantiates a new CircuitTermination object
This constructor will assign default values to properties that have it defined,
@@ -128,20 +128,20 @@ SetCircuit sets Circuit field to given value.
### GetTermSide
-`func (o *CircuitTermination) GetTermSide() string`
+`func (o *CircuitTermination) GetTermSide() Termination`
GetTermSide returns the TermSide field if non-nil, zero value otherwise.
### GetTermSideOk
-`func (o *CircuitTermination) GetTermSideOk() (*string, bool)`
+`func (o *CircuitTermination) 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 *CircuitTermination) SetTermSide(v string)`
+`func (o *CircuitTermination) SetTermSide(v Termination)`
SetTermSide sets TermSide field to given value.
diff --git a/docs/CircuitTerminationRequest.md b/docs/CircuitTerminationRequest.md
index ad781a5a61..b6c607a39b 100644
--- a/docs/CircuitTerminationRequest.md
+++ b/docs/CircuitTerminationRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Circuit** | [**NestedCircuitRequest**](NestedCircuitRequest.md) | |
-**TermSide** | **string** | * `A` - A * `Z` - Z |
+**TermSide** | [**Termination**](Termination.md) | |
**Site** | Pointer to [**NullableNestedSiteRequest**](NestedSiteRequest.md) | | [optional]
**ProviderNetwork** | Pointer to [**NullableNestedProviderNetworkRequest**](NestedProviderNetworkRequest.md) | | [optional]
**PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional]
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
### NewCircuitTerminationRequest
-`func NewCircuitTerminationRequest(circuit NestedCircuitRequest, termSide string, ) *CircuitTerminationRequest`
+`func NewCircuitTerminationRequest(circuit NestedCircuitRequest, termSide Termination, ) *CircuitTerminationRequest`
NewCircuitTerminationRequest instantiates a new CircuitTerminationRequest object
This constructor will assign default values to properties that have it defined,
@@ -58,20 +58,20 @@ SetCircuit sets Circuit field to given value.
### GetTermSide
-`func (o *CircuitTerminationRequest) GetTermSide() string`
+`func (o *CircuitTerminationRequest) GetTermSide() Termination`
GetTermSide returns the TermSide field if non-nil, zero value otherwise.
### GetTermSideOk
-`func (o *CircuitTerminationRequest) GetTermSideOk() (*string, bool)`
+`func (o *CircuitTerminationRequest) 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 *CircuitTerminationRequest) SetTermSide(v string)`
+`func (o *CircuitTerminationRequest) SetTermSide(v Termination)`
SetTermSide sets TermSide field to given value.
diff --git a/docs/CircuitType.md b/docs/CircuitType.md
index 37550c7201..2097798eb9 100644
--- a/docs/CircuitType.md
+++ b/docs/CircuitType.md
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Name** | **string** | |
**Slug** | **string** | |
+**Color** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -135,6 +136,31 @@ and a boolean to check if the value has been set.
SetSlug sets Slug field to given value.
+### GetColor
+
+`func (o *CircuitType) GetColor() string`
+
+GetColor returns the Color field if non-nil, zero value otherwise.
+
+### GetColorOk
+
+`func (o *CircuitType) 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 *CircuitType) SetColor(v string)`
+
+SetColor sets Color field to given value.
+
+### HasColor
+
+`func (o *CircuitType) HasColor() bool`
+
+HasColor returns a boolean if a field has been set.
+
### GetDescription
`func (o *CircuitType) GetDescription() string`
diff --git a/docs/CircuitTypeRequest.md b/docs/CircuitTypeRequest.md
index 1fb9a002ae..f18e19c9bc 100644
--- a/docs/CircuitTypeRequest.md
+++ b/docs/CircuitTypeRequest.md
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Slug** | **string** | |
+**Color** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -69,6 +70,31 @@ and a boolean to check if the value has been set.
SetSlug sets Slug field to given value.
+### GetColor
+
+`func (o *CircuitTypeRequest) GetColor() string`
+
+GetColor returns the Color field if non-nil, zero value otherwise.
+
+### GetColorOk
+
+`func (o *CircuitTypeRequest) 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 *CircuitTypeRequest) SetColor(v string)`
+
+SetColor sets Color field to given value.
+
+### HasColor
+
+`func (o *CircuitTypeRequest) HasColor() bool`
+
+HasColor returns a boolean if a field has been set.
+
### GetDescription
`func (o *CircuitTypeRequest) GetDescription() string`
diff --git a/docs/CircuitsApi.md b/docs/CircuitsAPI.md
similarity index 52%
rename from docs/CircuitsApi.md
rename to docs/CircuitsAPI.md
index 1ce91794b9..02d1deea07 100644
--- a/docs/CircuitsApi.md
+++ b/docs/CircuitsAPI.md
@@ -76,22 +76,22 @@ Method | HTTP request | Description
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewNestedCircuitRequest("Cid_example"), "TermSide_example")} // []CircuitTerminationRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkDestroy(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewNestedCircuitRequest("Cid_example"), openapiclient.Termination("A"))} // []CircuitTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkDestroy(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -140,24 +140,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewNestedCircuitRequest("Cid_example"), "TermSide_example")} // []CircuitTerminationRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTerminationsBulkPartialUpdate`: []CircuitTermination
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate`: %v\n", resp)
+ circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewNestedCircuitRequest("Cid_example"), openapiclient.Termination("A"))} // []CircuitTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTerminationsBulkPartialUpdate`: []CircuitTermination
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -206,24 +206,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewNestedCircuitRequest("Cid_example"), "TermSide_example")} // []CircuitTerminationRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTerminationsBulkUpdate`: []CircuitTermination
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate`: %v\n", resp)
+ circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewNestedCircuitRequest("Cid_example"), openapiclient.Termination("A"))} // []CircuitTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTerminationsBulkUpdate`: []CircuitTermination
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate`: %v\n", resp)
}
```
@@ -272,24 +272,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableCircuitTerminationRequest := *openapiclient.NewWritableCircuitTerminationRequest(int32(123), "TermSide_example") // WritableCircuitTerminationRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsCreate(context.Background()).WritableCircuitTerminationRequest(writableCircuitTerminationRequest).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)
- }
- // response from `CircuitsCircuitTerminationsCreate`: CircuitTermination
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsCreate`: %v\n", resp)
+ writableCircuitTerminationRequest := *openapiclient.NewWritableCircuitTerminationRequest(int32(123), openapiclient.Termination("A")) // WritableCircuitTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsCreate(context.Background()).WritableCircuitTerminationRequest(writableCircuitTerminationRequest).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)
+ }
+ // response from `CircuitsCircuitTerminationsCreate`: CircuitTermination
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsCreate`: %v\n", resp)
}
```
@@ -338,22 +338,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this circuit termination.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this circuit termination.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -406,104 +406,104 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (optional)
- cabled := true // bool | (optional)
- circuitId := []int32{int32(123)} // []int32 | Circuit (optional)
- circuitIdN := []int32{int32(123)} // []int32 | Circuit (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- occupied := true // bool | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- portSpeed := []int32{int32(123)} // []int32 | (optional)
- portSpeedEmpty := true // bool | (optional)
- portSpeedGt := []int32{int32(123)} // []int32 | (optional)
- portSpeedGte := []int32{int32(123)} // []int32 | (optional)
- portSpeedLt := []int32{int32(123)} // []int32 | (optional)
- portSpeedLte := []int32{int32(123)} // []int32 | (optional)
- portSpeedN := []int32{int32(123)} // []int32 | (optional)
- providerNetworkId := []*int32{int32(123)} // []*int32 | ProviderNetwork (ID) (optional)
- providerNetworkIdN := []*int32{int32(123)} // []*int32 | ProviderNetwork (ID) (optional)
- q := "q_example" // string | Search (optional)
- site := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
- siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- termSide := "termSide_example" // string | (optional)
- termSideN := "termSideN_example" // string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- upstreamSpeed := []int32{int32(123)} // []int32 | (optional)
- upstreamSpeedEmpty := true // bool | (optional)
- upstreamSpeedGt := []int32{int32(123)} // []int32 | (optional)
- upstreamSpeedGte := []int32{int32(123)} // []int32 | (optional)
- upstreamSpeedLt := []int32{int32(123)} // []int32 | (optional)
- upstreamSpeedLte := []int32{int32(123)} // []int32 | (optional)
- upstreamSpeedN := []int32{int32(123)} // []int32 | (optional)
- xconnectId := []string{"Inner_example"} // []string | (optional)
- xconnectIdEmpty := true // bool | (optional)
- xconnectIdIc := []string{"Inner_example"} // []string | (optional)
- xconnectIdIe := []string{"Inner_example"} // []string | (optional)
- xconnectIdIew := []string{"Inner_example"} // []string | (optional)
- xconnectIdIsw := []string{"Inner_example"} // []string | (optional)
- xconnectIdN := []string{"Inner_example"} // []string | (optional)
- xconnectIdNic := []string{"Inner_example"} // []string | (optional)
- xconnectIdNie := []string{"Inner_example"} // []string | (optional)
- xconnectIdNiew := []string{"Inner_example"} // []string | (optional)
- xconnectIdNisw := []string{"Inner_example"} // []string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TermSide(termSide).TermSideN(termSideN).UpdatedByRequest(updatedByRequest).UpstreamSpeed(upstreamSpeed).UpstreamSpeedEmpty(upstreamSpeedEmpty).UpstreamSpeedGt(upstreamSpeedGt).UpstreamSpeedGte(upstreamSpeedGte).UpstreamSpeedLt(upstreamSpeedLt).UpstreamSpeedLte(upstreamSpeedLte).UpstreamSpeedN(upstreamSpeedN).XconnectId(xconnectId).XconnectIdEmpty(xconnectIdEmpty).XconnectIdIc(xconnectIdIc).XconnectIdIe(xconnectIdIe).XconnectIdIew(xconnectIdIew).XconnectIdIsw(xconnectIdIsw).XconnectIdN(xconnectIdN).XconnectIdNic(xconnectIdNic).XconnectIdNie(xconnectIdNie).XconnectIdNiew(xconnectIdNiew).XconnectIdNisw(xconnectIdNisw).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTerminationsList`: PaginatedCircuitTerminationList
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsList`: %v\n", resp)
+ cableEnd := "cableEnd_example" // string | (optional)
+ cableEndN := "cableEndN_example" // string | (optional)
+ cabled := true // bool | (optional)
+ circuitId := []int32{int32(123)} // []int32 | Circuit (optional)
+ circuitIdN := []int32{int32(123)} // []int32 | Circuit (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ occupied := true // bool | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ portSpeed := []int32{int32(123)} // []int32 | (optional)
+ portSpeedEmpty := true // bool | (optional)
+ portSpeedGt := []int32{int32(123)} // []int32 | (optional)
+ portSpeedGte := []int32{int32(123)} // []int32 | (optional)
+ portSpeedLt := []int32{int32(123)} // []int32 | (optional)
+ portSpeedLte := []int32{int32(123)} // []int32 | (optional)
+ portSpeedN := []int32{int32(123)} // []int32 | (optional)
+ providerNetworkId := []*int32{int32(123)} // []*int32 | ProviderNetwork (ID) (optional)
+ providerNetworkIdN := []*int32{int32(123)} // []*int32 | ProviderNetwork (ID) (optional)
+ q := "q_example" // string | Search (optional)
+ site := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
+ siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ termSide := "termSide_example" // string | (optional)
+ termSideN := "termSideN_example" // string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ upstreamSpeed := []int32{int32(123)} // []int32 | (optional)
+ upstreamSpeedEmpty := true // bool | (optional)
+ upstreamSpeedGt := []int32{int32(123)} // []int32 | (optional)
+ upstreamSpeedGte := []int32{int32(123)} // []int32 | (optional)
+ upstreamSpeedLt := []int32{int32(123)} // []int32 | (optional)
+ upstreamSpeedLte := []int32{int32(123)} // []int32 | (optional)
+ upstreamSpeedN := []int32{int32(123)} // []int32 | (optional)
+ xconnectId := []string{"Inner_example"} // []string | (optional)
+ xconnectIdEmpty := true // bool | (optional)
+ xconnectIdIc := []string{"Inner_example"} // []string | (optional)
+ xconnectIdIe := []string{"Inner_example"} // []string | (optional)
+ xconnectIdIew := []string{"Inner_example"} // []string | (optional)
+ xconnectIdIsw := []string{"Inner_example"} // []string | (optional)
+ xconnectIdN := []string{"Inner_example"} // []string | (optional)
+ xconnectIdNic := []string{"Inner_example"} // []string | (optional)
+ xconnectIdNie := []string{"Inner_example"} // []string | (optional)
+ xconnectIdNiew := []string{"Inner_example"} // []string | (optional)
+ xconnectIdNisw := []string{"Inner_example"} // []string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TermSide(termSide).TermSideN(termSideN).UpdatedByRequest(updatedByRequest).UpstreamSpeed(upstreamSpeed).UpstreamSpeedEmpty(upstreamSpeedEmpty).UpstreamSpeedGt(upstreamSpeedGt).UpstreamSpeedGte(upstreamSpeedGte).UpstreamSpeedLt(upstreamSpeedLt).UpstreamSpeedLte(upstreamSpeedLte).UpstreamSpeedN(upstreamSpeedN).XconnectId(xconnectId).XconnectIdEmpty(xconnectIdEmpty).XconnectIdIc(xconnectIdIc).XconnectIdIe(xconnectIdIe).XconnectIdIew(xconnectIdIew).XconnectIdIsw(xconnectIdIsw).XconnectIdN(xconnectIdN).XconnectIdNic(xconnectIdNic).XconnectIdNie(xconnectIdNie).XconnectIdNiew(xconnectIdNiew).XconnectIdNisw(xconnectIdNisw).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTerminationsList`: PaginatedCircuitTerminationList
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsList`: %v\n", resp)
}
```
@@ -631,25 +631,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this circuit termination.
- patchedWritableCircuitTerminationRequest := *openapiclient.NewPatchedWritableCircuitTerminationRequest() // PatchedWritableCircuitTerminationRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate(context.Background(), id).PatchedWritableCircuitTerminationRequest(patchedWritableCircuitTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTerminationsPartialUpdate`: CircuitTermination
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this circuit termination.
+ patchedWritableCircuitTerminationRequest := *openapiclient.NewPatchedWritableCircuitTerminationRequest() // PatchedWritableCircuitTerminationRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate(context.Background(), id).PatchedWritableCircuitTerminationRequest(patchedWritableCircuitTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTerminationsPartialUpdate`: CircuitTermination
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate`: %v\n", resp)
}
```
@@ -703,24 +703,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this circuit termination.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTerminationsPathsRetrieve`: CircuitTermination
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this circuit termination.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTerminationsPathsRetrieve`: CircuitTermination
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve`: %v\n", resp)
}
```
@@ -773,24 +773,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this circuit termination.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTerminationsRetrieve`: CircuitTermination
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this circuit termination.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTerminationsRetrieve`: CircuitTermination
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsRetrieve`: %v\n", resp)
}
```
@@ -843,25 +843,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this circuit termination.
- writableCircuitTerminationRequest := *openapiclient.NewWritableCircuitTerminationRequest(int32(123), "TermSide_example") // WritableCircuitTerminationRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsUpdate(context.Background(), id).WritableCircuitTerminationRequest(writableCircuitTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTerminationsUpdate`: CircuitTermination
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this circuit termination.
+ writableCircuitTerminationRequest := *openapiclient.NewWritableCircuitTerminationRequest(int32(123), openapiclient.Termination("A")) // WritableCircuitTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsUpdate(context.Background(), id).WritableCircuitTerminationRequest(writableCircuitTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTerminationsUpdate`: CircuitTermination
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsUpdate`: %v\n", resp)
}
```
@@ -915,22 +915,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- circuitTypeRequest := []openapiclient.CircuitTypeRequest{*openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")} // []CircuitTypeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkDestroy(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ circuitTypeRequest := []openapiclient.CircuitTypeRequest{*openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")} // []CircuitTypeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkDestroy(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -979,24 +979,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- circuitTypeRequest := []openapiclient.CircuitTypeRequest{*openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")} // []CircuitTypeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTypesBulkPartialUpdate`: []CircuitType
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate`: %v\n", resp)
+ circuitTypeRequest := []openapiclient.CircuitTypeRequest{*openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")} // []CircuitTypeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTypesBulkPartialUpdate`: []CircuitType
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -1045,24 +1045,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- circuitTypeRequest := []openapiclient.CircuitTypeRequest{*openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")} // []CircuitTypeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkUpdate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTypesBulkUpdate`: []CircuitType
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesBulkUpdate`: %v\n", resp)
+ circuitTypeRequest := []openapiclient.CircuitTypeRequest{*openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")} // []CircuitTypeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkUpdate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTypesBulkUpdate`: []CircuitType
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesBulkUpdate`: %v\n", resp)
}
```
@@ -1111,24 +1111,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- circuitTypeRequest := *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example") // CircuitTypeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesCreate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTypesCreate`: CircuitType
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesCreate`: %v\n", resp)
+ circuitTypeRequest := *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example") // CircuitTypeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesCreate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTypesCreate`: CircuitType
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesCreate`: %v\n", resp)
}
```
@@ -1177,22 +1177,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this circuit type.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this circuit type.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1233,7 +1233,7 @@ Name | Type | Description | Notes
## CircuitsCircuitTypesList
-> PaginatedCircuitTypeList CircuitsCircuitTypesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedCircuitTypeList CircuitsCircuitTypesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
@@ -1245,87 +1245,98 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTypesList`: PaginatedCircuitTypeList
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesList`: %v\n", resp)
+ color := []string{"Inner_example"} // []string | (optional)
+ colorEmpty := true // bool | (optional)
+ colorIc := []string{"Inner_example"} // []string | (optional)
+ colorIe := []string{"Inner_example"} // []string | (optional)
+ colorIew := []string{"Inner_example"} // []string | (optional)
+ colorIsw := []string{"Inner_example"} // []string | (optional)
+ colorN := []string{"Inner_example"} // []string | (optional)
+ colorNic := []string{"Inner_example"} // []string | (optional)
+ colorNie := []string{"Inner_example"} // []string | (optional)
+ colorNiew := []string{"Inner_example"} // []string | (optional)
+ colorNisw := []string{"Inner_example"} // []string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTypesList`: PaginatedCircuitTypeList
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesList`: %v\n", resp)
}
```
@@ -1340,6 +1351,17 @@ Other parameters are passed through a pointer to a apiCircuitsCircuitTypesListRe
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **color** | **[]string** | |
+ **colorEmpty** | **bool** | |
+ **colorIc** | **[]string** | |
+ **colorIe** | **[]string** | |
+ **colorIew** | **[]string** | |
+ **colorIsw** | **[]string** | |
+ **colorN** | **[]string** | |
+ **colorNic** | **[]string** | |
+ **colorNie** | **[]string** | |
+ **colorNiew** | **[]string** | |
+ **colorNisw** | **[]string** | |
**created** | [**[]time.Time**](time.Time.md) | |
**createdEmpty** | [**[]time.Time**](time.Time.md) | |
**createdGt** | [**[]time.Time**](time.Time.md) | |
@@ -1436,25 +1458,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this circuit type.
- patchedCircuitTypeRequest := *openapiclient.NewPatchedCircuitTypeRequest() // PatchedCircuitTypeRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesPartialUpdate(context.Background(), id).PatchedCircuitTypeRequest(patchedCircuitTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTypesPartialUpdate`: CircuitType
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this circuit type.
+ patchedCircuitTypeRequest := *openapiclient.NewPatchedCircuitTypeRequest() // PatchedCircuitTypeRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesPartialUpdate(context.Background(), id).PatchedCircuitTypeRequest(patchedCircuitTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTypesPartialUpdate`: CircuitType
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesPartialUpdate`: %v\n", resp)
}
```
@@ -1508,24 +1530,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this circuit type.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTypesRetrieve`: CircuitType
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this circuit type.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTypesRetrieve`: CircuitType
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesRetrieve`: %v\n", resp)
}
```
@@ -1578,25 +1600,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this circuit type.
- circuitTypeRequest := *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example") // CircuitTypeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesUpdate(context.Background(), id).CircuitTypeRequest(circuitTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitTypesUpdate`: CircuitType
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this circuit type.
+ circuitTypeRequest := *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example") // CircuitTypeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesUpdate(context.Background(), id).CircuitTypeRequest(circuitTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitTypesUpdate`: CircuitType
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesUpdate`: %v\n", resp)
}
```
@@ -1650,22 +1672,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), *openapiclient.NewNestedCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkDestroy(context.Background()).CircuitRequest(circuitRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), *openapiclient.NewNestedCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkDestroy(context.Background()).CircuitRequest(circuitRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1714,24 +1736,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), *openapiclient.NewNestedCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkPartialUpdate(context.Background()).CircuitRequest(circuitRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitsBulkPartialUpdate`: []Circuit
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsBulkPartialUpdate`: %v\n", resp)
+ circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), *openapiclient.NewNestedCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkPartialUpdate(context.Background()).CircuitRequest(circuitRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitsBulkPartialUpdate`: []Circuit
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -1780,24 +1802,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), *openapiclient.NewNestedCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkUpdate(context.Background()).CircuitRequest(circuitRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitsBulkUpdate`: []Circuit
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsBulkUpdate`: %v\n", resp)
+ circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), *openapiclient.NewNestedCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkUpdate(context.Background()).CircuitRequest(circuitRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitsBulkUpdate`: []Circuit
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsBulkUpdate`: %v\n", resp)
}
```
@@ -1846,24 +1868,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", int32(123), int32(123)) // WritableCircuitRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsCreate(context.Background()).WritableCircuitRequest(writableCircuitRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitsCreate`: Circuit
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsCreate`: %v\n", resp)
+ writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", int32(123), int32(123)) // WritableCircuitRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsCreate(context.Background()).WritableCircuitRequest(writableCircuitRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitsCreate`: Circuit
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsCreate`: %v\n", resp)
}
```
@@ -1912,22 +1934,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this circuit.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CircuitsAPI.CircuitsCircuitsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this circuit.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CircuitsAPI.CircuitsCircuitsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1980,137 +2002,137 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- cid := []string{"Inner_example"} // []string | (optional)
- cidEmpty := true // bool | (optional)
- cidIc := []string{"Inner_example"} // []string | (optional)
- cidIe := []string{"Inner_example"} // []string | (optional)
- cidIew := []string{"Inner_example"} // []string | (optional)
- cidIsw := []string{"Inner_example"} // []string | (optional)
- cidN := []string{"Inner_example"} // []string | (optional)
- cidNic := []string{"Inner_example"} // []string | (optional)
- cidNie := []string{"Inner_example"} // []string | (optional)
- cidNiew := []string{"Inner_example"} // []string | (optional)
- cidNisw := []string{"Inner_example"} // []string | (optional)
- commitRate := []int32{int32(123)} // []int32 | (optional)
- commitRateEmpty := true // bool | (optional)
- commitRateGt := []int32{int32(123)} // []int32 | (optional)
- commitRateGte := []int32{int32(123)} // []int32 | (optional)
- commitRateLt := []int32{int32(123)} // []int32 | (optional)
- commitRateLte := []int32{int32(123)} // []int32 | (optional)
- commitRateN := []int32{int32(123)} // []int32 | (optional)
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- installDate := []string{time.Now()} // []string | (optional)
- installDateEmpty := true // bool | (optional)
- installDateGt := []string{time.Now()} // []string | (optional)
- installDateGte := []string{time.Now()} // []string | (optional)
- installDateLt := []string{time.Now()} // []string | (optional)
- installDateLte := []string{time.Now()} // []string | (optional)
- installDateN := []string{time.Now()} // []string | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- provider := []string{"Inner_example"} // []string | Provider (slug) (optional)
- providerN := []string{"Inner_example"} // []string | Provider (slug) (optional)
- providerAccountId := []int32{int32(123)} // []int32 | ProviderAccount (ID) (optional)
- providerAccountIdN := []int32{int32(123)} // []int32 | ProviderAccount (ID) (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)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- site := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- terminationDate := []string{time.Now()} // []string | (optional)
- terminationDateEmpty := true // bool | (optional)
- terminationDateGt := []string{time.Now()} // []string | (optional)
- terminationDateGte := []string{time.Now()} // []string | (optional)
- terminationDateLt := []string{time.Now()} // []string | (optional)
- terminationDateLte := []string{time.Now()} // []string | (optional)
- terminationDateN := []string{time.Now()} // []string | (optional)
- type_ := []string{"Inner_example"} // []string | Circuit type (slug) (optional)
- typeN := []string{"Inner_example"} // []string | Circuit type (slug) (optional)
- typeId := []int32{int32(123)} // []int32 | Circuit type (ID) (optional)
- typeIdN := []int32{int32(123)} // []int32 | Circuit type (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsList(context.Background()).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).CommitRate(commitRate).CommitRateEmpty(commitRateEmpty).CommitRateGt(commitRateGt).CommitRateGte(commitRateGte).CommitRateLt(commitRateLt).CommitRateLte(commitRateLte).CommitRateN(commitRateN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstallDate(installDate).InstallDateEmpty(installDateEmpty).InstallDateGt(installDateGt).InstallDateGte(installDateGte).InstallDateLt(installDateLt).InstallDateLte(installDateLte).InstallDateN(installDateN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitsList`: PaginatedCircuitList
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsList`: %v\n", resp)
+ cid := []string{"Inner_example"} // []string | (optional)
+ cidEmpty := true // bool | (optional)
+ cidIc := []string{"Inner_example"} // []string | (optional)
+ cidIe := []string{"Inner_example"} // []string | (optional)
+ cidIew := []string{"Inner_example"} // []string | (optional)
+ cidIsw := []string{"Inner_example"} // []string | (optional)
+ cidN := []string{"Inner_example"} // []string | (optional)
+ cidNic := []string{"Inner_example"} // []string | (optional)
+ cidNie := []string{"Inner_example"} // []string | (optional)
+ cidNiew := []string{"Inner_example"} // []string | (optional)
+ cidNisw := []string{"Inner_example"} // []string | (optional)
+ commitRate := []int32{int32(123)} // []int32 | (optional)
+ commitRateEmpty := true // bool | (optional)
+ commitRateGt := []int32{int32(123)} // []int32 | (optional)
+ commitRateGte := []int32{int32(123)} // []int32 | (optional)
+ commitRateLt := []int32{int32(123)} // []int32 | (optional)
+ commitRateLte := []int32{int32(123)} // []int32 | (optional)
+ commitRateN := []int32{int32(123)} // []int32 | (optional)
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ installDate := []string{time.Now()} // []string | (optional)
+ installDateEmpty := true // bool | (optional)
+ installDateGt := []string{time.Now()} // []string | (optional)
+ installDateGte := []string{time.Now()} // []string | (optional)
+ installDateLt := []string{time.Now()} // []string | (optional)
+ installDateLte := []string{time.Now()} // []string | (optional)
+ installDateN := []string{time.Now()} // []string | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ provider := []string{"Inner_example"} // []string | Provider (slug) (optional)
+ providerN := []string{"Inner_example"} // []string | Provider (slug) (optional)
+ providerAccountId := []int32{int32(123)} // []int32 | Provider account (ID) (optional)
+ providerAccountIdN := []int32{int32(123)} // []int32 | Provider account (ID) (optional)
+ providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional)
+ providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional)
+ providerNetworkId := []int32{int32(123)} // []int32 | Provider network (ID) (optional)
+ providerNetworkIdN := []int32{int32(123)} // []int32 | Provider network (ID) (optional)
+ q := "q_example" // string | Search (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ terminationDate := []string{time.Now()} // []string | (optional)
+ terminationDateEmpty := true // bool | (optional)
+ terminationDateGt := []string{time.Now()} // []string | (optional)
+ terminationDateGte := []string{time.Now()} // []string | (optional)
+ terminationDateLt := []string{time.Now()} // []string | (optional)
+ terminationDateLte := []string{time.Now()} // []string | (optional)
+ terminationDateN := []string{time.Now()} // []string | (optional)
+ type_ := []string{"Inner_example"} // []string | Circuit type (slug) (optional)
+ typeN := []string{"Inner_example"} // []string | Circuit type (slug) (optional)
+ typeId := []int32{int32(123)} // []int32 | Circuit type (ID) (optional)
+ typeIdN := []int32{int32(123)} // []int32 | Circuit type (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsList(context.Background()).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).CommitRate(commitRate).CommitRateEmpty(commitRateEmpty).CommitRateGt(commitRateGt).CommitRateGte(commitRateGte).CommitRateLt(commitRateLt).CommitRateLte(commitRateLte).CommitRateN(commitRateN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstallDate(installDate).InstallDateEmpty(installDateEmpty).InstallDateGt(installDateGt).InstallDateGte(installDateGte).InstallDateLt(installDateLt).InstallDateLte(installDateLte).InstallDateN(installDateN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitsList`: PaginatedCircuitList
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsList`: %v\n", resp)
}
```
@@ -2195,12 +2217,12 @@ Name | Type | Description | Notes
**ordering** | **string** | Which field to use when ordering the results. |
**provider** | **[]string** | Provider (slug) |
**providerN** | **[]string** | Provider (slug) |
- **providerAccountId** | **[]int32** | ProviderAccount (ID) |
- **providerAccountIdN** | **[]int32** | ProviderAccount (ID) |
+ **providerAccountId** | **[]int32** | Provider account (ID) |
+ **providerAccountIdN** | **[]int32** | Provider account (ID) |
**providerId** | **[]int32** | Provider (ID) |
**providerIdN** | **[]int32** | Provider (ID) |
- **providerNetworkId** | **[]int32** | ProviderNetwork (ID) |
- **providerNetworkIdN** | **[]int32** | ProviderNetwork (ID) |
+ **providerNetworkId** | **[]int32** | Provider network (ID) |
+ **providerNetworkIdN** | **[]int32** | Provider network (ID) |
**q** | **string** | Search |
**region** | **[]int32** | Region (slug) |
**regionN** | **[]int32** | Region (slug) |
@@ -2271,25 +2293,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this circuit.
- patchedWritableCircuitRequest := *openapiclient.NewPatchedWritableCircuitRequest() // PatchedWritableCircuitRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsPartialUpdate(context.Background(), id).PatchedWritableCircuitRequest(patchedWritableCircuitRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitsPartialUpdate`: Circuit
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this circuit.
+ patchedWritableCircuitRequest := *openapiclient.NewPatchedWritableCircuitRequest() // PatchedWritableCircuitRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsPartialUpdate(context.Background(), id).PatchedWritableCircuitRequest(patchedWritableCircuitRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitsPartialUpdate`: Circuit
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsPartialUpdate`: %v\n", resp)
}
```
@@ -2343,24 +2365,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this circuit.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitsRetrieve`: Circuit
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this circuit.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitsRetrieve`: Circuit
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsRetrieve`: %v\n", resp)
}
```
@@ -2413,25 +2435,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this circuit.
- writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", int32(123), int32(123)) // WritableCircuitRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsUpdate(context.Background(), id).WritableCircuitRequest(writableCircuitRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsCircuitsUpdate`: Circuit
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this circuit.
+ writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", int32(123), int32(123)) // WritableCircuitRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsUpdate(context.Background(), id).WritableCircuitRequest(writableCircuitRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsCircuitsUpdate`: Circuit
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsUpdate`: %v\n", resp)
}
```
@@ -2485,22 +2507,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkDestroy(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkDestroy(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -2549,24 +2571,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderAccountsBulkPartialUpdate`: []ProviderAccount
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate`: %v\n", resp)
+ providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderAccountsBulkPartialUpdate`: []ProviderAccount
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -2615,24 +2637,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkUpdate(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderAccountsBulkUpdate`: []ProviderAccount
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsBulkUpdate`: %v\n", resp)
+ providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkUpdate(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderAccountsBulkUpdate`: []ProviderAccount
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsBulkUpdate`: %v\n", resp)
}
```
@@ -2681,24 +2703,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableProviderAccountRequest := *openapiclient.NewWritableProviderAccountRequest(int32(123), "Account_example") // WritableProviderAccountRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsCreate(context.Background()).WritableProviderAccountRequest(writableProviderAccountRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderAccountsCreate`: ProviderAccount
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsCreate`: %v\n", resp)
+ writableProviderAccountRequest := *openapiclient.NewWritableProviderAccountRequest(int32(123), "Account_example") // WritableProviderAccountRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsCreate(context.Background()).WritableProviderAccountRequest(writableProviderAccountRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderAccountsCreate`: ProviderAccount
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsCreate`: %v\n", resp)
}
```
@@ -2747,22 +2769,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this provider account.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this provider account.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -2815,91 +2837,91 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- account := []string{"Inner_example"} // []string | (optional)
- accountEmpty := true // bool | (optional)
- accountIc := []string{"Inner_example"} // []string | (optional)
- accountIe := []string{"Inner_example"} // []string | (optional)
- accountIew := []string{"Inner_example"} // []string | (optional)
- accountIsw := []string{"Inner_example"} // []string | (optional)
- accountN := []string{"Inner_example"} // []string | (optional)
- accountNic := []string{"Inner_example"} // []string | (optional)
- accountNie := []string{"Inner_example"} // []string | (optional)
- accountNiew := []string{"Inner_example"} // []string | (optional)
- accountNisw := []string{"Inner_example"} // []string | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- provider := []string{"Inner_example"} // []string | Provider (slug) (optional)
- providerN := []string{"Inner_example"} // []string | Provider (slug) (optional)
- providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional)
- providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional)
- q := "q_example" // string | Search (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsList(context.Background()).Account(account).AccountEmpty(accountEmpty).AccountIc(accountIc).AccountIe(accountIe).AccountIew(accountIew).AccountIsw(accountIsw).AccountN(accountN).AccountNic(accountNic).AccountNie(accountNie).AccountNiew(accountNiew).AccountNisw(accountNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderAccountsList`: PaginatedProviderAccountList
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsList`: %v\n", resp)
+ account := []string{"Inner_example"} // []string | (optional)
+ accountEmpty := true // bool | (optional)
+ accountIc := []string{"Inner_example"} // []string | (optional)
+ accountIe := []string{"Inner_example"} // []string | (optional)
+ accountIew := []string{"Inner_example"} // []string | (optional)
+ accountIsw := []string{"Inner_example"} // []string | (optional)
+ accountN := []string{"Inner_example"} // []string | (optional)
+ accountNic := []string{"Inner_example"} // []string | (optional)
+ accountNie := []string{"Inner_example"} // []string | (optional)
+ accountNiew := []string{"Inner_example"} // []string | (optional)
+ accountNisw := []string{"Inner_example"} // []string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ provider := []string{"Inner_example"} // []string | Provider (slug) (optional)
+ providerN := []string{"Inner_example"} // []string | Provider (slug) (optional)
+ providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional)
+ providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional)
+ q := "q_example" // string | Search (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsList(context.Background()).Account(account).AccountEmpty(accountEmpty).AccountIc(accountIc).AccountIe(accountIe).AccountIew(accountIew).AccountIsw(accountIsw).AccountN(accountN).AccountNic(accountNic).AccountNie(accountNie).AccountNiew(accountNiew).AccountNisw(accountNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderAccountsList`: PaginatedProviderAccountList
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsList`: %v\n", resp)
}
```
@@ -3014,25 +3036,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this provider account.
- patchedWritableProviderAccountRequest := *openapiclient.NewPatchedWritableProviderAccountRequest() // PatchedWritableProviderAccountRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsPartialUpdate(context.Background(), id).PatchedWritableProviderAccountRequest(patchedWritableProviderAccountRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderAccountsPartialUpdate`: ProviderAccount
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this provider account.
+ patchedWritableProviderAccountRequest := *openapiclient.NewPatchedWritableProviderAccountRequest() // PatchedWritableProviderAccountRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsPartialUpdate(context.Background(), id).PatchedWritableProviderAccountRequest(patchedWritableProviderAccountRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderAccountsPartialUpdate`: ProviderAccount
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsPartialUpdate`: %v\n", resp)
}
```
@@ -3086,24 +3108,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this provider account.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderAccountsRetrieve`: ProviderAccount
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this provider account.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderAccountsRetrieve`: ProviderAccount
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsRetrieve`: %v\n", resp)
}
```
@@ -3156,25 +3178,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this provider account.
- writableProviderAccountRequest := *openapiclient.NewWritableProviderAccountRequest(int32(123), "Account_example") // WritableProviderAccountRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsUpdate(context.Background(), id).WritableProviderAccountRequest(writableProviderAccountRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderAccountsUpdate`: ProviderAccount
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this provider account.
+ writableProviderAccountRequest := *openapiclient.NewWritableProviderAccountRequest(int32(123), "Account_example") // WritableProviderAccountRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsUpdate(context.Background(), id).WritableProviderAccountRequest(writableProviderAccountRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderAccountsUpdate`: ProviderAccount
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsUpdate`: %v\n", resp)
}
```
@@ -3228,22 +3250,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkDestroy(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkDestroy(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -3292,24 +3314,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderNetworksBulkPartialUpdate`: []ProviderNetwork
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate`: %v\n", resp)
+ providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderNetworksBulkPartialUpdate`: []ProviderNetwork
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate`: %v\n", resp)
}
```
@@ -3358,24 +3380,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkUpdate(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderNetworksBulkUpdate`: []ProviderNetwork
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksBulkUpdate`: %v\n", resp)
+ providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkUpdate(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderNetworksBulkUpdate`: []ProviderNetwork
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksBulkUpdate`: %v\n", resp)
}
```
@@ -3424,24 +3446,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableProviderNetworkRequest := *openapiclient.NewWritableProviderNetworkRequest(int32(123), "Name_example") // WritableProviderNetworkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksCreate(context.Background()).WritableProviderNetworkRequest(writableProviderNetworkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderNetworksCreate`: ProviderNetwork
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksCreate`: %v\n", resp)
+ writableProviderNetworkRequest := *openapiclient.NewWritableProviderNetworkRequest(int32(123), "Name_example") // WritableProviderNetworkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksCreate(context.Background()).WritableProviderNetworkRequest(writableProviderNetworkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderNetworksCreate`: ProviderNetwork
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksCreate`: %v\n", resp)
}
```
@@ -3490,22 +3512,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this provider network.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this provider network.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -3558,91 +3580,91 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- provider := []string{"Inner_example"} // []string | Provider (slug) (optional)
- providerN := []string{"Inner_example"} // []string | Provider (slug) (optional)
- providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional)
- providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional)
- q := "q_example" // string | Search (optional)
- serviceId := []string{"Inner_example"} // []string | (optional)
- serviceIdEmpty := true // bool | (optional)
- serviceIdIc := []string{"Inner_example"} // []string | (optional)
- serviceIdIe := []string{"Inner_example"} // []string | (optional)
- serviceIdIew := []string{"Inner_example"} // []string | (optional)
- serviceIdIsw := []string{"Inner_example"} // []string | (optional)
- serviceIdN := []string{"Inner_example"} // []string | (optional)
- serviceIdNic := []string{"Inner_example"} // []string | (optional)
- serviceIdNie := []string{"Inner_example"} // []string | (optional)
- serviceIdNiew := []string{"Inner_example"} // []string | (optional)
- serviceIdNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).ServiceId(serviceId).ServiceIdEmpty(serviceIdEmpty).ServiceIdIc(serviceIdIc).ServiceIdIe(serviceIdIe).ServiceIdIew(serviceIdIew).ServiceIdIsw(serviceIdIsw).ServiceIdN(serviceIdN).ServiceIdNic(serviceIdNic).ServiceIdNie(serviceIdNie).ServiceIdNiew(serviceIdNiew).ServiceIdNisw(serviceIdNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderNetworksList`: PaginatedProviderNetworkList
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksList`: %v\n", resp)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ provider := []string{"Inner_example"} // []string | Provider (slug) (optional)
+ providerN := []string{"Inner_example"} // []string | Provider (slug) (optional)
+ providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional)
+ providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional)
+ q := "q_example" // string | Search (optional)
+ serviceId := []string{"Inner_example"} // []string | (optional)
+ serviceIdEmpty := true // bool | (optional)
+ serviceIdIc := []string{"Inner_example"} // []string | (optional)
+ serviceIdIe := []string{"Inner_example"} // []string | (optional)
+ serviceIdIew := []string{"Inner_example"} // []string | (optional)
+ serviceIdIsw := []string{"Inner_example"} // []string | (optional)
+ serviceIdN := []string{"Inner_example"} // []string | (optional)
+ serviceIdNic := []string{"Inner_example"} // []string | (optional)
+ serviceIdNie := []string{"Inner_example"} // []string | (optional)
+ serviceIdNiew := []string{"Inner_example"} // []string | (optional)
+ serviceIdNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).ServiceId(serviceId).ServiceIdEmpty(serviceIdEmpty).ServiceIdIc(serviceIdIc).ServiceIdIe(serviceIdIe).ServiceIdIew(serviceIdIew).ServiceIdIsw(serviceIdIsw).ServiceIdN(serviceIdN).ServiceIdNic(serviceIdNic).ServiceIdNie(serviceIdNie).ServiceIdNiew(serviceIdNiew).ServiceIdNisw(serviceIdNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderNetworksList`: PaginatedProviderNetworkList
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksList`: %v\n", resp)
}
```
@@ -3757,25 +3779,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this provider network.
- patchedWritableProviderNetworkRequest := *openapiclient.NewPatchedWritableProviderNetworkRequest() // PatchedWritableProviderNetworkRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksPartialUpdate(context.Background(), id).PatchedWritableProviderNetworkRequest(patchedWritableProviderNetworkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderNetworksPartialUpdate`: ProviderNetwork
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this provider network.
+ patchedWritableProviderNetworkRequest := *openapiclient.NewPatchedWritableProviderNetworkRequest() // PatchedWritableProviderNetworkRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksPartialUpdate(context.Background(), id).PatchedWritableProviderNetworkRequest(patchedWritableProviderNetworkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderNetworksPartialUpdate`: ProviderNetwork
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksPartialUpdate`: %v\n", resp)
}
```
@@ -3829,24 +3851,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this provider network.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderNetworksRetrieve`: ProviderNetwork
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this provider network.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderNetworksRetrieve`: ProviderNetwork
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksRetrieve`: %v\n", resp)
}
```
@@ -3899,25 +3921,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this provider network.
- writableProviderNetworkRequest := *openapiclient.NewWritableProviderNetworkRequest(int32(123), "Name_example") // WritableProviderNetworkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksUpdate(context.Background(), id).WritableProviderNetworkRequest(writableProviderNetworkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProviderNetworksUpdate`: ProviderNetwork
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this provider network.
+ writableProviderNetworkRequest := *openapiclient.NewWritableProviderNetworkRequest(int32(123), "Name_example") // WritableProviderNetworkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksUpdate(context.Background(), id).WritableProviderNetworkRequest(writableProviderNetworkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProviderNetworksUpdate`: ProviderNetwork
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksUpdate`: %v\n", resp)
}
```
@@ -3971,22 +3993,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- providerRequest := []openapiclient.ProviderRequest{*openapiclient.NewProviderRequest("Name_example", "Slug_example")} // []ProviderRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CircuitsAPI.CircuitsProvidersBulkDestroy(context.Background()).ProviderRequest(providerRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ providerRequest := []openapiclient.ProviderRequest{*openapiclient.NewProviderRequest("Name_example", "Slug_example")} // []ProviderRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CircuitsAPI.CircuitsProvidersBulkDestroy(context.Background()).ProviderRequest(providerRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -4035,24 +4057,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- providerRequest := []openapiclient.ProviderRequest{*openapiclient.NewProviderRequest("Name_example", "Slug_example")} // []ProviderRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersBulkPartialUpdate(context.Background()).ProviderRequest(providerRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProvidersBulkPartialUpdate`: []Provider
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersBulkPartialUpdate`: %v\n", resp)
+ providerRequest := []openapiclient.ProviderRequest{*openapiclient.NewProviderRequest("Name_example", "Slug_example")} // []ProviderRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersBulkPartialUpdate(context.Background()).ProviderRequest(providerRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProvidersBulkPartialUpdate`: []Provider
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersBulkPartialUpdate`: %v\n", resp)
}
```
@@ -4101,24 +4123,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- providerRequest := []openapiclient.ProviderRequest{*openapiclient.NewProviderRequest("Name_example", "Slug_example")} // []ProviderRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersBulkUpdate(context.Background()).ProviderRequest(providerRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProvidersBulkUpdate`: []Provider
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersBulkUpdate`: %v\n", resp)
+ providerRequest := []openapiclient.ProviderRequest{*openapiclient.NewProviderRequest("Name_example", "Slug_example")} // []ProviderRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersBulkUpdate(context.Background()).ProviderRequest(providerRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProvidersBulkUpdate`: []Provider
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersBulkUpdate`: %v\n", resp)
}
```
@@ -4167,24 +4189,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableProviderRequest := *openapiclient.NewWritableProviderRequest("Name_example", "Slug_example", []int32{int32(123)}) // WritableProviderRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersCreate(context.Background()).WritableProviderRequest(writableProviderRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProvidersCreate`: Provider
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersCreate`: %v\n", resp)
+ writableProviderRequest := *openapiclient.NewWritableProviderRequest("Name_example", "Slug_example", []int32{int32(123)}) // WritableProviderRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersCreate(context.Background()).WritableProviderRequest(writableProviderRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProvidersCreate`: Provider
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersCreate`: %v\n", resp)
}
```
@@ -4233,22 +4255,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this provider.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CircuitsAPI.CircuitsProvidersDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this provider.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CircuitsAPI.CircuitsProvidersDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -4289,7 +4311,7 @@ Name | Type | Description | Notes
## CircuitsProvidersList
-> PaginatedProviderList CircuitsProvidersList(ctx).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedProviderList CircuitsProvidersList(ctx).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
@@ -4301,96 +4323,107 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- asnId := []int32{int32(123)} // []int32 | ASN (ID) (optional)
- asnIdN := []int32{int32(123)} // []int32 | ASN (ID) (optional)
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- 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)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- site := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersList(context.Background()).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProvidersList`: PaginatedProviderList
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersList`: %v\n", resp)
+ asnId := []int32{int32(123)} // []int32 | ASN (ID) (optional)
+ asnIdN := []int32{int32(123)} // []int32 | ASN (ID) (optional)
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersList(context.Background()).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProvidersList`: PaginatedProviderList
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersList`: %v\n", resp)
}
```
@@ -4421,6 +4454,17 @@ 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** | |
**id** | **[]int32** | |
**idEmpty** | **bool** | |
**idGt** | **[]int32** | |
@@ -4510,25 +4554,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this provider.
- patchedWritableProviderRequest := *openapiclient.NewPatchedWritableProviderRequest() // PatchedWritableProviderRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersPartialUpdate(context.Background(), id).PatchedWritableProviderRequest(patchedWritableProviderRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProvidersPartialUpdate`: Provider
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this provider.
+ patchedWritableProviderRequest := *openapiclient.NewPatchedWritableProviderRequest() // PatchedWritableProviderRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersPartialUpdate(context.Background(), id).PatchedWritableProviderRequest(patchedWritableProviderRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProvidersPartialUpdate`: Provider
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersPartialUpdate`: %v\n", resp)
}
```
@@ -4582,24 +4626,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this provider.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProvidersRetrieve`: Provider
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this provider.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProvidersRetrieve`: Provider
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersRetrieve`: %v\n", resp)
}
```
@@ -4652,25 +4696,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this provider.
- writableProviderRequest := *openapiclient.NewWritableProviderRequest("Name_example", "Slug_example", []int32{int32(123)}) // WritableProviderRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersUpdate(context.Background(), id).WritableProviderRequest(writableProviderRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CircuitsProvidersUpdate`: Provider
- fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this provider.
+ writableProviderRequest := *openapiclient.NewWritableProviderRequest("Name_example", "Slug_example", []int32{int32(123)}) // WritableProviderRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersUpdate(context.Background(), id).WritableProviderRequest(writableProviderRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CircuitsProvidersUpdate`: Provider
+ fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersUpdate`: %v\n", resp)
}
```
diff --git a/docs/ClusterRequest.md b/docs/ClusterRequest.md
index b61d3b8e14..cefc34a7bc 100644
--- a/docs/ClusterRequest.md
+++ b/docs/ClusterRequest.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Name** | **string** | |
**Type** | [**NestedClusterTypeRequest**](NestedClusterTypeRequest.md) | |
**Group** | Pointer to [**NullableNestedClusterGroupRequest**](NestedClusterGroupRequest.md) | | [optional]
-**Status** | Pointer to **string** | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline | [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]
@@ -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 *ClusterRequest) GetStatus() string`
+`func (o *ClusterRequest) GetStatus() ClusterStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *ClusterRequest) GetStatusOk() (*string, bool)`
+`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 string)`
+`func (o *ClusterRequest) SetStatus(v ClusterStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/ClusterStatus.md b/docs/ClusterStatus.md
index 4534d6bb4e..0753edae9e 100644
--- a/docs/ClusterStatus.md
+++ b/docs/ClusterStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional]
+**Label** | Pointer to [**ClusterStatusLabel**](ClusterStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *ClusterStatus) GetValue() string`
+`func (o *ClusterStatus) GetValue() ClusterStatusValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *ClusterStatus) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *ClusterStatus) SetValue(v ClusterStatusValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *ClusterStatus) GetLabel() string`
+`func (o *ClusterStatus) GetLabel() ClusterStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *ClusterStatus) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *ClusterStatus) SetLabel(v ClusterStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/ClusterStatusLabel.md b/docs/ClusterStatusLabel.md
new file mode 100644
index 0000000000..7a03fab9a0
--- /dev/null
+++ b/docs/ClusterStatusLabel.md
@@ -0,0 +1,19 @@
+# ClusterStatusLabel
+
+## Enum
+
+
+* `PLANNED` (value: `"Planned"`)
+
+* `STAGING` (value: `"Staging"`)
+
+* `ACTIVE` (value: `"Active"`)
+
+* `DECOMMISSIONING` (value: `"Decommissioning"`)
+
+* `OFFLINE` (value: `"Offline"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ClusterStatusValue.md b/docs/ClusterStatusValue.md
new file mode 100644
index 0000000000..f68d48cacf
--- /dev/null
+++ b/docs/ClusterStatusValue.md
@@ -0,0 +1,19 @@
+# ClusterStatusValue
+
+## 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/ConfigContext.md b/docs/ConfigContext.md
index f2de328afc..e00c9a461b 100644
--- a/docs/ConfigContext.md
+++ b/docs/ConfigContext.md
@@ -28,7 +28,7 @@ Name | Type | Description | Notes
**DataPath** | **string** | Path to remote file (relative to data source root) | [readonly]
**DataFile** | [**NestedDataFile**](NestedDataFile.md) | | [readonly]
**DataSynced** | **NullableTime** | | [readonly]
-**Data** | **map[string]interface{}** | |
+**Data** | **interface{}** | |
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **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 map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *ConfigContext`
+`func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile NestedDataFile, 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,
@@ -628,24 +628,34 @@ SetDataSynced sets DataSynced field to given value.
UnsetDataSynced ensures that no value is present for DataSynced, not even an explicit nil
### GetData
-`func (o *ConfigContext) GetData() map[string]interface{}`
+`func (o *ConfigContext) GetData() interface{}`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *ConfigContext) GetDataOk() (*map[string]interface{}, bool)`
+`func (o *ConfigContext) 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 *ConfigContext) SetData(v map[string]interface{})`
+`func (o *ConfigContext) SetData(v interface{})`
SetData sets Data field to given value.
+### SetDataNil
+
+`func (o *ConfigContext) SetDataNil(b bool)`
+
+ SetDataNil sets the value for Data to be an explicit nil
+
+### UnsetData
+`func (o *ConfigContext) UnsetData()`
+
+UnsetData ensures that no value is present for Data, not even an explicit nil
### GetCreated
`func (o *ConfigContext) GetCreated() time.Time`
diff --git a/docs/ConfigContextRequest.md b/docs/ConfigContextRequest.md
index 3f357c20ae..947b1c73f0 100644
--- a/docs/ConfigContextRequest.md
+++ b/docs/ConfigContextRequest.md
@@ -22,13 +22,13 @@ Name | Type | Description | Notes
**Tenants** | Pointer to **[]int32** | | [optional]
**Tags** | Pointer to **[]string** | | [optional]
**DataSource** | Pointer to [**NestedDataSourceRequest**](NestedDataSourceRequest.md) | | [optional]
-**Data** | **map[string]interface{}** | |
+**Data** | **interface{}** | |
## Methods
### NewConfigContextRequest
-`func NewConfigContextRequest(name string, data map[string]interface{}, ) *ConfigContextRequest`
+`func NewConfigContextRequest(name string, data interface{}, ) *ConfigContextRequest`
NewConfigContextRequest instantiates a new ConfigContextRequest object
This constructor will assign default values to properties that have it defined,
@@ -490,24 +490,34 @@ HasDataSource returns a boolean if a field has been set.
### GetData
-`func (o *ConfigContextRequest) GetData() map[string]interface{}`
+`func (o *ConfigContextRequest) GetData() interface{}`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *ConfigContextRequest) GetDataOk() (*map[string]interface{}, bool)`
+`func (o *ConfigContextRequest) 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 *ConfigContextRequest) SetData(v map[string]interface{})`
+`func (o *ConfigContextRequest) SetData(v interface{})`
SetData sets Data field to given value.
+### SetDataNil
+
+`func (o *ConfigContextRequest) SetDataNil(b bool)`
+
+ SetDataNil sets the value for Data to be an explicit nil
+
+### UnsetData
+`func (o *ConfigContextRequest) 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/ConfigTemplate.md b/docs/ConfigTemplate.md
index 394b2a4b0c..13fb2cde45 100644
--- a/docs/ConfigTemplate.md
+++ b/docs/ConfigTemplate.md
@@ -9,11 +9,11 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Name** | **string** | |
**Description** | Pointer to **string** | | [optional]
-**EnvironmentParams** | Pointer to **map[string]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]
+**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** | [**NestedDataFile**](NestedDataFile.md) | | [readonly]
+**DataFile** | Pointer to [**NestedDataFile**](NestedDataFile.md) | | [optional]
**DataSynced** | **NullableTime** | | [readonly]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
**Created** | **NullableTime** | | [readonly]
@@ -23,7 +23,7 @@ Name | Type | Description | Notes
### NewConfigTemplate
-`func NewConfigTemplate(id int32, url string, display string, name string, templateCode string, dataPath string, dataFile NestedDataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ConfigTemplate`
+`func NewConfigTemplate(id int32, url string, display string, name string, templateCode string, dataPath string, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ConfigTemplate`
NewConfigTemplate instantiates a new ConfigTemplate object
This constructor will assign default values to properties that have it defined,
@@ -145,20 +145,20 @@ HasDescription returns a boolean if a field has been set.
### GetEnvironmentParams
-`func (o *ConfigTemplate) GetEnvironmentParams() map[string]interface{}`
+`func (o *ConfigTemplate) GetEnvironmentParams() interface{}`
GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise.
### GetEnvironmentParamsOk
-`func (o *ConfigTemplate) GetEnvironmentParamsOk() (*map[string]interface{}, bool)`
+`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 map[string]interface{})`
+`func (o *ConfigTemplate) SetEnvironmentParams(v interface{})`
SetEnvironmentParams sets EnvironmentParams field to given value.
@@ -262,6 +262,11 @@ and a boolean to check if the value has been set.
SetDataFile sets DataFile field to given value.
+### HasDataFile
+
+`func (o *ConfigTemplate) HasDataFile() bool`
+
+HasDataFile returns a boolean if a field has been set.
### GetDataSynced
diff --git a/docs/ConfigTemplateRequest.md b/docs/ConfigTemplateRequest.md
index 2685546cd0..0795139434 100644
--- a/docs/ConfigTemplateRequest.md
+++ b/docs/ConfigTemplateRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Description** | Pointer to **string** | | [optional]
-**EnvironmentParams** | Pointer to **map[string]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]
+**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]
@@ -77,20 +77,20 @@ HasDescription returns a boolean if a field has been set.
### GetEnvironmentParams
-`func (o *ConfigTemplateRequest) GetEnvironmentParams() map[string]interface{}`
+`func (o *ConfigTemplateRequest) GetEnvironmentParams() interface{}`
GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise.
### GetEnvironmentParamsOk
-`func (o *ConfigTemplateRequest) GetEnvironmentParamsOk() (*map[string]interface{}, bool)`
+`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 map[string]interface{})`
+`func (o *ConfigTemplateRequest) SetEnvironmentParams(v interface{})`
SetEnvironmentParams sets EnvironmentParams field to given value.
diff --git a/docs/ConsolePortRequest.md b/docs/ConsolePortRequest.md
index 43741a9a54..e81f18aa0c 100644
--- a/docs/ConsolePortRequest.md
+++ b/docs/ConsolePortRequest.md
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional]
-**Speed** | Pointer to **NullableInt32** | * `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]
+**Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional]
+**Speed** | Pointer to [**NullableConsolePortRequestSpeed**](ConsolePortRequestSpeed.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -136,20 +136,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *ConsolePortRequest) GetType() string`
+`func (o *ConsolePortRequest) GetType() ConsolePortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *ConsolePortRequest) GetTypeOk() (*string, bool)`
+`func (o *ConsolePortRequest) GetTypeOk() (*ConsolePortTypeValue, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *ConsolePortRequest) SetType(v string)`
+`func (o *ConsolePortRequest) SetType(v ConsolePortTypeValue)`
SetType sets Type field to given value.
@@ -161,20 +161,20 @@ HasType returns a boolean if a field has been set.
### GetSpeed
-`func (o *ConsolePortRequest) GetSpeed() int32`
+`func (o *ConsolePortRequest) GetSpeed() ConsolePortRequestSpeed`
GetSpeed returns the Speed field if non-nil, zero value otherwise.
### GetSpeedOk
-`func (o *ConsolePortRequest) GetSpeedOk() (*int32, bool)`
+`func (o *ConsolePortRequest) GetSpeedOk() (*ConsolePortRequestSpeed, bool)`
GetSpeedOk returns a tuple with the Speed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSpeed
-`func (o *ConsolePortRequest) SetSpeed(v int32)`
+`func (o *ConsolePortRequest) SetSpeed(v ConsolePortRequestSpeed)`
SetSpeed sets Speed field to given value.
diff --git a/docs/ConsolePortRequestSpeed.md b/docs/ConsolePortRequestSpeed.md
new file mode 100644
index 0000000000..a5c25b6abf
--- /dev/null
+++ b/docs/ConsolePortRequestSpeed.md
@@ -0,0 +1,25 @@
+# ConsolePortRequestSpeed
+
+## Enum
+
+
+* `_1200` (value: `1200`)
+
+* `_2400` (value: `2400`)
+
+* `_4800` (value: `4800`)
+
+* `_9600` (value: `9600`)
+
+* `_19200` (value: `19200`)
+
+* `_38400` (value: `38400`)
+
+* `_57600` (value: `57600`)
+
+* `_115200` (value: `115200`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ConsolePortSpeed.md b/docs/ConsolePortSpeed.md
index 43fa9de5f0..5679c8c091 100644
--- a/docs/ConsolePortSpeed.md
+++ b/docs/ConsolePortSpeed.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **int32** | * `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]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**ConsolePortSpeedValue**](ConsolePortSpeedValue.md) | | [optional]
+**Label** | Pointer to [**ConsolePortSpeedLabel**](ConsolePortSpeedLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *ConsolePortSpeed) GetValue() int32`
+`func (o *ConsolePortSpeed) GetValue() ConsolePortSpeedValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *ConsolePortSpeed) GetValueOk() (*int32, bool)`
+`func (o *ConsolePortSpeed) GetValueOk() (*ConsolePortSpeedValue, 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 *ConsolePortSpeed) SetValue(v int32)`
+`func (o *ConsolePortSpeed) SetValue(v ConsolePortSpeedValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *ConsolePortSpeed) GetLabel() string`
+`func (o *ConsolePortSpeed) GetLabel() ConsolePortSpeedLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *ConsolePortSpeed) GetLabelOk() (*string, bool)`
+`func (o *ConsolePortSpeed) GetLabelOk() (*ConsolePortSpeedLabel, 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 *ConsolePortSpeed) SetLabel(v string)`
+`func (o *ConsolePortSpeed) SetLabel(v ConsolePortSpeedLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/ConsolePortSpeedLabel.md b/docs/ConsolePortSpeedLabel.md
new file mode 100644
index 0000000000..d66e40665a
--- /dev/null
+++ b/docs/ConsolePortSpeedLabel.md
@@ -0,0 +1,25 @@
+# ConsolePortSpeedLabel
+
+## Enum
+
+
+* `_1200_BPS` (value: `"1200 bps"`)
+
+* `_2400_BPS` (value: `"2400 bps"`)
+
+* `_4800_BPS` (value: `"4800 bps"`)
+
+* `_9600_BPS` (value: `"9600 bps"`)
+
+* `_19_2_KBPS` (value: `"19.2 kbps"`)
+
+* `_38_4_KBPS` (value: `"38.4 kbps"`)
+
+* `_57_6_KBPS` (value: `"57.6 kbps"`)
+
+* `_115_2_KBPS` (value: `"115.2 kbps"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ConsolePortSpeedValue.md b/docs/ConsolePortSpeedValue.md
new file mode 100644
index 0000000000..4b0047a257
--- /dev/null
+++ b/docs/ConsolePortSpeedValue.md
@@ -0,0 +1,25 @@
+# ConsolePortSpeedValue
+
+## Enum
+
+
+* `_1200` (value: `1200`)
+
+* `_2400` (value: `2400`)
+
+* `_4800` (value: `4800`)
+
+* `_9600` (value: `9600`)
+
+* `_19200` (value: `19200`)
+
+* `_38400` (value: `38400`)
+
+* `_57600` (value: `57600`)
+
+* `_115200` (value: `115200`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ConsolePortTemplateRequest.md b/docs/ConsolePortTemplateRequest.md
index ec3669633e..f67366e354 100644
--- a/docs/ConsolePortTemplateRequest.md
+++ b/docs/ConsolePortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**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 **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional]
+**Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
## Methods
@@ -147,20 +147,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *ConsolePortTemplateRequest) GetType() string`
+`func (o *ConsolePortTemplateRequest) GetType() ConsolePortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *ConsolePortTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *ConsolePortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *ConsolePortTemplateRequest) SetType(v string)`
+`func (o *ConsolePortTemplateRequest) SetType(v ConsolePortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/ConsolePortType.md b/docs/ConsolePortType.md
index 32828c6592..f0829fa3e4 100644
--- a/docs/ConsolePortType.md
+++ b/docs/ConsolePortType.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional]
+**Label** | Pointer to [**ConsolePortTypeLabel**](ConsolePortTypeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *ConsolePortType) GetValue() string`
+`func (o *ConsolePortType) GetValue() ConsolePortTypeValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *ConsolePortType) GetValueOk() (*string, bool)`
+`func (o *ConsolePortType) GetValueOk() (*ConsolePortTypeValue, 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 *ConsolePortType) SetValue(v string)`
+`func (o *ConsolePortType) SetValue(v ConsolePortTypeValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *ConsolePortType) GetLabel() string`
+`func (o *ConsolePortType) GetLabel() ConsolePortTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *ConsolePortType) GetLabelOk() (*string, bool)`
+`func (o *ConsolePortType) GetLabelOk() (*ConsolePortTypeLabel, 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 *ConsolePortType) SetLabel(v string)`
+`func (o *ConsolePortType) SetLabel(v ConsolePortTypeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/ConsolePortTypeLabel.md b/docs/ConsolePortTypeLabel.md
new file mode 100644
index 0000000000..7679696cb5
--- /dev/null
+++ b/docs/ConsolePortTypeLabel.md
@@ -0,0 +1,39 @@
+# ConsolePortTypeLabel
+
+## Enum
+
+
+* `DE_9` (value: `"DE-9"`)
+
+* `DB_25` (value: `"DB-25"`)
+
+* `RJ_11` (value: `"RJ-11"`)
+
+* `RJ_12` (value: `"RJ-12"`)
+
+* `RJ_45` (value: `"RJ-45"`)
+
+* `MINI_DIN_8` (value: `"Mini-DIN 8"`)
+
+* `USB_TYPE_A` (value: `"USB Type A"`)
+
+* `USB_TYPE_B` (value: `"USB Type B"`)
+
+* `USB_TYPE_C` (value: `"USB Type C"`)
+
+* `USB_MINI_A` (value: `"USB Mini A"`)
+
+* `USB_MINI_B` (value: `"USB Mini B"`)
+
+* `USB_MICRO_A` (value: `"USB Micro A"`)
+
+* `USB_MICRO_B` (value: `"USB Micro B"`)
+
+* `USB_MICRO_AB` (value: `"USB Micro AB"`)
+
+* `OTHER` (value: `"Other"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ConsolePortTypeValue.md b/docs/ConsolePortTypeValue.md
new file mode 100644
index 0000000000..e4584fb465
--- /dev/null
+++ b/docs/ConsolePortTypeValue.md
@@ -0,0 +1,41 @@
+# ConsolePortTypeValue
+
+## Enum
+
+
+* `DE_9` (value: `"de-9"`)
+
+* `DB_25` (value: `"db-25"`)
+
+* `RJ_11` (value: `"rj-11"`)
+
+* `RJ_12` (value: `"rj-12"`)
+
+* `RJ_45` (value: `"rj-45"`)
+
+* `MINI_DIN_8` (value: `"mini-din-8"`)
+
+* `USB_A` (value: `"usb-a"`)
+
+* `USB_B` (value: `"usb-b"`)
+
+* `USB_C` (value: `"usb-c"`)
+
+* `USB_MINI_A` (value: `"usb-mini-a"`)
+
+* `USB_MINI_B` (value: `"usb-mini-b"`)
+
+* `USB_MICRO_A` (value: `"usb-micro-a"`)
+
+* `USB_MICRO_B` (value: `"usb-micro-b"`)
+
+* `USB_MICRO_AB` (value: `"usb-micro-ab"`)
+
+* `OTHER` (value: `"other"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ConsoleServerPortRequest.md b/docs/ConsoleServerPortRequest.md
index d71a9aee66..21560d0a85 100644
--- a/docs/ConsoleServerPortRequest.md
+++ b/docs/ConsoleServerPortRequest.md
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional]
-**Speed** | Pointer to **NullableInt32** | * `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]
+**Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional]
+**Speed** | Pointer to [**NullableConsolePortRequestSpeed**](ConsolePortRequestSpeed.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -136,20 +136,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *ConsoleServerPortRequest) GetType() string`
+`func (o *ConsoleServerPortRequest) GetType() ConsolePortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *ConsoleServerPortRequest) GetTypeOk() (*string, bool)`
+`func (o *ConsoleServerPortRequest) GetTypeOk() (*ConsolePortTypeValue, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *ConsoleServerPortRequest) SetType(v string)`
+`func (o *ConsoleServerPortRequest) SetType(v ConsolePortTypeValue)`
SetType sets Type field to given value.
@@ -161,20 +161,20 @@ HasType returns a boolean if a field has been set.
### GetSpeed
-`func (o *ConsoleServerPortRequest) GetSpeed() int32`
+`func (o *ConsoleServerPortRequest) GetSpeed() ConsolePortRequestSpeed`
GetSpeed returns the Speed field if non-nil, zero value otherwise.
### GetSpeedOk
-`func (o *ConsoleServerPortRequest) GetSpeedOk() (*int32, bool)`
+`func (o *ConsoleServerPortRequest) GetSpeedOk() (*ConsolePortRequestSpeed, bool)`
GetSpeedOk returns a tuple with the Speed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSpeed
-`func (o *ConsoleServerPortRequest) SetSpeed(v int32)`
+`func (o *ConsoleServerPortRequest) SetSpeed(v ConsolePortRequestSpeed)`
SetSpeed sets Speed field to given value.
diff --git a/docs/ConsoleServerPortTemplateRequest.md b/docs/ConsoleServerPortTemplateRequest.md
index 46e5fa726a..f8c1fdec54 100644
--- a/docs/ConsoleServerPortTemplateRequest.md
+++ b/docs/ConsoleServerPortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**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 **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional]
+**Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
## Methods
@@ -147,20 +147,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *ConsoleServerPortTemplateRequest) GetType() string`
+`func (o *ConsoleServerPortTemplateRequest) GetType() ConsolePortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *ConsoleServerPortTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *ConsoleServerPortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *ConsoleServerPortTemplateRequest) SetType(v string)`
+`func (o *ConsoleServerPortTemplateRequest) SetType(v ConsolePortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/ContactAssignment.md b/docs/ContactAssignment.md
index 6922739a1a..f8b7e680b3 100644
--- a/docs/ContactAssignment.md
+++ b/docs/ContactAssignment.md
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
**Role** | Pointer to [**NullableNestedContactRole**](NestedContactRole.md) | | [optional]
**Priority** | Pointer to [**ContactAssignmentPriority**](ContactAssignmentPriority.md) | | [optional]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
@@ -261,6 +262,31 @@ SetTags sets Tags field to given value.
HasTags returns a boolean if a field has been set.
+### GetCustomFields
+
+`func (o *ContactAssignment) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *ContactAssignment) 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 *ContactAssignment) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *ContactAssignment) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
### GetCreated
`func (o *ContactAssignment) GetCreated() time.Time`
diff --git a/docs/ContactAssignmentPriority.md b/docs/ContactAssignmentPriority.md
index 4bd1878789..318ec2b42d 100644
--- a/docs/ContactAssignmentPriority.md
+++ b/docs/ContactAssignmentPriority.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional]
+**Label** | Pointer to [**ContactAssignmentPriorityLabel**](ContactAssignmentPriorityLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *ContactAssignmentPriority) GetValue() string`
+`func (o *ContactAssignmentPriority) GetValue() ContactAssignmentPriorityValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *ContactAssignmentPriority) GetValueOk() (*string, bool)`
+`func (o *ContactAssignmentPriority) GetValueOk() (*ContactAssignmentPriorityValue, 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 *ContactAssignmentPriority) SetValue(v string)`
+`func (o *ContactAssignmentPriority) SetValue(v ContactAssignmentPriorityValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *ContactAssignmentPriority) GetLabel() string`
+`func (o *ContactAssignmentPriority) GetLabel() ContactAssignmentPriorityLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *ContactAssignmentPriority) GetLabelOk() (*string, bool)`
+`func (o *ContactAssignmentPriority) GetLabelOk() (*ContactAssignmentPriorityLabel, 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 *ContactAssignmentPriority) SetLabel(v string)`
+`func (o *ContactAssignmentPriority) SetLabel(v ContactAssignmentPriorityLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/ContactAssignmentPriorityLabel.md b/docs/ContactAssignmentPriorityLabel.md
new file mode 100644
index 0000000000..7da6df3c52
--- /dev/null
+++ b/docs/ContactAssignmentPriorityLabel.md
@@ -0,0 +1,17 @@
+# ContactAssignmentPriorityLabel
+
+## Enum
+
+
+* `PRIMARY` (value: `"Primary"`)
+
+* `SECONDARY` (value: `"Secondary"`)
+
+* `TERTIARY` (value: `"Tertiary"`)
+
+* `INACTIVE` (value: `"Inactive"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ContactAssignmentPriorityValue.md b/docs/ContactAssignmentPriorityValue.md
new file mode 100644
index 0000000000..368275b927
--- /dev/null
+++ b/docs/ContactAssignmentPriorityValue.md
@@ -0,0 +1,19 @@
+# ContactAssignmentPriorityValue
+
+## Enum
+
+
+* `PRIMARY` (value: `"primary"`)
+
+* `SECONDARY` (value: `"secondary"`)
+
+* `TERTIARY` (value: `"tertiary"`)
+
+* `INACTIVE` (value: `"inactive"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ContactAssignmentRequest.md b/docs/ContactAssignmentRequest.md
index 0bc540f4b7..57453cad45 100644
--- a/docs/ContactAssignmentRequest.md
+++ b/docs/ContactAssignmentRequest.md
@@ -8,8 +8,9 @@ Name | Type | Description | Notes
**ObjectId** | **int64** | |
**Contact** | [**NestedContactRequest**](NestedContactRequest.md) | |
**Role** | Pointer to [**NullableNestedContactRoleRequest**](NestedContactRoleRequest.md) | | [optional]
-**Priority** | Pointer to **string** | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | [optional]
+**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
## Methods
@@ -127,20 +128,20 @@ HasRole returns a boolean if a field has been set.
UnsetRole ensures that no value is present for Role, not even an explicit nil
### GetPriority
-`func (o *ContactAssignmentRequest) GetPriority() string`
+`func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue`
GetPriority returns the Priority field if non-nil, zero value otherwise.
### GetPriorityOk
-`func (o *ContactAssignmentRequest) GetPriorityOk() (*string, bool)`
+`func (o *ContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)`
GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPriority
-`func (o *ContactAssignmentRequest) SetPriority(v string)`
+`func (o *ContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)`
SetPriority sets Priority field to given value.
@@ -175,6 +176,31 @@ SetTags sets Tags field to given value.
HasTags returns a boolean if a field has been set.
+### GetCustomFields
+
+`func (o *ContactAssignmentRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *ContactAssignmentRequest) 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 *ContactAssignmentRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *ContactAssignmentRequest) 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
similarity index 50%
rename from docs/CoreApi.md
rename to docs/CoreAPI.md
index 14fd7a1c6f..99c8fa0ae9 100644
--- a/docs/CoreApi.md
+++ b/docs/CoreAPI.md
@@ -35,85 +35,85 @@ Method | HTTP request | Description
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- hash := []string{"Inner_example"} // []string | (optional)
- hashEmpty := true // bool | (optional)
- hashIc := []string{"Inner_example"} // []string | (optional)
- hashIe := []string{"Inner_example"} // []string | (optional)
- hashIew := []string{"Inner_example"} // []string | (optional)
- hashIsw := []string{"Inner_example"} // []string | (optional)
- hashN := []string{"Inner_example"} // []string | (optional)
- hashNic := []string{"Inner_example"} // []string | (optional)
- hashNie := []string{"Inner_example"} // []string | (optional)
- hashNiew := []string{"Inner_example"} // []string | (optional)
- hashNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- path := []string{"Inner_example"} // []string | (optional)
- pathEmpty := true // bool | (optional)
- pathIc := []string{"Inner_example"} // []string | (optional)
- pathIe := []string{"Inner_example"} // []string | (optional)
- pathIew := []string{"Inner_example"} // []string | (optional)
- pathIsw := []string{"Inner_example"} // []string | (optional)
- pathN := []string{"Inner_example"} // []string | (optional)
- pathNic := []string{"Inner_example"} // []string | (optional)
- pathNie := []string{"Inner_example"} // []string | (optional)
- pathNiew := []string{"Inner_example"} // []string | (optional)
- pathNisw := []string{"Inner_example"} // []string | (optional)
- q := "q_example" // string | (optional)
- size := []int32{int32(123)} // []int32 | (optional)
- sizeEmpty := true // bool | (optional)
- sizeGt := []int32{int32(123)} // []int32 | (optional)
- sizeGte := []int32{int32(123)} // []int32 | (optional)
- sizeLt := []int32{int32(123)} // []int32 | (optional)
- sizeLte := []int32{int32(123)} // []int32 | (optional)
- sizeN := []int32{int32(123)} // []int32 | (optional)
- source := []string{"Inner_example"} // []string | Data source (name) (optional)
- sourceN := []string{"Inner_example"} // []string | Data source (name) (optional)
- sourceId := []int32{int32(123)} // []int32 | Data source (ID) (optional)
- sourceIdN := []int32{int32(123)} // []int32 | Data source (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CoreAPI.CoreDataFilesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Hash(hash).HashEmpty(hashEmpty).HashIc(hashIc).HashIe(hashIe).HashIew(hashIew).HashIsw(hashIsw).HashN(hashN).HashNic(hashNic).HashNie(hashNie).HashNiew(hashNiew).HashNisw(hashNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Path(path).PathEmpty(pathEmpty).PathIc(pathIc).PathIe(pathIe).PathIew(pathIew).PathIsw(pathIsw).PathN(pathN).PathNic(pathNic).PathNie(pathNie).PathNiew(pathNiew).PathNisw(pathNisw).Q(q).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).Source(source).SourceN(sourceN).SourceId(sourceId).SourceIdN(sourceIdN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataFilesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CoreDataFilesList`: PaginatedDataFileList
- fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataFilesList`: %v\n", resp)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ hash := []string{"Inner_example"} // []string | (optional)
+ hashEmpty := true // bool | (optional)
+ hashIc := []string{"Inner_example"} // []string | (optional)
+ hashIe := []string{"Inner_example"} // []string | (optional)
+ hashIew := []string{"Inner_example"} // []string | (optional)
+ hashIsw := []string{"Inner_example"} // []string | (optional)
+ hashN := []string{"Inner_example"} // []string | (optional)
+ hashNic := []string{"Inner_example"} // []string | (optional)
+ hashNie := []string{"Inner_example"} // []string | (optional)
+ hashNiew := []string{"Inner_example"} // []string | (optional)
+ hashNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ path := []string{"Inner_example"} // []string | (optional)
+ pathEmpty := true // bool | (optional)
+ pathIc := []string{"Inner_example"} // []string | (optional)
+ pathIe := []string{"Inner_example"} // []string | (optional)
+ pathIew := []string{"Inner_example"} // []string | (optional)
+ pathIsw := []string{"Inner_example"} // []string | (optional)
+ pathN := []string{"Inner_example"} // []string | (optional)
+ pathNic := []string{"Inner_example"} // []string | (optional)
+ pathNie := []string{"Inner_example"} // []string | (optional)
+ pathNiew := []string{"Inner_example"} // []string | (optional)
+ pathNisw := []string{"Inner_example"} // []string | (optional)
+ q := "q_example" // string | (optional)
+ size := []int32{int32(123)} // []int32 | (optional)
+ sizeEmpty := true // bool | (optional)
+ sizeGt := []int32{int32(123)} // []int32 | (optional)
+ sizeGte := []int32{int32(123)} // []int32 | (optional)
+ sizeLt := []int32{int32(123)} // []int32 | (optional)
+ sizeLte := []int32{int32(123)} // []int32 | (optional)
+ sizeN := []int32{int32(123)} // []int32 | (optional)
+ source := []string{"Inner_example"} // []string | Data source (name) (optional)
+ sourceN := []string{"Inner_example"} // []string | Data source (name) (optional)
+ sourceId := []int32{int32(123)} // []int32 | Data source (ID) (optional)
+ sourceIdN := []int32{int32(123)} // []int32 | Data source (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CoreAPI.CoreDataFilesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Hash(hash).HashEmpty(hashEmpty).HashIc(hashIc).HashIe(hashIe).HashIew(hashIew).HashIsw(hashIsw).HashN(hashN).HashNic(hashNic).HashNie(hashNie).HashNiew(hashNiew).HashNisw(hashNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Path(path).PathEmpty(pathEmpty).PathIc(pathIc).PathIe(pathIe).PathIew(pathIew).PathIsw(pathIsw).PathN(pathN).PathNic(pathNic).PathNie(pathNie).PathNiew(pathNiew).PathNisw(pathNisw).Q(q).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).Source(source).SourceN(sourceN).SourceId(sourceId).SourceIdN(sourceIdN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataFilesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CoreDataFilesList`: PaginatedDataFileList
+ fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataFilesList`: %v\n", resp)
}
```
@@ -222,24 +222,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this data file.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CoreAPI.CoreDataFilesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataFilesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CoreDataFilesRetrieve`: DataFile
- fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataFilesRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this data file.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CoreAPI.CoreDataFilesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataFilesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CoreDataFilesRetrieve`: DataFile
+ fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataFilesRetrieve`: %v\n", resp)
}
```
@@ -292,22 +292,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", "Type_example", "SourceUrl_example")} // []DataSourceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CoreAPI.CoreDataSourcesBulkDestroy(context.Background()).DataSourceRequest(dataSourceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CoreAPI.CoreDataSourcesBulkDestroy(context.Background()).DataSourceRequest(dataSourceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -356,24 +356,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", "Type_example", "SourceUrl_example")} // []DataSourceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CoreAPI.CoreDataSourcesBulkPartialUpdate(context.Background()).DataSourceRequest(dataSourceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CoreDataSourcesBulkPartialUpdate`: []DataSource
- fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesBulkPartialUpdate`: %v\n", resp)
+ dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CoreAPI.CoreDataSourcesBulkPartialUpdate(context.Background()).DataSourceRequest(dataSourceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CoreDataSourcesBulkPartialUpdate`: []DataSource
+ fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -422,24 +422,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", "Type_example", "SourceUrl_example")} // []DataSourceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CoreAPI.CoreDataSourcesBulkUpdate(context.Background()).DataSourceRequest(dataSourceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CoreDataSourcesBulkUpdate`: []DataSource
- fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesBulkUpdate`: %v\n", resp)
+ dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CoreAPI.CoreDataSourcesBulkUpdate(context.Background()).DataSourceRequest(dataSourceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CoreDataSourcesBulkUpdate`: []DataSource
+ fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesBulkUpdate`: %v\n", resp)
}
```
@@ -488,24 +488,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableDataSourceRequest := *openapiclient.NewWritableDataSourceRequest("Name_example", "SourceUrl_example") // WritableDataSourceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CoreAPI.CoreDataSourcesCreate(context.Background()).WritableDataSourceRequest(writableDataSourceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CoreDataSourcesCreate`: DataSource
- fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesCreate`: %v\n", resp)
+ writableDataSourceRequest := *openapiclient.NewWritableDataSourceRequest("Name_example", "Type_example", "SourceUrl_example") // WritableDataSourceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CoreAPI.CoreDataSourcesCreate(context.Background()).WritableDataSourceRequest(writableDataSourceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CoreDataSourcesCreate`: DataSource
+ fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesCreate`: %v\n", resp)
}
```
@@ -554,22 +554,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this data source.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CoreAPI.CoreDataSourcesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this data source.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CoreAPI.CoreDataSourcesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -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).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).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()
@@ -622,70 +622,81 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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)
- enabled := true // bool | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- 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)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- type_ := []string{"Inner_example"} // []string | (optional)
- typeN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CoreAPI.CoreDataSourcesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CoreDataSourcesList`: PaginatedDataSourceList
- fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesList`: %v\n", resp)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ enabled := true // bool | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ 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)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ type_ := []string{"Inner_example"} // []string | (optional)
+ typeN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CoreAPI.CoreDataSourcesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CoreDataSourcesList`: PaginatedDataSourceList
+ fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesList`: %v\n", resp)
}
```
@@ -708,6 +719,17 @@ 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** | |
**enabled** | **bool** | |
**id** | **[]int32** | |
**idEmpty** | **bool** | |
@@ -779,25 +801,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this data source.
- patchedWritableDataSourceRequest := *openapiclient.NewPatchedWritableDataSourceRequest() // PatchedWritableDataSourceRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CoreAPI.CoreDataSourcesPartialUpdate(context.Background(), id).PatchedWritableDataSourceRequest(patchedWritableDataSourceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CoreDataSourcesPartialUpdate`: DataSource
- fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this data source.
+ patchedWritableDataSourceRequest := *openapiclient.NewPatchedWritableDataSourceRequest() // PatchedWritableDataSourceRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CoreAPI.CoreDataSourcesPartialUpdate(context.Background(), id).PatchedWritableDataSourceRequest(patchedWritableDataSourceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CoreDataSourcesPartialUpdate`: DataSource
+ fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesPartialUpdate`: %v\n", resp)
}
```
@@ -851,24 +873,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this data source.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CoreAPI.CoreDataSourcesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CoreDataSourcesRetrieve`: DataSource
- fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this data source.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CoreAPI.CoreDataSourcesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CoreDataSourcesRetrieve`: DataSource
+ fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesRetrieve`: %v\n", resp)
}
```
@@ -921,25 +943,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this data source.
- writableDataSourceRequest := *openapiclient.NewWritableDataSourceRequest("Name_example", "SourceUrl_example") // WritableDataSourceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CoreAPI.CoreDataSourcesSyncCreate(context.Background(), id).WritableDataSourceRequest(writableDataSourceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesSyncCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CoreDataSourcesSyncCreate`: DataSource
- fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesSyncCreate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this data source.
+ writableDataSourceRequest := *openapiclient.NewWritableDataSourceRequest("Name_example", "Type_example", "SourceUrl_example") // WritableDataSourceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CoreAPI.CoreDataSourcesSyncCreate(context.Background(), id).WritableDataSourceRequest(writableDataSourceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesSyncCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CoreDataSourcesSyncCreate`: DataSource
+ fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesSyncCreate`: %v\n", resp)
}
```
@@ -993,25 +1015,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this data source.
- writableDataSourceRequest := *openapiclient.NewWritableDataSourceRequest("Name_example", "SourceUrl_example") // WritableDataSourceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CoreAPI.CoreDataSourcesUpdate(context.Background(), id).WritableDataSourceRequest(writableDataSourceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CoreDataSourcesUpdate`: DataSource
- fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this data source.
+ writableDataSourceRequest := *openapiclient.NewWritableDataSourceRequest("Name_example", "Type_example", "SourceUrl_example") // WritableDataSourceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CoreAPI.CoreDataSourcesUpdate(context.Background(), id).WritableDataSourceRequest(writableDataSourceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CoreDataSourcesUpdate`: DataSource
+ fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesUpdate`: %v\n", resp)
}
```
@@ -1065,78 +1087,78 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- completed := time.Now() // time.Time | (optional)
- completedAfter := time.Now() // time.Time | (optional)
- completedBefore := time.Now() // time.Time | (optional)
- created := time.Now() // time.Time | (optional)
- createdAfter := time.Now() // time.Time | (optional)
- createdBefore := time.Now() // time.Time | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- interval := []int32{int32(123)} // []int32 | (optional)
- intervalEmpty := true // bool | (optional)
- intervalGt := []int32{int32(123)} // []int32 | (optional)
- intervalGte := []int32{int32(123)} // []int32 | (optional)
- intervalLt := []int32{int32(123)} // []int32 | (optional)
- intervalLte := []int32{int32(123)} // []int32 | (optional)
- intervalN := []int32{int32(123)} // []int32 | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- objectId := []int32{int32(123)} // []int32 | (optional)
- objectIdEmpty := true // bool | (optional)
- objectIdGt := []int32{int32(123)} // []int32 | (optional)
- objectIdGte := []int32{int32(123)} // []int32 | (optional)
- objectIdLt := []int32{int32(123)} // []int32 | (optional)
- objectIdLte := []int32{int32(123)} // []int32 | (optional)
- objectIdN := []int32{int32(123)} // []int32 | (optional)
- objectType := int32(56) // int32 | (optional)
- objectTypeN := int32(56) // int32 | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- scheduled := time.Now() // time.Time | (optional)
- scheduledAfter := time.Now() // time.Time | (optional)
- scheduledBefore := time.Now() // time.Time | (optional)
- started := time.Now() // time.Time | (optional)
- startedAfter := time.Now() // time.Time | (optional)
- startedBefore := time.Now() // time.Time | (optional)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- user := int32(56) // int32 | (optional)
- userN := int32(56) // int32 | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CoreAPI.CoreJobsList(context.Background()).Completed(completed).CompletedAfter(completedAfter).CompletedBefore(completedBefore).Created(created).CreatedAfter(createdAfter).CreatedBefore(createdBefore).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interval(interval).IntervalEmpty(intervalEmpty).IntervalGt(intervalGt).IntervalGte(intervalGte).IntervalLt(intervalLt).IntervalLte(intervalLte).IntervalN(intervalN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).Offset(offset).Ordering(ordering).Q(q).Scheduled(scheduled).ScheduledAfter(scheduledAfter).ScheduledBefore(scheduledBefore).Started(started).StartedAfter(startedAfter).StartedBefore(startedBefore).Status(status).StatusN(statusN).User(user).UserN(userN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreJobsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CoreJobsList`: PaginatedJobList
- fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreJobsList`: %v\n", resp)
+ completed := time.Now() // time.Time | (optional)
+ completedAfter := time.Now() // time.Time | (optional)
+ completedBefore := time.Now() // time.Time | (optional)
+ created := time.Now() // time.Time | (optional)
+ createdAfter := time.Now() // time.Time | (optional)
+ createdBefore := time.Now() // time.Time | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ interval := []int32{int32(123)} // []int32 | (optional)
+ intervalEmpty := true // bool | (optional)
+ intervalGt := []int32{int32(123)} // []int32 | (optional)
+ intervalGte := []int32{int32(123)} // []int32 | (optional)
+ intervalLt := []int32{int32(123)} // []int32 | (optional)
+ intervalLte := []int32{int32(123)} // []int32 | (optional)
+ intervalN := []int32{int32(123)} // []int32 | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ objectId := []int32{int32(123)} // []int32 | (optional)
+ objectIdEmpty := true // bool | (optional)
+ objectIdGt := []int32{int32(123)} // []int32 | (optional)
+ objectIdGte := []int32{int32(123)} // []int32 | (optional)
+ objectIdLt := []int32{int32(123)} // []int32 | (optional)
+ objectIdLte := []int32{int32(123)} // []int32 | (optional)
+ objectIdN := []int32{int32(123)} // []int32 | (optional)
+ objectType := int32(56) // int32 | (optional)
+ objectTypeN := int32(56) // int32 | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ scheduled := time.Now() // time.Time | (optional)
+ scheduledAfter := time.Now() // time.Time | (optional)
+ scheduledBefore := time.Now() // time.Time | (optional)
+ started := time.Now() // time.Time | (optional)
+ startedAfter := time.Now() // time.Time | (optional)
+ startedBefore := time.Now() // time.Time | (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ user := int32(56) // int32 | (optional)
+ userN := int32(56) // int32 | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CoreAPI.CoreJobsList(context.Background()).Completed(completed).CompletedAfter(completedAfter).CompletedBefore(completedBefore).Created(created).CreatedAfter(createdAfter).CreatedBefore(createdBefore).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interval(interval).IntervalEmpty(intervalEmpty).IntervalGt(intervalGt).IntervalGte(intervalGte).IntervalLt(intervalLt).IntervalLte(intervalLte).IntervalN(intervalN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).Offset(offset).Ordering(ordering).Q(q).Scheduled(scheduled).ScheduledAfter(scheduledAfter).ScheduledBefore(scheduledBefore).Started(started).StartedAfter(startedAfter).StartedBefore(startedBefore).Status(status).StatusN(statusN).User(user).UserN(userN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreJobsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CoreJobsList`: PaginatedJobList
+ fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreJobsList`: %v\n", resp)
}
```
@@ -1238,24 +1260,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this job.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CoreAPI.CoreJobsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreJobsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CoreJobsRetrieve`: Job
- fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreJobsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this job.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CoreAPI.CoreJobsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreJobsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CoreJobsRetrieve`: Job
+ fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreJobsRetrieve`: %v\n", resp)
}
```
diff --git a/docs/CustomField.md b/docs/CustomField.md
index d5be701e36..8b6d79d0fc 100644
--- a/docs/CustomField.md
+++ b/docs/CustomField.md
@@ -18,12 +18,13 @@ Name | Type | Description | Notes
**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional]
**SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional]
**FilterLogic** | Pointer to [**CustomFieldFilterLogic**](CustomFieldFilterLogic.md) | | [optional]
-**UiVisibility** | Pointer to [**CustomFieldUiVisibility**](CustomFieldUiVisibility.md) | | [optional]
+**UiVisible** | Pointer to [**CustomFieldUiVisible**](CustomFieldUiVisible.md) | | [optional]
+**UiEditable** | Pointer to [**CustomFieldUiEditable**](CustomFieldUiEditable.md) | | [optional]
**IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional]
-**Default** | Pointer to **map[string]interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional]
+**Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional]
**Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional]
-**ValidationMinimum** | Pointer to **NullableInt32** | Minimum allowed value (for numeric fields) | [optional]
-**ValidationMaximum** | Pointer to **NullableInt32** | Maximum allowed value (for numeric fields) | [optional]
+**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 [**NestedCustomFieldChoiceSet**](NestedCustomFieldChoiceSet.md) | | [optional]
**Created** | **NullableTime** | | [readonly]
@@ -363,30 +364,55 @@ SetFilterLogic sets FilterLogic field to given value.
HasFilterLogic returns a boolean if a field has been set.
-### GetUiVisibility
+### GetUiVisible
-`func (o *CustomField) GetUiVisibility() CustomFieldUiVisibility`
+`func (o *CustomField) GetUiVisible() CustomFieldUiVisible`
-GetUiVisibility returns the UiVisibility field if non-nil, zero value otherwise.
+GetUiVisible returns the UiVisible field if non-nil, zero value otherwise.
-### GetUiVisibilityOk
+### GetUiVisibleOk
-`func (o *CustomField) GetUiVisibilityOk() (*CustomFieldUiVisibility, bool)`
+`func (o *CustomField) GetUiVisibleOk() (*CustomFieldUiVisible, bool)`
-GetUiVisibilityOk returns a tuple with the UiVisibility field if it's non-nil, zero value otherwise
+GetUiVisibleOk returns a tuple with the UiVisible field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetUiVisibility
+### SetUiVisible
-`func (o *CustomField) SetUiVisibility(v CustomFieldUiVisibility)`
+`func (o *CustomField) SetUiVisible(v CustomFieldUiVisible)`
-SetUiVisibility sets UiVisibility field to given value.
+SetUiVisible sets UiVisible field to given value.
-### HasUiVisibility
+### HasUiVisible
-`func (o *CustomField) HasUiVisibility() bool`
+`func (o *CustomField) HasUiVisible() bool`
-HasUiVisibility returns a boolean if a field has been set.
+HasUiVisible returns a boolean if a field has been set.
+
+### GetUiEditable
+
+`func (o *CustomField) GetUiEditable() CustomFieldUiEditable`
+
+GetUiEditable returns the UiEditable field if non-nil, zero value otherwise.
+
+### GetUiEditableOk
+
+`func (o *CustomField) GetUiEditableOk() (*CustomFieldUiEditable, bool)`
+
+GetUiEditableOk returns a tuple with the UiEditable field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetUiEditable
+
+`func (o *CustomField) SetUiEditable(v CustomFieldUiEditable)`
+
+SetUiEditable sets UiEditable field to given value.
+
+### HasUiEditable
+
+`func (o *CustomField) HasUiEditable() bool`
+
+HasUiEditable returns a boolean if a field has been set.
### GetIsCloneable
@@ -415,20 +441,20 @@ HasIsCloneable returns a boolean if a field has been set.
### GetDefault
-`func (o *CustomField) GetDefault() map[string]interface{}`
+`func (o *CustomField) GetDefault() interface{}`
GetDefault returns the Default field if non-nil, zero value otherwise.
### GetDefaultOk
-`func (o *CustomField) GetDefaultOk() (*map[string]interface{}, bool)`
+`func (o *CustomField) GetDefaultOk() (*interface{}, bool)`
GetDefaultOk returns a tuple with the Default field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDefault
-`func (o *CustomField) SetDefault(v map[string]interface{})`
+`func (o *CustomField) SetDefault(v interface{})`
SetDefault sets Default field to given value.
@@ -475,20 +501,20 @@ HasWeight returns a boolean if a field has been set.
### GetValidationMinimum
-`func (o *CustomField) GetValidationMinimum() int32`
+`func (o *CustomField) GetValidationMinimum() int64`
GetValidationMinimum returns the ValidationMinimum field if non-nil, zero value otherwise.
### GetValidationMinimumOk
-`func (o *CustomField) GetValidationMinimumOk() (*int32, bool)`
+`func (o *CustomField) GetValidationMinimumOk() (*int64, bool)`
GetValidationMinimumOk returns a tuple with the ValidationMinimum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValidationMinimum
-`func (o *CustomField) SetValidationMinimum(v int32)`
+`func (o *CustomField) SetValidationMinimum(v int64)`
SetValidationMinimum sets ValidationMinimum field to given value.
@@ -510,20 +536,20 @@ HasValidationMinimum returns a boolean if a field has been set.
UnsetValidationMinimum ensures that no value is present for ValidationMinimum, not even an explicit nil
### GetValidationMaximum
-`func (o *CustomField) GetValidationMaximum() int32`
+`func (o *CustomField) GetValidationMaximum() int64`
GetValidationMaximum returns the ValidationMaximum field if non-nil, zero value otherwise.
### GetValidationMaximumOk
-`func (o *CustomField) GetValidationMaximumOk() (*int32, bool)`
+`func (o *CustomField) GetValidationMaximumOk() (*int64, bool)`
GetValidationMaximumOk returns a tuple with the ValidationMaximum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValidationMaximum
-`func (o *CustomField) SetValidationMaximum(v int32)`
+`func (o *CustomField) SetValidationMaximum(v int64)`
SetValidationMaximum sets ValidationMaximum field to given value.
diff --git a/docs/CustomFieldChoiceSetBaseChoices.md b/docs/CustomFieldChoiceSetBaseChoices.md
index fa4b7c0745..c1da626da6 100644
--- a/docs/CustomFieldChoiceSetBaseChoices.md
+++ b/docs/CustomFieldChoiceSetBaseChoices.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**CustomFieldChoiceSetBaseChoicesValue**](CustomFieldChoiceSetBaseChoicesValue.md) | | [optional]
+**Label** | Pointer to [**CustomFieldChoiceSetBaseChoicesLabel**](CustomFieldChoiceSetBaseChoicesLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *CustomFieldChoiceSetBaseChoices) GetValue() string`
+`func (o *CustomFieldChoiceSetBaseChoices) GetValue() CustomFieldChoiceSetBaseChoicesValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *CustomFieldChoiceSetBaseChoices) GetValueOk() (*string, bool)`
+`func (o *CustomFieldChoiceSetBaseChoices) GetValueOk() (*CustomFieldChoiceSetBaseChoicesValue, bool)`
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValue
-`func (o *CustomFieldChoiceSetBaseChoices) SetValue(v string)`
+`func (o *CustomFieldChoiceSetBaseChoices) SetValue(v CustomFieldChoiceSetBaseChoicesValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *CustomFieldChoiceSetBaseChoices) GetLabel() string`
+`func (o *CustomFieldChoiceSetBaseChoices) GetLabel() CustomFieldChoiceSetBaseChoicesLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *CustomFieldChoiceSetBaseChoices) GetLabelOk() (*string, bool)`
+`func (o *CustomFieldChoiceSetBaseChoices) GetLabelOk() (*CustomFieldChoiceSetBaseChoicesLabel, bool)`
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLabel
-`func (o *CustomFieldChoiceSetBaseChoices) SetLabel(v string)`
+`func (o *CustomFieldChoiceSetBaseChoices) SetLabel(v CustomFieldChoiceSetBaseChoicesLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/CustomFieldChoiceSetBaseChoicesLabel.md b/docs/CustomFieldChoiceSetBaseChoicesLabel.md
new file mode 100644
index 0000000000..68db3ecb52
--- /dev/null
+++ b/docs/CustomFieldChoiceSetBaseChoicesLabel.md
@@ -0,0 +1,15 @@
+# CustomFieldChoiceSetBaseChoicesLabel
+
+## Enum
+
+
+* `IATA__AIRPORT_CODES` (value: `"IATA (Airport codes)"`)
+
+* `ISO_3166__COUNTRY_CODES` (value: `"ISO 3166 (Country codes)"`)
+
+* `UN_LOCODE__LOCATION_CODES` (value: `"UN/LOCODE (Location codes)"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CustomFieldChoiceSetBaseChoicesValue.md b/docs/CustomFieldChoiceSetBaseChoicesValue.md
new file mode 100644
index 0000000000..30b434e9e3
--- /dev/null
+++ b/docs/CustomFieldChoiceSetBaseChoicesValue.md
@@ -0,0 +1,15 @@
+# CustomFieldChoiceSetBaseChoicesValue
+
+## Enum
+
+
+* `IATA` (value: `"IATA"`)
+
+* `ISO_3166` (value: `"ISO_3166"`)
+
+* `UN_LOCODE` (value: `"UN_LOCODE"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CustomFieldChoiceSetRequest.md b/docs/CustomFieldChoiceSetRequest.md
index f3d06c50e1..57de74fb29 100644
--- a/docs/CustomFieldChoiceSetRequest.md
+++ b/docs/CustomFieldChoiceSetRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Description** | Pointer to **string** | | [optional]
-**BaseChoices** | Pointer to **string** | * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) | [optional]
+**BaseChoices** | Pointer to [**CustomFieldChoiceSetBaseChoicesValue**](CustomFieldChoiceSetBaseChoicesValue.md) | | [optional]
**ExtraChoices** | Pointer to **[][]string** | | [optional]
**OrderAlphabetically** | Pointer to **bool** | Choices are automatically ordered alphabetically | [optional]
@@ -76,20 +76,20 @@ HasDescription returns a boolean if a field has been set.
### GetBaseChoices
-`func (o *CustomFieldChoiceSetRequest) GetBaseChoices() string`
+`func (o *CustomFieldChoiceSetRequest) GetBaseChoices() CustomFieldChoiceSetBaseChoicesValue`
GetBaseChoices returns the BaseChoices field if non-nil, zero value otherwise.
### GetBaseChoicesOk
-`func (o *CustomFieldChoiceSetRequest) GetBaseChoicesOk() (*string, bool)`
+`func (o *CustomFieldChoiceSetRequest) GetBaseChoicesOk() (*CustomFieldChoiceSetBaseChoicesValue, bool)`
GetBaseChoicesOk returns a tuple with the BaseChoices field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBaseChoices
-`func (o *CustomFieldChoiceSetRequest) SetBaseChoices(v string)`
+`func (o *CustomFieldChoiceSetRequest) SetBaseChoices(v CustomFieldChoiceSetBaseChoicesValue)`
SetBaseChoices sets BaseChoices field to given value.
diff --git a/docs/CustomFieldFilterLogic.md b/docs/CustomFieldFilterLogic.md
index 5ee9c62777..8a208f9855 100644
--- a/docs/CustomFieldFilterLogic.md
+++ b/docs/CustomFieldFilterLogic.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `disabled` - Disabled * `loose` - Loose * `exact` - Exact | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**CustomFieldFilterLogicValue**](CustomFieldFilterLogicValue.md) | | [optional]
+**Label** | Pointer to [**CustomFieldFilterLogicLabel**](CustomFieldFilterLogicLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *CustomFieldFilterLogic) GetValue() string`
+`func (o *CustomFieldFilterLogic) GetValue() CustomFieldFilterLogicValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *CustomFieldFilterLogic) GetValueOk() (*string, bool)`
+`func (o *CustomFieldFilterLogic) GetValueOk() (*CustomFieldFilterLogicValue, 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 *CustomFieldFilterLogic) SetValue(v string)`
+`func (o *CustomFieldFilterLogic) SetValue(v CustomFieldFilterLogicValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *CustomFieldFilterLogic) GetLabel() string`
+`func (o *CustomFieldFilterLogic) GetLabel() CustomFieldFilterLogicLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *CustomFieldFilterLogic) GetLabelOk() (*string, bool)`
+`func (o *CustomFieldFilterLogic) GetLabelOk() (*CustomFieldFilterLogicLabel, 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 *CustomFieldFilterLogic) SetLabel(v string)`
+`func (o *CustomFieldFilterLogic) SetLabel(v CustomFieldFilterLogicLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/CustomFieldFilterLogicLabel.md b/docs/CustomFieldFilterLogicLabel.md
new file mode 100644
index 0000000000..160229b10b
--- /dev/null
+++ b/docs/CustomFieldFilterLogicLabel.md
@@ -0,0 +1,15 @@
+# CustomFieldFilterLogicLabel
+
+## Enum
+
+
+* `DISABLED` (value: `"Disabled"`)
+
+* `LOOSE` (value: `"Loose"`)
+
+* `EXACT` (value: `"Exact"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CustomFieldFilterLogicValue.md b/docs/CustomFieldFilterLogicValue.md
new file mode 100644
index 0000000000..805c1cc6cb
--- /dev/null
+++ b/docs/CustomFieldFilterLogicValue.md
@@ -0,0 +1,15 @@
+# CustomFieldFilterLogicValue
+
+## Enum
+
+
+* `DISABLED` (value: `"disabled"`)
+
+* `LOOSE` (value: `"loose"`)
+
+* `EXACT` (value: `"exact"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CustomFieldRequest.md b/docs/CustomFieldRequest.md
index 028649339d..90195df966 100644
--- a/docs/CustomFieldRequest.md
+++ b/docs/CustomFieldRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ContentTypes** | **[]string** | |
-**Type** | **string** | * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects |
+**Type** | [**CustomFieldTypeValue**](CustomFieldTypeValue.md) | |
**ObjectType** | Pointer to **string** | | [optional]
**Name** | **string** | Internal field name |
**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional]
@@ -13,13 +13,14 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional]
**SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional]
-**FilterLogic** | Pointer to **string** | * `disabled` - Disabled * `loose` - Loose * `exact` - Exact | [optional]
-**UiVisibility** | Pointer to **string** | * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) | [optional]
+**FilterLogic** | Pointer to [**CustomFieldFilterLogicValue**](CustomFieldFilterLogicValue.md) | | [optional]
+**UiVisible** | Pointer to [**CustomFieldUiVisibleValue**](CustomFieldUiVisibleValue.md) | | [optional]
+**UiEditable** | Pointer to [**CustomFieldUiEditableValue**](CustomFieldUiEditableValue.md) | | [optional]
**IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional]
-**Default** | Pointer to **map[string]interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional]
+**Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional]
**Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional]
-**ValidationMinimum** | Pointer to **NullableInt32** | Minimum allowed value (for numeric fields) | [optional]
-**ValidationMaximum** | Pointer to **NullableInt32** | Maximum allowed value (for numeric fields) | [optional]
+**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 [**NestedCustomFieldChoiceSetRequest**](NestedCustomFieldChoiceSetRequest.md) | | [optional]
@@ -27,7 +28,7 @@ Name | Type | Description | Notes
### NewCustomFieldRequest
-`func NewCustomFieldRequest(contentTypes []string, type_ string, name string, ) *CustomFieldRequest`
+`func NewCustomFieldRequest(contentTypes []string, type_ CustomFieldTypeValue, name string, ) *CustomFieldRequest`
NewCustomFieldRequest instantiates a new CustomFieldRequest object
This constructor will assign default values to properties that have it defined,
@@ -64,20 +65,20 @@ SetContentTypes sets ContentTypes field to given value.
### GetType
-`func (o *CustomFieldRequest) GetType() string`
+`func (o *CustomFieldRequest) GetType() CustomFieldTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *CustomFieldRequest) GetTypeOk() (*string, bool)`
+`func (o *CustomFieldRequest) GetTypeOk() (*CustomFieldTypeValue, 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 *CustomFieldRequest) SetType(v string)`
+`func (o *CustomFieldRequest) SetType(v CustomFieldTypeValue)`
SetType sets Type field to given value.
@@ -254,20 +255,20 @@ HasSearchWeight returns a boolean if a field has been set.
### GetFilterLogic
-`func (o *CustomFieldRequest) GetFilterLogic() string`
+`func (o *CustomFieldRequest) GetFilterLogic() CustomFieldFilterLogicValue`
GetFilterLogic returns the FilterLogic field if non-nil, zero value otherwise.
### GetFilterLogicOk
-`func (o *CustomFieldRequest) GetFilterLogicOk() (*string, bool)`
+`func (o *CustomFieldRequest) GetFilterLogicOk() (*CustomFieldFilterLogicValue, bool)`
GetFilterLogicOk returns a tuple with the FilterLogic field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFilterLogic
-`func (o *CustomFieldRequest) SetFilterLogic(v string)`
+`func (o *CustomFieldRequest) SetFilterLogic(v CustomFieldFilterLogicValue)`
SetFilterLogic sets FilterLogic field to given value.
@@ -277,30 +278,55 @@ SetFilterLogic sets FilterLogic field to given value.
HasFilterLogic returns a boolean if a field has been set.
-### GetUiVisibility
+### GetUiVisible
-`func (o *CustomFieldRequest) GetUiVisibility() string`
+`func (o *CustomFieldRequest) GetUiVisible() CustomFieldUiVisibleValue`
-GetUiVisibility returns the UiVisibility field if non-nil, zero value otherwise.
+GetUiVisible returns the UiVisible field if non-nil, zero value otherwise.
-### GetUiVisibilityOk
+### GetUiVisibleOk
-`func (o *CustomFieldRequest) GetUiVisibilityOk() (*string, bool)`
+`func (o *CustomFieldRequest) GetUiVisibleOk() (*CustomFieldUiVisibleValue, bool)`
-GetUiVisibilityOk returns a tuple with the UiVisibility field if it's non-nil, zero value otherwise
+GetUiVisibleOk returns a tuple with the UiVisible field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetUiVisibility
+### SetUiVisible
-`func (o *CustomFieldRequest) SetUiVisibility(v string)`
+`func (o *CustomFieldRequest) SetUiVisible(v CustomFieldUiVisibleValue)`
-SetUiVisibility sets UiVisibility field to given value.
+SetUiVisible sets UiVisible field to given value.
-### HasUiVisibility
+### HasUiVisible
-`func (o *CustomFieldRequest) HasUiVisibility() bool`
+`func (o *CustomFieldRequest) HasUiVisible() bool`
-HasUiVisibility returns a boolean if a field has been set.
+HasUiVisible returns a boolean if a field has been set.
+
+### GetUiEditable
+
+`func (o *CustomFieldRequest) GetUiEditable() CustomFieldUiEditableValue`
+
+GetUiEditable returns the UiEditable field if non-nil, zero value otherwise.
+
+### GetUiEditableOk
+
+`func (o *CustomFieldRequest) GetUiEditableOk() (*CustomFieldUiEditableValue, bool)`
+
+GetUiEditableOk returns a tuple with the UiEditable field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetUiEditable
+
+`func (o *CustomFieldRequest) SetUiEditable(v CustomFieldUiEditableValue)`
+
+SetUiEditable sets UiEditable field to given value.
+
+### HasUiEditable
+
+`func (o *CustomFieldRequest) HasUiEditable() bool`
+
+HasUiEditable returns a boolean if a field has been set.
### GetIsCloneable
@@ -329,20 +355,20 @@ HasIsCloneable returns a boolean if a field has been set.
### GetDefault
-`func (o *CustomFieldRequest) GetDefault() map[string]interface{}`
+`func (o *CustomFieldRequest) GetDefault() interface{}`
GetDefault returns the Default field if non-nil, zero value otherwise.
### GetDefaultOk
-`func (o *CustomFieldRequest) GetDefaultOk() (*map[string]interface{}, bool)`
+`func (o *CustomFieldRequest) GetDefaultOk() (*interface{}, bool)`
GetDefaultOk returns a tuple with the Default field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDefault
-`func (o *CustomFieldRequest) SetDefault(v map[string]interface{})`
+`func (o *CustomFieldRequest) SetDefault(v interface{})`
SetDefault sets Default field to given value.
@@ -389,20 +415,20 @@ HasWeight returns a boolean if a field has been set.
### GetValidationMinimum
-`func (o *CustomFieldRequest) GetValidationMinimum() int32`
+`func (o *CustomFieldRequest) GetValidationMinimum() int64`
GetValidationMinimum returns the ValidationMinimum field if non-nil, zero value otherwise.
### GetValidationMinimumOk
-`func (o *CustomFieldRequest) GetValidationMinimumOk() (*int32, bool)`
+`func (o *CustomFieldRequest) GetValidationMinimumOk() (*int64, bool)`
GetValidationMinimumOk returns a tuple with the ValidationMinimum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValidationMinimum
-`func (o *CustomFieldRequest) SetValidationMinimum(v int32)`
+`func (o *CustomFieldRequest) SetValidationMinimum(v int64)`
SetValidationMinimum sets ValidationMinimum field to given value.
@@ -424,20 +450,20 @@ HasValidationMinimum returns a boolean if a field has been set.
UnsetValidationMinimum ensures that no value is present for ValidationMinimum, not even an explicit nil
### GetValidationMaximum
-`func (o *CustomFieldRequest) GetValidationMaximum() int32`
+`func (o *CustomFieldRequest) GetValidationMaximum() int64`
GetValidationMaximum returns the ValidationMaximum field if non-nil, zero value otherwise.
### GetValidationMaximumOk
-`func (o *CustomFieldRequest) GetValidationMaximumOk() (*int32, bool)`
+`func (o *CustomFieldRequest) GetValidationMaximumOk() (*int64, bool)`
GetValidationMaximumOk returns a tuple with the ValidationMaximum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValidationMaximum
-`func (o *CustomFieldRequest) SetValidationMaximum(v int32)`
+`func (o *CustomFieldRequest) SetValidationMaximum(v int64)`
SetValidationMaximum sets ValidationMaximum field to given value.
diff --git a/docs/CustomFieldType.md b/docs/CustomFieldType.md
index 9d71c7c8c0..19dd52f4fe 100644
--- a/docs/CustomFieldType.md
+++ b/docs/CustomFieldType.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**CustomFieldTypeValue**](CustomFieldTypeValue.md) | | [optional]
+**Label** | Pointer to [**CustomFieldTypeLabel**](CustomFieldTypeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *CustomFieldType) GetValue() string`
+`func (o *CustomFieldType) GetValue() CustomFieldTypeValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *CustomFieldType) GetValueOk() (*string, bool)`
+`func (o *CustomFieldType) GetValueOk() (*CustomFieldTypeValue, 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 *CustomFieldType) SetValue(v string)`
+`func (o *CustomFieldType) SetValue(v CustomFieldTypeValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *CustomFieldType) GetLabel() string`
+`func (o *CustomFieldType) GetLabel() CustomFieldTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *CustomFieldType) GetLabelOk() (*string, bool)`
+`func (o *CustomFieldType) GetLabelOk() (*CustomFieldTypeLabel, 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 *CustomFieldType) SetLabel(v string)`
+`func (o *CustomFieldType) SetLabel(v CustomFieldTypeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/CustomFieldTypeLabel.md b/docs/CustomFieldTypeLabel.md
new file mode 100644
index 0000000000..797f92d94f
--- /dev/null
+++ b/docs/CustomFieldTypeLabel.md
@@ -0,0 +1,35 @@
+# CustomFieldTypeLabel
+
+## Enum
+
+
+* `TEXT` (value: `"Text"`)
+
+* `TEXT__LONG` (value: `"Text (long)"`)
+
+* `INTEGER` (value: `"Integer"`)
+
+* `DECIMAL` (value: `"Decimal"`)
+
+* `BOOLEAN__TRUE_FALSE` (value: `"Boolean (true/false)"`)
+
+* `DATE` (value: `"Date"`)
+
+* `DATE__TIME` (value: `"Date & time"`)
+
+* `URL` (value: `"URL"`)
+
+* `JSON` (value: `"JSON"`)
+
+* `SELECTION` (value: `"Selection"`)
+
+* `MULTIPLE_SELECTION` (value: `"Multiple selection"`)
+
+* `OBJECT` (value: `"Object"`)
+
+* `MULTIPLE_OBJECTS` (value: `"Multiple objects"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CustomFieldTypeValue.md b/docs/CustomFieldTypeValue.md
new file mode 100644
index 0000000000..4b65a6fa4d
--- /dev/null
+++ b/docs/CustomFieldTypeValue.md
@@ -0,0 +1,35 @@
+# CustomFieldTypeValue
+
+## Enum
+
+
+* `TEXT` (value: `"text"`)
+
+* `LONGTEXT` (value: `"longtext"`)
+
+* `INTEGER` (value: `"integer"`)
+
+* `DECIMAL` (value: `"decimal"`)
+
+* `BOOLEAN` (value: `"boolean"`)
+
+* `DATE` (value: `"date"`)
+
+* `DATETIME` (value: `"datetime"`)
+
+* `URL` (value: `"url"`)
+
+* `JSON` (value: `"json"`)
+
+* `SELECT` (value: `"select"`)
+
+* `MULTISELECT` (value: `"multiselect"`)
+
+* `OBJECT` (value: `"object"`)
+
+* `MULTIOBJECT` (value: `"multiobject"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CustomFieldUiEditable.md b/docs/CustomFieldUiEditable.md
new file mode 100644
index 0000000000..e8f5271631
--- /dev/null
+++ b/docs/CustomFieldUiEditable.md
@@ -0,0 +1,82 @@
+# CustomFieldUiEditable
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Value** | Pointer to [**CustomFieldUiEditableValue**](CustomFieldUiEditableValue.md) | | [optional]
+**Label** | Pointer to [**CustomFieldUiEditableLabel**](CustomFieldUiEditableLabel.md) | | [optional]
+
+## Methods
+
+### NewCustomFieldUiEditable
+
+`func NewCustomFieldUiEditable() *CustomFieldUiEditable`
+
+NewCustomFieldUiEditable instantiates a new CustomFieldUiEditable object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewCustomFieldUiEditableWithDefaults
+
+`func NewCustomFieldUiEditableWithDefaults() *CustomFieldUiEditable`
+
+NewCustomFieldUiEditableWithDefaults instantiates a new CustomFieldUiEditable object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetValue
+
+`func (o *CustomFieldUiEditable) GetValue() CustomFieldUiEditableValue`
+
+GetValue returns the Value field if non-nil, zero value otherwise.
+
+### GetValueOk
+
+`func (o *CustomFieldUiEditable) GetValueOk() (*CustomFieldUiEditableValue, bool)`
+
+GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetValue
+
+`func (o *CustomFieldUiEditable) SetValue(v CustomFieldUiEditableValue)`
+
+SetValue sets Value field to given value.
+
+### HasValue
+
+`func (o *CustomFieldUiEditable) HasValue() bool`
+
+HasValue returns a boolean if a field has been set.
+
+### GetLabel
+
+`func (o *CustomFieldUiEditable) GetLabel() CustomFieldUiEditableLabel`
+
+GetLabel returns the Label field if non-nil, zero value otherwise.
+
+### GetLabelOk
+
+`func (o *CustomFieldUiEditable) GetLabelOk() (*CustomFieldUiEditableLabel, bool)`
+
+GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLabel
+
+`func (o *CustomFieldUiEditable) SetLabel(v CustomFieldUiEditableLabel)`
+
+SetLabel sets Label field to given value.
+
+### HasLabel
+
+`func (o *CustomFieldUiEditable) HasLabel() bool`
+
+HasLabel returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CustomFieldUiEditableLabel.md b/docs/CustomFieldUiEditableLabel.md
new file mode 100644
index 0000000000..e27c08f239
--- /dev/null
+++ b/docs/CustomFieldUiEditableLabel.md
@@ -0,0 +1,15 @@
+# CustomFieldUiEditableLabel
+
+## Enum
+
+
+* `YES` (value: `"Yes"`)
+
+* `NO` (value: `"No"`)
+
+* `HIDDEN` (value: `"Hidden"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CustomFieldUiEditableValue.md b/docs/CustomFieldUiEditableValue.md
new file mode 100644
index 0000000000..ad3cc41b35
--- /dev/null
+++ b/docs/CustomFieldUiEditableValue.md
@@ -0,0 +1,15 @@
+# CustomFieldUiEditableValue
+
+## Enum
+
+
+* `YES` (value: `"yes"`)
+
+* `NO` (value: `"no"`)
+
+* `HIDDEN` (value: `"hidden"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CustomFieldUiVisible.md b/docs/CustomFieldUiVisible.md
new file mode 100644
index 0000000000..8ec1d389ab
--- /dev/null
+++ b/docs/CustomFieldUiVisible.md
@@ -0,0 +1,82 @@
+# CustomFieldUiVisible
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Value** | Pointer to [**CustomFieldUiVisibleValue**](CustomFieldUiVisibleValue.md) | | [optional]
+**Label** | Pointer to [**CustomFieldUiVisibleLabel**](CustomFieldUiVisibleLabel.md) | | [optional]
+
+## Methods
+
+### NewCustomFieldUiVisible
+
+`func NewCustomFieldUiVisible() *CustomFieldUiVisible`
+
+NewCustomFieldUiVisible instantiates a new CustomFieldUiVisible object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewCustomFieldUiVisibleWithDefaults
+
+`func NewCustomFieldUiVisibleWithDefaults() *CustomFieldUiVisible`
+
+NewCustomFieldUiVisibleWithDefaults instantiates a new CustomFieldUiVisible object
+This 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 *CustomFieldUiVisible) GetValue() CustomFieldUiVisibleValue`
+
+GetValue returns the Value field if non-nil, zero value otherwise.
+
+### GetValueOk
+
+`func (o *CustomFieldUiVisible) GetValueOk() (*CustomFieldUiVisibleValue, 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 *CustomFieldUiVisible) SetValue(v CustomFieldUiVisibleValue)`
+
+SetValue sets Value field to given value.
+
+### HasValue
+
+`func (o *CustomFieldUiVisible) HasValue() bool`
+
+HasValue returns a boolean if a field has been set.
+
+### GetLabel
+
+`func (o *CustomFieldUiVisible) GetLabel() CustomFieldUiVisibleLabel`
+
+GetLabel returns the Label field if non-nil, zero value otherwise.
+
+### GetLabelOk
+
+`func (o *CustomFieldUiVisible) GetLabelOk() (*CustomFieldUiVisibleLabel, 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 *CustomFieldUiVisible) SetLabel(v CustomFieldUiVisibleLabel)`
+
+SetLabel sets Label field to given value.
+
+### HasLabel
+
+`func (o *CustomFieldUiVisible) 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/CustomFieldUiVisibleLabel.md b/docs/CustomFieldUiVisibleLabel.md
new file mode 100644
index 0000000000..898d63f674
--- /dev/null
+++ b/docs/CustomFieldUiVisibleLabel.md
@@ -0,0 +1,15 @@
+# CustomFieldUiVisibleLabel
+
+## Enum
+
+
+* `ALWAYS` (value: `"Always"`)
+
+* `IF_SET` (value: `"If set"`)
+
+* `HIDDEN` (value: `"Hidden"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CustomFieldUiVisibleValue.md b/docs/CustomFieldUiVisibleValue.md
new file mode 100644
index 0000000000..13f2532737
--- /dev/null
+++ b/docs/CustomFieldUiVisibleValue.md
@@ -0,0 +1,15 @@
+# CustomFieldUiVisibleValue
+
+## Enum
+
+
+* `ALWAYS` (value: `"always"`)
+
+* `IF_SET` (value: `"if-set"`)
+
+* `HIDDEN` (value: `"hidden"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CustomLink.md b/docs/CustomLink.md
index f304fa0df6..8e00fe351f 100644
--- a/docs/CustomLink.md
+++ b/docs/CustomLink.md
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
**LinkUrl** | **string** | Jinja2 template code for link URL |
**Weight** | Pointer to **int32** | | [optional]
**GroupName** | Pointer to **string** | Links with the same group will appear as a dropdown menu | [optional]
-**ButtonClass** | Pointer to **string** | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | [optional]
+**ButtonClass** | Pointer to [**CustomLinkButtonClass**](CustomLinkButtonClass.md) | | [optional]
**NewWindow** | Pointer to **bool** | Force link to open in a new window | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
@@ -255,20 +255,20 @@ HasGroupName returns a boolean if a field has been set.
### GetButtonClass
-`func (o *CustomLink) GetButtonClass() string`
+`func (o *CustomLink) GetButtonClass() CustomLinkButtonClass`
GetButtonClass returns the ButtonClass field if non-nil, zero value otherwise.
### GetButtonClassOk
-`func (o *CustomLink) GetButtonClassOk() (*string, bool)`
+`func (o *CustomLink) GetButtonClassOk() (*CustomLinkButtonClass, bool)`
GetButtonClassOk returns a tuple with the ButtonClass field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetButtonClass
-`func (o *CustomLink) SetButtonClass(v string)`
+`func (o *CustomLink) SetButtonClass(v CustomLinkButtonClass)`
SetButtonClass sets ButtonClass field to given value.
diff --git a/docs/CustomLinkButtonClass.md b/docs/CustomLinkButtonClass.md
new file mode 100644
index 0000000000..f62db6217b
--- /dev/null
+++ b/docs/CustomLinkButtonClass.md
@@ -0,0 +1,39 @@
+# CustomLinkButtonClass
+
+## Enum
+
+
+* `OUTLINE_DARK` (value: `"outline-dark"`)
+
+* `BLUE` (value: `"blue"`)
+
+* `INDIGO` (value: `"indigo"`)
+
+* `PURPLE` (value: `"purple"`)
+
+* `PINK` (value: `"pink"`)
+
+* `RED` (value: `"red"`)
+
+* `ORANGE` (value: `"orange"`)
+
+* `YELLOW` (value: `"yellow"`)
+
+* `GREEN` (value: `"green"`)
+
+* `TEAL` (value: `"teal"`)
+
+* `CYAN` (value: `"cyan"`)
+
+* `GRAY` (value: `"gray"`)
+
+* `BLACK` (value: `"black"`)
+
+* `WHITE` (value: `"white"`)
+
+* `GHOST_DARK` (value: `"ghost-dark"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CustomLinkRequest.md b/docs/CustomLinkRequest.md
index ac82f57425..e87b114cdd 100644
--- a/docs/CustomLinkRequest.md
+++ b/docs/CustomLinkRequest.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**LinkUrl** | **string** | Jinja2 template code for link URL |
**Weight** | Pointer to **int32** | | [optional]
**GroupName** | Pointer to **string** | Links with the same group will appear as a dropdown menu | [optional]
-**ButtonClass** | Pointer to **string** | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | [optional]
+**ButtonClass** | Pointer to [**CustomLinkButtonClass**](CustomLinkButtonClass.md) | | [optional]
**NewWindow** | Pointer to **bool** | Force link to open in a new window | [optional]
## Methods
@@ -190,20 +190,20 @@ HasGroupName returns a boolean if a field has been set.
### GetButtonClass
-`func (o *CustomLinkRequest) GetButtonClass() string`
+`func (o *CustomLinkRequest) GetButtonClass() CustomLinkButtonClass`
GetButtonClass returns the ButtonClass field if non-nil, zero value otherwise.
### GetButtonClassOk
-`func (o *CustomLinkRequest) GetButtonClassOk() (*string, bool)`
+`func (o *CustomLinkRequest) GetButtonClassOk() (*CustomLinkButtonClass, bool)`
GetButtonClassOk returns a tuple with the ButtonClass field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetButtonClass
-`func (o *CustomLinkRequest) SetButtonClass(v string)`
+`func (o *CustomLinkRequest) SetButtonClass(v CustomLinkButtonClass)`
SetButtonClass sets ButtonClass field to given value.
diff --git a/docs/Dashboard.md b/docs/Dashboard.md
index b9385a9966..5f63e4c8a7 100644
--- a/docs/Dashboard.md
+++ b/docs/Dashboard.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Layout** | Pointer to **map[string]interface{}** | | [optional]
-**Config** | Pointer to **map[string]interface{}** | | [optional]
+**Layout** | Pointer to **interface{}** | | [optional]
+**Config** | Pointer to **interface{}** | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetLayout
-`func (o *Dashboard) GetLayout() map[string]interface{}`
+`func (o *Dashboard) GetLayout() interface{}`
GetLayout returns the Layout field if non-nil, zero value otherwise.
### GetLayoutOk
-`func (o *Dashboard) GetLayoutOk() (*map[string]interface{}, bool)`
+`func (o *Dashboard) GetLayoutOk() (*interface{}, bool)`
GetLayoutOk returns a tuple with the Layout field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLayout
-`func (o *Dashboard) SetLayout(v map[string]interface{})`
+`func (o *Dashboard) SetLayout(v interface{})`
SetLayout sets Layout field to given value.
@@ -51,22 +51,32 @@ SetLayout sets Layout field to given value.
HasLayout returns a boolean if a field has been set.
+### SetLayoutNil
+
+`func (o *Dashboard) SetLayoutNil(b bool)`
+
+ SetLayoutNil sets the value for Layout to be an explicit nil
+
+### UnsetLayout
+`func (o *Dashboard) UnsetLayout()`
+
+UnsetLayout ensures that no value is present for Layout, not even an explicit nil
### GetConfig
-`func (o *Dashboard) GetConfig() map[string]interface{}`
+`func (o *Dashboard) GetConfig() interface{}`
GetConfig returns the Config field if non-nil, zero value otherwise.
### GetConfigOk
-`func (o *Dashboard) GetConfigOk() (*map[string]interface{}, bool)`
+`func (o *Dashboard) GetConfigOk() (*interface{}, bool)`
GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetConfig
-`func (o *Dashboard) SetConfig(v map[string]interface{})`
+`func (o *Dashboard) SetConfig(v interface{})`
SetConfig sets Config field to given value.
@@ -76,6 +86,16 @@ SetConfig sets Config field to given value.
HasConfig returns a boolean if a field has been set.
+### SetConfigNil
+
+`func (o *Dashboard) SetConfigNil(b bool)`
+
+ SetConfigNil sets the value for Config to be an explicit nil
+
+### UnsetConfig
+`func (o *Dashboard) UnsetConfig()`
+
+UnsetConfig ensures that no value is present for Config, 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/DashboardRequest.md b/docs/DashboardRequest.md
index 8f36488b4f..51cec33b0b 100644
--- a/docs/DashboardRequest.md
+++ b/docs/DashboardRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Layout** | Pointer to **map[string]interface{}** | | [optional]
-**Config** | Pointer to **map[string]interface{}** | | [optional]
+**Layout** | Pointer to **interface{}** | | [optional]
+**Config** | Pointer to **interface{}** | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetLayout
-`func (o *DashboardRequest) GetLayout() map[string]interface{}`
+`func (o *DashboardRequest) GetLayout() interface{}`
GetLayout returns the Layout field if non-nil, zero value otherwise.
### GetLayoutOk
-`func (o *DashboardRequest) GetLayoutOk() (*map[string]interface{}, bool)`
+`func (o *DashboardRequest) GetLayoutOk() (*interface{}, bool)`
GetLayoutOk returns a tuple with the Layout field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLayout
-`func (o *DashboardRequest) SetLayout(v map[string]interface{})`
+`func (o *DashboardRequest) SetLayout(v interface{})`
SetLayout sets Layout field to given value.
@@ -51,22 +51,32 @@ SetLayout sets Layout field to given value.
HasLayout returns a boolean if a field has been set.
+### SetLayoutNil
+
+`func (o *DashboardRequest) SetLayoutNil(b bool)`
+
+ SetLayoutNil sets the value for Layout to be an explicit nil
+
+### UnsetLayout
+`func (o *DashboardRequest) UnsetLayout()`
+
+UnsetLayout ensures that no value is present for Layout, not even an explicit nil
### GetConfig
-`func (o *DashboardRequest) GetConfig() map[string]interface{}`
+`func (o *DashboardRequest) GetConfig() interface{}`
GetConfig returns the Config field if non-nil, zero value otherwise.
### GetConfigOk
-`func (o *DashboardRequest) GetConfigOk() (*map[string]interface{}, bool)`
+`func (o *DashboardRequest) GetConfigOk() (*interface{}, bool)`
GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetConfig
-`func (o *DashboardRequest) SetConfig(v map[string]interface{})`
+`func (o *DashboardRequest) SetConfig(v interface{})`
SetConfig sets Config field to given value.
@@ -76,6 +86,16 @@ SetConfig sets Config field to given value.
HasConfig returns a boolean if a field has been set.
+### SetConfigNil
+
+`func (o *DashboardRequest) SetConfigNil(b bool)`
+
+ SetConfigNil sets the value for Config to be an explicit nil
+
+### UnsetConfig
+`func (o *DashboardRequest) UnsetConfig()`
+
+UnsetConfig ensures that no value is present for Config, 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/DataSource.md b/docs/DataSource.md
index 647506ce5c..ecb476eea7 100644
--- a/docs/DataSource.md
+++ b/docs/DataSource.md
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
**Status** | [**DataSourceStatus**](DataSourceStatus.md) | |
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
-**Parameters** | Pointer to **map[string]interface{}** | | [optional]
+**Parameters** | Pointer to **interface{}** | | [optional]
**IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
@@ -256,20 +256,20 @@ HasComments returns a boolean if a field has been set.
### GetParameters
-`func (o *DataSource) GetParameters() map[string]interface{}`
+`func (o *DataSource) GetParameters() interface{}`
GetParameters returns the Parameters field if non-nil, zero value otherwise.
### GetParametersOk
-`func (o *DataSource) GetParametersOk() (*map[string]interface{}, bool)`
+`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 map[string]interface{})`
+`func (o *DataSource) SetParameters(v interface{})`
SetParameters sets Parameters field to given value.
diff --git a/docs/DataSourceRequest.md b/docs/DataSourceRequest.md
index dd177e99d8..02abdb9836 100644
--- a/docs/DataSourceRequest.md
+++ b/docs/DataSourceRequest.md
@@ -5,19 +5,19 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Type** | **string** | * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3 |
+**Type** | [**DataSourceTypeValue**](DataSourceTypeValue.md) | |
**SourceUrl** | **string** | |
**Enabled** | Pointer to **bool** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
-**Parameters** | Pointer to **map[string]interface{}** | | [optional]
+**Parameters** | Pointer to **interface{}** | | [optional]
**IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional]
## Methods
### NewDataSourceRequest
-`func NewDataSourceRequest(name string, type_ string, sourceUrl string, ) *DataSourceRequest`
+`func NewDataSourceRequest(name string, type_ DataSourceTypeValue, sourceUrl string, ) *DataSourceRequest`
NewDataSourceRequest instantiates a new DataSourceRequest object
This constructor will assign default values to properties that have it defined,
@@ -54,20 +54,20 @@ SetName sets Name field to given value.
### GetType
-`func (o *DataSourceRequest) GetType() string`
+`func (o *DataSourceRequest) GetType() DataSourceTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *DataSourceRequest) GetTypeOk() (*string, bool)`
+`func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *DataSourceRequest) SetType(v string)`
+`func (o *DataSourceRequest) SetType(v DataSourceTypeValue)`
SetType sets Type field to given value.
@@ -169,20 +169,20 @@ HasComments returns a boolean if a field has been set.
### GetParameters
-`func (o *DataSourceRequest) GetParameters() map[string]interface{}`
+`func (o *DataSourceRequest) GetParameters() interface{}`
GetParameters returns the Parameters field if non-nil, zero value otherwise.
### GetParametersOk
-`func (o *DataSourceRequest) GetParametersOk() (*map[string]interface{}, bool)`
+`func (o *DataSourceRequest) GetParametersOk() (*interface{}, bool)`
GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetParameters
-`func (o *DataSourceRequest) SetParameters(v map[string]interface{})`
+`func (o *DataSourceRequest) SetParameters(v interface{})`
SetParameters sets Parameters field to given value.
diff --git a/docs/DataSourceStatus.md b/docs/DataSourceStatus.md
index df28ac6269..bb83baf4a3 100644
--- a/docs/DataSourceStatus.md
+++ b/docs/DataSourceStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `new` - New * `queued` - Queued * `syncing` - Syncing * `completed` - Completed * `failed` - Failed | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**DataSourceStatusValue**](DataSourceStatusValue.md) | | [optional]
+**Label** | Pointer to [**DataSourceStatusLabel**](DataSourceStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *DataSourceStatus) GetValue() string`
+`func (o *DataSourceStatus) GetValue() DataSourceStatusValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *DataSourceStatus) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *DataSourceStatus) SetValue(v DataSourceStatusValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *DataSourceStatus) GetLabel() string`
+`func (o *DataSourceStatus) GetLabel() DataSourceStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *DataSourceStatus) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *DataSourceStatus) SetLabel(v DataSourceStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/DataSourceStatusLabel.md b/docs/DataSourceStatusLabel.md
new file mode 100644
index 0000000000..09a777b52c
--- /dev/null
+++ b/docs/DataSourceStatusLabel.md
@@ -0,0 +1,19 @@
+# DataSourceStatusLabel
+
+## Enum
+
+
+* `NEW` (value: `"New"`)
+
+* `QUEUED` (value: `"Queued"`)
+
+* `SYNCING` (value: `"Syncing"`)
+
+* `COMPLETED` (value: `"Completed"`)
+
+* `FAILED` (value: `"Failed"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DataSourceStatusValue.md b/docs/DataSourceStatusValue.md
new file mode 100644
index 0000000000..a46091ab0a
--- /dev/null
+++ b/docs/DataSourceStatusValue.md
@@ -0,0 +1,19 @@
+# DataSourceStatusValue
+
+## Enum
+
+
+* `NEW` (value: `"new"`)
+
+* `QUEUED` (value: `"queued"`)
+
+* `SYNCING` (value: `"syncing"`)
+
+* `COMPLETED` (value: `"completed"`)
+
+* `FAILED` (value: `"failed"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DataSourceType.md b/docs/DataSourceType.md
index 5bb0b58822..a5d2f0be04 100644
--- a/docs/DataSourceType.md
+++ b/docs/DataSourceType.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3 | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**DataSourceTypeValue**](DataSourceTypeValue.md) | | [optional]
+**Label** | Pointer to [**DataSourceTypeLabel**](DataSourceTypeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *DataSourceType) GetValue() string`
+`func (o *DataSourceType) GetValue() DataSourceTypeValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *DataSourceType) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *DataSourceType) SetValue(v DataSourceTypeValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *DataSourceType) GetLabel() string`
+`func (o *DataSourceType) GetLabel() DataSourceTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *DataSourceType) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *DataSourceType) SetLabel(v DataSourceTypeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/DataSourceTypeLabel.md b/docs/DataSourceTypeLabel.md
new file mode 100644
index 0000000000..067bf53d6f
--- /dev/null
+++ b/docs/DataSourceTypeLabel.md
@@ -0,0 +1,17 @@
+# DataSourceTypeLabel
+
+## Enum
+
+
+* `_______` (value: `"---------"`)
+
+* `LOCAL` (value: `"Local"`)
+
+* `GIT` (value: `"Git"`)
+
+* `AMAZON_S3` (value: `"Amazon S3"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DataSourceTypeValue.md b/docs/DataSourceTypeValue.md
new file mode 100644
index 0000000000..8d051f27cc
--- /dev/null
+++ b/docs/DataSourceTypeValue.md
@@ -0,0 +1,15 @@
+# DataSourceTypeValue
+
+## Enum
+
+
+* `LOCAL` (value: `"local"`)
+
+* `GIT` (value: `"git"`)
+
+* `AMAZON_S3` (value: `"amazon-s3"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DcimApi.md b/docs/DcimAPI.md
similarity index 53%
rename from docs/DcimApi.md
rename to docs/DcimAPI.md
index fc22bc5415..221c46fe42 100644
--- a/docs/DcimApi.md
+++ b/docs/DcimAPI.md
@@ -401,22 +401,22 @@ Method | HTTP request | Description
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- cableTerminationRequest := []openapiclient.CableTerminationRequest{*openapiclient.NewCableTerminationRequest(int32(123), "CableEnd_example", "TerminationType_example", int64(123))} // []CableTerminationRequest |
+ cableTerminationRequest := []openapiclient.CableTerminationRequest{*openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End("A"), "TerminationType_example", int64(123))} // []CableTerminationRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimCableTerminationsBulkDestroy(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimCableTerminationsBulkDestroy(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -465,24 +465,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- cableTerminationRequest := []openapiclient.CableTerminationRequest{*openapiclient.NewCableTerminationRequest(int32(123), "CableEnd_example", "TerminationType_example", int64(123))} // []CableTerminationRequest |
+ cableTerminationRequest := []openapiclient.CableTerminationRequest{*openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End("A"), "TerminationType_example", int64(123))} // []CableTerminationRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCableTerminationsBulkPartialUpdate(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimCableTerminationsBulkPartialUpdate`: []CableTermination
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimCableTerminationsBulkPartialUpdate(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimCableTerminationsBulkPartialUpdate`: []CableTermination
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -531,24 +531,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- cableTerminationRequest := []openapiclient.CableTerminationRequest{*openapiclient.NewCableTerminationRequest(int32(123), "CableEnd_example", "TerminationType_example", int64(123))} // []CableTerminationRequest |
+ cableTerminationRequest := []openapiclient.CableTerminationRequest{*openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End("A"), "TerminationType_example", int64(123))} // []CableTerminationRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCableTerminationsBulkUpdate(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimCableTerminationsBulkUpdate`: []CableTermination
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimCableTerminationsBulkUpdate(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimCableTerminationsBulkUpdate`: []CableTermination
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsBulkUpdate`: %v\n", resp)
}
```
@@ -597,24 +597,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- cableTerminationRequest := *openapiclient.NewCableTerminationRequest(int32(123), "CableEnd_example", "TerminationType_example", int64(123)) // CableTerminationRequest |
+ cableTerminationRequest := *openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End("A"), "TerminationType_example", int64(123)) // CableTerminationRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCableTerminationsCreate(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimCableTerminationsCreate`: CableTermination
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimCableTerminationsCreate(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimCableTerminationsCreate`: CableTermination
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsCreate`: %v\n", resp)
}
```
@@ -663,22 +663,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this cable termination.
+ id := int32(56) // int32 | A unique integer value identifying this cable termination.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimCableTerminationsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimCableTerminationsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -731,46 +731,46 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- cable := int32(56) // int32 | (optional)
- cableN := int32(56) // int32 | (optional)
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (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)
- 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)
+ cable := int32(56) // int32 | (optional)
+ cableN := int32(56) // int32 | (optional)
+ cableEnd := "cableEnd_example" // string | (optional)
+ cableEndN := "cableEndN_example" // string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (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)
+ 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)
- 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()
- 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)
- }
- // response from `DcimCableTerminationsList`: PaginatedCableTerminationList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsList`: %v\n", resp)
+ 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()
+ 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)
+ }
+ // response from `DcimCableTerminationsList`: PaginatedCableTerminationList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsList`: %v\n", resp)
}
```
@@ -841,25 +841,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this cable termination.
- patchedCableTerminationRequest := *openapiclient.NewPatchedCableTerminationRequest() // PatchedCableTerminationRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this cable termination.
+ patchedCableTerminationRequest := *openapiclient.NewPatchedCableTerminationRequest() // PatchedCableTerminationRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCableTerminationsPartialUpdate(context.Background(), id).PatchedCableTerminationRequest(patchedCableTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimCableTerminationsPartialUpdate`: CableTermination
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimCableTerminationsPartialUpdate(context.Background(), id).PatchedCableTerminationRequest(patchedCableTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimCableTerminationsPartialUpdate`: CableTermination
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsPartialUpdate`: %v\n", resp)
}
```
@@ -913,24 +913,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this cable termination.
+ id := int32(56) // int32 | A unique integer value identifying this cable termination.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCableTerminationsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimCableTerminationsRetrieve`: CableTermination
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimCableTerminationsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimCableTerminationsRetrieve`: CableTermination
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsRetrieve`: %v\n", resp)
}
```
@@ -983,25 +983,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this cable termination.
- cableTerminationRequest := *openapiclient.NewCableTerminationRequest(int32(123), "CableEnd_example", "TerminationType_example", int64(123)) // CableTerminationRequest |
+ 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 |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCableTerminationsUpdate(context.Background(), id).CableTerminationRequest(cableTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimCableTerminationsUpdate`: CableTermination
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimCableTerminationsUpdate(context.Background(), id).CableTerminationRequest(cableTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimCableTerminationsUpdate`: CableTermination
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsUpdate`: %v\n", resp)
}
```
@@ -1055,22 +1055,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- cableRequest := []openapiclient.CableRequest{*openapiclient.NewCableRequest()} // []CableRequest |
+ cableRequest := []openapiclient.CableRequest{*openapiclient.NewCableRequest()} // []CableRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimCablesBulkDestroy(context.Background()).CableRequest(cableRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimCablesBulkDestroy(context.Background()).CableRequest(cableRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1119,24 +1119,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- cableRequest := []openapiclient.CableRequest{*openapiclient.NewCableRequest()} // []CableRequest |
+ cableRequest := []openapiclient.CableRequest{*openapiclient.NewCableRequest()} // []CableRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCablesBulkPartialUpdate(context.Background()).CableRequest(cableRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimCablesBulkPartialUpdate`: []Cable
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimCablesBulkPartialUpdate(context.Background()).CableRequest(cableRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimCablesBulkPartialUpdate`: []Cable
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -1185,24 +1185,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- cableRequest := []openapiclient.CableRequest{*openapiclient.NewCableRequest()} // []CableRequest |
+ cableRequest := []openapiclient.CableRequest{*openapiclient.NewCableRequest()} // []CableRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCablesBulkUpdate(context.Background()).CableRequest(cableRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimCablesBulkUpdate`: []Cable
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimCablesBulkUpdate(context.Background()).CableRequest(cableRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimCablesBulkUpdate`: []Cable
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesBulkUpdate`: %v\n", resp)
}
```
@@ -1251,24 +1251,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableCableRequest := *openapiclient.NewWritableCableRequest() // WritableCableRequest | (optional)
+ writableCableRequest := *openapiclient.NewWritableCableRequest() // WritableCableRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCablesCreate(context.Background()).WritableCableRequest(writableCableRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimCablesCreate`: Cable
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimCablesCreate(context.Background()).WritableCableRequest(writableCableRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimCablesCreate`: Cable
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesCreate`: %v\n", resp)
}
```
@@ -1317,22 +1317,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this cable.
+ id := int32(56) // int32 | A unique integer value identifying this cable.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimCablesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimCablesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1373,7 +1373,7 @@ Name | Type | Description | Notes
## DcimCablesList
-> PaginatedCableList DcimCablesList(ctx).Color(color).ColorN(colorN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Length(length).LengthEmpty(lengthEmpty).LengthGt(lengthGt).LengthGte(lengthGte).LengthLt(lengthLt).LengthLte(lengthLte).LengthN(lengthN).LengthUnit(lengthUnit).LengthUnitN(lengthUnitN).Limit(limit).Location(location).LocationId(locationId).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackId(rackId).Site(site).SiteId(siteId).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAType(terminationAType).TerminationATypeN(terminationATypeN).TerminationBId(terminationBId).TerminationBType(terminationBType).TerminationBTypeN(terminationBTypeN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedCableList DcimCablesList(ctx).CircuitterminationId(circuitterminationId).Color(color).ColorN(colorN).ConsoleportId(consoleportId).ConsoleserverportId(consoleserverportId).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).FrontportId(frontportId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Length(length).LengthEmpty(lengthEmpty).LengthGt(lengthGt).LengthGte(lengthGte).LengthLt(lengthLt).LengthLte(lengthLte).LengthN(lengthN).LengthUnit(lengthUnit).LengthUnitN(lengthUnitN).Limit(limit).Location(location).LocationId(locationId).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PowerfeedId(powerfeedId).PoweroutletId(poweroutletId).PowerportId(powerportId).Q(q).Rack(rack).RackId(rackId).RearportId(rearportId).Site(site).SiteId(siteId).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAType(terminationAType).TerminationATypeN(terminationATypeN).TerminationBId(terminationBId).TerminationBType(terminationBType).TerminationBTypeN(terminationBTypeN).Type_(type_).TypeN(typeN).Unterminated(unterminated).UpdatedByRequest(updatedByRequest).Execute()
@@ -1385,102 +1385,123 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- color := []string{"Inner_example"} // []string | (optional)
- colorN := []string{"Inner_example"} // []string | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- device := []string{"Inner_example"} // []string | (optional)
- deviceId := []int32{int32(123)} // []int32 | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- 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)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- length := []float64{float64(123)} // []float64 | (optional)
- lengthEmpty := true // bool | (optional)
- lengthGt := []float64{float64(123)} // []float64 | (optional)
- lengthGte := []float64{float64(123)} // []float64 | (optional)
- lengthLt := []float64{float64(123)} // []float64 | (optional)
- lengthLte := []float64{float64(123)} // []float64 | (optional)
- lengthN := []float64{float64(123)} // []float64 | (optional)
- lengthUnit := "lengthUnit_example" // string | (optional)
- lengthUnitN := "lengthUnitN_example" // string | (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)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- rack := []string{"Inner_example"} // []string | (optional)
- rackId := []int32{int32(123)} // []int32 | (optional)
- site := []string{"Inner_example"} // []string | (optional)
- siteId := []int32{int32(123)} // []int32 | (optional)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- terminationAId := []int32{int32(123)} // []int32 | (optional)
- terminationAType := "terminationAType_example" // string | (optional)
- terminationATypeN := "terminationATypeN_example" // string | (optional)
- terminationBId := []int32{int32(123)} // []int32 | (optional)
- terminationBType := "terminationBType_example" // string | (optional)
- terminationBTypeN := "terminationBTypeN_example" // string | (optional)
- type_ := []string{"Inner_example"} // []string | (optional)
- typeN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCablesList(context.Background()).Color(color).ColorN(colorN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Length(length).LengthEmpty(lengthEmpty).LengthGt(lengthGt).LengthGte(lengthGte).LengthLt(lengthLt).LengthLte(lengthLte).LengthN(lengthN).LengthUnit(lengthUnit).LengthUnitN(lengthUnitN).Limit(limit).Location(location).LocationId(locationId).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackId(rackId).Site(site).SiteId(siteId).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAType(terminationAType).TerminationATypeN(terminationATypeN).TerminationBId(terminationBId).TerminationBType(terminationBType).TerminationBTypeN(terminationBTypeN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimCablesList`: PaginatedCableList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ circuitterminationId := []int32{int32(123)} // []int32 | (optional)
+ color := []string{"Inner_example"} // []string | (optional)
+ colorN := []string{"Inner_example"} // []string | (optional)
+ consoleportId := []int32{int32(123)} // []int32 | (optional)
+ consoleserverportId := []int32{int32(123)} // []int32 | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ device := []string{"Inner_example"} // []string | (optional)
+ deviceId := []int32{int32(123)} // []int32 | (optional)
+ frontportId := []int32{int32(123)} // []int32 | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ interfaceId := []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)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ length := []float64{float64(123)} // []float64 | (optional)
+ lengthEmpty := true // bool | (optional)
+ lengthGt := []float64{float64(123)} // []float64 | (optional)
+ lengthGte := []float64{float64(123)} // []float64 | (optional)
+ lengthLt := []float64{float64(123)} // []float64 | (optional)
+ lengthLte := []float64{float64(123)} // []float64 | (optional)
+ lengthN := []float64{float64(123)} // []float64 | (optional)
+ lengthUnit := "lengthUnit_example" // string | (optional)
+ lengthUnitN := "lengthUnitN_example" // string | (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)
+ 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)
+ powerfeedId := []int32{int32(123)} // []int32 | (optional)
+ poweroutletId := []int32{int32(123)} // []int32 | (optional)
+ powerportId := []int32{int32(123)} // []int32 | (optional)
+ q := "q_example" // string | Search (optional)
+ rack := []string{"Inner_example"} // []string | (optional)
+ rackId := []int32{int32(123)} // []int32 | (optional)
+ rearportId := []int32{int32(123)} // []int32 | (optional)
+ site := []string{"Inner_example"} // []string | (optional)
+ siteId := []int32{int32(123)} // []int32 | (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ terminationAId := []int32{int32(123)} // []int32 | (optional)
+ terminationAType := "terminationAType_example" // string | (optional)
+ terminationATypeN := "terminationATypeN_example" // string | (optional)
+ terminationBId := []int32{int32(123)} // []int32 | (optional)
+ terminationBType := "terminationBType_example" // string | (optional)
+ terminationBTypeN := "terminationBTypeN_example" // string | (optional)
+ type_ := []string{"Inner_example"} // []string | (optional)
+ typeN := []string{"Inner_example"} // []string | (optional)
+ unterminated := true // bool | Unterminated (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimCablesList(context.Background()).CircuitterminationId(circuitterminationId).Color(color).ColorN(colorN).ConsoleportId(consoleportId).ConsoleserverportId(consoleserverportId).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).FrontportId(frontportId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Length(length).LengthEmpty(lengthEmpty).LengthGt(lengthGt).LengthGte(lengthGte).LengthLt(lengthLt).LengthLte(lengthLte).LengthN(lengthN).LengthUnit(lengthUnit).LengthUnitN(lengthUnitN).Limit(limit).Location(location).LocationId(locationId).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PowerfeedId(powerfeedId).PoweroutletId(poweroutletId).PowerportId(powerportId).Q(q).Rack(rack).RackId(rackId).RearportId(rearportId).Site(site).SiteId(siteId).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAType(terminationAType).TerminationATypeN(terminationATypeN).TerminationBId(terminationBId).TerminationBType(terminationBType).TerminationBTypeN(terminationBTypeN).Type_(type_).TypeN(typeN).Unterminated(unterminated).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimCablesList`: PaginatedCableList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesList`: %v\n", resp)
}
```
@@ -1495,8 +1516,11 @@ Other parameters are passed through a pointer to a apiDcimCablesListRequest stru
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **circuitterminationId** | **[]int32** | |
**color** | **[]string** | |
**colorN** | **[]string** | |
+ **consoleportId** | **[]int32** | |
+ **consoleserverportId** | **[]int32** | |
**created** | [**[]time.Time**](time.Time.md) | |
**createdEmpty** | [**[]time.Time**](time.Time.md) | |
**createdGt** | [**[]time.Time**](time.Time.md) | |
@@ -1505,8 +1529,20 @@ 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** | |
**deviceId** | **[]int32** | |
+ **frontportId** | **[]int32** | |
**id** | **[]int32** | |
**idEmpty** | **bool** | |
**idGt** | **[]int32** | |
@@ -1514,6 +1550,7 @@ Name | Type | Description | Notes
**idLt** | **[]int32** | |
**idLte** | **[]int32** | |
**idN** | **[]int32** | |
+ **interfaceId** | **[]int32** | |
**label** | **[]string** | |
**labelEmpty** | **bool** | |
**labelIc** | **[]string** | |
@@ -1547,9 +1584,13 @@ 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. |
+ **powerfeedId** | **[]int32** | |
+ **poweroutletId** | **[]int32** | |
+ **powerportId** | **[]int32** | |
**q** | **string** | Search |
**rack** | **[]string** | |
**rackId** | **[]int32** | |
+ **rearportId** | **[]int32** | |
**site** | **[]string** | |
**siteId** | **[]int32** | |
**status** | **[]string** | |
@@ -1572,6 +1613,7 @@ Name | Type | Description | Notes
**terminationBTypeN** | **string** | |
**type_** | **[]string** | |
**typeN** | **[]string** | |
+ **unterminated** | **bool** | Unterminated |
**updatedByRequest** | **string** | |
### Return type
@@ -1606,25 +1648,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this cable.
- patchedWritableCableRequest := *openapiclient.NewPatchedWritableCableRequest() // PatchedWritableCableRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this cable.
+ patchedWritableCableRequest := *openapiclient.NewPatchedWritableCableRequest() // PatchedWritableCableRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCablesPartialUpdate(context.Background(), id).PatchedWritableCableRequest(patchedWritableCableRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimCablesPartialUpdate`: Cable
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimCablesPartialUpdate(context.Background(), id).PatchedWritableCableRequest(patchedWritableCableRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimCablesPartialUpdate`: Cable
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesPartialUpdate`: %v\n", resp)
}
```
@@ -1678,24 +1720,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this cable.
+ id := int32(56) // int32 | A unique integer value identifying this cable.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCablesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimCablesRetrieve`: Cable
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimCablesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimCablesRetrieve`: Cable
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesRetrieve`: %v\n", resp)
}
```
@@ -1748,25 +1790,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this cable.
- writableCableRequest := *openapiclient.NewWritableCableRequest() // WritableCableRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this cable.
+ writableCableRequest := *openapiclient.NewWritableCableRequest() // WritableCableRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCablesUpdate(context.Background(), id).WritableCableRequest(writableCableRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimCablesUpdate`: Cable
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimCablesUpdate(context.Background(), id).WritableCableRequest(writableCableRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimCablesUpdate`: Cable
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesUpdate`: %v\n", resp)
}
```
@@ -1820,25 +1862,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- peerDevice := "peerDevice_example" // string | The name of the peer device
- peerInterface := "peerInterface_example" // string | The name of the peer interface
+ peerDevice := "peerDevice_example" // string | The name of the peer device
+ peerInterface := "peerInterface_example" // string | The name of the peer interface
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConnectedDeviceList(context.Background()).PeerDevice(peerDevice).PeerInterface(peerInterface).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConnectedDeviceList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConnectedDeviceList`: []Device
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConnectedDeviceList`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConnectedDeviceList(context.Background()).PeerDevice(peerDevice).PeerInterface(peerInterface).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConnectedDeviceList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConnectedDeviceList`: []Device
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConnectedDeviceList`: %v\n", resp)
}
```
@@ -1888,22 +1930,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- consolePortTemplateRequest := []openapiclient.ConsolePortTemplateRequest{*openapiclient.NewConsolePortTemplateRequest("Name_example")} // []ConsolePortTemplateRequest |
+ consolePortTemplateRequest := []openapiclient.ConsolePortTemplateRequest{*openapiclient.NewConsolePortTemplateRequest("Name_example")} // []ConsolePortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkDestroy(context.Background()).ConsolePortTemplateRequest(consolePortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkDestroy(context.Background()).ConsolePortTemplateRequest(consolePortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1952,24 +1994,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- consolePortTemplateRequest := []openapiclient.ConsolePortTemplateRequest{*openapiclient.NewConsolePortTemplateRequest("Name_example")} // []ConsolePortTemplateRequest |
+ consolePortTemplateRequest := []openapiclient.ConsolePortTemplateRequest{*openapiclient.NewConsolePortTemplateRequest("Name_example")} // []ConsolePortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkPartialUpdate(context.Background()).ConsolePortTemplateRequest(consolePortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortTemplatesBulkPartialUpdate`: []ConsolePortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkPartialUpdate(context.Background()).ConsolePortTemplateRequest(consolePortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortTemplatesBulkPartialUpdate`: []ConsolePortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -2018,24 +2060,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- consolePortTemplateRequest := []openapiclient.ConsolePortTemplateRequest{*openapiclient.NewConsolePortTemplateRequest("Name_example")} // []ConsolePortTemplateRequest |
+ consolePortTemplateRequest := []openapiclient.ConsolePortTemplateRequest{*openapiclient.NewConsolePortTemplateRequest("Name_example")} // []ConsolePortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkUpdate(context.Background()).ConsolePortTemplateRequest(consolePortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortTemplatesBulkUpdate`: []ConsolePortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkUpdate(context.Background()).ConsolePortTemplateRequest(consolePortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortTemplatesBulkUpdate`: []ConsolePortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesBulkUpdate`: %v\n", resp)
}
```
@@ -2084,24 +2126,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableConsolePortTemplateRequest := *openapiclient.NewWritableConsolePortTemplateRequest("Name_example") // WritableConsolePortTemplateRequest |
+ writableConsolePortTemplateRequest := *openapiclient.NewWritableConsolePortTemplateRequest("Name_example") // WritableConsolePortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesCreate(context.Background()).WritableConsolePortTemplateRequest(writableConsolePortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortTemplatesCreate`: ConsolePortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesCreate(context.Background()).WritableConsolePortTemplateRequest(writableConsolePortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortTemplatesCreate`: ConsolePortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesCreate`: %v\n", resp)
}
```
@@ -2150,22 +2192,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console port template.
+ id := int32(56) // int32 | A unique integer value identifying this console port template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimConsolePortTemplatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimConsolePortTemplatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -2206,7 +2248,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).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).Id(id).IdEmpty(idEmpty).IdGt(idGt).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()
@@ -2218,69 +2260,80 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- name := []string{"Inner_example"} // []string | (optional)
- 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)
- type_ := "type__example" // string | (optional)
- typeN := "typeN_example" // string | (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).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortTemplatesList`: PaginatedConsolePortTemplateList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ 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)
+ type_ := "type__example" // string | (optional)
+ typeN := "typeN_example" // string | (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()
+ 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)
+ }
+ // response from `DcimConsolePortTemplatesList`: PaginatedConsolePortTemplateList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesList`: %v\n", resp)
}
```
@@ -2303,6 +2356,17 @@ 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** | |
**devicetypeId** | **[]int32** | Device type (ID) |
**devicetypeIdN** | **[]int32** | Device type (ID) |
**id** | **[]int32** | |
@@ -2373,25 +2437,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console port template.
- patchedWritableConsolePortTemplateRequest := *openapiclient.NewPatchedWritableConsolePortTemplateRequest() // PatchedWritableConsolePortTemplateRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this console port template.
+ patchedWritableConsolePortTemplateRequest := *openapiclient.NewPatchedWritableConsolePortTemplateRequest() // PatchedWritableConsolePortTemplateRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesPartialUpdate(context.Background(), id).PatchedWritableConsolePortTemplateRequest(patchedWritableConsolePortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortTemplatesPartialUpdate`: ConsolePortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesPartialUpdate(context.Background(), id).PatchedWritableConsolePortTemplateRequest(patchedWritableConsolePortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortTemplatesPartialUpdate`: ConsolePortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesPartialUpdate`: %v\n", resp)
}
```
@@ -2445,24 +2509,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console port template.
+ id := int32(56) // int32 | A unique integer value identifying this console port template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortTemplatesRetrieve`: ConsolePortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortTemplatesRetrieve`: ConsolePortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesRetrieve`: %v\n", resp)
}
```
@@ -2515,25 +2579,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console port template.
- writableConsolePortTemplateRequest := *openapiclient.NewWritableConsolePortTemplateRequest("Name_example") // WritableConsolePortTemplateRequest |
+ id := int32(56) // int32 | A unique integer value identifying this console port template.
+ writableConsolePortTemplateRequest := *openapiclient.NewWritableConsolePortTemplateRequest("Name_example") // WritableConsolePortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesUpdate(context.Background(), id).WritableConsolePortTemplateRequest(writableConsolePortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortTemplatesUpdate`: ConsolePortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesUpdate(context.Background(), id).WritableConsolePortTemplateRequest(writableConsolePortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortTemplatesUpdate`: ConsolePortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesUpdate`: %v\n", resp)
}
```
@@ -2587,22 +2651,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsolePortRequest |
+ consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsolePortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimConsolePortsBulkDestroy(context.Background()).ConsolePortRequest(consolePortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimConsolePortsBulkDestroy(context.Background()).ConsolePortRequest(consolePortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -2651,24 +2715,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsolePortRequest |
+ consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsolePortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortsBulkPartialUpdate(context.Background()).ConsolePortRequest(consolePortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortsBulkPartialUpdate`: []ConsolePort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortsBulkPartialUpdate(context.Background()).ConsolePortRequest(consolePortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortsBulkPartialUpdate`: []ConsolePort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -2717,24 +2781,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsolePortRequest |
+ consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsolePortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortsBulkUpdate(context.Background()).ConsolePortRequest(consolePortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortsBulkUpdate`: []ConsolePort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortsBulkUpdate(context.Background()).ConsolePortRequest(consolePortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortsBulkUpdate`: []ConsolePort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsBulkUpdate`: %v\n", resp)
}
```
@@ -2783,24 +2847,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(int32(123), "Name_example") // WritableConsolePortRequest |
+ writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(int32(123), "Name_example") // WritableConsolePortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortsCreate(context.Background()).WritableConsolePortRequest(writableConsolePortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortsCreate`: ConsolePort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortsCreate(context.Background()).WritableConsolePortRequest(writableConsolePortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortsCreate`: ConsolePort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsCreate`: %v\n", resp)
}
```
@@ -2849,22 +2913,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console port.
+ id := int32(56) // int32 | A unique integer value identifying this console port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimConsolePortsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimConsolePortsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -2917,136 +2981,136 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (optional)
- cabled := true // bool | (optional)
- connected := true // bool | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- 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)
- deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- 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)
- location := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- occupied := true // bool | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- rack := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- type_ := []string{"Inner_example"} // []string | Physical port type (optional)
- typeN := []string{"Inner_example"} // []string | Physical port type (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
- virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortsList`: PaginatedConsolePortList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ cableEnd := "cableEnd_example" // string | (optional)
+ cableEndN := "cableEndN_example" // string | (optional)
+ cabled := true // bool | (optional)
+ connected := true // bool | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ 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)
+ deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ 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)
+ location := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ occupied := true // bool | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ rack := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ type_ := []string{"Inner_example"} // []string | Physical port type (optional)
+ typeN := []string{"Inner_example"} // []string | Physical port type (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+ virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortsList`: PaginatedConsolePortList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsList`: %v\n", resp)
}
```
@@ -3206,25 +3270,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console port.
- patchedWritableConsolePortRequest := *openapiclient.NewPatchedWritableConsolePortRequest() // PatchedWritableConsolePortRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this console port.
+ patchedWritableConsolePortRequest := *openapiclient.NewPatchedWritableConsolePortRequest() // PatchedWritableConsolePortRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortsPartialUpdate(context.Background(), id).PatchedWritableConsolePortRequest(patchedWritableConsolePortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortsPartialUpdate`: ConsolePort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortsPartialUpdate(context.Background(), id).PatchedWritableConsolePortRequest(patchedWritableConsolePortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortsPartialUpdate`: ConsolePort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsPartialUpdate`: %v\n", resp)
}
```
@@ -3278,24 +3342,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console port.
+ id := int32(56) // int32 | A unique integer value identifying this console port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortsRetrieve`: ConsolePort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortsRetrieve`: ConsolePort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsRetrieve`: %v\n", resp)
}
```
@@ -3348,24 +3412,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console port.
+ id := int32(56) // int32 | A unique integer value identifying this console port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortsTraceRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsTraceRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortsTraceRetrieve`: ConsolePort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsTraceRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortsTraceRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsTraceRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortsTraceRetrieve`: ConsolePort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsTraceRetrieve`: %v\n", resp)
}
```
@@ -3418,25 +3482,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console port.
- writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(int32(123), "Name_example") // WritableConsolePortRequest |
+ id := int32(56) // int32 | A unique integer value identifying this console port.
+ writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(int32(123), "Name_example") // WritableConsolePortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortsUpdate(context.Background(), id).WritableConsolePortRequest(writableConsolePortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsolePortsUpdate`: ConsolePort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsolePortsUpdate(context.Background(), id).WritableConsolePortRequest(writableConsolePortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsolePortsUpdate`: ConsolePort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsUpdate`: %v\n", resp)
}
```
@@ -3490,22 +3554,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- consoleServerPortTemplateRequest := []openapiclient.ConsoleServerPortTemplateRequest{*openapiclient.NewConsoleServerPortTemplateRequest("Name_example")} // []ConsoleServerPortTemplateRequest |
+ consoleServerPortTemplateRequest := []openapiclient.ConsoleServerPortTemplateRequest{*openapiclient.NewConsoleServerPortTemplateRequest("Name_example")} // []ConsoleServerPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkDestroy(context.Background()).ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkDestroy(context.Background()).ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -3554,24 +3618,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- consoleServerPortTemplateRequest := []openapiclient.ConsoleServerPortTemplateRequest{*openapiclient.NewConsoleServerPortTemplateRequest("Name_example")} // []ConsoleServerPortTemplateRequest |
+ consoleServerPortTemplateRequest := []openapiclient.ConsoleServerPortTemplateRequest{*openapiclient.NewConsoleServerPortTemplateRequest("Name_example")} // []ConsoleServerPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkPartialUpdate(context.Background()).ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortTemplatesBulkPartialUpdate`: []ConsoleServerPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkPartialUpdate(context.Background()).ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortTemplatesBulkPartialUpdate`: []ConsoleServerPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -3620,24 +3684,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- consoleServerPortTemplateRequest := []openapiclient.ConsoleServerPortTemplateRequest{*openapiclient.NewConsoleServerPortTemplateRequest("Name_example")} // []ConsoleServerPortTemplateRequest |
+ consoleServerPortTemplateRequest := []openapiclient.ConsoleServerPortTemplateRequest{*openapiclient.NewConsoleServerPortTemplateRequest("Name_example")} // []ConsoleServerPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkUpdate(context.Background()).ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortTemplatesBulkUpdate`: []ConsoleServerPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkUpdate(context.Background()).ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortTemplatesBulkUpdate`: []ConsoleServerPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesBulkUpdate`: %v\n", resp)
}
```
@@ -3686,24 +3750,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableConsoleServerPortTemplateRequest := *openapiclient.NewWritableConsoleServerPortTemplateRequest("Name_example") // WritableConsoleServerPortTemplateRequest |
+ writableConsoleServerPortTemplateRequest := *openapiclient.NewWritableConsoleServerPortTemplateRequest("Name_example") // WritableConsoleServerPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesCreate(context.Background()).WritableConsoleServerPortTemplateRequest(writableConsoleServerPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortTemplatesCreate`: ConsoleServerPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesCreate(context.Background()).WritableConsoleServerPortTemplateRequest(writableConsoleServerPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortTemplatesCreate`: ConsoleServerPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesCreate`: %v\n", resp)
}
```
@@ -3752,22 +3816,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console server port template.
+ id := int32(56) // int32 | A unique integer value identifying this console server port template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -3808,7 +3872,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).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).Id(id).IdEmpty(idEmpty).IdGt(idGt).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()
@@ -3820,69 +3884,80 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- name := []string{"Inner_example"} // []string | (optional)
- 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)
- type_ := "type__example" // string | (optional)
- typeN := "typeN_example" // string | (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).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortTemplatesList`: PaginatedConsoleServerPortTemplateList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ 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)
+ type_ := "type__example" // string | (optional)
+ typeN := "typeN_example" // string | (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()
+ 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)
+ }
+ // response from `DcimConsoleServerPortTemplatesList`: PaginatedConsoleServerPortTemplateList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesList`: %v\n", resp)
}
```
@@ -3905,6 +3980,17 @@ 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** | |
**devicetypeId** | **[]int32** | Device type (ID) |
**devicetypeIdN** | **[]int32** | Device type (ID) |
**id** | **[]int32** | |
@@ -3975,25 +4061,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console server port template.
- patchedWritableConsoleServerPortTemplateRequest := *openapiclient.NewPatchedWritableConsoleServerPortTemplateRequest() // PatchedWritableConsoleServerPortTemplateRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this console server port template.
+ patchedWritableConsoleServerPortTemplateRequest := *openapiclient.NewPatchedWritableConsoleServerPortTemplateRequest() // PatchedWritableConsoleServerPortTemplateRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesPartialUpdate(context.Background(), id).PatchedWritableConsoleServerPortTemplateRequest(patchedWritableConsoleServerPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortTemplatesPartialUpdate`: ConsoleServerPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesPartialUpdate(context.Background(), id).PatchedWritableConsoleServerPortTemplateRequest(patchedWritableConsoleServerPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortTemplatesPartialUpdate`: ConsoleServerPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesPartialUpdate`: %v\n", resp)
}
```
@@ -4047,24 +4133,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console server port template.
+ id := int32(56) // int32 | A unique integer value identifying this console server port template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortTemplatesRetrieve`: ConsoleServerPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortTemplatesRetrieve`: ConsoleServerPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesRetrieve`: %v\n", resp)
}
```
@@ -4117,25 +4203,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console server port template.
- writableConsoleServerPortTemplateRequest := *openapiclient.NewWritableConsoleServerPortTemplateRequest("Name_example") // WritableConsoleServerPortTemplateRequest |
+ id := int32(56) // int32 | A unique integer value identifying this console server port template.
+ writableConsoleServerPortTemplateRequest := *openapiclient.NewWritableConsoleServerPortTemplateRequest("Name_example") // WritableConsoleServerPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesUpdate(context.Background(), id).WritableConsoleServerPortTemplateRequest(writableConsoleServerPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortTemplatesUpdate`: ConsoleServerPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesUpdate(context.Background(), id).WritableConsoleServerPortTemplateRequest(writableConsoleServerPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortTemplatesUpdate`: ConsoleServerPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesUpdate`: %v\n", resp)
}
```
@@ -4189,22 +4275,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest |
+ consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkDestroy(context.Background()).ConsoleServerPortRequest(consoleServerPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkDestroy(context.Background()).ConsoleServerPortRequest(consoleServerPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -4253,24 +4339,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest |
+ consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkPartialUpdate(context.Background()).ConsoleServerPortRequest(consoleServerPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortsBulkPartialUpdate`: []ConsoleServerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkPartialUpdate(context.Background()).ConsoleServerPortRequest(consoleServerPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortsBulkPartialUpdate`: []ConsoleServerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -4319,24 +4405,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest |
+ consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkUpdate(context.Background()).ConsoleServerPortRequest(consoleServerPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortsBulkUpdate`: []ConsoleServerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkUpdate(context.Background()).ConsoleServerPortRequest(consoleServerPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortsBulkUpdate`: []ConsoleServerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsBulkUpdate`: %v\n", resp)
}
```
@@ -4385,24 +4471,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(int32(123), "Name_example") // WritableConsoleServerPortRequest |
+ writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(int32(123), "Name_example") // WritableConsoleServerPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsCreate(context.Background()).WritableConsoleServerPortRequest(writableConsoleServerPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortsCreate`: ConsoleServerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsCreate(context.Background()).WritableConsoleServerPortRequest(writableConsoleServerPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortsCreate`: ConsoleServerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsCreate`: %v\n", resp)
}
```
@@ -4451,22 +4537,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console server port.
+ id := int32(56) // int32 | A unique integer value identifying this console server port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimConsoleServerPortsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimConsoleServerPortsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -4519,136 +4605,136 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (optional)
- cabled := true // bool | (optional)
- connected := true // bool | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- 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)
- deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- 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)
- location := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- occupied := true // bool | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- rack := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- type_ := []string{"Inner_example"} // []string | Physical port type (optional)
- typeN := []string{"Inner_example"} // []string | Physical port type (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
- virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortsList`: PaginatedConsoleServerPortList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ cableEnd := "cableEnd_example" // string | (optional)
+ cableEndN := "cableEndN_example" // string | (optional)
+ cabled := true // bool | (optional)
+ connected := true // bool | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ 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)
+ deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ 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)
+ location := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ occupied := true // bool | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ rack := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ type_ := []string{"Inner_example"} // []string | Physical port type (optional)
+ typeN := []string{"Inner_example"} // []string | Physical port type (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+ virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortsList`: PaginatedConsoleServerPortList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsList`: %v\n", resp)
}
```
@@ -4808,25 +4894,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console server port.
- patchedWritableConsoleServerPortRequest := *openapiclient.NewPatchedWritableConsoleServerPortRequest() // PatchedWritableConsoleServerPortRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this console server port.
+ patchedWritableConsoleServerPortRequest := *openapiclient.NewPatchedWritableConsoleServerPortRequest() // PatchedWritableConsoleServerPortRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsPartialUpdate(context.Background(), id).PatchedWritableConsoleServerPortRequest(patchedWritableConsoleServerPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortsPartialUpdate`: ConsoleServerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsPartialUpdate(context.Background(), id).PatchedWritableConsoleServerPortRequest(patchedWritableConsoleServerPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortsPartialUpdate`: ConsoleServerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsPartialUpdate`: %v\n", resp)
}
```
@@ -4880,24 +4966,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console server port.
+ id := int32(56) // int32 | A unique integer value identifying this console server port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortsRetrieve`: ConsoleServerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortsRetrieve`: ConsoleServerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsRetrieve`: %v\n", resp)
}
```
@@ -4950,24 +5036,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console server port.
+ id := int32(56) // int32 | A unique integer value identifying this console server port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsTraceRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsTraceRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortsTraceRetrieve`: ConsoleServerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsTraceRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsTraceRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsTraceRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortsTraceRetrieve`: ConsoleServerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsTraceRetrieve`: %v\n", resp)
}
```
@@ -5020,25 +5106,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this console server port.
- writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(int32(123), "Name_example") // WritableConsoleServerPortRequest |
+ id := int32(56) // int32 | A unique integer value identifying this console server port.
+ writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(int32(123), "Name_example") // WritableConsoleServerPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsUpdate(context.Background(), id).WritableConsoleServerPortRequest(writableConsoleServerPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimConsoleServerPortsUpdate`: ConsoleServerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsUpdate(context.Background(), id).WritableConsoleServerPortRequest(writableConsoleServerPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimConsoleServerPortsUpdate`: ConsoleServerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsUpdate`: %v\n", resp)
}
```
@@ -5092,22 +5178,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest |
+ deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkDestroy(context.Background()).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkDestroy(context.Background()).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -5156,24 +5242,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest |
+ deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkPartialUpdate(context.Background()).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBayTemplatesBulkPartialUpdate`: []DeviceBayTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkPartialUpdate(context.Background()).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceBayTemplatesBulkPartialUpdate`: []DeviceBayTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -5222,24 +5308,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest |
+ deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkUpdate(context.Background()).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBayTemplatesBulkUpdate`: []DeviceBayTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkUpdate(context.Background()).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceBayTemplatesBulkUpdate`: []DeviceBayTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesBulkUpdate`: %v\n", resp)
}
```
@@ -5288,24 +5374,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableDeviceBayTemplateRequest := *openapiclient.NewWritableDeviceBayTemplateRequest(int32(123), "Name_example") // WritableDeviceBayTemplateRequest |
+ writableDeviceBayTemplateRequest := *openapiclient.NewWritableDeviceBayTemplateRequest(int32(123), "Name_example") // WritableDeviceBayTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesCreate(context.Background()).WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBayTemplatesCreate`: DeviceBayTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesCreate(context.Background()).WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceBayTemplatesCreate`: DeviceBayTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesCreate`: %v\n", resp)
}
```
@@ -5354,22 +5440,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device bay template.
+ id := int32(56) // int32 | A unique integer value identifying this device bay template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -5410,7 +5496,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).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).Id(id).IdEmpty(idEmpty).IdGt(idGt).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()
@@ -5422,65 +5508,76 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- 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)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- 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).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBayTemplatesList`: PaginatedDeviceBayTemplateList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ 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)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ 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()
+ 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)
+ }
+ // response from `DcimDeviceBayTemplatesList`: PaginatedDeviceBayTemplateList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesList`: %v\n", resp)
}
```
@@ -5503,6 +5600,17 @@ 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** | |
**devicetypeId** | **[]int32** | Device type (ID) |
**devicetypeIdN** | **[]int32** | Device type (ID) |
**id** | **[]int32** | |
@@ -5569,25 +5677,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device bay template.
- patchedWritableDeviceBayTemplateRequest := *openapiclient.NewPatchedWritableDeviceBayTemplateRequest() // PatchedWritableDeviceBayTemplateRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this device bay template.
+ patchedWritableDeviceBayTemplateRequest := *openapiclient.NewPatchedWritableDeviceBayTemplateRequest() // PatchedWritableDeviceBayTemplateRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesPartialUpdate(context.Background(), id).PatchedWritableDeviceBayTemplateRequest(patchedWritableDeviceBayTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBayTemplatesPartialUpdate`: DeviceBayTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesPartialUpdate(context.Background(), id).PatchedWritableDeviceBayTemplateRequest(patchedWritableDeviceBayTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceBayTemplatesPartialUpdate`: DeviceBayTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesPartialUpdate`: %v\n", resp)
}
```
@@ -5641,24 +5749,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device bay template.
+ id := int32(56) // int32 | A unique integer value identifying this device bay template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBayTemplatesRetrieve`: DeviceBayTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceBayTemplatesRetrieve`: DeviceBayTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesRetrieve`: %v\n", resp)
}
```
@@ -5711,25 +5819,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device bay template.
- writableDeviceBayTemplateRequest := *openapiclient.NewWritableDeviceBayTemplateRequest(int32(123), "Name_example") // WritableDeviceBayTemplateRequest |
+ id := int32(56) // int32 | A unique integer value identifying this device bay template.
+ writableDeviceBayTemplateRequest := *openapiclient.NewWritableDeviceBayTemplateRequest(int32(123), "Name_example") // WritableDeviceBayTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesUpdate(context.Background(), id).WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBayTemplatesUpdate`: DeviceBayTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesUpdate(context.Background(), id).WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceBayTemplatesUpdate`: DeviceBayTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesUpdate`: %v\n", resp)
}
```
@@ -5783,22 +5891,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []DeviceBayRequest |
+ deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []DeviceBayRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimDeviceBaysBulkDestroy(context.Background()).DeviceBayRequest(deviceBayRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimDeviceBaysBulkDestroy(context.Background()).DeviceBayRequest(deviceBayRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -5847,24 +5955,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []DeviceBayRequest |
+ deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []DeviceBayRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBaysBulkPartialUpdate(context.Background()).DeviceBayRequest(deviceBayRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBaysBulkPartialUpdate`: []DeviceBay
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBaysBulkPartialUpdate(context.Background()).DeviceBayRequest(deviceBayRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceBaysBulkPartialUpdate`: []DeviceBay
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysBulkPartialUpdate`: %v\n", resp)
}
```
@@ -5913,24 +6021,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []DeviceBayRequest |
+ deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []DeviceBayRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBaysBulkUpdate(context.Background()).DeviceBayRequest(deviceBayRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBaysBulkUpdate`: []DeviceBay
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBaysBulkUpdate(context.Background()).DeviceBayRequest(deviceBayRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceBaysBulkUpdate`: []DeviceBay
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysBulkUpdate`: %v\n", resp)
}
```
@@ -5979,24 +6087,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableDeviceBayRequest := *openapiclient.NewWritableDeviceBayRequest(int32(123), "Name_example") // WritableDeviceBayRequest |
+ writableDeviceBayRequest := *openapiclient.NewWritableDeviceBayRequest(int32(123), "Name_example") // WritableDeviceBayRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBaysCreate(context.Background()).WritableDeviceBayRequest(writableDeviceBayRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBaysCreate`: DeviceBay
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBaysCreate(context.Background()).WritableDeviceBayRequest(writableDeviceBayRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceBaysCreate`: DeviceBay
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysCreate`: %v\n", resp)
}
```
@@ -6045,22 +6153,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device bay.
+ id := int32(56) // int32 | A unique integer value identifying this device bay.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimDeviceBaysDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimDeviceBaysDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -6113,127 +6221,127 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- 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)
- deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- 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)
- location := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- 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)
- rack := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
- virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBaysList`: PaginatedDeviceBayList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ 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)
+ deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ 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)
+ location := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ 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)
+ rack := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+ virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceBaysList`: PaginatedDeviceBayList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysList`: %v\n", resp)
}
```
@@ -6384,25 +6492,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device bay.
- patchedWritableDeviceBayRequest := *openapiclient.NewPatchedWritableDeviceBayRequest() // PatchedWritableDeviceBayRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this device bay.
+ patchedWritableDeviceBayRequest := *openapiclient.NewPatchedWritableDeviceBayRequest() // PatchedWritableDeviceBayRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBaysPartialUpdate(context.Background(), id).PatchedWritableDeviceBayRequest(patchedWritableDeviceBayRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBaysPartialUpdate`: DeviceBay
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBaysPartialUpdate(context.Background(), id).PatchedWritableDeviceBayRequest(patchedWritableDeviceBayRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceBaysPartialUpdate`: DeviceBay
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysPartialUpdate`: %v\n", resp)
}
```
@@ -6456,24 +6564,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device bay.
+ id := int32(56) // int32 | A unique integer value identifying this device bay.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBaysRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBaysRetrieve`: DeviceBay
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBaysRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceBaysRetrieve`: DeviceBay
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysRetrieve`: %v\n", resp)
}
```
@@ -6526,25 +6634,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device bay.
- writableDeviceBayRequest := *openapiclient.NewWritableDeviceBayRequest(int32(123), "Name_example") // WritableDeviceBayRequest |
+ id := int32(56) // int32 | A unique integer value identifying this device bay.
+ writableDeviceBayRequest := *openapiclient.NewWritableDeviceBayRequest(int32(123), "Name_example") // WritableDeviceBayRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBaysUpdate(context.Background(), id).WritableDeviceBayRequest(writableDeviceBayRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceBaysUpdate`: DeviceBay
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBaysUpdate(context.Background(), id).WritableDeviceBayRequest(writableDeviceBayRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceBaysUpdate`: DeviceBay
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysUpdate`: %v\n", resp)
}
```
@@ -6598,22 +6706,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- deviceRoleRequest := []openapiclient.DeviceRoleRequest{*openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example")} // []DeviceRoleRequest |
+ deviceRoleRequest := []openapiclient.DeviceRoleRequest{*openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example")} // []DeviceRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimDeviceRolesBulkDestroy(context.Background()).DeviceRoleRequest(deviceRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimDeviceRolesBulkDestroy(context.Background()).DeviceRoleRequest(deviceRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -6662,24 +6770,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- deviceRoleRequest := []openapiclient.DeviceRoleRequest{*openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example")} // []DeviceRoleRequest |
+ deviceRoleRequest := []openapiclient.DeviceRoleRequest{*openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example")} // []DeviceRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceRolesBulkPartialUpdate(context.Background()).DeviceRoleRequest(deviceRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceRolesBulkPartialUpdate`: []DeviceRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceRolesBulkPartialUpdate(context.Background()).DeviceRoleRequest(deviceRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceRolesBulkPartialUpdate`: []DeviceRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -6728,24 +6836,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- deviceRoleRequest := []openapiclient.DeviceRoleRequest{*openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example")} // []DeviceRoleRequest |
+ deviceRoleRequest := []openapiclient.DeviceRoleRequest{*openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example")} // []DeviceRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceRolesBulkUpdate(context.Background()).DeviceRoleRequest(deviceRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceRolesBulkUpdate`: []DeviceRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceRolesBulkUpdate(context.Background()).DeviceRoleRequest(deviceRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceRolesBulkUpdate`: []DeviceRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesBulkUpdate`: %v\n", resp)
}
```
@@ -6794,24 +6902,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableDeviceRoleRequest := *openapiclient.NewWritableDeviceRoleRequest("Name_example", "Slug_example") // WritableDeviceRoleRequest |
+ writableDeviceRoleRequest := *openapiclient.NewWritableDeviceRoleRequest("Name_example", "Slug_example") // WritableDeviceRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceRolesCreate(context.Background()).WritableDeviceRoleRequest(writableDeviceRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceRolesCreate`: DeviceRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceRolesCreate(context.Background()).WritableDeviceRoleRequest(writableDeviceRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceRolesCreate`: DeviceRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesCreate`: %v\n", resp)
}
```
@@ -6860,22 +6968,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device role.
+ id := int32(56) // int32 | A unique integer value identifying this device role.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimDeviceRolesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimDeviceRolesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -6928,101 +7036,101 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- color := []string{"Inner_example"} // []string | (optional)
- colorEmpty := true // bool | (optional)
- colorIc := []string{"Inner_example"} // []string | (optional)
- colorIe := []string{"Inner_example"} // []string | (optional)
- colorIew := []string{"Inner_example"} // []string | (optional)
- colorIsw := []string{"Inner_example"} // []string | (optional)
- colorN := []string{"Inner_example"} // []string | (optional)
- colorNic := []string{"Inner_example"} // []string | (optional)
- colorNie := []string{"Inner_example"} // []string | (optional)
- colorNiew := []string{"Inner_example"} // []string | (optional)
- colorNisw := []string{"Inner_example"} // []string | (optional)
- configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
- configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- vmRole := true // bool | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VmRole(vmRole).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceRolesList`: PaginatedDeviceRoleList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ color := []string{"Inner_example"} // []string | (optional)
+ colorEmpty := true // bool | (optional)
+ colorIc := []string{"Inner_example"} // []string | (optional)
+ colorIe := []string{"Inner_example"} // []string | (optional)
+ colorIew := []string{"Inner_example"} // []string | (optional)
+ colorIsw := []string{"Inner_example"} // []string | (optional)
+ colorN := []string{"Inner_example"} // []string | (optional)
+ colorNic := []string{"Inner_example"} // []string | (optional)
+ colorNie := []string{"Inner_example"} // []string | (optional)
+ colorNiew := []string{"Inner_example"} // []string | (optional)
+ colorNisw := []string{"Inner_example"} // []string | (optional)
+ configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
+ configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ vmRole := true // bool | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VmRole(vmRole).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceRolesList`: PaginatedDeviceRoleList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesList`: %v\n", resp)
}
```
@@ -7147,25 +7255,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device role.
- patchedWritableDeviceRoleRequest := *openapiclient.NewPatchedWritableDeviceRoleRequest() // PatchedWritableDeviceRoleRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this device role.
+ patchedWritableDeviceRoleRequest := *openapiclient.NewPatchedWritableDeviceRoleRequest() // PatchedWritableDeviceRoleRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceRolesPartialUpdate(context.Background(), id).PatchedWritableDeviceRoleRequest(patchedWritableDeviceRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceRolesPartialUpdate`: DeviceRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceRolesPartialUpdate(context.Background(), id).PatchedWritableDeviceRoleRequest(patchedWritableDeviceRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceRolesPartialUpdate`: DeviceRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesPartialUpdate`: %v\n", resp)
}
```
@@ -7219,24 +7327,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device role.
+ id := int32(56) // int32 | A unique integer value identifying this device role.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceRolesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceRolesRetrieve`: DeviceRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceRolesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceRolesRetrieve`: DeviceRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesRetrieve`: %v\n", resp)
}
```
@@ -7289,25 +7397,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device role.
- writableDeviceRoleRequest := *openapiclient.NewWritableDeviceRoleRequest("Name_example", "Slug_example") // WritableDeviceRoleRequest |
+ id := int32(56) // int32 | A unique integer value identifying this device role.
+ writableDeviceRoleRequest := *openapiclient.NewWritableDeviceRoleRequest("Name_example", "Slug_example") // WritableDeviceRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceRolesUpdate(context.Background(), id).WritableDeviceRoleRequest(writableDeviceRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceRolesUpdate`: DeviceRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceRolesUpdate(context.Background(), id).WritableDeviceRoleRequest(writableDeviceRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceRolesUpdate`: DeviceRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesUpdate`: %v\n", resp)
}
```
@@ -7361,22 +7469,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest |
+ deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimDeviceTypesBulkDestroy(context.Background()).DeviceTypeRequest(deviceTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimDeviceTypesBulkDestroy(context.Background()).DeviceTypeRequest(deviceTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -7425,24 +7533,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest |
+ deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceTypesBulkPartialUpdate(context.Background()).DeviceTypeRequest(deviceTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceTypesBulkPartialUpdate`: []DeviceType
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceTypesBulkPartialUpdate(context.Background()).DeviceTypeRequest(deviceTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceTypesBulkPartialUpdate`: []DeviceType
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -7491,24 +7599,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest |
+ deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceTypesBulkUpdate(context.Background()).DeviceTypeRequest(deviceTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceTypesBulkUpdate`: []DeviceType
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceTypesBulkUpdate(context.Background()).DeviceTypeRequest(deviceTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceTypesBulkUpdate`: []DeviceType
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesBulkUpdate`: %v\n", resp)
}
```
@@ -7557,24 +7665,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(int32(123), "Model_example", "Slug_example") // WritableDeviceTypeRequest |
+ writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(int32(123), "Model_example", "Slug_example") // WritableDeviceTypeRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceTypesCreate(context.Background()).WritableDeviceTypeRequest(writableDeviceTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceTypesCreate`: DeviceType
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceTypesCreate(context.Background()).WritableDeviceTypeRequest(writableDeviceTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceTypesCreate`: DeviceType
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesCreate`: %v\n", resp)
}
```
@@ -7623,22 +7731,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device type.
+ id := int32(56) // int32 | A unique integer value identifying this device type.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimDeviceTypesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimDeviceTypesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -7679,7 +7787,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).DeviceBays(deviceBays).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).InventoryItems(inventoryItems).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).ModuleBays(moduleBays).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).SubdeviceRoleN(subdeviceRoleN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute()
+> 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()
@@ -7691,127 +7799,139 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- airflow := "airflow_example" // string | (optional)
- airflowN := "airflowN_example" // string | (optional)
- consolePorts := true // bool | Has console ports (optional)
- consoleServerPorts := true // bool | Has console server ports (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- 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)
- defaultPlatform := []string{"Inner_example"} // []string | Default platform (slug) (optional)
- defaultPlatformN := []string{"Inner_example"} // []string | Default platform (slug) (optional)
- defaultPlatformId := []*int32{int32(123)} // []*int32 | Default platform (ID) (optional)
- defaultPlatformIdN := []*int32{int32(123)} // []*int32 | Default platform (ID) (optional)
- deviceBays := true // bool | Has device bays (optional)
- hasFrontImage := true // bool | Has a front image (optional)
- hasRearImage := true // bool | Has a rear image (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- interfaces := true // bool | Has interfaces (optional)
- inventoryItems := true // bool | Has inventory items (optional)
- isFullDepth := true // bool | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
- manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
- model := []string{"Inner_example"} // []string | (optional)
- modelEmpty := true // bool | (optional)
- modelIc := []string{"Inner_example"} // []string | (optional)
- modelIe := []string{"Inner_example"} // []string | (optional)
- modelIew := []string{"Inner_example"} // []string | (optional)
- modelIsw := []string{"Inner_example"} // []string | (optional)
- modelN := []string{"Inner_example"} // []string | (optional)
- modelNic := []string{"Inner_example"} // []string | (optional)
- modelNie := []string{"Inner_example"} // []string | (optional)
- modelNiew := []string{"Inner_example"} // []string | (optional)
- modelNisw := []string{"Inner_example"} // []string | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduleBays := true // bool | Has module bays (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- partNumber := []string{"Inner_example"} // []string | (optional)
- partNumberEmpty := true // bool | (optional)
- partNumberIc := []string{"Inner_example"} // []string | (optional)
- partNumberIe := []string{"Inner_example"} // []string | (optional)
- partNumberIew := []string{"Inner_example"} // []string | (optional)
- partNumberIsw := []string{"Inner_example"} // []string | (optional)
- partNumberN := []string{"Inner_example"} // []string | (optional)
- partNumberNic := []string{"Inner_example"} // []string | (optional)
- partNumberNie := []string{"Inner_example"} // []string | (optional)
- partNumberNiew := []string{"Inner_example"} // []string | (optional)
- partNumberNisw := []string{"Inner_example"} // []string | (optional)
- passThroughPorts := true // bool | Has pass-through ports (optional)
- powerOutlets := true // bool | Has power outlets (optional)
- powerPorts := true // bool | Has power ports (optional)
- q := "q_example" // string | Search (optional)
- 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)
- 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)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- uHeight := []float64{float64(123)} // []float64 | (optional)
- uHeightEmpty := true // bool | (optional)
- uHeightGt := []float64{float64(123)} // []float64 | (optional)
- uHeightGte := []float64{float64(123)} // []float64 | (optional)
- uHeightLt := []float64{float64(123)} // []float64 | (optional)
- uHeightLte := []float64{float64(123)} // []float64 | (optional)
- uHeightN := []float64{float64(123)} // []float64 | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- weight := []float64{float64(123)} // []float64 | (optional)
- weightEmpty := true // bool | (optional)
- weightGt := []float64{float64(123)} // []float64 | (optional)
- weightGte := []float64{float64(123)} // []float64 | (optional)
- weightLt := []float64{float64(123)} // []float64 | (optional)
- weightLte := []float64{float64(123)} // []float64 | (optional)
- weightN := []float64{float64(123)} // []float64 | (optional)
- weightUnit := "weightUnit_example" // string | (optional)
- weightUnitN := "weightUnitN_example" // string | (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).DeviceBays(deviceBays).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).InventoryItems(inventoryItems).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).ModuleBays(moduleBays).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).SubdeviceRoleN(subdeviceRoleN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceTypesList`: PaginatedDeviceTypeList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ airflow := "airflow_example" // string | (optional)
+ airflowN := "airflowN_example" // string | (optional)
+ consolePorts := true // bool | Has console ports (optional)
+ consoleServerPorts := true // bool | Has console server ports (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ defaultPlatform := []string{"Inner_example"} // []string | Default platform (slug) (optional)
+ defaultPlatformN := []string{"Inner_example"} // []string | Default platform (slug) (optional)
+ defaultPlatformId := []*int32{int32(123)} // []*int32 | Default platform (ID) (optional)
+ defaultPlatformIdN := []*int32{int32(123)} // []*int32 | Default platform (ID) (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)
+ deviceBays := true // bool | Has device bays (optional)
+ excludeFromUtilization := true // bool | (optional)
+ hasFrontImage := true // bool | Has a front image (optional)
+ hasRearImage := true // bool | Has a rear image (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ interfaces := true // bool | Has interfaces (optional)
+ inventoryItems := true // bool | Has inventory items (optional)
+ isFullDepth := true // bool | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
+ manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
+ model := []string{"Inner_example"} // []string | (optional)
+ modelEmpty := true // bool | (optional)
+ modelIc := []string{"Inner_example"} // []string | (optional)
+ modelIe := []string{"Inner_example"} // []string | (optional)
+ modelIew := []string{"Inner_example"} // []string | (optional)
+ modelIsw := []string{"Inner_example"} // []string | (optional)
+ modelN := []string{"Inner_example"} // []string | (optional)
+ modelNic := []string{"Inner_example"} // []string | (optional)
+ modelNie := []string{"Inner_example"} // []string | (optional)
+ modelNiew := []string{"Inner_example"} // []string | (optional)
+ modelNisw := []string{"Inner_example"} // []string | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduleBays := true // bool | Has module bays (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ partNumber := []string{"Inner_example"} // []string | (optional)
+ partNumberEmpty := true // bool | (optional)
+ partNumberIc := []string{"Inner_example"} // []string | (optional)
+ partNumberIe := []string{"Inner_example"} // []string | (optional)
+ partNumberIew := []string{"Inner_example"} // []string | (optional)
+ partNumberIsw := []string{"Inner_example"} // []string | (optional)
+ partNumberN := []string{"Inner_example"} // []string | (optional)
+ partNumberNic := []string{"Inner_example"} // []string | (optional)
+ partNumberNie := []string{"Inner_example"} // []string | (optional)
+ partNumberNiew := []string{"Inner_example"} // []string | (optional)
+ partNumberNisw := []string{"Inner_example"} // []string | (optional)
+ passThroughPorts := true // bool | Has pass-through ports (optional)
+ powerOutlets := true // bool | Has power outlets (optional)
+ powerPorts := true // bool | Has power ports (optional)
+ q := "q_example" // string | Search (optional)
+ 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)
+ 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)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ uHeight := []float64{float64(123)} // []float64 | (optional)
+ uHeightEmpty := true // bool | (optional)
+ uHeightGt := []float64{float64(123)} // []float64 | (optional)
+ uHeightGte := []float64{float64(123)} // []float64 | (optional)
+ uHeightLt := []float64{float64(123)} // []float64 | (optional)
+ uHeightLte := []float64{float64(123)} // []float64 | (optional)
+ uHeightN := []float64{float64(123)} // []float64 | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ weight := []float64{float64(123)} // []float64 | (optional)
+ weightEmpty := true // bool | (optional)
+ weightGt := []float64{float64(123)} // []float64 | (optional)
+ weightGte := []float64{float64(123)} // []float64 | (optional)
+ weightLt := []float64{float64(123)} // []float64 | (optional)
+ weightLte := []float64{float64(123)} // []float64 | (optional)
+ weightN := []float64{float64(123)} // []float64 | (optional)
+ weightUnit := "weightUnit_example" // string | (optional)
+ weightUnitN := "weightUnitN_example" // string | (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()
+ 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)
+ }
+ // response from `DcimDeviceTypesList`: PaginatedDeviceTypeList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesList`: %v\n", resp)
}
```
@@ -7842,7 +7962,19 @@ Name | Type | Description | Notes
**defaultPlatformN** | **[]string** | Default platform (slug) |
**defaultPlatformId** | **[]int32** | Default platform (ID) |
**defaultPlatformIdN** | **[]int32** | Default platform (ID) |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
**deviceBays** | **bool** | Has device bays |
+ **excludeFromUtilization** | **bool** | |
**hasFrontImage** | **bool** | Has a front image |
**hasRearImage** | **bool** | Has a rear image |
**id** | **[]int32** | |
@@ -7962,25 +8094,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device type.
- patchedWritableDeviceTypeRequest := *openapiclient.NewPatchedWritableDeviceTypeRequest() // PatchedWritableDeviceTypeRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this device type.
+ patchedWritableDeviceTypeRequest := *openapiclient.NewPatchedWritableDeviceTypeRequest() // PatchedWritableDeviceTypeRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceTypesPartialUpdate(context.Background(), id).PatchedWritableDeviceTypeRequest(patchedWritableDeviceTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceTypesPartialUpdate`: DeviceType
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceTypesPartialUpdate(context.Background(), id).PatchedWritableDeviceTypeRequest(patchedWritableDeviceTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceTypesPartialUpdate`: DeviceType
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesPartialUpdate`: %v\n", resp)
}
```
@@ -8034,24 +8166,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device type.
+ id := int32(56) // int32 | A unique integer value identifying this device type.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceTypesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceTypesRetrieve`: DeviceType
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceTypesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceTypesRetrieve`: DeviceType
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesRetrieve`: %v\n", resp)
}
```
@@ -8104,25 +8236,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device type.
- writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(int32(123), "Model_example", "Slug_example") // WritableDeviceTypeRequest |
+ id := int32(56) // int32 | A unique integer value identifying this device type.
+ writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(int32(123), "Model_example", "Slug_example") // WritableDeviceTypeRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceTypesUpdate(context.Background(), id).WritableDeviceTypeRequest(writableDeviceTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDeviceTypesUpdate`: DeviceType
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDeviceTypesUpdate(context.Background(), id).WritableDeviceTypeRequest(writableDeviceTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDeviceTypesUpdate`: DeviceType
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesUpdate`: %v\n", resp)
}
```
@@ -8176,22 +8308,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), *openapiclient.NewNestedDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimDevicesBulkDestroy(context.Background()).DeviceWithConfigContextRequest(deviceWithConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimDevicesBulkDestroy(context.Background()).DeviceWithConfigContextRequest(deviceWithConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -8240,24 +8372,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), *openapiclient.NewNestedDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDevicesBulkPartialUpdate(context.Background()).DeviceWithConfigContextRequest(deviceWithConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDevicesBulkPartialUpdate`: []DeviceWithConfigContext
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDevicesBulkPartialUpdate(context.Background()).DeviceWithConfigContextRequest(deviceWithConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDevicesBulkPartialUpdate`: []DeviceWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -8306,24 +8438,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), *openapiclient.NewNestedDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDevicesBulkUpdate(context.Background()).DeviceWithConfigContextRequest(deviceWithConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDevicesBulkUpdate`: []DeviceWithConfigContext
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDevicesBulkUpdate(context.Background()).DeviceWithConfigContextRequest(deviceWithConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDevicesBulkUpdate`: []DeviceWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesBulkUpdate`: %v\n", resp)
}
```
@@ -8372,24 +8504,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(int32(123), int32(123), int32(123)) // WritableDeviceWithConfigContextRequest |
+ writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(int32(123), int32(123), int32(123)) // WritableDeviceWithConfigContextRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDevicesCreate(context.Background()).WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDevicesCreate`: DeviceWithConfigContext
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDevicesCreate(context.Background()).WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDevicesCreate`: DeviceWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesCreate`: %v\n", resp)
}
```
@@ -8438,22 +8570,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device.
+ id := int32(56) // int32 | A unique integer value identifying this device.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimDevicesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimDevicesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -8494,7 +8626,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).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).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()
@@ -8506,213 +8638,224 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- airflow := "airflow_example" // string | (optional)
- airflowN := "airflowN_example" // string | (optional)
- assetTag := []string{"Inner_example"} // []string | (optional)
- assetTagEmpty := true // bool | (optional)
- assetTagIc := []string{"Inner_example"} // []string | (optional)
- assetTagIe := []string{"Inner_example"} // []string | (optional)
- assetTagIew := []string{"Inner_example"} // []string | (optional)
- assetTagIsw := []string{"Inner_example"} // []string | (optional)
- assetTagN := []string{"Inner_example"} // []string | (optional)
- assetTagNic := []string{"Inner_example"} // []string | (optional)
- assetTagNie := []string{"Inner_example"} // []string | (optional)
- assetTagNiew := []string{"Inner_example"} // []string | (optional)
- assetTagNisw := []string{"Inner_example"} // []string | (optional)
- clusterId := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional)
- clusterIdN := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional)
- configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
- configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
- consolePorts := true // bool | Has console ports (optional)
- consoleServerPorts := true // bool | Has console server ports (optional)
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- 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)
- hasOobIp := true // bool | Has an out-of-band IP (optional)
- hasPrimaryIp := true // bool | Has a primary IP (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- interfaces := true // bool | Has interfaces (optional)
- isFullDepth := true // bool | Is full depth (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- latitude := []float64{float64(123)} // []float64 | (optional)
- latitudeEmpty := true // bool | (optional)
- latitudeGt := []float64{float64(123)} // []float64 | (optional)
- latitudeGte := []float64{float64(123)} // []float64 | (optional)
- latitudeLt := []float64{float64(123)} // []float64 | (optional)
- latitudeLte := []float64{float64(123)} // []float64 | (optional)
- latitudeN := []float64{float64(123)} // []float64 | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- localContextData := true // bool | Has local config context data (optional)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- longitude := []float64{float64(123)} // []float64 | (optional)
- longitudeEmpty := true // bool | (optional)
- longitudeGt := []float64{float64(123)} // []float64 | (optional)
- longitudeGte := []float64{float64(123)} // []float64 | (optional)
- longitudeLt := []float64{float64(123)} // []float64 | (optional)
- longitudeLte := []float64{float64(123)} // []float64 | (optional)
- longitudeN := []float64{float64(123)} // []float64 | (optional)
- macAddress := []string{"Inner_example"} // []string | (optional)
- macAddressIc := []string{"Inner_example"} // []string | (optional)
- macAddressIe := []string{"Inner_example"} // []string | (optional)
- macAddressIew := []string{"Inner_example"} // []string | (optional)
- macAddressIsw := []string{"Inner_example"} // []string | (optional)
- macAddressN := []string{"Inner_example"} // []string | (optional)
- macAddressNic := []string{"Inner_example"} // []string | (optional)
- macAddressNie := []string{"Inner_example"} // []string | (optional)
- macAddressNiew := []string{"Inner_example"} // []string | (optional)
- macAddressNisw := []string{"Inner_example"} // []string | (optional)
- manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
- manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
- model := []string{"Inner_example"} // []string | Device model (slug) (optional)
- modelN := []string{"Inner_example"} // []string | Device model (slug) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduleBays := true // bool | Has module bays (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- 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)
- oobIpId := []int32{int32(123)} // []int32 | OOB IP (ID) (optional)
- oobIpIdN := []int32{int32(123)} // []int32 | OOB IP (ID) (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- parentDeviceId := []int32{int32(123)} // []int32 | Parent Device (ID) (optional)
- parentDeviceIdN := []int32{int32(123)} // []int32 | Parent Device (ID) (optional)
- passThroughPorts := true // bool | Has pass-through ports (optional)
- platform := []string{"Inner_example"} // []string | Platform (slug) (optional)
- platformN := []string{"Inner_example"} // []string | Platform (slug) (optional)
- platformId := []*int32{int32(123)} // []*int32 | Platform (ID) (optional)
- platformIdN := []*int32{int32(123)} // []*int32 | Platform (ID) (optional)
- position := []float64{float64(123)} // []float64 | (optional)
- positionEmpty := true // bool | (optional)
- positionGt := []float64{float64(123)} // []float64 | (optional)
- positionGte := []float64{float64(123)} // []float64 | (optional)
- positionLt := []float64{float64(123)} // []float64 | (optional)
- positionLte := []float64{float64(123)} // []float64 | (optional)
- positionN := []float64{float64(123)} // []float64 | (optional)
- powerOutlets := true // bool | Has power outlets (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)
- primaryIp6Id := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional)
- primaryIp6IdN := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional)
- q := "q_example" // string | Search (optional)
- rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleId := []int32{int32(123)} // []int32 | Role (ID) (optional)
- roleIdN := []int32{int32(123)} // []int32 | Role (ID) (optional)
- serial := []string{"Inner_example"} // []string | (optional)
- serialEmpty := true // bool | (optional)
- serialIc := []string{"Inner_example"} // []string | (optional)
- serialIe := []string{"Inner_example"} // []string | (optional)
- serialIew := []string{"Inner_example"} // []string | (optional)
- serialIsw := []string{"Inner_example"} // []string | (optional)
- serialN := []string{"Inner_example"} // []string | (optional)
- serialNic := []string{"Inner_example"} // []string | (optional)
- serialNie := []string{"Inner_example"} // []string | (optional)
- serialNiew := []string{"Inner_example"} // []string | (optional)
- serialNisw := []string{"Inner_example"} // []string | (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- vcPosition := []int32{int32(123)} // []int32 | (optional)
- vcPositionEmpty := true // bool | (optional)
- vcPositionGt := []int32{int32(123)} // []int32 | (optional)
- vcPositionGte := []int32{int32(123)} // []int32 | (optional)
- vcPositionLt := []int32{int32(123)} // []int32 | (optional)
- vcPositionLte := []int32{int32(123)} // []int32 | (optional)
- vcPositionN := []int32{int32(123)} // []int32 | (optional)
- vcPriority := []int32{int32(123)} // []int32 | (optional)
- vcPriorityEmpty := true // bool | (optional)
- vcPriorityGt := []int32{int32(123)} // []int32 | (optional)
- vcPriorityGte := []int32{int32(123)} // []int32 | (optional)
- vcPriorityLt := []int32{int32(123)} // []int32 | (optional)
- vcPriorityLte := []int32{int32(123)} // []int32 | (optional)
- vcPriorityN := []int32{int32(123)} // []int32 | (optional)
- virtualChassisId := []int32{int32(123)} // []int32 | Virtual chassis (ID) (optional)
- virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual chassis (ID) (optional)
- virtualChassisMember := true // bool | Is a virtual chassis member (optional)
-
- 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).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutlets(powerOutlets).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDevicesList`: PaginatedDeviceWithConfigContextList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ airflow := "airflow_example" // string | (optional)
+ airflowN := "airflowN_example" // string | (optional)
+ assetTag := []string{"Inner_example"} // []string | (optional)
+ assetTagEmpty := true // bool | (optional)
+ assetTagIc := []string{"Inner_example"} // []string | (optional)
+ assetTagIe := []string{"Inner_example"} // []string | (optional)
+ assetTagIew := []string{"Inner_example"} // []string | (optional)
+ assetTagIsw := []string{"Inner_example"} // []string | (optional)
+ assetTagN := []string{"Inner_example"} // []string | (optional)
+ assetTagNic := []string{"Inner_example"} // []string | (optional)
+ assetTagNie := []string{"Inner_example"} // []string | (optional)
+ assetTagNiew := []string{"Inner_example"} // []string | (optional)
+ assetTagNisw := []string{"Inner_example"} // []string | (optional)
+ clusterId := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional)
+ clusterIdN := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional)
+ configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
+ configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
+ consolePorts := true // bool | Has console ports (optional)
+ consoleServerPorts := true // bool | Has console server ports (optional)
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ 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)
+ hasOobIp := true // bool | Has an out-of-band IP (optional)
+ hasPrimaryIp := true // bool | Has a primary IP (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ interfaces := true // bool | Has interfaces (optional)
+ isFullDepth := true // bool | Is full depth (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ latitude := []float64{float64(123)} // []float64 | (optional)
+ latitudeEmpty := true // bool | (optional)
+ latitudeGt := []float64{float64(123)} // []float64 | (optional)
+ latitudeGte := []float64{float64(123)} // []float64 | (optional)
+ latitudeLt := []float64{float64(123)} // []float64 | (optional)
+ latitudeLte := []float64{float64(123)} // []float64 | (optional)
+ latitudeN := []float64{float64(123)} // []float64 | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ localContextData := true // bool | Has local config context data (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ longitude := []float64{float64(123)} // []float64 | (optional)
+ longitudeEmpty := true // bool | (optional)
+ longitudeGt := []float64{float64(123)} // []float64 | (optional)
+ longitudeGte := []float64{float64(123)} // []float64 | (optional)
+ longitudeLt := []float64{float64(123)} // []float64 | (optional)
+ longitudeLte := []float64{float64(123)} // []float64 | (optional)
+ longitudeN := []float64{float64(123)} // []float64 | (optional)
+ macAddress := []string{"Inner_example"} // []string | (optional)
+ macAddressIc := []string{"Inner_example"} // []string | (optional)
+ macAddressIe := []string{"Inner_example"} // []string | (optional)
+ macAddressIew := []string{"Inner_example"} // []string | (optional)
+ macAddressIsw := []string{"Inner_example"} // []string | (optional)
+ macAddressN := []string{"Inner_example"} // []string | (optional)
+ macAddressNic := []string{"Inner_example"} // []string | (optional)
+ macAddressNie := []string{"Inner_example"} // []string | (optional)
+ macAddressNiew := []string{"Inner_example"} // []string | (optional)
+ macAddressNisw := []string{"Inner_example"} // []string | (optional)
+ manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
+ manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
+ model := []string{"Inner_example"} // []string | Device model (slug) (optional)
+ modelN := []string{"Inner_example"} // []string | Device model (slug) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduleBays := true // bool | Has module bays (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ 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)
+ oobIpId := []int32{int32(123)} // []int32 | OOB IP (ID) (optional)
+ oobIpIdN := []int32{int32(123)} // []int32 | OOB IP (ID) (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ parentDeviceId := []int32{int32(123)} // []int32 | Parent Device (ID) (optional)
+ parentDeviceIdN := []int32{int32(123)} // []int32 | Parent Device (ID) (optional)
+ passThroughPorts := true // bool | Has pass-through ports (optional)
+ platform := []string{"Inner_example"} // []string | Platform (slug) (optional)
+ platformN := []string{"Inner_example"} // []string | Platform (slug) (optional)
+ platformId := []*int32{int32(123)} // []*int32 | Platform (ID) (optional)
+ platformIdN := []*int32{int32(123)} // []*int32 | Platform (ID) (optional)
+ position := []float64{float64(123)} // []float64 | (optional)
+ positionEmpty := true // bool | (optional)
+ positionGt := []float64{float64(123)} // []float64 | (optional)
+ positionGte := []float64{float64(123)} // []float64 | (optional)
+ positionLt := []float64{float64(123)} // []float64 | (optional)
+ positionLte := []float64{float64(123)} // []float64 | (optional)
+ positionN := []float64{float64(123)} // []float64 | (optional)
+ powerOutlets := true // bool | Has power outlets (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)
+ primaryIp6Id := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional)
+ primaryIp6IdN := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional)
+ q := "q_example" // string | Search (optional)
+ rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleId := []int32{int32(123)} // []int32 | Role (ID) (optional)
+ roleIdN := []int32{int32(123)} // []int32 | Role (ID) (optional)
+ serial := []string{"Inner_example"} // []string | (optional)
+ serialEmpty := true // bool | (optional)
+ serialIc := []string{"Inner_example"} // []string | (optional)
+ serialIe := []string{"Inner_example"} // []string | (optional)
+ serialIew := []string{"Inner_example"} // []string | (optional)
+ serialIsw := []string{"Inner_example"} // []string | (optional)
+ serialN := []string{"Inner_example"} // []string | (optional)
+ serialNic := []string{"Inner_example"} // []string | (optional)
+ serialNie := []string{"Inner_example"} // []string | (optional)
+ serialNiew := []string{"Inner_example"} // []string | (optional)
+ serialNisw := []string{"Inner_example"} // []string | (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ vcPosition := []int32{int32(123)} // []int32 | (optional)
+ vcPositionEmpty := true // bool | (optional)
+ vcPositionGt := []int32{int32(123)} // []int32 | (optional)
+ vcPositionGte := []int32{int32(123)} // []int32 | (optional)
+ vcPositionLt := []int32{int32(123)} // []int32 | (optional)
+ vcPositionLte := []int32{int32(123)} // []int32 | (optional)
+ vcPositionN := []int32{int32(123)} // []int32 | (optional)
+ vcPriority := []int32{int32(123)} // []int32 | (optional)
+ vcPriorityEmpty := true // bool | (optional)
+ vcPriorityGt := []int32{int32(123)} // []int32 | (optional)
+ vcPriorityGte := []int32{int32(123)} // []int32 | (optional)
+ vcPriorityLt := []int32{int32(123)} // []int32 | (optional)
+ vcPriorityLte := []int32{int32(123)} // []int32 | (optional)
+ vcPriorityN := []int32{int32(123)} // []int32 | (optional)
+ virtualChassisId := []int32{int32(123)} // []int32 | Virtual chassis (ID) (optional)
+ virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual chassis (ID) (optional)
+ virtualChassisMember := true // bool | Is a virtual chassis member (optional)
+
+ 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()
+ 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)
+ }
+ // response from `DcimDevicesList`: PaginatedDeviceWithConfigContextList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesList`: %v\n", resp)
}
```
@@ -8760,6 +8903,17 @@ 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** | |
**deviceBays** | **bool** | Has device bays |
**deviceType** | **[]string** | Device type (slug) |
**deviceTypeN** | **[]string** | Device type (slug) |
@@ -8949,25 +9103,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device.
- patchedWritableDeviceWithConfigContextRequest := *openapiclient.NewPatchedWritableDeviceWithConfigContextRequest() // PatchedWritableDeviceWithConfigContextRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this device.
+ patchedWritableDeviceWithConfigContextRequest := *openapiclient.NewPatchedWritableDeviceWithConfigContextRequest() // PatchedWritableDeviceWithConfigContextRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDevicesPartialUpdate(context.Background(), id).PatchedWritableDeviceWithConfigContextRequest(patchedWritableDeviceWithConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDevicesPartialUpdate`: DeviceWithConfigContext
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDevicesPartialUpdate(context.Background(), id).PatchedWritableDeviceWithConfigContextRequest(patchedWritableDeviceWithConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDevicesPartialUpdate`: DeviceWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesPartialUpdate`: %v\n", resp)
}
```
@@ -9021,26 +9175,26 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device.
- writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(int32(123), int32(123), int32(123)) // WritableDeviceWithConfigContextRequest |
- format := "format_example" // string | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this device.
+ writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(int32(123), int32(123), int32(123)) // WritableDeviceWithConfigContextRequest |
+ format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDevicesRenderConfigCreate(context.Background(), id).WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest).Format(format).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesRenderConfigCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDevicesRenderConfigCreate`: DeviceWithConfigContext
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesRenderConfigCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDevicesRenderConfigCreate(context.Background(), id).WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest).Format(format).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesRenderConfigCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDevicesRenderConfigCreate`: DeviceWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesRenderConfigCreate`: %v\n", resp)
}
```
@@ -9061,7 +9215,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**writableDeviceWithConfigContextRequest** | [**WritableDeviceWithConfigContextRequest**](WritableDeviceWithConfigContextRequest.md) | |
- **format** | **string** | |
+ **format** | [**DcimDevicesRenderConfigCreateFormatParameter**](DcimDevicesRenderConfigCreateFormatParameter.md) | |
### Return type
@@ -9095,24 +9249,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device.
+ id := int32(56) // int32 | A unique integer value identifying this device.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDevicesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDevicesRetrieve`: DeviceWithConfigContext
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDevicesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDevicesRetrieve`: DeviceWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesRetrieve`: %v\n", resp)
}
```
@@ -9165,25 +9319,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this device.
- writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(int32(123), int32(123), int32(123)) // WritableDeviceWithConfigContextRequest |
+ id := int32(56) // int32 | A unique integer value identifying this device.
+ writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(int32(123), int32(123), int32(123)) // WritableDeviceWithConfigContextRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDevicesUpdate(context.Background(), id).WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimDevicesUpdate`: DeviceWithConfigContext
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimDevicesUpdate(context.Background(), id).WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimDevicesUpdate`: DeviceWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesUpdate`: %v\n", resp)
}
```
@@ -9237,22 +9391,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", "Type_example", *openapiclient.NewNestedRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest |
+ frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewNestedRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkDestroy(context.Background()).FrontPortTemplateRequest(frontPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkDestroy(context.Background()).FrontPortTemplateRequest(frontPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -9301,24 +9455,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", "Type_example", *openapiclient.NewNestedRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest |
+ frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewNestedRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkPartialUpdate(context.Background()).FrontPortTemplateRequest(frontPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortTemplatesBulkPartialUpdate`: []FrontPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkPartialUpdate(context.Background()).FrontPortTemplateRequest(frontPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortTemplatesBulkPartialUpdate`: []FrontPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -9367,24 +9521,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", "Type_example", *openapiclient.NewNestedRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest |
+ frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewNestedRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkUpdate(context.Background()).FrontPortTemplateRequest(frontPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortTemplatesBulkUpdate`: []FrontPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkUpdate(context.Background()).FrontPortTemplateRequest(frontPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortTemplatesBulkUpdate`: []FrontPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesBulkUpdate`: %v\n", resp)
}
```
@@ -9433,24 +9587,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", "Type_example", int32(123)) // WritableFrontPortTemplateRequest |
+ writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesCreate(context.Background()).WritableFrontPortTemplateRequest(writableFrontPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortTemplatesCreate`: FrontPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesCreate(context.Background()).WritableFrontPortTemplateRequest(writableFrontPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortTemplatesCreate`: FrontPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesCreate`: %v\n", resp)
}
```
@@ -9499,22 +9653,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this front port template.
+ id := int32(56) // int32 | A unique integer value identifying this front port template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimFrontPortTemplatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimFrontPortTemplatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -9555,7 +9709,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).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).Id(id).IdEmpty(idEmpty).IdGt(idGt).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()
@@ -9567,80 +9721,91 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- color := []string{"Inner_example"} // []string | (optional)
- colorEmpty := true // bool | (optional)
- colorIc := []string{"Inner_example"} // []string | (optional)
- colorIe := []string{"Inner_example"} // []string | (optional)
- colorIew := []string{"Inner_example"} // []string | (optional)
- colorIsw := []string{"Inner_example"} // []string | (optional)
- colorN := []string{"Inner_example"} // []string | (optional)
- colorNic := []string{"Inner_example"} // []string | (optional)
- colorNie := []string{"Inner_example"} // []string | (optional)
- colorNiew := []string{"Inner_example"} // []string | (optional)
- colorNisw := []string{"Inner_example"} // []string | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- name := []string{"Inner_example"} // []string | (optional)
- 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)
- 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).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortTemplatesList`: PaginatedFrontPortTemplateList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ color := []string{"Inner_example"} // []string | (optional)
+ colorEmpty := true // bool | (optional)
+ colorIc := []string{"Inner_example"} // []string | (optional)
+ colorIe := []string{"Inner_example"} // []string | (optional)
+ colorIew := []string{"Inner_example"} // []string | (optional)
+ colorIsw := []string{"Inner_example"} // []string | (optional)
+ colorN := []string{"Inner_example"} // []string | (optional)
+ colorNic := []string{"Inner_example"} // []string | (optional)
+ colorNie := []string{"Inner_example"} // []string | (optional)
+ colorNiew := []string{"Inner_example"} // []string | (optional)
+ colorNisw := []string{"Inner_example"} // []string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ 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)
+ 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()
+ 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)
+ }
+ // response from `DcimFrontPortTemplatesList`: PaginatedFrontPortTemplateList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesList`: %v\n", resp)
}
```
@@ -9674,6 +9839,17 @@ 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** | |
**devicetypeId** | **[]int32** | Device type (ID) |
**devicetypeIdN** | **[]int32** | Device type (ID) |
**id** | **[]int32** | |
@@ -9744,25 +9920,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this front port template.
- patchedWritableFrontPortTemplateRequest := *openapiclient.NewPatchedWritableFrontPortTemplateRequest() // PatchedWritableFrontPortTemplateRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this front port template.
+ patchedWritableFrontPortTemplateRequest := *openapiclient.NewPatchedWritableFrontPortTemplateRequest() // PatchedWritableFrontPortTemplateRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesPartialUpdate(context.Background(), id).PatchedWritableFrontPortTemplateRequest(patchedWritableFrontPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortTemplatesPartialUpdate`: FrontPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesPartialUpdate(context.Background(), id).PatchedWritableFrontPortTemplateRequest(patchedWritableFrontPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortTemplatesPartialUpdate`: FrontPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesPartialUpdate`: %v\n", resp)
}
```
@@ -9816,24 +9992,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this front port template.
+ id := int32(56) // int32 | A unique integer value identifying this front port template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortTemplatesRetrieve`: FrontPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortTemplatesRetrieve`: FrontPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesRetrieve`: %v\n", resp)
}
```
@@ -9886,25 +10062,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this front port template.
- writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", "Type_example", int32(123)) // WritableFrontPortTemplateRequest |
+ 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 |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesUpdate(context.Background(), id).WritableFrontPortTemplateRequest(writableFrontPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortTemplatesUpdate`: FrontPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesUpdate(context.Background(), id).WritableFrontPortTemplateRequest(writableFrontPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortTemplatesUpdate`: FrontPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesUpdate`: %v\n", resp)
}
```
@@ -9958,22 +10134,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", "Type_example", *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest |
+ frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimFrontPortsBulkDestroy(context.Background()).FrontPortRequest(frontPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimFrontPortsBulkDestroy(context.Background()).FrontPortRequest(frontPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -10022,24 +10198,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", "Type_example", *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest |
+ frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortsBulkPartialUpdate(context.Background()).FrontPortRequest(frontPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortsBulkPartialUpdate`: []FrontPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortsBulkPartialUpdate(context.Background()).FrontPortRequest(frontPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortsBulkPartialUpdate`: []FrontPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -10088,24 +10264,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", "Type_example", *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest |
+ frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortsBulkUpdate(context.Background()).FrontPortRequest(frontPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortsBulkUpdate`: []FrontPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortsBulkUpdate(context.Background()).FrontPortRequest(frontPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortsBulkUpdate`: []FrontPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsBulkUpdate`: %v\n", resp)
}
```
@@ -10154,24 +10330,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(int32(123), "Name_example", "Type_example", int32(123)) // WritableFrontPortRequest |
+ writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(int32(123), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortsCreate(context.Background()).WritableFrontPortRequest(writableFrontPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortsCreate`: FrontPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortsCreate(context.Background()).WritableFrontPortRequest(writableFrontPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortsCreate`: FrontPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsCreate`: %v\n", resp)
}
```
@@ -10220,22 +10396,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this front port.
+ id := int32(56) // int32 | A unique integer value identifying this front port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimFrontPortsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimFrontPortsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -10288,146 +10464,146 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (optional)
- cabled := true // bool | (optional)
- color := []string{"Inner_example"} // []string | (optional)
- colorEmpty := true // bool | (optional)
- colorIc := []string{"Inner_example"} // []string | (optional)
- colorIe := []string{"Inner_example"} // []string | (optional)
- colorIew := []string{"Inner_example"} // []string | (optional)
- colorIsw := []string{"Inner_example"} // []string | (optional)
- colorN := []string{"Inner_example"} // []string | (optional)
- colorNic := []string{"Inner_example"} // []string | (optional)
- colorNie := []string{"Inner_example"} // []string | (optional)
- colorNiew := []string{"Inner_example"} // []string | (optional)
- colorNisw := []string{"Inner_example"} // []string | (optional)
- 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)
- 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)
- deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- 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)
- location := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- occupied := true // bool | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- rack := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- type_ := []string{"Inner_example"} // []string | (optional)
- typeN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
- virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortsList`: PaginatedFrontPortList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ cableEnd := "cableEnd_example" // string | (optional)
+ cableEndN := "cableEndN_example" // string | (optional)
+ cabled := true // bool | (optional)
+ color := []string{"Inner_example"} // []string | (optional)
+ colorEmpty := true // bool | (optional)
+ colorIc := []string{"Inner_example"} // []string | (optional)
+ colorIe := []string{"Inner_example"} // []string | (optional)
+ colorIew := []string{"Inner_example"} // []string | (optional)
+ colorIsw := []string{"Inner_example"} // []string | (optional)
+ colorN := []string{"Inner_example"} // []string | (optional)
+ colorNic := []string{"Inner_example"} // []string | (optional)
+ colorNie := []string{"Inner_example"} // []string | (optional)
+ colorNiew := []string{"Inner_example"} // []string | (optional)
+ colorNisw := []string{"Inner_example"} // []string | (optional)
+ 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)
+ 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)
+ deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ 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)
+ location := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ occupied := true // bool | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ rack := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ type_ := []string{"Inner_example"} // []string | (optional)
+ typeN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+ virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortsList`: PaginatedFrontPortList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsList`: %v\n", resp)
}
```
@@ -10597,25 +10773,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this front port.
- patchedWritableFrontPortRequest := *openapiclient.NewPatchedWritableFrontPortRequest() // PatchedWritableFrontPortRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this front port.
+ patchedWritableFrontPortRequest := *openapiclient.NewPatchedWritableFrontPortRequest() // PatchedWritableFrontPortRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortsPartialUpdate(context.Background(), id).PatchedWritableFrontPortRequest(patchedWritableFrontPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortsPartialUpdate`: FrontPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortsPartialUpdate(context.Background(), id).PatchedWritableFrontPortRequest(patchedWritableFrontPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortsPartialUpdate`: FrontPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsPartialUpdate`: %v\n", resp)
}
```
@@ -10669,24 +10845,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this front port.
+ id := int32(56) // int32 | A unique integer value identifying this front port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortsPathsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsPathsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortsPathsRetrieve`: FrontPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsPathsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortsPathsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsPathsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortsPathsRetrieve`: FrontPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsPathsRetrieve`: %v\n", resp)
}
```
@@ -10739,24 +10915,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this front port.
+ id := int32(56) // int32 | A unique integer value identifying this front port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortsRetrieve`: FrontPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortsRetrieve`: FrontPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsRetrieve`: %v\n", resp)
}
```
@@ -10809,25 +10985,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this front port.
- writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(int32(123), "Name_example", "Type_example", int32(123)) // WritableFrontPortRequest |
+ 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 |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortsUpdate(context.Background(), id).WritableFrontPortRequest(writableFrontPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimFrontPortsUpdate`: FrontPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimFrontPortsUpdate(context.Background(), id).WritableFrontPortRequest(writableFrontPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimFrontPortsUpdate`: FrontPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsUpdate`: %v\n", resp)
}
```
@@ -10881,22 +11057,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- interfaceTemplateRequest := []openapiclient.InterfaceTemplateRequest{*openapiclient.NewInterfaceTemplateRequest("Name_example", "Type_example")} // []InterfaceTemplateRequest |
+ interfaceTemplateRequest := []openapiclient.InterfaceTemplateRequest{*openapiclient.NewInterfaceTemplateRequest("Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkDestroy(context.Background()).InterfaceTemplateRequest(interfaceTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkDestroy(context.Background()).InterfaceTemplateRequest(interfaceTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -10945,24 +11121,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- interfaceTemplateRequest := []openapiclient.InterfaceTemplateRequest{*openapiclient.NewInterfaceTemplateRequest("Name_example", "Type_example")} // []InterfaceTemplateRequest |
+ interfaceTemplateRequest := []openapiclient.InterfaceTemplateRequest{*openapiclient.NewInterfaceTemplateRequest("Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkPartialUpdate(context.Background()).InterfaceTemplateRequest(interfaceTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfaceTemplatesBulkPartialUpdate`: []InterfaceTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkPartialUpdate(context.Background()).InterfaceTemplateRequest(interfaceTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInterfaceTemplatesBulkPartialUpdate`: []InterfaceTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -11011,24 +11187,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- interfaceTemplateRequest := []openapiclient.InterfaceTemplateRequest{*openapiclient.NewInterfaceTemplateRequest("Name_example", "Type_example")} // []InterfaceTemplateRequest |
+ interfaceTemplateRequest := []openapiclient.InterfaceTemplateRequest{*openapiclient.NewInterfaceTemplateRequest("Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkUpdate(context.Background()).InterfaceTemplateRequest(interfaceTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfaceTemplatesBulkUpdate`: []InterfaceTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkUpdate(context.Background()).InterfaceTemplateRequest(interfaceTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInterfaceTemplatesBulkUpdate`: []InterfaceTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesBulkUpdate`: %v\n", resp)
}
```
@@ -11077,24 +11253,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableInterfaceTemplateRequest := *openapiclient.NewWritableInterfaceTemplateRequest("Name_example", "Type_example") // WritableInterfaceTemplateRequest |
+ writableInterfaceTemplateRequest := *openapiclient.NewWritableInterfaceTemplateRequest("Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesCreate(context.Background()).WritableInterfaceTemplateRequest(writableInterfaceTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfaceTemplatesCreate`: InterfaceTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesCreate(context.Background()).WritableInterfaceTemplateRequest(writableInterfaceTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInterfaceTemplatesCreate`: InterfaceTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesCreate`: %v\n", resp)
}
```
@@ -11143,22 +11319,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this interface template.
+ id := int32(56) // int32 | A unique integer value identifying this interface template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimInterfaceTemplatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimInterfaceTemplatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -11199,7 +11375,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).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).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()
@@ -11211,79 +11387,90 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- bridgeId := []int32{int32(123)} // []int32 | (optional)
- bridgeIdN := []int32{int32(123)} // []int32 | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- enabled := true // bool | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- 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)
- mgmtOnly := true // bool | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- name := []string{"Inner_example"} // []string | (optional)
- 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)
- poeMode := []string{"Inner_example"} // []string | (optional)
- poeModeN := []string{"Inner_example"} // []string | (optional)
- poeType := []string{"Inner_example"} // []string | (optional)
- poeTypeN := []string{"Inner_example"} // []string | (optional)
- q := "q_example" // string | Search (optional)
- rfRole := []string{"Inner_example"} // []string | (optional)
- rfRoleN := []string{"Inner_example"} // []string | (optional)
- type_ := []string{"Inner_example"} // []string | (optional)
- typeN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfaceTemplatesList`: PaginatedInterfaceTemplateList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ bridgeId := []int32{int32(123)} // []int32 | (optional)
+ bridgeIdN := []int32{int32(123)} // []int32 | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ enabled := true // bool | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ 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)
+ mgmtOnly := true // bool | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ 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)
+ poeMode := []string{"Inner_example"} // []string | (optional)
+ poeModeN := []string{"Inner_example"} // []string | (optional)
+ poeType := []string{"Inner_example"} // []string | (optional)
+ poeTypeN := []string{"Inner_example"} // []string | (optional)
+ q := "q_example" // string | Search (optional)
+ rfRole := []string{"Inner_example"} // []string | (optional)
+ rfRoleN := []string{"Inner_example"} // []string | (optional)
+ type_ := []string{"Inner_example"} // []string | (optional)
+ typeN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).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()
+ 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)
+ }
+ // response from `DcimInterfaceTemplatesList`: PaginatedInterfaceTemplateList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesList`: %v\n", resp)
}
```
@@ -11308,6 +11495,17 @@ 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** | |
**devicetypeId** | **[]int32** | Device type (ID) |
**devicetypeIdN** | **[]int32** | Device type (ID) |
**enabled** | **bool** | |
@@ -11386,25 +11584,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this interface template.
- patchedWritableInterfaceTemplateRequest := *openapiclient.NewPatchedWritableInterfaceTemplateRequest() // PatchedWritableInterfaceTemplateRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this interface template.
+ patchedWritableInterfaceTemplateRequest := *openapiclient.NewPatchedWritableInterfaceTemplateRequest() // PatchedWritableInterfaceTemplateRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesPartialUpdate(context.Background(), id).PatchedWritableInterfaceTemplateRequest(patchedWritableInterfaceTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfaceTemplatesPartialUpdate`: InterfaceTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesPartialUpdate(context.Background(), id).PatchedWritableInterfaceTemplateRequest(patchedWritableInterfaceTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInterfaceTemplatesPartialUpdate`: InterfaceTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesPartialUpdate`: %v\n", resp)
}
```
@@ -11458,24 +11656,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this interface template.
+ id := int32(56) // int32 | A unique integer value identifying this interface template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfaceTemplatesRetrieve`: InterfaceTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInterfaceTemplatesRetrieve`: InterfaceTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesRetrieve`: %v\n", resp)
}
```
@@ -11528,25 +11726,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this interface template.
- writableInterfaceTemplateRequest := *openapiclient.NewWritableInterfaceTemplateRequest("Name_example", "Type_example") // WritableInterfaceTemplateRequest |
+ id := int32(56) // int32 | A unique integer value identifying this interface template.
+ writableInterfaceTemplateRequest := *openapiclient.NewWritableInterfaceTemplateRequest("Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesUpdate(context.Background(), id).WritableInterfaceTemplateRequest(writableInterfaceTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfaceTemplatesUpdate`: InterfaceTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesUpdate(context.Background(), id).WritableInterfaceTemplateRequest(writableInterfaceTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInterfaceTemplatesUpdate`: InterfaceTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesUpdate`: %v\n", resp)
}
```
@@ -11600,22 +11798,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", "Type_example")} // []InterfaceRequest |
+ interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimInterfacesBulkDestroy(context.Background()).InterfaceRequest(interfaceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimInterfacesBulkDestroy(context.Background()).InterfaceRequest(interfaceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -11664,24 +11862,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", "Type_example")} // []InterfaceRequest |
+ interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfacesBulkPartialUpdate(context.Background()).InterfaceRequest(interfaceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfacesBulkPartialUpdate`: []Interface
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfacesBulkPartialUpdate(context.Background()).InterfaceRequest(interfaceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInterfacesBulkPartialUpdate`: []Interface
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -11730,24 +11928,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", "Type_example")} // []InterfaceRequest |
+ interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfacesBulkUpdate(context.Background()).InterfaceRequest(interfaceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfacesBulkUpdate`: []Interface
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfacesBulkUpdate(context.Background()).InterfaceRequest(interfaceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInterfacesBulkUpdate`: []Interface
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesBulkUpdate`: %v\n", resp)
}
```
@@ -11796,24 +11994,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(int32(123), []int32{int32(123)}, "Name_example", "Type_example") // WritableInterfaceRequest |
+ writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(int32(123), []int32{int32(123)}, "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfacesCreate(context.Background()).WritableInterfaceRequest(writableInterfaceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfacesCreate`: Interface
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfacesCreate(context.Background()).WritableInterfaceRequest(writableInterfaceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInterfacesCreate`: Interface
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesCreate`: %v\n", resp)
}
```
@@ -11862,22 +12060,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this interface.
+ id := int32(56) // int32 | A unique integer value identifying this interface.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimInterfacesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimInterfacesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -11930,230 +12128,230 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- cabled := true // bool | (optional)
- connected := true // bool | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- 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)
- deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- duplex := []*string{"Inner_example"} // []*string | (optional)
- duplexN := []*string{"Inner_example"} // []*string | (optional)
- enabled := true // bool | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- kind := "kind_example" // string | Kind of interface (optional)
- l2vpn := []*int64{int64(123)} // []*int64 | L2VPN (optional)
- l2vpnN := []*int64{int64(123)} // []*int64 | L2VPN (optional)
- l2vpnId := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
- l2vpnIdN := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
- label := []string{"Inner_example"} // []string | (optional)
- labelEmpty := true // bool | (optional)
- labelIc := []string{"Inner_example"} // []string | (optional)
- labelIe := []string{"Inner_example"} // []string | (optional)
- labelIew := []string{"Inner_example"} // []string | (optional)
- labelIsw := []string{"Inner_example"} // []string | (optional)
- labelN := []string{"Inner_example"} // []string | (optional)
- labelNic := []string{"Inner_example"} // []string | (optional)
- labelNie := []string{"Inner_example"} // []string | (optional)
- labelNiew := []string{"Inner_example"} // []string | (optional)
- labelNisw := []string{"Inner_example"} // []string | (optional)
- lagId := []int32{int32(123)} // []int32 | LAG interface (ID) (optional)
- lagIdN := []int32{int32(123)} // []int32 | LAG interface (ID) (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- location := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- macAddress := []string{"Inner_example"} // []string | (optional)
- macAddressIc := []string{"Inner_example"} // []string | (optional)
- macAddressIe := []string{"Inner_example"} // []string | (optional)
- macAddressIew := []string{"Inner_example"} // []string | (optional)
- macAddressIsw := []string{"Inner_example"} // []string | (optional)
- macAddressN := []string{"Inner_example"} // []string | (optional)
- macAddressNic := []string{"Inner_example"} // []string | (optional)
- macAddressNie := []string{"Inner_example"} // []string | (optional)
- macAddressNiew := []string{"Inner_example"} // []string | (optional)
- macAddressNisw := []string{"Inner_example"} // []string | (optional)
- mgmtOnly := true // bool | (optional)
- mode := "mode_example" // string | IEEE 802.1Q tagging strategy (optional)
- modeN := "modeN_example" // string | IEEE 802.1Q tagging strategy (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- mtu := []int32{int32(123)} // []int32 | (optional)
- mtuEmpty := true // bool | (optional)
- mtuGt := []int32{int32(123)} // []int32 | (optional)
- mtuGte := []int32{int32(123)} // []int32 | (optional)
- mtuLt := []int32{int32(123)} // []int32 | (optional)
- mtuLte := []int32{int32(123)} // []int32 | (optional)
- mtuN := []int32{int32(123)} // []int32 | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- occupied := true // bool | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- parentId := []int32{int32(123)} // []int32 | Parent interface (ID) (optional)
- parentIdN := []int32{int32(123)} // []int32 | Parent interface (ID) (optional)
- poeMode := []string{"Inner_example"} // []string | (optional)
- poeModeN := []string{"Inner_example"} // []string | (optional)
- poeType := []string{"Inner_example"} // []string | (optional)
- poeTypeN := []string{"Inner_example"} // []string | (optional)
- q := "q_example" // string | Search (optional)
- rack := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- rfChannel := []string{"Inner_example"} // []string | (optional)
- rfChannelN := []string{"Inner_example"} // []string | (optional)
- rfChannelFrequency := []float64{float64(123)} // []float64 | (optional)
- rfChannelFrequencyEmpty := true // bool | (optional)
- rfChannelFrequencyGt := []float64{float64(123)} // []float64 | (optional)
- rfChannelFrequencyGte := []float64{float64(123)} // []float64 | (optional)
- rfChannelFrequencyLt := []float64{float64(123)} // []float64 | (optional)
- rfChannelFrequencyLte := []float64{float64(123)} // []float64 | (optional)
- rfChannelFrequencyN := []float64{float64(123)} // []float64 | (optional)
- rfChannelWidth := []float64{float64(123)} // []float64 | (optional)
- rfChannelWidthEmpty := true // bool | (optional)
- rfChannelWidthGt := []float64{float64(123)} // []float64 | (optional)
- rfChannelWidthGte := []float64{float64(123)} // []float64 | (optional)
- rfChannelWidthLt := []float64{float64(123)} // []float64 | (optional)
- rfChannelWidthLte := []float64{float64(123)} // []float64 | (optional)
- rfChannelWidthN := []float64{float64(123)} // []float64 | (optional)
- rfRole := []string{"Inner_example"} // []string | (optional)
- rfRoleN := []string{"Inner_example"} // []string | (optional)
- role := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- speed := []int32{int32(123)} // []int32 | (optional)
- speedEmpty := []int32{int32(123)} // []int32 | (optional)
- speedGt := []int32{int32(123)} // []int32 | (optional)
- speedGte := []int32{int32(123)} // []int32 | (optional)
- speedLt := []int32{int32(123)} // []int32 | (optional)
- speedLte := []int32{int32(123)} // []int32 | (optional)
- speedN := []int32{int32(123)} // []int32 | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- txPower := []int32{int32(123)} // []int32 | (optional)
- txPowerEmpty := true // bool | (optional)
- txPowerGt := []int32{int32(123)} // []int32 | (optional)
- txPowerGte := []int32{int32(123)} // []int32 | (optional)
- txPowerLt := []int32{int32(123)} // []int32 | (optional)
- txPowerLte := []int32{int32(123)} // []int32 | (optional)
- txPowerN := []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)
- vdc := []string{"Inner_example"} // []string | Virtual Device Context (optional)
- vdcN := []string{"Inner_example"} // []string | Virtual Device Context (optional)
- vdcId := []int32{int32(123)} // []int32 | Virtual Device Context (optional)
- vdcIdN := []int32{int32(123)} // []int32 | Virtual Device Context (optional)
- vdcIdentifier := []*int32{int32(123)} // []*int32 | Virtual Device Context (Identifier) (optional)
- vdcIdentifierN := []*int32{int32(123)} // []*int32 | Virtual Device Context (Identifier) (optional)
- virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
- virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
- virtualChassisMember := []string{"Inner_example"} // []string | (optional)
- virtualChassisMemberId := []int32{int32(123)} // []int32 | (optional)
- vlan := "vlan_example" // string | Assigned VID (optional)
- vlanId := "vlanId_example" // string | Assigned VLAN (optional)
- vrf := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
- vrfN := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
- vrfId := []int32{int32(123)} // []int32 | VRF (optional)
- vrfIdN := []int32{int32(123)} // []int32 | VRF (optional)
- wwn := []string{"Inner_example"} // []string | (optional)
- wwnIc := []string{"Inner_example"} // []string | (optional)
- wwnIe := []string{"Inner_example"} // []string | (optional)
- wwnIew := []string{"Inner_example"} // []string | (optional)
- wwnIsw := []string{"Inner_example"} // []string | (optional)
- wwnN := []string{"Inner_example"} // []string | (optional)
- wwnNic := []string{"Inner_example"} // []string | (optional)
- wwnNie := []string{"Inner_example"} // []string | (optional)
- wwnNiew := []string{"Inner_example"} // []string | (optional)
- wwnNisw := []string{"Inner_example"} // []string | (optional)
-
- 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()
- 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)
- }
- // response from `DcimInterfacesList`: PaginatedInterfaceList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ cabled := true // bool | (optional)
+ connected := true // bool | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ 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)
+ deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ duplex := []*string{"Inner_example"} // []*string | (optional)
+ duplexN := []*string{"Inner_example"} // []*string | (optional)
+ enabled := true // bool | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ kind := "kind_example" // string | Kind of interface (optional)
+ l2vpn := []*int64{int64(123)} // []*int64 | L2VPN (optional)
+ l2vpnN := []*int64{int64(123)} // []*int64 | L2VPN (optional)
+ l2vpnId := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
+ l2vpnIdN := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
+ label := []string{"Inner_example"} // []string | (optional)
+ labelEmpty := true // bool | (optional)
+ labelIc := []string{"Inner_example"} // []string | (optional)
+ labelIe := []string{"Inner_example"} // []string | (optional)
+ labelIew := []string{"Inner_example"} // []string | (optional)
+ labelIsw := []string{"Inner_example"} // []string | (optional)
+ labelN := []string{"Inner_example"} // []string | (optional)
+ labelNic := []string{"Inner_example"} // []string | (optional)
+ labelNie := []string{"Inner_example"} // []string | (optional)
+ labelNiew := []string{"Inner_example"} // []string | (optional)
+ labelNisw := []string{"Inner_example"} // []string | (optional)
+ lagId := []int32{int32(123)} // []int32 | LAG interface (ID) (optional)
+ lagIdN := []int32{int32(123)} // []int32 | LAG interface (ID) (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ location := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ macAddress := []string{"Inner_example"} // []string | (optional)
+ macAddressIc := []string{"Inner_example"} // []string | (optional)
+ macAddressIe := []string{"Inner_example"} // []string | (optional)
+ macAddressIew := []string{"Inner_example"} // []string | (optional)
+ macAddressIsw := []string{"Inner_example"} // []string | (optional)
+ macAddressN := []string{"Inner_example"} // []string | (optional)
+ macAddressNic := []string{"Inner_example"} // []string | (optional)
+ macAddressNie := []string{"Inner_example"} // []string | (optional)
+ macAddressNiew := []string{"Inner_example"} // []string | (optional)
+ macAddressNisw := []string{"Inner_example"} // []string | (optional)
+ mgmtOnly := true // bool | (optional)
+ mode := "mode_example" // string | IEEE 802.1Q tagging strategy (optional)
+ modeN := "modeN_example" // string | IEEE 802.1Q tagging strategy (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ mtu := []int32{int32(123)} // []int32 | (optional)
+ mtuEmpty := true // bool | (optional)
+ mtuGt := []int32{int32(123)} // []int32 | (optional)
+ mtuGte := []int32{int32(123)} // []int32 | (optional)
+ mtuLt := []int32{int32(123)} // []int32 | (optional)
+ mtuLte := []int32{int32(123)} // []int32 | (optional)
+ mtuN := []int32{int32(123)} // []int32 | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ occupied := true // bool | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ parentId := []int32{int32(123)} // []int32 | Parent interface (ID) (optional)
+ parentIdN := []int32{int32(123)} // []int32 | Parent interface (ID) (optional)
+ poeMode := []string{"Inner_example"} // []string | (optional)
+ poeModeN := []string{"Inner_example"} // []string | (optional)
+ poeType := []string{"Inner_example"} // []string | (optional)
+ poeTypeN := []string{"Inner_example"} // []string | (optional)
+ q := "q_example" // string | Search (optional)
+ rack := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ rfChannel := []string{"Inner_example"} // []string | (optional)
+ rfChannelN := []string{"Inner_example"} // []string | (optional)
+ rfChannelFrequency := []float64{float64(123)} // []float64 | (optional)
+ rfChannelFrequencyEmpty := true // bool | (optional)
+ rfChannelFrequencyGt := []float64{float64(123)} // []float64 | (optional)
+ rfChannelFrequencyGte := []float64{float64(123)} // []float64 | (optional)
+ rfChannelFrequencyLt := []float64{float64(123)} // []float64 | (optional)
+ rfChannelFrequencyLte := []float64{float64(123)} // []float64 | (optional)
+ rfChannelFrequencyN := []float64{float64(123)} // []float64 | (optional)
+ rfChannelWidth := []float64{float64(123)} // []float64 | (optional)
+ rfChannelWidthEmpty := true // bool | (optional)
+ rfChannelWidthGt := []float64{float64(123)} // []float64 | (optional)
+ rfChannelWidthGte := []float64{float64(123)} // []float64 | (optional)
+ rfChannelWidthLt := []float64{float64(123)} // []float64 | (optional)
+ rfChannelWidthLte := []float64{float64(123)} // []float64 | (optional)
+ rfChannelWidthN := []float64{float64(123)} // []float64 | (optional)
+ rfRole := []string{"Inner_example"} // []string | (optional)
+ rfRoleN := []string{"Inner_example"} // []string | (optional)
+ role := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ speed := []int32{int32(123)} // []int32 | (optional)
+ speedEmpty := []int32{int32(123)} // []int32 | (optional)
+ speedGt := []int32{int32(123)} // []int32 | (optional)
+ speedGte := []int32{int32(123)} // []int32 | (optional)
+ speedLt := []int32{int32(123)} // []int32 | (optional)
+ speedLte := []int32{int32(123)} // []int32 | (optional)
+ speedN := []int32{int32(123)} // []int32 | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ txPower := []int32{int32(123)} // []int32 | (optional)
+ txPowerEmpty := true // bool | (optional)
+ txPowerGt := []int32{int32(123)} // []int32 | (optional)
+ txPowerGte := []int32{int32(123)} // []int32 | (optional)
+ txPowerLt := []int32{int32(123)} // []int32 | (optional)
+ txPowerLte := []int32{int32(123)} // []int32 | (optional)
+ txPowerN := []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)
+ vdc := []string{"Inner_example"} // []string | Virtual Device Context (optional)
+ vdcN := []string{"Inner_example"} // []string | Virtual Device Context (optional)
+ vdcId := []int32{int32(123)} // []int32 | Virtual Device Context (optional)
+ vdcIdN := []int32{int32(123)} // []int32 | Virtual Device Context (optional)
+ vdcIdentifier := []*int32{int32(123)} // []*int32 | Virtual Device Context (Identifier) (optional)
+ vdcIdentifierN := []*int32{int32(123)} // []*int32 | Virtual Device Context (Identifier) (optional)
+ virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+ virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+ virtualChassisMember := []string{"Inner_example"} // []string | (optional)
+ virtualChassisMemberId := []int32{int32(123)} // []int32 | (optional)
+ vlan := "vlan_example" // string | Assigned VID (optional)
+ vlanId := "vlanId_example" // string | Assigned VLAN (optional)
+ vrf := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
+ vrfN := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
+ vrfId := []int32{int32(123)} // []int32 | VRF (optional)
+ vrfIdN := []int32{int32(123)} // []int32 | VRF (optional)
+ wwn := []string{"Inner_example"} // []string | (optional)
+ wwnIc := []string{"Inner_example"} // []string | (optional)
+ wwnIe := []string{"Inner_example"} // []string | (optional)
+ wwnIew := []string{"Inner_example"} // []string | (optional)
+ wwnIsw := []string{"Inner_example"} // []string | (optional)
+ wwnN := []string{"Inner_example"} // []string | (optional)
+ wwnNic := []string{"Inner_example"} // []string | (optional)
+ wwnNie := []string{"Inner_example"} // []string | (optional)
+ wwnNiew := []string{"Inner_example"} // []string | (optional)
+ wwnNisw := []string{"Inner_example"} // []string | (optional)
+
+ 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()
+ 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)
+ }
+ // response from `DcimInterfacesList`: PaginatedInterfaceList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesList`: %v\n", resp)
}
```
@@ -12407,25 +12605,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this interface.
- patchedWritableInterfaceRequest := *openapiclient.NewPatchedWritableInterfaceRequest() // PatchedWritableInterfaceRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this interface.
+ patchedWritableInterfaceRequest := *openapiclient.NewPatchedWritableInterfaceRequest() // PatchedWritableInterfaceRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfacesPartialUpdate(context.Background(), id).PatchedWritableInterfaceRequest(patchedWritableInterfaceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfacesPartialUpdate`: Interface
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfacesPartialUpdate(context.Background(), id).PatchedWritableInterfaceRequest(patchedWritableInterfaceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInterfacesPartialUpdate`: Interface
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesPartialUpdate`: %v\n", resp)
}
```
@@ -12479,24 +12677,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this interface.
+ id := int32(56) // int32 | A unique integer value identifying this interface.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfacesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfacesRetrieve`: Interface
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfacesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInterfacesRetrieve`: Interface
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesRetrieve`: %v\n", resp)
}
```
@@ -12549,24 +12747,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this interface.
+ id := int32(56) // int32 | A unique integer value identifying this interface.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfacesTraceRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesTraceRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfacesTraceRetrieve`: Interface
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesTraceRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfacesTraceRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesTraceRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInterfacesTraceRetrieve`: Interface
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesTraceRetrieve`: %v\n", resp)
}
```
@@ -12619,25 +12817,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this interface.
- writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(int32(123), []int32{int32(123)}, "Name_example", "Type_example") // WritableInterfaceRequest |
+ 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 |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInterfacesUpdate(context.Background(), id).WritableInterfaceRequest(writableInterfaceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInterfacesUpdate`: Interface
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInterfacesUpdate(context.Background(), id).WritableInterfaceRequest(writableInterfaceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInterfacesUpdate`: Interface
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesUpdate`: %v\n", resp)
}
```
@@ -12691,22 +12889,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- inventoryItemRoleRequest := []openapiclient.InventoryItemRoleRequest{*openapiclient.NewInventoryItemRoleRequest("Name_example", "Slug_example")} // []InventoryItemRoleRequest |
+ inventoryItemRoleRequest := []openapiclient.InventoryItemRoleRequest{*openapiclient.NewInventoryItemRoleRequest("Name_example", "Slug_example")} // []InventoryItemRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkDestroy(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkDestroy(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -12755,24 +12953,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- inventoryItemRoleRequest := []openapiclient.InventoryItemRoleRequest{*openapiclient.NewInventoryItemRoleRequest("Name_example", "Slug_example")} // []InventoryItemRoleRequest |
+ inventoryItemRoleRequest := []openapiclient.InventoryItemRoleRequest{*openapiclient.NewInventoryItemRoleRequest("Name_example", "Slug_example")} // []InventoryItemRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkPartialUpdate(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemRolesBulkPartialUpdate`: []InventoryItemRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkPartialUpdate(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemRolesBulkPartialUpdate`: []InventoryItemRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -12821,24 +13019,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- inventoryItemRoleRequest := []openapiclient.InventoryItemRoleRequest{*openapiclient.NewInventoryItemRoleRequest("Name_example", "Slug_example")} // []InventoryItemRoleRequest |
+ inventoryItemRoleRequest := []openapiclient.InventoryItemRoleRequest{*openapiclient.NewInventoryItemRoleRequest("Name_example", "Slug_example")} // []InventoryItemRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkUpdate(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemRolesBulkUpdate`: []InventoryItemRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkUpdate(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemRolesBulkUpdate`: []InventoryItemRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesBulkUpdate`: %v\n", resp)
}
```
@@ -12887,24 +13085,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- inventoryItemRoleRequest := *openapiclient.NewInventoryItemRoleRequest("Name_example", "Slug_example") // InventoryItemRoleRequest |
+ inventoryItemRoleRequest := *openapiclient.NewInventoryItemRoleRequest("Name_example", "Slug_example") // InventoryItemRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesCreate(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemRolesCreate`: InventoryItemRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesCreate(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemRolesCreate`: InventoryItemRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesCreate`: %v\n", resp)
}
```
@@ -12953,22 +13151,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this inventory item role.
+ id := int32(56) // int32 | A unique integer value identifying this inventory item role.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimInventoryItemRolesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimInventoryItemRolesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -13009,7 +13207,7 @@ Name | Type | Description | Notes
## DcimInventoryItemRolesList
-> PaginatedInventoryItemRoleList DcimInventoryItemRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedInventoryItemRoleList DcimInventoryItemRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).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()
@@ -13021,87 +13219,98 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- color := []string{"Inner_example"} // []string | (optional)
- colorEmpty := true // bool | (optional)
- colorIc := []string{"Inner_example"} // []string | (optional)
- colorIe := []string{"Inner_example"} // []string | (optional)
- colorIew := []string{"Inner_example"} // []string | (optional)
- colorIsw := []string{"Inner_example"} // []string | (optional)
- colorN := []string{"Inner_example"} // []string | (optional)
- colorNic := []string{"Inner_example"} // []string | (optional)
- colorNie := []string{"Inner_example"} // []string | (optional)
- colorNiew := []string{"Inner_example"} // []string | (optional)
- colorNisw := []string{"Inner_example"} // []string | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemRolesList`: PaginatedInventoryItemRoleList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ color := []string{"Inner_example"} // []string | (optional)
+ colorEmpty := true // bool | (optional)
+ colorIc := []string{"Inner_example"} // []string | (optional)
+ colorIe := []string{"Inner_example"} // []string | (optional)
+ colorIew := []string{"Inner_example"} // []string | (optional)
+ colorIsw := []string{"Inner_example"} // []string | (optional)
+ colorN := []string{"Inner_example"} // []string | (optional)
+ colorNic := []string{"Inner_example"} // []string | (optional)
+ colorNie := []string{"Inner_example"} // []string | (optional)
+ colorNiew := []string{"Inner_example"} // []string | (optional)
+ colorNisw := []string{"Inner_example"} // []string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemRolesList`: PaginatedInventoryItemRoleList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesList`: %v\n", resp)
}
```
@@ -13135,6 +13344,17 @@ 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** | |
**id** | **[]int32** | |
**idEmpty** | **bool** | |
**idGt** | **[]int32** | |
@@ -13212,25 +13432,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this inventory item role.
- patchedInventoryItemRoleRequest := *openapiclient.NewPatchedInventoryItemRoleRequest() // PatchedInventoryItemRoleRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this inventory item role.
+ patchedInventoryItemRoleRequest := *openapiclient.NewPatchedInventoryItemRoleRequest() // PatchedInventoryItemRoleRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesPartialUpdate(context.Background(), id).PatchedInventoryItemRoleRequest(patchedInventoryItemRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemRolesPartialUpdate`: InventoryItemRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesPartialUpdate(context.Background(), id).PatchedInventoryItemRoleRequest(patchedInventoryItemRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemRolesPartialUpdate`: InventoryItemRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesPartialUpdate`: %v\n", resp)
}
```
@@ -13284,24 +13504,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this inventory item role.
+ id := int32(56) // int32 | A unique integer value identifying this inventory item role.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemRolesRetrieve`: InventoryItemRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemRolesRetrieve`: InventoryItemRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesRetrieve`: %v\n", resp)
}
```
@@ -13354,25 +13574,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this inventory item role.
- inventoryItemRoleRequest := *openapiclient.NewInventoryItemRoleRequest("Name_example", "Slug_example") // InventoryItemRoleRequest |
+ id := int32(56) // int32 | A unique integer value identifying this inventory item role.
+ inventoryItemRoleRequest := *openapiclient.NewInventoryItemRoleRequest("Name_example", "Slug_example") // InventoryItemRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesUpdate(context.Background(), id).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemRolesUpdate`: InventoryItemRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesUpdate(context.Background(), id).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemRolesUpdate`: InventoryItemRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesUpdate`: %v\n", resp)
}
```
@@ -13426,22 +13646,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest |
+ inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkDestroy(context.Background()).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkDestroy(context.Background()).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -13490,24 +13710,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest |
+ inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkPartialUpdate(context.Background()).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemTemplatesBulkPartialUpdate`: []InventoryItemTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkPartialUpdate(context.Background()).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemTemplatesBulkPartialUpdate`: []InventoryItemTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -13556,24 +13776,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest |
+ inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkUpdate(context.Background()).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemTemplatesBulkUpdate`: []InventoryItemTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkUpdate(context.Background()).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemTemplatesBulkUpdate`: []InventoryItemTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesBulkUpdate`: %v\n", resp)
}
```
@@ -13622,24 +13842,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableInventoryItemTemplateRequest := *openapiclient.NewWritableInventoryItemTemplateRequest(int32(123), "Name_example") // WritableInventoryItemTemplateRequest |
+ writableInventoryItemTemplateRequest := *openapiclient.NewWritableInventoryItemTemplateRequest(int32(123), "Name_example") // WritableInventoryItemTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesCreate(context.Background()).WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemTemplatesCreate`: InventoryItemTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesCreate(context.Background()).WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemTemplatesCreate`: InventoryItemTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesCreate`: %v\n", resp)
}
```
@@ -13688,22 +13908,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this inventory item template.
+ id := int32(56) // int32 | A unique integer value identifying this inventory item template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -13744,7 +13964,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).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedInventoryItemTemplateList DcimInventoryItemTemplatesList(ctx).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute()
@@ -13756,106 +13976,117 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- componentId := []int32{int32(123)} // []int32 | (optional)
- componentIdEmpty := []int32{int32(123)} // []int32 | (optional)
- componentIdGt := []int32{int32(123)} // []int32 | (optional)
- componentIdGte := []int32{int32(123)} // []int32 | (optional)
- componentIdLt := []int32{int32(123)} // []int32 | (optional)
- componentIdLte := []int32{int32(123)} // []int32 | (optional)
- componentIdN := []int32{int32(123)} // []int32 | (optional)
- componentType := "componentType_example" // string | (optional)
- componentTypeN := "componentTypeN_example" // string | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- 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)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerId := []*int32{int32(123)} // []*int32 | Manufacturer (ID) (optional)
- manufacturerIdN := []*int32{int32(123)} // []*int32 | Manufacturer (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- parentId := []*int32{int32(123)} // []*int32 | Parent inventory item (ID) (optional)
- parentIdN := []*int32{int32(123)} // []*int32 | Parent inventory item (ID) (optional)
- partId := []string{"Inner_example"} // []string | (optional)
- partIdEmpty := true // bool | (optional)
- partIdIc := []string{"Inner_example"} // []string | (optional)
- partIdIe := []string{"Inner_example"} // []string | (optional)
- partIdIew := []string{"Inner_example"} // []string | (optional)
- partIdIsw := []string{"Inner_example"} // []string | (optional)
- partIdN := []string{"Inner_example"} // []string | (optional)
- partIdNic := []string{"Inner_example"} // []string | (optional)
- partIdNie := []string{"Inner_example"} // []string | (optional)
- partIdNiew := []string{"Inner_example"} // []string | (optional)
- partIdNisw := []string{"Inner_example"} // []string | (optional)
- q := "q_example" // string | Search (optional)
- role := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
- roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- 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).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)
- }
- // response from `DcimInventoryItemTemplatesList`: PaginatedInventoryItemTemplateList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ componentId := []int32{int32(123)} // []int32 | (optional)
+ componentIdEmpty := []int32{int32(123)} // []int32 | (optional)
+ componentIdGt := []int32{int32(123)} // []int32 | (optional)
+ componentIdGte := []int32{int32(123)} // []int32 | (optional)
+ componentIdLt := []int32{int32(123)} // []int32 | (optional)
+ componentIdLte := []int32{int32(123)} // []int32 | (optional)
+ componentIdN := []int32{int32(123)} // []int32 | (optional)
+ componentType := "componentType_example" // string | (optional)
+ componentTypeN := "componentTypeN_example" // string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ 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)
+ manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerId := []*int32{int32(123)} // []*int32 | Manufacturer (ID) (optional)
+ manufacturerIdN := []*int32{int32(123)} // []*int32 | Manufacturer (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ parentId := []*int32{int32(123)} // []*int32 | Parent inventory item (ID) (optional)
+ parentIdN := []*int32{int32(123)} // []*int32 | Parent inventory item (ID) (optional)
+ partId := []string{"Inner_example"} // []string | (optional)
+ partIdEmpty := true // bool | (optional)
+ partIdIc := []string{"Inner_example"} // []string | (optional)
+ partIdIe := []string{"Inner_example"} // []string | (optional)
+ partIdIew := []string{"Inner_example"} // []string | (optional)
+ partIdIsw := []string{"Inner_example"} // []string | (optional)
+ partIdN := []string{"Inner_example"} // []string | (optional)
+ partIdNic := []string{"Inner_example"} // []string | (optional)
+ partIdNie := []string{"Inner_example"} // []string | (optional)
+ partIdNiew := []string{"Inner_example"} // []string | (optional)
+ partIdNisw := []string{"Inner_example"} // []string | (optional)
+ q := "q_example" // string | Search (optional)
+ role := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
+ roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ 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()
+ 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)
+ }
+ // response from `DcimInventoryItemTemplatesList`: PaginatedInventoryItemTemplateList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesList`: %v\n", resp)
}
```
@@ -13887,6 +14118,17 @@ 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** | |
**devicetypeId** | **[]int32** | Device type (ID) |
**devicetypeIdN** | **[]int32** | Device type (ID) |
**id** | **[]int32** | |
@@ -13985,25 +14227,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this inventory item template.
- patchedWritableInventoryItemTemplateRequest := *openapiclient.NewPatchedWritableInventoryItemTemplateRequest() // PatchedWritableInventoryItemTemplateRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this inventory item template.
+ patchedWritableInventoryItemTemplateRequest := *openapiclient.NewPatchedWritableInventoryItemTemplateRequest() // PatchedWritableInventoryItemTemplateRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesPartialUpdate(context.Background(), id).PatchedWritableInventoryItemTemplateRequest(patchedWritableInventoryItemTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemTemplatesPartialUpdate`: InventoryItemTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesPartialUpdate(context.Background(), id).PatchedWritableInventoryItemTemplateRequest(patchedWritableInventoryItemTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemTemplatesPartialUpdate`: InventoryItemTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesPartialUpdate`: %v\n", resp)
}
```
@@ -14057,24 +14299,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this inventory item template.
+ id := int32(56) // int32 | A unique integer value identifying this inventory item template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemTemplatesRetrieve`: InventoryItemTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemTemplatesRetrieve`: InventoryItemTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesRetrieve`: %v\n", resp)
}
```
@@ -14127,25 +14369,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this inventory item template.
- writableInventoryItemTemplateRequest := *openapiclient.NewWritableInventoryItemTemplateRequest(int32(123), "Name_example") // WritableInventoryItemTemplateRequest |
+ id := int32(56) // int32 | A unique integer value identifying this inventory item template.
+ writableInventoryItemTemplateRequest := *openapiclient.NewWritableInventoryItemTemplateRequest(int32(123), "Name_example") // WritableInventoryItemTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesUpdate(context.Background(), id).WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemTemplatesUpdate`: InventoryItemTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesUpdate(context.Background(), id).WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemTemplatesUpdate`: InventoryItemTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesUpdate`: %v\n", resp)
}
```
@@ -14199,22 +14441,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []InventoryItemRequest |
+ inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []InventoryItemRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimInventoryItemsBulkDestroy(context.Background()).InventoryItemRequest(inventoryItemRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimInventoryItemsBulkDestroy(context.Background()).InventoryItemRequest(inventoryItemRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -14263,24 +14505,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []InventoryItemRequest |
+ inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []InventoryItemRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemsBulkPartialUpdate(context.Background()).InventoryItemRequest(inventoryItemRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemsBulkPartialUpdate`: []InventoryItem
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemsBulkPartialUpdate(context.Background()).InventoryItemRequest(inventoryItemRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemsBulkPartialUpdate`: []InventoryItem
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -14329,24 +14571,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []InventoryItemRequest |
+ inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []InventoryItemRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemsBulkUpdate(context.Background()).InventoryItemRequest(inventoryItemRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemsBulkUpdate`: []InventoryItem
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemsBulkUpdate(context.Background()).InventoryItemRequest(inventoryItemRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemsBulkUpdate`: []InventoryItem
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsBulkUpdate`: %v\n", resp)
}
```
@@ -14395,24 +14637,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableInventoryItemRequest := *openapiclient.NewWritableInventoryItemRequest(int32(123), "Name_example") // WritableInventoryItemRequest |
+ writableInventoryItemRequest := *openapiclient.NewWritableInventoryItemRequest(int32(123), "Name_example") // WritableInventoryItemRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemsCreate(context.Background()).WritableInventoryItemRequest(writableInventoryItemRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemsCreate`: InventoryItem
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemsCreate(context.Background()).WritableInventoryItemRequest(writableInventoryItemRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemsCreate`: InventoryItem
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsCreate`: %v\n", resp)
}
```
@@ -14461,22 +14703,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this inventory item.
+ id := int32(56) // int32 | A unique integer value identifying this inventory item.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimInventoryItemsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimInventoryItemsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -14529,165 +14771,165 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- assetTag := []string{"Inner_example"} // []string | (optional)
- assetTagEmpty := true // bool | (optional)
- assetTagIc := []string{"Inner_example"} // []string | (optional)
- assetTagIe := []string{"Inner_example"} // []string | (optional)
- assetTagIew := []string{"Inner_example"} // []string | (optional)
- assetTagIsw := []string{"Inner_example"} // []string | (optional)
- assetTagN := []string{"Inner_example"} // []string | (optional)
- assetTagNic := []string{"Inner_example"} // []string | (optional)
- assetTagNie := []string{"Inner_example"} // []string | (optional)
- assetTagNiew := []string{"Inner_example"} // []string | (optional)
- assetTagNisw := []string{"Inner_example"} // []string | (optional)
- componentId := []int32{int32(123)} // []int32 | (optional)
- componentIdEmpty := []int32{int32(123)} // []int32 | (optional)
- componentIdGt := []int32{int32(123)} // []int32 | (optional)
- componentIdGte := []int32{int32(123)} // []int32 | (optional)
- componentIdLt := []int32{int32(123)} // []int32 | (optional)
- componentIdLte := []int32{int32(123)} // []int32 | (optional)
- componentIdN := []int32{int32(123)} // []int32 | (optional)
- componentType := "componentType_example" // string | (optional)
- componentTypeN := "componentTypeN_example" // string | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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)
- deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- discovered := true // bool | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- 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)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- location := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerId := []*int32{int32(123)} // []*int32 | Manufacturer (ID) (optional)
- manufacturerIdN := []*int32{int32(123)} // []*int32 | Manufacturer (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- parentId := []*int32{int32(123)} // []*int32 | Parent inventory item (ID) (optional)
- parentIdN := []*int32{int32(123)} // []*int32 | Parent inventory item (ID) (optional)
- partId := []string{"Inner_example"} // []string | (optional)
- partIdEmpty := true // bool | (optional)
- partIdIc := []string{"Inner_example"} // []string | (optional)
- partIdIe := []string{"Inner_example"} // []string | (optional)
- partIdIew := []string{"Inner_example"} // []string | (optional)
- partIdIsw := []string{"Inner_example"} // []string | (optional)
- partIdN := []string{"Inner_example"} // []string | (optional)
- partIdNic := []string{"Inner_example"} // []string | (optional)
- partIdNie := []string{"Inner_example"} // []string | (optional)
- partIdNiew := []string{"Inner_example"} // []string | (optional)
- partIdNisw := []string{"Inner_example"} // []string | (optional)
- q := "q_example" // string | Search (optional)
- rack := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
- roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
- serial := []string{"Inner_example"} // []string | (optional)
- serialEmpty := true // bool | (optional)
- serialIc := []string{"Inner_example"} // []string | (optional)
- serialIe := []string{"Inner_example"} // []string | (optional)
- serialIew := []string{"Inner_example"} // []string | (optional)
- serialIsw := []string{"Inner_example"} // []string | (optional)
- serialN := []string{"Inner_example"} // []string | (optional)
- serialNic := []string{"Inner_example"} // []string | (optional)
- serialNie := []string{"Inner_example"} // []string | (optional)
- serialNiew := []string{"Inner_example"} // []string | (optional)
- serialNisw := []string{"Inner_example"} // []string | (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
- virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemsList`: PaginatedInventoryItemList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ assetTag := []string{"Inner_example"} // []string | (optional)
+ assetTagEmpty := true // bool | (optional)
+ assetTagIc := []string{"Inner_example"} // []string | (optional)
+ assetTagIe := []string{"Inner_example"} // []string | (optional)
+ assetTagIew := []string{"Inner_example"} // []string | (optional)
+ assetTagIsw := []string{"Inner_example"} // []string | (optional)
+ assetTagN := []string{"Inner_example"} // []string | (optional)
+ assetTagNic := []string{"Inner_example"} // []string | (optional)
+ assetTagNie := []string{"Inner_example"} // []string | (optional)
+ assetTagNiew := []string{"Inner_example"} // []string | (optional)
+ assetTagNisw := []string{"Inner_example"} // []string | (optional)
+ componentId := []int32{int32(123)} // []int32 | (optional)
+ componentIdEmpty := []int32{int32(123)} // []int32 | (optional)
+ componentIdGt := []int32{int32(123)} // []int32 | (optional)
+ componentIdGte := []int32{int32(123)} // []int32 | (optional)
+ componentIdLt := []int32{int32(123)} // []int32 | (optional)
+ componentIdLte := []int32{int32(123)} // []int32 | (optional)
+ componentIdN := []int32{int32(123)} // []int32 | (optional)
+ componentType := "componentType_example" // string | (optional)
+ componentTypeN := "componentTypeN_example" // string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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)
+ deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ discovered := true // bool | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ 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)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ location := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerId := []*int32{int32(123)} // []*int32 | Manufacturer (ID) (optional)
+ manufacturerIdN := []*int32{int32(123)} // []*int32 | Manufacturer (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ parentId := []*int32{int32(123)} // []*int32 | Parent inventory item (ID) (optional)
+ parentIdN := []*int32{int32(123)} // []*int32 | Parent inventory item (ID) (optional)
+ partId := []string{"Inner_example"} // []string | (optional)
+ partIdEmpty := true // bool | (optional)
+ partIdIc := []string{"Inner_example"} // []string | (optional)
+ partIdIe := []string{"Inner_example"} // []string | (optional)
+ partIdIew := []string{"Inner_example"} // []string | (optional)
+ partIdIsw := []string{"Inner_example"} // []string | (optional)
+ partIdN := []string{"Inner_example"} // []string | (optional)
+ partIdNic := []string{"Inner_example"} // []string | (optional)
+ partIdNie := []string{"Inner_example"} // []string | (optional)
+ partIdNiew := []string{"Inner_example"} // []string | (optional)
+ partIdNisw := []string{"Inner_example"} // []string | (optional)
+ q := "q_example" // string | Search (optional)
+ rack := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
+ roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
+ serial := []string{"Inner_example"} // []string | (optional)
+ serialEmpty := true // bool | (optional)
+ serialIc := []string{"Inner_example"} // []string | (optional)
+ serialIe := []string{"Inner_example"} // []string | (optional)
+ serialIew := []string{"Inner_example"} // []string | (optional)
+ serialIsw := []string{"Inner_example"} // []string | (optional)
+ serialN := []string{"Inner_example"} // []string | (optional)
+ serialNic := []string{"Inner_example"} // []string | (optional)
+ serialNie := []string{"Inner_example"} // []string | (optional)
+ serialNiew := []string{"Inner_example"} // []string | (optional)
+ serialNisw := []string{"Inner_example"} // []string | (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+ virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemsList`: PaginatedInventoryItemList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsList`: %v\n", resp)
}
```
@@ -14876,25 +15118,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this inventory item.
- patchedWritableInventoryItemRequest := *openapiclient.NewPatchedWritableInventoryItemRequest() // PatchedWritableInventoryItemRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this inventory item.
+ patchedWritableInventoryItemRequest := *openapiclient.NewPatchedWritableInventoryItemRequest() // PatchedWritableInventoryItemRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemsPartialUpdate(context.Background(), id).PatchedWritableInventoryItemRequest(patchedWritableInventoryItemRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemsPartialUpdate`: InventoryItem
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemsPartialUpdate(context.Background(), id).PatchedWritableInventoryItemRequest(patchedWritableInventoryItemRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemsPartialUpdate`: InventoryItem
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsPartialUpdate`: %v\n", resp)
}
```
@@ -14948,24 +15190,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this inventory item.
+ id := int32(56) // int32 | A unique integer value identifying this inventory item.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemsRetrieve`: InventoryItem
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemsRetrieve`: InventoryItem
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsRetrieve`: %v\n", resp)
}
```
@@ -15018,25 +15260,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this inventory item.
- writableInventoryItemRequest := *openapiclient.NewWritableInventoryItemRequest(int32(123), "Name_example") // WritableInventoryItemRequest |
+ id := int32(56) // int32 | A unique integer value identifying this inventory item.
+ writableInventoryItemRequest := *openapiclient.NewWritableInventoryItemRequest(int32(123), "Name_example") // WritableInventoryItemRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemsUpdate(context.Background(), id).WritableInventoryItemRequest(writableInventoryItemRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimInventoryItemsUpdate`: InventoryItem
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemsUpdate(context.Background(), id).WritableInventoryItemRequest(writableInventoryItemRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimInventoryItemsUpdate`: InventoryItem
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsUpdate`: %v\n", resp)
}
```
@@ -15090,22 +15332,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []LocationRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimLocationsBulkDestroy(context.Background()).LocationRequest(locationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimLocationsBulkDestroy(context.Background()).LocationRequest(locationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -15154,24 +15396,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []LocationRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimLocationsBulkPartialUpdate(context.Background()).LocationRequest(locationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimLocationsBulkPartialUpdate`: []Location
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimLocationsBulkPartialUpdate(context.Background()).LocationRequest(locationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimLocationsBulkPartialUpdate`: []Location
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -15220,24 +15462,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []LocationRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimLocationsBulkUpdate(context.Background()).LocationRequest(locationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimLocationsBulkUpdate`: []Location
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimLocationsBulkUpdate(context.Background()).LocationRequest(locationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimLocationsBulkUpdate`: []Location
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsBulkUpdate`: %v\n", resp)
}
```
@@ -15286,24 +15528,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", int32(123)) // WritableLocationRequest |
+ writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", int32(123)) // WritableLocationRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimLocationsCreate(context.Background()).WritableLocationRequest(writableLocationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimLocationsCreate`: Location
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimLocationsCreate(context.Background()).WritableLocationRequest(writableLocationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimLocationsCreate`: Location
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsCreate`: %v\n", resp)
}
```
@@ -15352,22 +15594,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this location.
+ id := int32(56) // int32 | A unique integer value identifying this location.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimLocationsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimLocationsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -15420,119 +15662,119 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- 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)
- q := "q_example" // string | Search (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- site := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- 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()
- 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)
- }
- // response from `DcimLocationsList`: PaginatedLocationList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ 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)
+ q := "q_example" // string | Search (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ 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()
+ 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)
+ }
+ // response from `DcimLocationsList`: PaginatedLocationList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsList`: %v\n", resp)
}
```
@@ -15675,25 +15917,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this location.
- patchedWritableLocationRequest := *openapiclient.NewPatchedWritableLocationRequest() // PatchedWritableLocationRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this location.
+ patchedWritableLocationRequest := *openapiclient.NewPatchedWritableLocationRequest() // PatchedWritableLocationRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimLocationsPartialUpdate(context.Background(), id).PatchedWritableLocationRequest(patchedWritableLocationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimLocationsPartialUpdate`: Location
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimLocationsPartialUpdate(context.Background(), id).PatchedWritableLocationRequest(patchedWritableLocationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimLocationsPartialUpdate`: Location
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsPartialUpdate`: %v\n", resp)
}
```
@@ -15747,24 +15989,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this location.
+ id := int32(56) // int32 | A unique integer value identifying this location.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimLocationsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimLocationsRetrieve`: Location
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimLocationsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimLocationsRetrieve`: Location
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsRetrieve`: %v\n", resp)
}
```
@@ -15817,25 +16059,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this location.
- writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", int32(123)) // WritableLocationRequest |
+ id := int32(56) // int32 | A unique integer value identifying this location.
+ writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", int32(123)) // WritableLocationRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimLocationsUpdate(context.Background(), id).WritableLocationRequest(writableLocationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimLocationsUpdate`: Location
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimLocationsUpdate(context.Background(), id).WritableLocationRequest(writableLocationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimLocationsUpdate`: Location
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsUpdate`: %v\n", resp)
}
```
@@ -15889,22 +16131,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- manufacturerRequest := []openapiclient.ManufacturerRequest{*openapiclient.NewManufacturerRequest("Name_example", "Slug_example")} // []ManufacturerRequest |
+ manufacturerRequest := []openapiclient.ManufacturerRequest{*openapiclient.NewManufacturerRequest("Name_example", "Slug_example")} // []ManufacturerRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimManufacturersBulkDestroy(context.Background()).ManufacturerRequest(manufacturerRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimManufacturersBulkDestroy(context.Background()).ManufacturerRequest(manufacturerRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -15953,24 +16195,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- manufacturerRequest := []openapiclient.ManufacturerRequest{*openapiclient.NewManufacturerRequest("Name_example", "Slug_example")} // []ManufacturerRequest |
+ manufacturerRequest := []openapiclient.ManufacturerRequest{*openapiclient.NewManufacturerRequest("Name_example", "Slug_example")} // []ManufacturerRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimManufacturersBulkPartialUpdate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimManufacturersBulkPartialUpdate`: []Manufacturer
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimManufacturersBulkPartialUpdate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimManufacturersBulkPartialUpdate`: []Manufacturer
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersBulkPartialUpdate`: %v\n", resp)
}
```
@@ -16019,24 +16261,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- manufacturerRequest := []openapiclient.ManufacturerRequest{*openapiclient.NewManufacturerRequest("Name_example", "Slug_example")} // []ManufacturerRequest |
+ manufacturerRequest := []openapiclient.ManufacturerRequest{*openapiclient.NewManufacturerRequest("Name_example", "Slug_example")} // []ManufacturerRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimManufacturersBulkUpdate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimManufacturersBulkUpdate`: []Manufacturer
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimManufacturersBulkUpdate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimManufacturersBulkUpdate`: []Manufacturer
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersBulkUpdate`: %v\n", resp)
}
```
@@ -16085,24 +16327,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- manufacturerRequest := *openapiclient.NewManufacturerRequest("Name_example", "Slug_example") // ManufacturerRequest |
+ manufacturerRequest := *openapiclient.NewManufacturerRequest("Name_example", "Slug_example") // ManufacturerRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimManufacturersCreate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimManufacturersCreate`: Manufacturer
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimManufacturersCreate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimManufacturersCreate`: Manufacturer
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersCreate`: %v\n", resp)
}
```
@@ -16151,22 +16393,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this manufacturer.
+ id := int32(56) // int32 | A unique integer value identifying this manufacturer.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimManufacturersDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimManufacturersDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -16219,93 +16461,93 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimManufacturersList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimManufacturersList`: PaginatedManufacturerList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimManufacturersList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimManufacturersList`: PaginatedManufacturerList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersList`: %v\n", resp)
}
```
@@ -16422,25 +16664,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this manufacturer.
- patchedManufacturerRequest := *openapiclient.NewPatchedManufacturerRequest() // PatchedManufacturerRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this manufacturer.
+ patchedManufacturerRequest := *openapiclient.NewPatchedManufacturerRequest() // PatchedManufacturerRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimManufacturersPartialUpdate(context.Background(), id).PatchedManufacturerRequest(patchedManufacturerRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimManufacturersPartialUpdate`: Manufacturer
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimManufacturersPartialUpdate(context.Background(), id).PatchedManufacturerRequest(patchedManufacturerRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimManufacturersPartialUpdate`: Manufacturer
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersPartialUpdate`: %v\n", resp)
}
```
@@ -16494,24 +16736,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this manufacturer.
+ id := int32(56) // int32 | A unique integer value identifying this manufacturer.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimManufacturersRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimManufacturersRetrieve`: Manufacturer
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimManufacturersRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimManufacturersRetrieve`: Manufacturer
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersRetrieve`: %v\n", resp)
}
```
@@ -16564,25 +16806,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this manufacturer.
- manufacturerRequest := *openapiclient.NewManufacturerRequest("Name_example", "Slug_example") // ManufacturerRequest |
+ id := int32(56) // int32 | A unique integer value identifying this manufacturer.
+ manufacturerRequest := *openapiclient.NewManufacturerRequest("Name_example", "Slug_example") // ManufacturerRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimManufacturersUpdate(context.Background(), id).ManufacturerRequest(manufacturerRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimManufacturersUpdate`: Manufacturer
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimManufacturersUpdate(context.Background(), id).ManufacturerRequest(manufacturerRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimManufacturersUpdate`: Manufacturer
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersUpdate`: %v\n", resp)
}
```
@@ -16636,22 +16878,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest |
+ moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkDestroy(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkDestroy(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -16700,24 +16942,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest |
+ moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBayTemplatesBulkPartialUpdate`: []ModuleBayTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleBayTemplatesBulkPartialUpdate`: []ModuleBayTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -16766,24 +17008,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest |
+ moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkUpdate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBayTemplatesBulkUpdate`: []ModuleBayTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkUpdate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleBayTemplatesBulkUpdate`: []ModuleBayTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesBulkUpdate`: %v\n", resp)
}
```
@@ -16832,24 +17074,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableModuleBayTemplateRequest := *openapiclient.NewWritableModuleBayTemplateRequest(int32(123), "Name_example") // WritableModuleBayTemplateRequest |
+ writableModuleBayTemplateRequest := *openapiclient.NewWritableModuleBayTemplateRequest(int32(123), "Name_example") // WritableModuleBayTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesCreate(context.Background()).WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBayTemplatesCreate`: ModuleBayTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesCreate(context.Background()).WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleBayTemplatesCreate`: ModuleBayTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesCreate`: %v\n", resp)
}
```
@@ -16898,22 +17140,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module bay template.
+ id := int32(56) // int32 | A unique integer value identifying this module bay template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimModuleBayTemplatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimModuleBayTemplatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -16954,7 +17196,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).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).Id(id).IdEmpty(idEmpty).IdGt(idGt).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()
@@ -16966,65 +17208,76 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- 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)
- 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).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBayTemplatesList`: PaginatedModuleBayTemplateList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ 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)
+ 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()
+ 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)
+ }
+ // response from `DcimModuleBayTemplatesList`: PaginatedModuleBayTemplateList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesList`: %v\n", resp)
}
```
@@ -17047,6 +17300,17 @@ 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** | |
**devicetypeId** | **[]int32** | Device type (ID) |
**devicetypeIdN** | **[]int32** | Device type (ID) |
**id** | **[]int32** | |
@@ -17113,25 +17377,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module bay template.
- patchedWritableModuleBayTemplateRequest := *openapiclient.NewPatchedWritableModuleBayTemplateRequest() // PatchedWritableModuleBayTemplateRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this module bay template.
+ patchedWritableModuleBayTemplateRequest := *openapiclient.NewPatchedWritableModuleBayTemplateRequest() // PatchedWritableModuleBayTemplateRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesPartialUpdate(context.Background(), id).PatchedWritableModuleBayTemplateRequest(patchedWritableModuleBayTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBayTemplatesPartialUpdate`: ModuleBayTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesPartialUpdate(context.Background(), id).PatchedWritableModuleBayTemplateRequest(patchedWritableModuleBayTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleBayTemplatesPartialUpdate`: ModuleBayTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesPartialUpdate`: %v\n", resp)
}
```
@@ -17185,24 +17449,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module bay template.
+ id := int32(56) // int32 | A unique integer value identifying this module bay template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBayTemplatesRetrieve`: ModuleBayTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleBayTemplatesRetrieve`: ModuleBayTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesRetrieve`: %v\n", resp)
}
```
@@ -17255,25 +17519,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module bay template.
- writableModuleBayTemplateRequest := *openapiclient.NewWritableModuleBayTemplateRequest(int32(123), "Name_example") // WritableModuleBayTemplateRequest |
+ id := int32(56) // int32 | A unique integer value identifying this module bay template.
+ writableModuleBayTemplateRequest := *openapiclient.NewWritableModuleBayTemplateRequest(int32(123), "Name_example") // WritableModuleBayTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesUpdate(context.Background(), id).WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBayTemplatesUpdate`: ModuleBayTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesUpdate(context.Background(), id).WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleBayTemplatesUpdate`: ModuleBayTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesUpdate`: %v\n", resp)
}
```
@@ -17327,22 +17591,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ModuleBayRequest |
+ moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ModuleBayRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimModuleBaysBulkDestroy(context.Background()).ModuleBayRequest(moduleBayRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimModuleBaysBulkDestroy(context.Background()).ModuleBayRequest(moduleBayRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -17391,24 +17655,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ModuleBayRequest |
+ moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ModuleBayRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBaysBulkPartialUpdate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBaysBulkPartialUpdate`: []ModuleBay
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleBaysBulkPartialUpdate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleBaysBulkPartialUpdate`: []ModuleBay
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysBulkPartialUpdate`: %v\n", resp)
}
```
@@ -17457,24 +17721,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ModuleBayRequest |
+ moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ModuleBayRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBaysBulkUpdate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBaysBulkUpdate`: []ModuleBay
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleBaysBulkUpdate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleBaysBulkUpdate`: []ModuleBay
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysBulkUpdate`: %v\n", resp)
}
```
@@ -17523,24 +17787,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableModuleBayRequest := *openapiclient.NewWritableModuleBayRequest(int32(123), "Name_example", int32(123)) // WritableModuleBayRequest |
+ writableModuleBayRequest := *openapiclient.NewWritableModuleBayRequest(int32(123), "Name_example", int32(123)) // WritableModuleBayRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBaysCreate(context.Background()).WritableModuleBayRequest(writableModuleBayRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBaysCreate`: ModuleBay
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleBaysCreate(context.Background()).WritableModuleBayRequest(writableModuleBayRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleBaysCreate`: ModuleBay
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysCreate`: %v\n", resp)
}
```
@@ -17589,22 +17853,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module bay.
+ id := int32(56) // int32 | A unique integer value identifying this module bay.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimModuleBaysDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimModuleBaysDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -17657,127 +17921,127 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- 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)
- deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- 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)
- location := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- 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)
- rack := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
- virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBaysList`: PaginatedModuleBayList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ 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)
+ deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ 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)
+ location := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ 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)
+ rack := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+ virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleBaysList`: PaginatedModuleBayList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysList`: %v\n", resp)
}
```
@@ -17928,25 +18192,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module bay.
- patchedWritableModuleBayRequest := *openapiclient.NewPatchedWritableModuleBayRequest() // PatchedWritableModuleBayRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this module bay.
+ patchedWritableModuleBayRequest := *openapiclient.NewPatchedWritableModuleBayRequest() // PatchedWritableModuleBayRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBaysPartialUpdate(context.Background(), id).PatchedWritableModuleBayRequest(patchedWritableModuleBayRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBaysPartialUpdate`: ModuleBay
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleBaysPartialUpdate(context.Background(), id).PatchedWritableModuleBayRequest(patchedWritableModuleBayRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleBaysPartialUpdate`: ModuleBay
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysPartialUpdate`: %v\n", resp)
}
```
@@ -18000,24 +18264,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module bay.
+ id := int32(56) // int32 | A unique integer value identifying this module bay.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBaysRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBaysRetrieve`: ModuleBay
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleBaysRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleBaysRetrieve`: ModuleBay
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysRetrieve`: %v\n", resp)
}
```
@@ -18070,25 +18334,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module bay.
- writableModuleBayRequest := *openapiclient.NewWritableModuleBayRequest(int32(123), "Name_example", int32(123)) // WritableModuleBayRequest |
+ id := int32(56) // int32 | A unique integer value identifying this module bay.
+ writableModuleBayRequest := *openapiclient.NewWritableModuleBayRequest(int32(123), "Name_example", int32(123)) // WritableModuleBayRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBaysUpdate(context.Background(), id).WritableModuleBayRequest(writableModuleBayRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleBaysUpdate`: ModuleBay
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleBaysUpdate(context.Background(), id).WritableModuleBayRequest(writableModuleBayRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleBaysUpdate`: ModuleBay
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysUpdate`: %v\n", resp)
}
```
@@ -18142,22 +18406,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest |
+ moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimModuleTypesBulkDestroy(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimModuleTypesBulkDestroy(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -18206,24 +18470,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest |
+ moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleTypesBulkPartialUpdate(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleTypesBulkPartialUpdate`: []ModuleType
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleTypesBulkPartialUpdate(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleTypesBulkPartialUpdate`: []ModuleType
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -18272,24 +18536,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest |
+ moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleTypesBulkUpdate(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleTypesBulkUpdate`: []ModuleType
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleTypesBulkUpdate(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleTypesBulkUpdate`: []ModuleType
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesBulkUpdate`: %v\n", resp)
}
```
@@ -18338,24 +18602,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(int32(123), "Model_example") // WritableModuleTypeRequest |
+ writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(int32(123), "Model_example") // WritableModuleTypeRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleTypesCreate(context.Background()).WritableModuleTypeRequest(writableModuleTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleTypesCreate`: ModuleType
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleTypesCreate(context.Background()).WritableModuleTypeRequest(writableModuleTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleTypesCreate`: ModuleType
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesCreate`: %v\n", resp)
}
```
@@ -18404,22 +18668,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module type.
+ id := int32(56) // int32 | A unique integer value identifying this module type.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimModuleTypesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimModuleTypesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -18460,7 +18724,7 @@ Name | Type | Description | Notes
## DcimModuleTypesList
-> PaginatedModuleTypeList DcimModuleTypesList(ctx).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute()
+> PaginatedModuleTypeList DcimModuleTypesList(ctx).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute()
@@ -18472,95 +18736,106 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- consolePorts := true // bool | Has console ports (optional)
- consoleServerPorts := true // bool | Has console server ports (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- 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)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- interfaces := true // bool | Has interfaces (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
- manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
- model := []string{"Inner_example"} // []string | (optional)
- modelEmpty := true // bool | (optional)
- modelIc := []string{"Inner_example"} // []string | (optional)
- modelIe := []string{"Inner_example"} // []string | (optional)
- modelIew := []string{"Inner_example"} // []string | (optional)
- modelIsw := []string{"Inner_example"} // []string | (optional)
- modelN := []string{"Inner_example"} // []string | (optional)
- modelNic := []string{"Inner_example"} // []string | (optional)
- modelNie := []string{"Inner_example"} // []string | (optional)
- modelNiew := []string{"Inner_example"} // []string | (optional)
- modelNisw := []string{"Inner_example"} // []string | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- partNumber := []string{"Inner_example"} // []string | (optional)
- partNumberEmpty := true // bool | (optional)
- partNumberIc := []string{"Inner_example"} // []string | (optional)
- partNumberIe := []string{"Inner_example"} // []string | (optional)
- partNumberIew := []string{"Inner_example"} // []string | (optional)
- partNumberIsw := []string{"Inner_example"} // []string | (optional)
- partNumberN := []string{"Inner_example"} // []string | (optional)
- partNumberNic := []string{"Inner_example"} // []string | (optional)
- partNumberNie := []string{"Inner_example"} // []string | (optional)
- partNumberNiew := []string{"Inner_example"} // []string | (optional)
- partNumberNisw := []string{"Inner_example"} // []string | (optional)
- passThroughPorts := true // bool | Has pass-through ports (optional)
- powerOutlets := true // bool | Has power outlets (optional)
- powerPorts := true // bool | Has power ports (optional)
- q := "q_example" // string | Search (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- weight := []float64{float64(123)} // []float64 | (optional)
- weightEmpty := true // bool | (optional)
- weightGt := []float64{float64(123)} // []float64 | (optional)
- weightGte := []float64{float64(123)} // []float64 | (optional)
- weightLt := []float64{float64(123)} // []float64 | (optional)
- weightLte := []float64{float64(123)} // []float64 | (optional)
- weightN := []float64{float64(123)} // []float64 | (optional)
- weightUnit := "weightUnit_example" // string | (optional)
- weightUnitN := "weightUnitN_example" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleTypesList`: PaginatedModuleTypeList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ consolePorts := true // bool | Has console ports (optional)
+ consoleServerPorts := true // bool | Has console server ports (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ interfaces := true // bool | Has interfaces (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
+ manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
+ model := []string{"Inner_example"} // []string | (optional)
+ modelEmpty := true // bool | (optional)
+ modelIc := []string{"Inner_example"} // []string | (optional)
+ modelIe := []string{"Inner_example"} // []string | (optional)
+ modelIew := []string{"Inner_example"} // []string | (optional)
+ modelIsw := []string{"Inner_example"} // []string | (optional)
+ modelN := []string{"Inner_example"} // []string | (optional)
+ modelNic := []string{"Inner_example"} // []string | (optional)
+ modelNie := []string{"Inner_example"} // []string | (optional)
+ modelNiew := []string{"Inner_example"} // []string | (optional)
+ modelNisw := []string{"Inner_example"} // []string | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ partNumber := []string{"Inner_example"} // []string | (optional)
+ partNumberEmpty := true // bool | (optional)
+ partNumberIc := []string{"Inner_example"} // []string | (optional)
+ partNumberIe := []string{"Inner_example"} // []string | (optional)
+ partNumberIew := []string{"Inner_example"} // []string | (optional)
+ partNumberIsw := []string{"Inner_example"} // []string | (optional)
+ partNumberN := []string{"Inner_example"} // []string | (optional)
+ partNumberNic := []string{"Inner_example"} // []string | (optional)
+ partNumberNie := []string{"Inner_example"} // []string | (optional)
+ partNumberNiew := []string{"Inner_example"} // []string | (optional)
+ partNumberNisw := []string{"Inner_example"} // []string | (optional)
+ passThroughPorts := true // bool | Has pass-through ports (optional)
+ powerOutlets := true // bool | Has power outlets (optional)
+ powerPorts := true // bool | Has power ports (optional)
+ q := "q_example" // string | Search (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ weight := []float64{float64(123)} // []float64 | (optional)
+ weightEmpty := true // bool | (optional)
+ weightGt := []float64{float64(123)} // []float64 | (optional)
+ weightGte := []float64{float64(123)} // []float64 | (optional)
+ weightLt := []float64{float64(123)} // []float64 | (optional)
+ weightLte := []float64{float64(123)} // []float64 | (optional)
+ weightN := []float64{float64(123)} // []float64 | (optional)
+ weightUnit := "weightUnit_example" // string | (optional)
+ weightUnitN := "weightUnitN_example" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleTypesList`: PaginatedModuleTypeList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesList`: %v\n", resp)
}
```
@@ -18585,6 +18860,17 @@ 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** | |
**id** | **[]int32** | |
**idEmpty** | **bool** | |
**idGt** | **[]int32** | |
@@ -18679,25 +18965,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module type.
- patchedWritableModuleTypeRequest := *openapiclient.NewPatchedWritableModuleTypeRequest() // PatchedWritableModuleTypeRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this module type.
+ patchedWritableModuleTypeRequest := *openapiclient.NewPatchedWritableModuleTypeRequest() // PatchedWritableModuleTypeRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleTypesPartialUpdate(context.Background(), id).PatchedWritableModuleTypeRequest(patchedWritableModuleTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleTypesPartialUpdate`: ModuleType
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleTypesPartialUpdate(context.Background(), id).PatchedWritableModuleTypeRequest(patchedWritableModuleTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleTypesPartialUpdate`: ModuleType
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesPartialUpdate`: %v\n", resp)
}
```
@@ -18751,24 +19037,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module type.
+ id := int32(56) // int32 | A unique integer value identifying this module type.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleTypesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleTypesRetrieve`: ModuleType
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleTypesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleTypesRetrieve`: ModuleType
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesRetrieve`: %v\n", resp)
}
```
@@ -18821,25 +19107,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module type.
- writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(int32(123), "Model_example") // WritableModuleTypeRequest |
+ id := int32(56) // int32 | A unique integer value identifying this module type.
+ writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(int32(123), "Model_example") // WritableModuleTypeRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleTypesUpdate(context.Background(), id).WritableModuleTypeRequest(writableModuleTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModuleTypesUpdate`: ModuleType
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModuleTypesUpdate(context.Background(), id).WritableModuleTypeRequest(writableModuleTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModuleTypesUpdate`: ModuleType
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesUpdate`: %v\n", resp)
}
```
@@ -18893,22 +19179,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewNestedDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewNestedModuleTypeRequest("Model_example"))} // []ModuleRequest |
+ moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewNestedDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewNestedModuleTypeRequest("Model_example"))} // []ModuleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimModulesBulkDestroy(context.Background()).ModuleRequest(moduleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimModulesBulkDestroy(context.Background()).ModuleRequest(moduleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -18957,24 +19243,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewNestedDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewNestedModuleTypeRequest("Model_example"))} // []ModuleRequest |
+ moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewNestedDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewNestedModuleTypeRequest("Model_example"))} // []ModuleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModulesBulkPartialUpdate(context.Background()).ModuleRequest(moduleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModulesBulkPartialUpdate`: []Module
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModulesBulkPartialUpdate(context.Background()).ModuleRequest(moduleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModulesBulkPartialUpdate`: []Module
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -19023,24 +19309,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewNestedDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewNestedModuleTypeRequest("Model_example"))} // []ModuleRequest |
+ moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewNestedDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewNestedModuleTypeRequest("Model_example"))} // []ModuleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModulesBulkUpdate(context.Background()).ModuleRequest(moduleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModulesBulkUpdate`: []Module
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModulesBulkUpdate(context.Background()).ModuleRequest(moduleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModulesBulkUpdate`: []Module
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesBulkUpdate`: %v\n", resp)
}
```
@@ -19089,24 +19375,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableModuleRequest := *openapiclient.NewWritableModuleRequest(int32(123), int32(123), int32(123)) // WritableModuleRequest |
+ writableModuleRequest := *openapiclient.NewWritableModuleRequest(int32(123), int32(123), int32(123)) // WritableModuleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModulesCreate(context.Background()).WritableModuleRequest(writableModuleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModulesCreate`: Module
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModulesCreate(context.Background()).WritableModuleRequest(writableModuleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModulesCreate`: Module
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesCreate`: %v\n", resp)
}
```
@@ -19155,22 +19441,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module.
+ id := int32(56) // int32 | A unique integer value identifying this module.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimModulesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimModulesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -19211,7 +19497,7 @@ Name | Type | Description | Notes
## DcimModulesList
-> PaginatedModuleList DcimModulesList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).ModuleBayId(moduleBayId).ModuleBayIdN(moduleBayIdN).ModuleType(moduleType).ModuleTypeN(moduleTypeN).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Offset(offset).Ordering(ordering).Q(q).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedModuleList DcimModulesList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).ModuleBayId(moduleBayId).ModuleBayIdN(moduleBayIdN).ModuleType(moduleType).ModuleTypeN(moduleTypeN).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Offset(offset).Ordering(ordering).Q(q).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
@@ -19223,90 +19509,101 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- assetTag := []string{"Inner_example"} // []string | (optional)
- assetTagEmpty := true // bool | (optional)
- assetTagIc := []string{"Inner_example"} // []string | (optional)
- assetTagIe := []string{"Inner_example"} // []string | (optional)
- assetTagIew := []string{"Inner_example"} // []string | (optional)
- assetTagIsw := []string{"Inner_example"} // []string | (optional)
- assetTagN := []string{"Inner_example"} // []string | (optional)
- assetTagNic := []string{"Inner_example"} // []string | (optional)
- assetTagNie := []string{"Inner_example"} // []string | (optional)
- assetTagNiew := []string{"Inner_example"} // []string | (optional)
- assetTagNisw := []string{"Inner_example"} // []string | (optional)
- 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)
- deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional)
- deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
- manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduleBayId := []int32{int32(123)} // []int32 | Module Bay (ID) (optional)
- moduleBayIdN := []int32{int32(123)} // []int32 | Module Bay (ID) (optional)
- moduleType := []string{"Inner_example"} // []string | Module type (model) (optional)
- moduleTypeN := []string{"Inner_example"} // []string | Module type (model) (optional)
- moduleTypeId := []int32{int32(123)} // []int32 | Module type (ID) (optional)
- moduleTypeIdN := []int32{int32(123)} // []int32 | Module type (ID) (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- serial := []string{"Inner_example"} // []string | (optional)
- serialEmpty := true // bool | (optional)
- serialIc := []string{"Inner_example"} // []string | (optional)
- serialIe := []string{"Inner_example"} // []string | (optional)
- serialIew := []string{"Inner_example"} // []string | (optional)
- serialIsw := []string{"Inner_example"} // []string | (optional)
- serialN := []string{"Inner_example"} // []string | (optional)
- serialNic := []string{"Inner_example"} // []string | (optional)
- serialNie := []string{"Inner_example"} // []string | (optional)
- serialNiew := []string{"Inner_example"} // []string | (optional)
- serialNisw := []string{"Inner_example"} // []string | (optional)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModulesList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).ModuleBayId(moduleBayId).ModuleBayIdN(moduleBayIdN).ModuleType(moduleType).ModuleTypeN(moduleTypeN).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Offset(offset).Ordering(ordering).Q(q).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModulesList`: PaginatedModuleList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ assetTag := []string{"Inner_example"} // []string | (optional)
+ assetTagEmpty := true // bool | (optional)
+ assetTagIc := []string{"Inner_example"} // []string | (optional)
+ assetTagIe := []string{"Inner_example"} // []string | (optional)
+ assetTagIew := []string{"Inner_example"} // []string | (optional)
+ assetTagIsw := []string{"Inner_example"} // []string | (optional)
+ assetTagN := []string{"Inner_example"} // []string | (optional)
+ assetTagNic := []string{"Inner_example"} // []string | (optional)
+ assetTagNie := []string{"Inner_example"} // []string | (optional)
+ assetTagNiew := []string{"Inner_example"} // []string | (optional)
+ assetTagNisw := []string{"Inner_example"} // []string | (optional)
+ 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)
+ deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional)
+ deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
+ manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduleBayId := []int32{int32(123)} // []int32 | Module Bay (ID) (optional)
+ moduleBayIdN := []int32{int32(123)} // []int32 | Module Bay (ID) (optional)
+ moduleType := []string{"Inner_example"} // []string | Module type (model) (optional)
+ moduleTypeN := []string{"Inner_example"} // []string | Module type (model) (optional)
+ moduleTypeId := []int32{int32(123)} // []int32 | Module type (ID) (optional)
+ moduleTypeIdN := []int32{int32(123)} // []int32 | Module type (ID) (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ serial := []string{"Inner_example"} // []string | (optional)
+ serialEmpty := true // bool | (optional)
+ serialIc := []string{"Inner_example"} // []string | (optional)
+ serialIe := []string{"Inner_example"} // []string | (optional)
+ serialIew := []string{"Inner_example"} // []string | (optional)
+ serialIsw := []string{"Inner_example"} // []string | (optional)
+ serialN := []string{"Inner_example"} // []string | (optional)
+ serialNic := []string{"Inner_example"} // []string | (optional)
+ serialNie := []string{"Inner_example"} // []string | (optional)
+ serialNiew := []string{"Inner_example"} // []string | (optional)
+ serialNisw := []string{"Inner_example"} // []string | (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModulesList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).ModuleBayId(moduleBayId).ModuleBayIdN(moduleBayIdN).ModuleType(moduleType).ModuleTypeN(moduleTypeN).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Offset(offset).Ordering(ordering).Q(q).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModulesList`: PaginatedModuleList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesList`: %v\n", resp)
}
```
@@ -19340,6 +19637,17 @@ 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** | |
**deviceId** | **[]int32** | Device (ID) |
**deviceIdN** | **[]int32** | Device (ID) |
**id** | **[]int32** | |
@@ -19420,25 +19728,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module.
- patchedWritableModuleRequest := *openapiclient.NewPatchedWritableModuleRequest() // PatchedWritableModuleRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this module.
+ patchedWritableModuleRequest := *openapiclient.NewPatchedWritableModuleRequest() // PatchedWritableModuleRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModulesPartialUpdate(context.Background(), id).PatchedWritableModuleRequest(patchedWritableModuleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModulesPartialUpdate`: Module
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModulesPartialUpdate(context.Background(), id).PatchedWritableModuleRequest(patchedWritableModuleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModulesPartialUpdate`: Module
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesPartialUpdate`: %v\n", resp)
}
```
@@ -19492,24 +19800,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module.
+ id := int32(56) // int32 | A unique integer value identifying this module.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModulesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModulesRetrieve`: Module
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModulesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModulesRetrieve`: Module
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesRetrieve`: %v\n", resp)
}
```
@@ -19562,25 +19870,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this module.
- writableModuleRequest := *openapiclient.NewWritableModuleRequest(int32(123), int32(123), int32(123)) // WritableModuleRequest |
+ id := int32(56) // int32 | A unique integer value identifying this module.
+ writableModuleRequest := *openapiclient.NewWritableModuleRequest(int32(123), int32(123), int32(123)) // WritableModuleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModulesUpdate(context.Background(), id).WritableModuleRequest(writableModuleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimModulesUpdate`: Module
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimModulesUpdate(context.Background(), id).WritableModuleRequest(writableModuleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimModulesUpdate`: Module
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesUpdate`: %v\n", resp)
}
```
@@ -19634,22 +19942,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- platformRequest := []openapiclient.PlatformRequest{*openapiclient.NewPlatformRequest("Name_example", "Slug_example")} // []PlatformRequest |
+ platformRequest := []openapiclient.PlatformRequest{*openapiclient.NewPlatformRequest("Name_example", "Slug_example")} // []PlatformRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPlatformsBulkDestroy(context.Background()).PlatformRequest(platformRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPlatformsBulkDestroy(context.Background()).PlatformRequest(platformRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -19698,24 +20006,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- platformRequest := []openapiclient.PlatformRequest{*openapiclient.NewPlatformRequest("Name_example", "Slug_example")} // []PlatformRequest |
+ platformRequest := []openapiclient.PlatformRequest{*openapiclient.NewPlatformRequest("Name_example", "Slug_example")} // []PlatformRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPlatformsBulkPartialUpdate(context.Background()).PlatformRequest(platformRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPlatformsBulkPartialUpdate`: []Platform
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPlatformsBulkPartialUpdate(context.Background()).PlatformRequest(platformRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPlatformsBulkPartialUpdate`: []Platform
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -19764,24 +20072,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- platformRequest := []openapiclient.PlatformRequest{*openapiclient.NewPlatformRequest("Name_example", "Slug_example")} // []PlatformRequest |
+ platformRequest := []openapiclient.PlatformRequest{*openapiclient.NewPlatformRequest("Name_example", "Slug_example")} // []PlatformRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPlatformsBulkUpdate(context.Background()).PlatformRequest(platformRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPlatformsBulkUpdate`: []Platform
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPlatformsBulkUpdate(context.Background()).PlatformRequest(platformRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPlatformsBulkUpdate`: []Platform
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsBulkUpdate`: %v\n", resp)
}
```
@@ -19830,24 +20138,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writablePlatformRequest := *openapiclient.NewWritablePlatformRequest("Name_example", "Slug_example") // WritablePlatformRequest |
+ writablePlatformRequest := *openapiclient.NewWritablePlatformRequest("Name_example", "Slug_example") // WritablePlatformRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPlatformsCreate(context.Background()).WritablePlatformRequest(writablePlatformRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPlatformsCreate`: Platform
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPlatformsCreate(context.Background()).WritablePlatformRequest(writablePlatformRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPlatformsCreate`: Platform
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsCreate`: %v\n", resp)
}
```
@@ -19896,22 +20204,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this platform.
+ id := int32(56) // int32 | A unique integer value identifying this platform.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPlatformsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPlatformsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -19964,93 +20272,93 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
- configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
- manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
- manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPlatformsList(context.Background()).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPlatformsList`: PaginatedPlatformList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
+ configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional)
+ manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
+ manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPlatformsList(context.Background()).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPlatformsList`: PaginatedPlatformList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsList`: %v\n", resp)
}
```
@@ -20167,25 +20475,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this platform.
- patchedWritablePlatformRequest := *openapiclient.NewPatchedWritablePlatformRequest() // PatchedWritablePlatformRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this platform.
+ patchedWritablePlatformRequest := *openapiclient.NewPatchedWritablePlatformRequest() // PatchedWritablePlatformRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPlatformsPartialUpdate(context.Background(), id).PatchedWritablePlatformRequest(patchedWritablePlatformRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPlatformsPartialUpdate`: Platform
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPlatformsPartialUpdate(context.Background(), id).PatchedWritablePlatformRequest(patchedWritablePlatformRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPlatformsPartialUpdate`: Platform
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsPartialUpdate`: %v\n", resp)
}
```
@@ -20239,24 +20547,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this platform.
+ id := int32(56) // int32 | A unique integer value identifying this platform.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPlatformsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPlatformsRetrieve`: Platform
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPlatformsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPlatformsRetrieve`: Platform
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsRetrieve`: %v\n", resp)
}
```
@@ -20309,25 +20617,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this platform.
- writablePlatformRequest := *openapiclient.NewWritablePlatformRequest("Name_example", "Slug_example") // WritablePlatformRequest |
+ id := int32(56) // int32 | A unique integer value identifying this platform.
+ writablePlatformRequest := *openapiclient.NewWritablePlatformRequest("Name_example", "Slug_example") // WritablePlatformRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPlatformsUpdate(context.Background(), id).WritablePlatformRequest(writablePlatformRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPlatformsUpdate`: Platform
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPlatformsUpdate(context.Background(), id).WritablePlatformRequest(writablePlatformRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPlatformsUpdate`: Platform
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsUpdate`: %v\n", resp)
}
```
@@ -20381,22 +20689,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewNestedPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest |
+ powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewNestedPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPowerFeedsBulkDestroy(context.Background()).PowerFeedRequest(powerFeedRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPowerFeedsBulkDestroy(context.Background()).PowerFeedRequest(powerFeedRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -20445,24 +20753,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewNestedPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest |
+ powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewNestedPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerFeedsBulkPartialUpdate(context.Background()).PowerFeedRequest(powerFeedRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerFeedsBulkPartialUpdate`: []PowerFeed
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerFeedsBulkPartialUpdate(context.Background()).PowerFeedRequest(powerFeedRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerFeedsBulkPartialUpdate`: []PowerFeed
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -20511,24 +20819,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewNestedPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest |
+ powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewNestedPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerFeedsBulkUpdate(context.Background()).PowerFeedRequest(powerFeedRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerFeedsBulkUpdate`: []PowerFeed
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerFeedsBulkUpdate(context.Background()).PowerFeedRequest(powerFeedRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerFeedsBulkUpdate`: []PowerFeed
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsBulkUpdate`: %v\n", resp)
}
```
@@ -20577,24 +20885,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(int32(123), "Name_example") // WritablePowerFeedRequest |
+ writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(int32(123), "Name_example") // WritablePowerFeedRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerFeedsCreate(context.Background()).WritablePowerFeedRequest(writablePowerFeedRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerFeedsCreate`: PowerFeed
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerFeedsCreate(context.Background()).WritablePowerFeedRequest(writablePowerFeedRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerFeedsCreate`: PowerFeed
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsCreate`: %v\n", resp)
}
```
@@ -20643,22 +20951,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power feed.
+ id := int32(56) // int32 | A unique integer value identifying this power feed.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPowerFeedsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPowerFeedsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -20699,7 +21007,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).Id(id).IdEmpty(idEmpty).IdGt(idGt).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).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()
@@ -20711,123 +21019,134 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- amperage := []int32{int32(123)} // []int32 | (optional)
- amperageEmpty := true // bool | (optional)
- amperageGt := []int32{int32(123)} // []int32 | (optional)
- amperageGte := []int32{int32(123)} // []int32 | (optional)
- amperageLt := []int32{int32(123)} // []int32 | (optional)
- amperageLte := []int32{int32(123)} // []int32 | (optional)
- amperageN := []int32{int32(123)} // []int32 | (optional)
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (optional)
- cabled := true // bool | (optional)
- connected := true // bool | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- 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)
- maxUtilization := []int32{int32(123)} // []int32 | (optional)
- maxUtilizationEmpty := true // bool | (optional)
- maxUtilizationGt := []int32{int32(123)} // []int32 | (optional)
- maxUtilizationGte := []int32{int32(123)} // []int32 | (optional)
- maxUtilizationLt := []int32{int32(123)} // []int32 | (optional)
- maxUtilizationLte := []int32{int32(123)} // []int32 | (optional)
- maxUtilizationN := []int32{int32(123)} // []int32 | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- occupied := true // bool | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- phase := "phase_example" // string | (optional)
- phaseN := "phaseN_example" // string | (optional)
- powerPanelId := []int32{int32(123)} // []int32 | Power panel (ID) (optional)
- powerPanelIdN := []int32{int32(123)} // []int32 | Power panel (ID) (optional)
- q := "q_example" // string | Search (optional)
- rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- supply := "supply_example" // string | (optional)
- supplyN := "supplyN_example" // string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- type_ := "type__example" // string | (optional)
- typeN := "typeN_example" // string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- voltage := []int32{int32(123)} // []int32 | (optional)
- voltageEmpty := true // bool | (optional)
- voltageGt := []int32{int32(123)} // []int32 | (optional)
- voltageGte := []int32{int32(123)} // []int32 | (optional)
- voltageLt := []int32{int32(123)} // []int32 | (optional)
- voltageLte := []int32{int32(123)} // []int32 | (optional)
- voltageN := []int32{int32(123)} // []int32 | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerFeedsList(context.Background()).Amperage(amperage).AmperageEmpty(amperageEmpty).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaxUtilization(maxUtilization).MaxUtilizationEmpty(maxUtilizationEmpty).MaxUtilizationGt(maxUtilizationGt).MaxUtilizationGte(maxUtilizationGte).MaxUtilizationLt(maxUtilizationLt).MaxUtilizationLte(maxUtilizationLte).MaxUtilizationN(maxUtilizationN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Phase(phase).PhaseN(phaseN).PowerPanelId(powerPanelId).PowerPanelIdN(powerPanelIdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Supply(supply).SupplyN(supplyN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Voltage(voltage).VoltageEmpty(voltageEmpty).VoltageGt(voltageGt).VoltageGte(voltageGte).VoltageLt(voltageLt).VoltageLte(voltageLte).VoltageN(voltageN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerFeedsList`: PaginatedPowerFeedList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ amperage := []int32{int32(123)} // []int32 | (optional)
+ amperageEmpty := true // bool | (optional)
+ amperageGt := []int32{int32(123)} // []int32 | (optional)
+ amperageGte := []int32{int32(123)} // []int32 | (optional)
+ amperageLt := []int32{int32(123)} // []int32 | (optional)
+ amperageLte := []int32{int32(123)} // []int32 | (optional)
+ amperageN := []int32{int32(123)} // []int32 | (optional)
+ cableEnd := "cableEnd_example" // string | (optional)
+ cableEndN := "cableEndN_example" // string | (optional)
+ cabled := true // bool | (optional)
+ connected := true // bool | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ maxUtilization := []int32{int32(123)} // []int32 | (optional)
+ maxUtilizationEmpty := true // bool | (optional)
+ maxUtilizationGt := []int32{int32(123)} // []int32 | (optional)
+ maxUtilizationGte := []int32{int32(123)} // []int32 | (optional)
+ maxUtilizationLt := []int32{int32(123)} // []int32 | (optional)
+ maxUtilizationLte := []int32{int32(123)} // []int32 | (optional)
+ maxUtilizationN := []int32{int32(123)} // []int32 | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ occupied := true // bool | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ phase := "phase_example" // string | (optional)
+ phaseN := "phaseN_example" // string | (optional)
+ powerPanelId := []int32{int32(123)} // []int32 | Power panel (ID) (optional)
+ powerPanelIdN := []int32{int32(123)} // []int32 | Power panel (ID) (optional)
+ q := "q_example" // string | Search (optional)
+ rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ supply := "supply_example" // string | (optional)
+ supplyN := "supplyN_example" // string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ type_ := "type__example" // string | (optional)
+ typeN := "typeN_example" // string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ voltage := []int32{int32(123)} // []int32 | (optional)
+ voltageEmpty := true // bool | (optional)
+ voltageGt := []int32{int32(123)} // []int32 | (optional)
+ voltageGte := []int32{int32(123)} // []int32 | (optional)
+ voltageLt := []int32{int32(123)} // []int32 | (optional)
+ voltageLte := []int32{int32(123)} // []int32 | (optional)
+ voltageN := []int32{int32(123)} // []int32 | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerFeedsList(context.Background()).Amperage(amperage).AmperageEmpty(amperageEmpty).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).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()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerFeedsList`: PaginatedPowerFeedList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsList`: %v\n", resp)
}
```
@@ -20861,6 +21180,17 @@ 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** | |
**id** | **[]int32** | |
**idEmpty** | **bool** | |
**idGt** | **[]int32** | |
@@ -20974,25 +21304,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power feed.
- patchedWritablePowerFeedRequest := *openapiclient.NewPatchedWritablePowerFeedRequest() // PatchedWritablePowerFeedRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this power feed.
+ patchedWritablePowerFeedRequest := *openapiclient.NewPatchedWritablePowerFeedRequest() // PatchedWritablePowerFeedRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerFeedsPartialUpdate(context.Background(), id).PatchedWritablePowerFeedRequest(patchedWritablePowerFeedRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerFeedsPartialUpdate`: PowerFeed
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerFeedsPartialUpdate(context.Background(), id).PatchedWritablePowerFeedRequest(patchedWritablePowerFeedRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerFeedsPartialUpdate`: PowerFeed
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsPartialUpdate`: %v\n", resp)
}
```
@@ -21046,24 +21376,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power feed.
+ id := int32(56) // int32 | A unique integer value identifying this power feed.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerFeedsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerFeedsRetrieve`: PowerFeed
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerFeedsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerFeedsRetrieve`: PowerFeed
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsRetrieve`: %v\n", resp)
}
```
@@ -21116,24 +21446,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power feed.
+ id := int32(56) // int32 | A unique integer value identifying this power feed.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerFeedsTraceRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsTraceRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerFeedsTraceRetrieve`: PowerFeed
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsTraceRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerFeedsTraceRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsTraceRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerFeedsTraceRetrieve`: PowerFeed
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsTraceRetrieve`: %v\n", resp)
}
```
@@ -21186,25 +21516,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power feed.
- writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(int32(123), "Name_example") // WritablePowerFeedRequest |
+ id := int32(56) // int32 | A unique integer value identifying this power feed.
+ writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(int32(123), "Name_example") // WritablePowerFeedRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerFeedsUpdate(context.Background(), id).WritablePowerFeedRequest(writablePowerFeedRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerFeedsUpdate`: PowerFeed
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerFeedsUpdate(context.Background(), id).WritablePowerFeedRequest(writablePowerFeedRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerFeedsUpdate`: PowerFeed
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsUpdate`: %v\n", resp)
}
```
@@ -21258,22 +21588,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerOutletTemplateRequest := []openapiclient.PowerOutletTemplateRequest{*openapiclient.NewPowerOutletTemplateRequest("Name_example")} // []PowerOutletTemplateRequest |
+ powerOutletTemplateRequest := []openapiclient.PowerOutletTemplateRequest{*openapiclient.NewPowerOutletTemplateRequest("Name_example")} // []PowerOutletTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkDestroy(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkDestroy(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -21322,24 +21652,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerOutletTemplateRequest := []openapiclient.PowerOutletTemplateRequest{*openapiclient.NewPowerOutletTemplateRequest("Name_example")} // []PowerOutletTemplateRequest |
+ powerOutletTemplateRequest := []openapiclient.PowerOutletTemplateRequest{*openapiclient.NewPowerOutletTemplateRequest("Name_example")} // []PowerOutletTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletTemplatesBulkPartialUpdate`: []PowerOutletTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletTemplatesBulkPartialUpdate`: []PowerOutletTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -21388,24 +21718,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerOutletTemplateRequest := []openapiclient.PowerOutletTemplateRequest{*openapiclient.NewPowerOutletTemplateRequest("Name_example")} // []PowerOutletTemplateRequest |
+ powerOutletTemplateRequest := []openapiclient.PowerOutletTemplateRequest{*openapiclient.NewPowerOutletTemplateRequest("Name_example")} // []PowerOutletTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkUpdate(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletTemplatesBulkUpdate`: []PowerOutletTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkUpdate(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletTemplatesBulkUpdate`: []PowerOutletTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesBulkUpdate`: %v\n", resp)
}
```
@@ -21454,24 +21784,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writablePowerOutletTemplateRequest := *openapiclient.NewWritablePowerOutletTemplateRequest("Name_example") // WritablePowerOutletTemplateRequest |
+ writablePowerOutletTemplateRequest := *openapiclient.NewWritablePowerOutletTemplateRequest("Name_example") // WritablePowerOutletTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesCreate(context.Background()).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletTemplatesCreate`: PowerOutletTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesCreate(context.Background()).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletTemplatesCreate`: PowerOutletTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesCreate`: %v\n", resp)
}
```
@@ -21520,22 +21850,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power outlet template.
+ id := int32(56) // int32 | A unique integer value identifying this power outlet template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -21576,7 +21906,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).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).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()
@@ -21588,71 +21918,82 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- feedLeg := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional)
- feedLegN := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- name := []string{"Inner_example"} // []string | (optional)
- 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)
- type_ := "type__example" // string | (optional)
- typeN := "typeN_example" // string | (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).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletTemplatesList`: PaginatedPowerOutletTemplateList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ feedLeg := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional)
+ feedLegN := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ 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)
+ type_ := "type__example" // string | (optional)
+ typeN := "typeN_example" // string | (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()
+ 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)
+ }
+ // response from `DcimPowerOutletTemplatesList`: PaginatedPowerOutletTemplateList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesList`: %v\n", resp)
}
```
@@ -21675,6 +22016,17 @@ 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** | |
**devicetypeId** | **[]int32** | Device type (ID) |
**devicetypeIdN** | **[]int32** | Device type (ID) |
**feedLeg** | **[]string** | Phase (for three-phase feeds) |
@@ -21747,25 +22099,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power outlet template.
- patchedWritablePowerOutletTemplateRequest := *openapiclient.NewPatchedWritablePowerOutletTemplateRequest() // PatchedWritablePowerOutletTemplateRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this power outlet template.
+ patchedWritablePowerOutletTemplateRequest := *openapiclient.NewPatchedWritablePowerOutletTemplateRequest() // PatchedWritablePowerOutletTemplateRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesPartialUpdate(context.Background(), id).PatchedWritablePowerOutletTemplateRequest(patchedWritablePowerOutletTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletTemplatesPartialUpdate`: PowerOutletTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesPartialUpdate(context.Background(), id).PatchedWritablePowerOutletTemplateRequest(patchedWritablePowerOutletTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletTemplatesPartialUpdate`: PowerOutletTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesPartialUpdate`: %v\n", resp)
}
```
@@ -21819,24 +22171,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power outlet template.
+ id := int32(56) // int32 | A unique integer value identifying this power outlet template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletTemplatesRetrieve`: PowerOutletTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletTemplatesRetrieve`: PowerOutletTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesRetrieve`: %v\n", resp)
}
```
@@ -21889,25 +22241,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power outlet template.
- writablePowerOutletTemplateRequest := *openapiclient.NewWritablePowerOutletTemplateRequest("Name_example") // WritablePowerOutletTemplateRequest |
+ id := int32(56) // int32 | A unique integer value identifying this power outlet template.
+ writablePowerOutletTemplateRequest := *openapiclient.NewWritablePowerOutletTemplateRequest("Name_example") // WritablePowerOutletTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesUpdate(context.Background(), id).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletTemplatesUpdate`: PowerOutletTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesUpdate(context.Background(), id).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletTemplatesUpdate`: PowerOutletTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesUpdate`: %v\n", resp)
}
```
@@ -21961,22 +22313,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerOutletRequest |
+ powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerOutletRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPowerOutletsBulkDestroy(context.Background()).PowerOutletRequest(powerOutletRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPowerOutletsBulkDestroy(context.Background()).PowerOutletRequest(powerOutletRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -22025,24 +22377,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerOutletRequest |
+ powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerOutletRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletsBulkPartialUpdate(context.Background()).PowerOutletRequest(powerOutletRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletsBulkPartialUpdate`: []PowerOutlet
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletsBulkPartialUpdate(context.Background()).PowerOutletRequest(powerOutletRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletsBulkPartialUpdate`: []PowerOutlet
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -22091,24 +22443,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerOutletRequest |
+ powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerOutletRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletsBulkUpdate(context.Background()).PowerOutletRequest(powerOutletRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletsBulkUpdate`: []PowerOutlet
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletsBulkUpdate(context.Background()).PowerOutletRequest(powerOutletRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletsBulkUpdate`: []PowerOutlet
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsBulkUpdate`: %v\n", resp)
}
```
@@ -22157,24 +22509,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(int32(123), "Name_example") // WritablePowerOutletRequest |
+ writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(int32(123), "Name_example") // WritablePowerOutletRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletsCreate(context.Background()).WritablePowerOutletRequest(writablePowerOutletRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletsCreate`: PowerOutlet
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletsCreate(context.Background()).WritablePowerOutletRequest(writablePowerOutletRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletsCreate`: PowerOutlet
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsCreate`: %v\n", resp)
}
```
@@ -22223,22 +22575,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power outlet.
+ id := int32(56) // int32 | A unique integer value identifying this power outlet.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPowerOutletsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPowerOutletsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -22291,138 +22643,138 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (optional)
- cabled := true // bool | (optional)
- connected := true // bool | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- 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)
- deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- feedLeg := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional)
- feedLegN := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- 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)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- location := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- occupied := true // bool | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- rack := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- type_ := []string{"Inner_example"} // []string | Physical port type (optional)
- typeN := []string{"Inner_example"} // []string | Physical port type (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
- virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletsList`: PaginatedPowerOutletList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ cableEnd := "cableEnd_example" // string | (optional)
+ cableEndN := "cableEndN_example" // string | (optional)
+ cabled := true // bool | (optional)
+ connected := true // bool | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ 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)
+ deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ feedLeg := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional)
+ feedLegN := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ 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)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ location := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ occupied := true // bool | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ rack := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ type_ := []string{"Inner_example"} // []string | Physical port type (optional)
+ typeN := []string{"Inner_example"} // []string | Physical port type (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+ virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletsList`: PaginatedPowerOutletList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsList`: %v\n", resp)
}
```
@@ -22584,25 +22936,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power outlet.
- patchedWritablePowerOutletRequest := *openapiclient.NewPatchedWritablePowerOutletRequest() // PatchedWritablePowerOutletRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this power outlet.
+ patchedWritablePowerOutletRequest := *openapiclient.NewPatchedWritablePowerOutletRequest() // PatchedWritablePowerOutletRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletsPartialUpdate(context.Background(), id).PatchedWritablePowerOutletRequest(patchedWritablePowerOutletRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletsPartialUpdate`: PowerOutlet
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletsPartialUpdate(context.Background(), id).PatchedWritablePowerOutletRequest(patchedWritablePowerOutletRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletsPartialUpdate`: PowerOutlet
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsPartialUpdate`: %v\n", resp)
}
```
@@ -22656,24 +23008,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power outlet.
+ id := int32(56) // int32 | A unique integer value identifying this power outlet.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletsRetrieve`: PowerOutlet
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletsRetrieve`: PowerOutlet
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsRetrieve`: %v\n", resp)
}
```
@@ -22726,24 +23078,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power outlet.
+ id := int32(56) // int32 | A unique integer value identifying this power outlet.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletsTraceRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsTraceRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletsTraceRetrieve`: PowerOutlet
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsTraceRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletsTraceRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsTraceRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletsTraceRetrieve`: PowerOutlet
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsTraceRetrieve`: %v\n", resp)
}
```
@@ -22796,25 +23148,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power outlet.
- writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(int32(123), "Name_example") // WritablePowerOutletRequest |
+ id := int32(56) // int32 | A unique integer value identifying this power outlet.
+ writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(int32(123), "Name_example") // WritablePowerOutletRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletsUpdate(context.Background(), id).WritablePowerOutletRequest(writablePowerOutletRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerOutletsUpdate`: PowerOutlet
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerOutletsUpdate(context.Background(), id).WritablePowerOutletRequest(writablePowerOutletRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerOutletsUpdate`: PowerOutlet
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsUpdate`: %v\n", resp)
}
```
@@ -22868,22 +23220,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest |
+ powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPowerPanelsBulkDestroy(context.Background()).PowerPanelRequest(powerPanelRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPowerPanelsBulkDestroy(context.Background()).PowerPanelRequest(powerPanelRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -22932,24 +23284,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest |
+ powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPanelsBulkPartialUpdate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPanelsBulkPartialUpdate`: []PowerPanel
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPanelsBulkPartialUpdate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPanelsBulkPartialUpdate`: []PowerPanel
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -22998,24 +23350,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest |
+ powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPanelsBulkUpdate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPanelsBulkUpdate`: []PowerPanel
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPanelsBulkUpdate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPanelsBulkUpdate`: []PowerPanel
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsBulkUpdate`: %v\n", resp)
}
```
@@ -23064,24 +23416,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writablePowerPanelRequest := *openapiclient.NewWritablePowerPanelRequest(int32(123), "Name_example") // WritablePowerPanelRequest |
+ writablePowerPanelRequest := *openapiclient.NewWritablePowerPanelRequest(int32(123), "Name_example") // WritablePowerPanelRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPanelsCreate(context.Background()).WritablePowerPanelRequest(writablePowerPanelRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPanelsCreate`: PowerPanel
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPanelsCreate(context.Background()).WritablePowerPanelRequest(writablePowerPanelRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPanelsCreate`: PowerPanel
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsCreate`: %v\n", resp)
}
```
@@ -23130,22 +23482,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power panel.
+ id := int32(56) // int32 | A unique integer value identifying this power panel.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPowerPanelsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPowerPanelsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -23186,7 +23538,7 @@ Name | Type | Description | Notes
## DcimPowerPanelsList
-> PaginatedPowerPanelList DcimPowerPanelsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedPowerPanelList DcimPowerPanelsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
@@ -23198,85 +23550,96 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- 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)
- 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)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPanelsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPanelsList`: PaginatedPowerPanelList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPanelsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPanelsList`: PaginatedPowerPanelList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsList`: %v\n", resp)
}
```
@@ -23305,6 +23668,17 @@ 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** | |
**id** | **[]int32** | |
**idEmpty** | **bool** | |
**idGt** | **[]int32** | |
@@ -23385,25 +23759,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power panel.
- patchedWritablePowerPanelRequest := *openapiclient.NewPatchedWritablePowerPanelRequest() // PatchedWritablePowerPanelRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this power panel.
+ patchedWritablePowerPanelRequest := *openapiclient.NewPatchedWritablePowerPanelRequest() // PatchedWritablePowerPanelRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPanelsPartialUpdate(context.Background(), id).PatchedWritablePowerPanelRequest(patchedWritablePowerPanelRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPanelsPartialUpdate`: PowerPanel
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPanelsPartialUpdate(context.Background(), id).PatchedWritablePowerPanelRequest(patchedWritablePowerPanelRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPanelsPartialUpdate`: PowerPanel
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsPartialUpdate`: %v\n", resp)
}
```
@@ -23457,24 +23831,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power panel.
+ id := int32(56) // int32 | A unique integer value identifying this power panel.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPanelsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPanelsRetrieve`: PowerPanel
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPanelsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPanelsRetrieve`: PowerPanel
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsRetrieve`: %v\n", resp)
}
```
@@ -23527,25 +23901,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power panel.
- writablePowerPanelRequest := *openapiclient.NewWritablePowerPanelRequest(int32(123), "Name_example") // WritablePowerPanelRequest |
+ id := int32(56) // int32 | A unique integer value identifying this power panel.
+ writablePowerPanelRequest := *openapiclient.NewWritablePowerPanelRequest(int32(123), "Name_example") // WritablePowerPanelRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPanelsUpdate(context.Background(), id).WritablePowerPanelRequest(writablePowerPanelRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPanelsUpdate`: PowerPanel
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPanelsUpdate(context.Background(), id).WritablePowerPanelRequest(writablePowerPanelRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPanelsUpdate`: PowerPanel
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsUpdate`: %v\n", resp)
}
```
@@ -23599,22 +23973,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerPortTemplateRequest := []openapiclient.PowerPortTemplateRequest{*openapiclient.NewPowerPortTemplateRequest("Name_example")} // []PowerPortTemplateRequest |
+ powerPortTemplateRequest := []openapiclient.PowerPortTemplateRequest{*openapiclient.NewPowerPortTemplateRequest("Name_example")} // []PowerPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkDestroy(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkDestroy(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -23663,24 +24037,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerPortTemplateRequest := []openapiclient.PowerPortTemplateRequest{*openapiclient.NewPowerPortTemplateRequest("Name_example")} // []PowerPortTemplateRequest |
+ powerPortTemplateRequest := []openapiclient.PowerPortTemplateRequest{*openapiclient.NewPowerPortTemplateRequest("Name_example")} // []PowerPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortTemplatesBulkPartialUpdate`: []PowerPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortTemplatesBulkPartialUpdate`: []PowerPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -23729,24 +24103,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerPortTemplateRequest := []openapiclient.PowerPortTemplateRequest{*openapiclient.NewPowerPortTemplateRequest("Name_example")} // []PowerPortTemplateRequest |
+ powerPortTemplateRequest := []openapiclient.PowerPortTemplateRequest{*openapiclient.NewPowerPortTemplateRequest("Name_example")} // []PowerPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkUpdate(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortTemplatesBulkUpdate`: []PowerPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkUpdate(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortTemplatesBulkUpdate`: []PowerPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesBulkUpdate`: %v\n", resp)
}
```
@@ -23795,24 +24169,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writablePowerPortTemplateRequest := *openapiclient.NewWritablePowerPortTemplateRequest("Name_example") // WritablePowerPortTemplateRequest |
+ writablePowerPortTemplateRequest := *openapiclient.NewWritablePowerPortTemplateRequest("Name_example") // WritablePowerPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesCreate(context.Background()).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortTemplatesCreate`: PowerPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesCreate(context.Background()).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortTemplatesCreate`: PowerPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesCreate`: %v\n", resp)
}
```
@@ -23861,22 +24235,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power port template.
+ id := int32(56) // int32 | A unique integer value identifying this power port template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPowerPortTemplatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPowerPortTemplatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -23917,7 +24291,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).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).Id(id).IdEmpty(idEmpty).IdGt(idGt).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()
@@ -23929,83 +24303,94 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- allocatedDraw := []int32{int32(123)} // []int32 | (optional)
- allocatedDrawEmpty := true // bool | (optional)
- allocatedDrawGt := []int32{int32(123)} // []int32 | (optional)
- allocatedDrawGte := []int32{int32(123)} // []int32 | (optional)
- allocatedDrawLt := []int32{int32(123)} // []int32 | (optional)
- allocatedDrawLte := []int32{int32(123)} // []int32 | (optional)
- allocatedDrawN := []int32{int32(123)} // []int32 | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- 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)
- maximumDraw := []int32{int32(123)} // []int32 | (optional)
- maximumDrawEmpty := true // bool | (optional)
- maximumDrawGt := []int32{int32(123)} // []int32 | (optional)
- maximumDrawGte := []int32{int32(123)} // []int32 | (optional)
- maximumDrawLt := []int32{int32(123)} // []int32 | (optional)
- maximumDrawLte := []int32{int32(123)} // []int32 | (optional)
- maximumDrawN := []int32{int32(123)} // []int32 | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- 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)
- type_ := "type__example" // string | (optional)
- typeN := "typeN_example" // string | (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).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortTemplatesList`: PaginatedPowerPortTemplateList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ allocatedDraw := []int32{int32(123)} // []int32 | (optional)
+ allocatedDrawEmpty := true // bool | (optional)
+ allocatedDrawGt := []int32{int32(123)} // []int32 | (optional)
+ allocatedDrawGte := []int32{int32(123)} // []int32 | (optional)
+ allocatedDrawLt := []int32{int32(123)} // []int32 | (optional)
+ allocatedDrawLte := []int32{int32(123)} // []int32 | (optional)
+ allocatedDrawN := []int32{int32(123)} // []int32 | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ maximumDraw := []int32{int32(123)} // []int32 | (optional)
+ maximumDrawEmpty := true // bool | (optional)
+ maximumDrawGt := []int32{int32(123)} // []int32 | (optional)
+ maximumDrawGte := []int32{int32(123)} // []int32 | (optional)
+ maximumDrawLt := []int32{int32(123)} // []int32 | (optional)
+ maximumDrawLte := []int32{int32(123)} // []int32 | (optional)
+ maximumDrawN := []int32{int32(123)} // []int32 | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ 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)
+ type_ := "type__example" // string | (optional)
+ typeN := "typeN_example" // string | (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()
+ 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)
+ }
+ // response from `DcimPowerPortTemplatesList`: PaginatedPowerPortTemplateList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesList`: %v\n", resp)
}
```
@@ -24035,6 +24420,17 @@ 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** | |
**devicetypeId** | **[]int32** | Device type (ID) |
**devicetypeIdN** | **[]int32** | Device type (ID) |
**id** | **[]int32** | |
@@ -24112,25 +24508,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power port template.
- patchedWritablePowerPortTemplateRequest := *openapiclient.NewPatchedWritablePowerPortTemplateRequest() // PatchedWritablePowerPortTemplateRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this power port template.
+ patchedWritablePowerPortTemplateRequest := *openapiclient.NewPatchedWritablePowerPortTemplateRequest() // PatchedWritablePowerPortTemplateRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesPartialUpdate(context.Background(), id).PatchedWritablePowerPortTemplateRequest(patchedWritablePowerPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortTemplatesPartialUpdate`: PowerPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesPartialUpdate(context.Background(), id).PatchedWritablePowerPortTemplateRequest(patchedWritablePowerPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortTemplatesPartialUpdate`: PowerPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesPartialUpdate`: %v\n", resp)
}
```
@@ -24184,24 +24580,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power port template.
+ id := int32(56) // int32 | A unique integer value identifying this power port template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortTemplatesRetrieve`: PowerPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortTemplatesRetrieve`: PowerPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesRetrieve`: %v\n", resp)
}
```
@@ -24254,25 +24650,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power port template.
- writablePowerPortTemplateRequest := *openapiclient.NewWritablePowerPortTemplateRequest("Name_example") // WritablePowerPortTemplateRequest |
+ id := int32(56) // int32 | A unique integer value identifying this power port template.
+ writablePowerPortTemplateRequest := *openapiclient.NewWritablePowerPortTemplateRequest("Name_example") // WritablePowerPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesUpdate(context.Background(), id).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortTemplatesUpdate`: PowerPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesUpdate(context.Background(), id).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortTemplatesUpdate`: PowerPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesUpdate`: %v\n", resp)
}
```
@@ -24326,22 +24722,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerPortRequest |
+ powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPowerPortsBulkDestroy(context.Background()).PowerPortRequest(powerPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPowerPortsBulkDestroy(context.Background()).PowerPortRequest(powerPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -24390,24 +24786,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerPortRequest |
+ powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortsBulkPartialUpdate(context.Background()).PowerPortRequest(powerPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortsBulkPartialUpdate`: []PowerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortsBulkPartialUpdate(context.Background()).PowerPortRequest(powerPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortsBulkPartialUpdate`: []PowerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -24456,24 +24852,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerPortRequest |
+ powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortsBulkUpdate(context.Background()).PowerPortRequest(powerPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortsBulkUpdate`: []PowerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortsBulkUpdate(context.Background()).PowerPortRequest(powerPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortsBulkUpdate`: []PowerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsBulkUpdate`: %v\n", resp)
}
```
@@ -24522,24 +24918,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(int32(123), "Name_example") // WritablePowerPortRequest |
+ writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(int32(123), "Name_example") // WritablePowerPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortsCreate(context.Background()).WritablePowerPortRequest(writablePowerPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortsCreate`: PowerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortsCreate(context.Background()).WritablePowerPortRequest(writablePowerPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortsCreate`: PowerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsCreate`: %v\n", resp)
}
```
@@ -24588,22 +24984,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power port.
+ id := int32(56) // int32 | A unique integer value identifying this power port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimPowerPortsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimPowerPortsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -24656,150 +25052,150 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- allocatedDraw := []int32{int32(123)} // []int32 | (optional)
- allocatedDrawEmpty := true // bool | (optional)
- allocatedDrawGt := []int32{int32(123)} // []int32 | (optional)
- allocatedDrawGte := []int32{int32(123)} // []int32 | (optional)
- allocatedDrawLt := []int32{int32(123)} // []int32 | (optional)
- allocatedDrawLte := []int32{int32(123)} // []int32 | (optional)
- allocatedDrawN := []int32{int32(123)} // []int32 | (optional)
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (optional)
- cabled := true // bool | (optional)
- connected := true // bool | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- 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)
- deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- 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)
- location := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- maximumDraw := []int32{int32(123)} // []int32 | (optional)
- maximumDrawEmpty := true // bool | (optional)
- maximumDrawGt := []int32{int32(123)} // []int32 | (optional)
- maximumDrawGte := []int32{int32(123)} // []int32 | (optional)
- maximumDrawLt := []int32{int32(123)} // []int32 | (optional)
- maximumDrawLte := []int32{int32(123)} // []int32 | (optional)
- maximumDrawN := []int32{int32(123)} // []int32 | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- occupied := true // bool | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- rack := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- type_ := []string{"Inner_example"} // []string | Physical port type (optional)
- typeN := []string{"Inner_example"} // []string | Physical port type (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
- virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortsList`: PaginatedPowerPortList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ allocatedDraw := []int32{int32(123)} // []int32 | (optional)
+ allocatedDrawEmpty := true // bool | (optional)
+ allocatedDrawGt := []int32{int32(123)} // []int32 | (optional)
+ allocatedDrawGte := []int32{int32(123)} // []int32 | (optional)
+ allocatedDrawLt := []int32{int32(123)} // []int32 | (optional)
+ allocatedDrawLte := []int32{int32(123)} // []int32 | (optional)
+ allocatedDrawN := []int32{int32(123)} // []int32 | (optional)
+ cableEnd := "cableEnd_example" // string | (optional)
+ cableEndN := "cableEndN_example" // string | (optional)
+ cabled := true // bool | (optional)
+ connected := true // bool | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ 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)
+ deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ 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)
+ location := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ maximumDraw := []int32{int32(123)} // []int32 | (optional)
+ maximumDrawEmpty := true // bool | (optional)
+ maximumDrawGt := []int32{int32(123)} // []int32 | (optional)
+ maximumDrawGte := []int32{int32(123)} // []int32 | (optional)
+ maximumDrawLt := []int32{int32(123)} // []int32 | (optional)
+ maximumDrawLte := []int32{int32(123)} // []int32 | (optional)
+ maximumDrawN := []int32{int32(123)} // []int32 | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ occupied := true // bool | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ rack := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ type_ := []string{"Inner_example"} // []string | Physical port type (optional)
+ typeN := []string{"Inner_example"} // []string | Physical port type (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+ virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortsList`: PaginatedPowerPortList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsList`: %v\n", resp)
}
```
@@ -24973,25 +25369,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power port.
- patchedWritablePowerPortRequest := *openapiclient.NewPatchedWritablePowerPortRequest() // PatchedWritablePowerPortRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this power port.
+ patchedWritablePowerPortRequest := *openapiclient.NewPatchedWritablePowerPortRequest() // PatchedWritablePowerPortRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortsPartialUpdate(context.Background(), id).PatchedWritablePowerPortRequest(patchedWritablePowerPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortsPartialUpdate`: PowerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortsPartialUpdate(context.Background(), id).PatchedWritablePowerPortRequest(patchedWritablePowerPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortsPartialUpdate`: PowerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsPartialUpdate`: %v\n", resp)
}
```
@@ -25045,24 +25441,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power port.
+ id := int32(56) // int32 | A unique integer value identifying this power port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortsRetrieve`: PowerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortsRetrieve`: PowerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsRetrieve`: %v\n", resp)
}
```
@@ -25115,24 +25511,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power port.
+ id := int32(56) // int32 | A unique integer value identifying this power port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortsTraceRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsTraceRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortsTraceRetrieve`: PowerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsTraceRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortsTraceRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsTraceRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortsTraceRetrieve`: PowerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsTraceRetrieve`: %v\n", resp)
}
```
@@ -25185,25 +25581,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this power port.
- writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(int32(123), "Name_example") // WritablePowerPortRequest |
+ id := int32(56) // int32 | A unique integer value identifying this power port.
+ writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(int32(123), "Name_example") // WritablePowerPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPortsUpdate(context.Background(), id).WritablePowerPortRequest(writablePowerPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimPowerPortsUpdate`: PowerPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimPowerPortsUpdate(context.Background(), id).WritablePowerPortRequest(writablePowerPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimPowerPortsUpdate`: PowerPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsUpdate`: %v\n", resp)
}
```
@@ -25257,22 +25653,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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.NewNestedRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewNestedUserRequest("Username_example"), "Description_example")} // []RackReservationRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimRackReservationsBulkDestroy(context.Background()).RackReservationRequest(rackReservationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimRackReservationsBulkDestroy(context.Background()).RackReservationRequest(rackReservationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -25321,24 +25717,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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.NewNestedRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewNestedUserRequest("Username_example"), "Description_example")} // []RackReservationRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackReservationsBulkPartialUpdate(context.Background()).RackReservationRequest(rackReservationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRackReservationsBulkPartialUpdate`: []RackReservation
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackReservationsBulkPartialUpdate(context.Background()).RackReservationRequest(rackReservationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRackReservationsBulkPartialUpdate`: []RackReservation
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -25387,24 +25783,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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.NewNestedRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewNestedUserRequest("Username_example"), "Description_example")} // []RackReservationRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackReservationsBulkUpdate(context.Background()).RackReservationRequest(rackReservationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRackReservationsBulkUpdate`: []RackReservation
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackReservationsBulkUpdate(context.Background()).RackReservationRequest(rackReservationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRackReservationsBulkUpdate`: []RackReservation
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsBulkUpdate`: %v\n", resp)
}
```
@@ -25453,24 +25849,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableRackReservationRequest := *openapiclient.NewWritableRackReservationRequest(int32(123), []int32{int32(123)}, int32(123), "Description_example") // WritableRackReservationRequest |
+ writableRackReservationRequest := *openapiclient.NewWritableRackReservationRequest(int32(123), []int32{int32(123)}, int32(123), "Description_example") // WritableRackReservationRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackReservationsCreate(context.Background()).WritableRackReservationRequest(writableRackReservationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRackReservationsCreate`: RackReservation
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackReservationsCreate(context.Background()).WritableRackReservationRequest(writableRackReservationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRackReservationsCreate`: RackReservation
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsCreate`: %v\n", resp)
}
```
@@ -25519,22 +25915,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rack reservation.
+ id := int32(56) // int32 | A unique integer value identifying this rack reservation.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimRackReservationsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimRackReservationsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -25587,95 +25983,95 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- location := []int32{int32(123)} // []int32 | Location (slug) (optional)
- locationN := []int32{int32(123)} // []int32 | Location (slug) (optional)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- site := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- user := []string{"Inner_example"} // []string | User (name) (optional)
- userN := []string{"Inner_example"} // []string | User (name) (optional)
- userId := []int32{int32(123)} // []int32 | User (ID) (optional)
- userIdN := []int32{int32(123)} // []int32 | User (ID) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackReservationsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).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)
- }
- // response from `DcimRackReservationsList`: PaginatedRackReservationList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ location := []int32{int32(123)} // []int32 | Location (slug) (optional)
+ locationN := []int32{int32(123)} // []int32 | Location (slug) (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ user := []string{"Inner_example"} // []string | User (name) (optional)
+ userN := []string{"Inner_example"} // []string | User (name) (optional)
+ userId := []int32{int32(123)} // []int32 | User (ID) (optional)
+ userIdN := []int32{int32(123)} // []int32 | User (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackReservationsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).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)
+ }
+ // response from `DcimRackReservationsList`: PaginatedRackReservationList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsList`: %v\n", resp)
}
```
@@ -25794,25 +26190,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rack reservation.
- patchedWritableRackReservationRequest := *openapiclient.NewPatchedWritableRackReservationRequest() // PatchedWritableRackReservationRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this rack reservation.
+ patchedWritableRackReservationRequest := *openapiclient.NewPatchedWritableRackReservationRequest() // PatchedWritableRackReservationRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedWritableRackReservationRequest(patchedWritableRackReservationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRackReservationsPartialUpdate`: RackReservation
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedWritableRackReservationRequest(patchedWritableRackReservationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRackReservationsPartialUpdate`: RackReservation
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsPartialUpdate`: %v\n", resp)
}
```
@@ -25866,24 +26262,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rack reservation.
+ id := int32(56) // int32 | A unique integer value identifying this rack reservation.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackReservationsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRackReservationsRetrieve`: RackReservation
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackReservationsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRackReservationsRetrieve`: RackReservation
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsRetrieve`: %v\n", resp)
}
```
@@ -25936,25 +26332,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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 |
+ 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 |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).WritableRackReservationRequest(writableRackReservationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRackReservationsUpdate`: RackReservation
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).WritableRackReservationRequest(writableRackReservationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRackReservationsUpdate`: RackReservation
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsUpdate`: %v\n", resp)
}
```
@@ -26008,22 +26404,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest |
+ rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimRackRolesBulkDestroy(context.Background()).RackRoleRequest(rackRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimRackRolesBulkDestroy(context.Background()).RackRoleRequest(rackRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -26072,24 +26468,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest |
+ rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRackRolesBulkPartialUpdate`: []RackRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRackRolesBulkPartialUpdate`: []RackRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -26138,24 +26534,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest |
+ rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRackRolesBulkUpdate`: []RackRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRackRolesBulkUpdate`: []RackRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkUpdate`: %v\n", resp)
}
```
@@ -26204,24 +26600,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest |
+ rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).RackRoleRequest(rackRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRackRolesCreate`: RackRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).RackRoleRequest(rackRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRackRolesCreate`: RackRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesCreate`: %v\n", resp)
}
```
@@ -26270,22 +26666,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rack role.
+ id := int32(56) // int32 | A unique integer value identifying this rack role.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimRackRolesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimRackRolesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -26338,98 +26734,98 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- color := []string{"Inner_example"} // []string | (optional)
- colorEmpty := true // bool | (optional)
- colorIc := []string{"Inner_example"} // []string | (optional)
- colorIe := []string{"Inner_example"} // []string | (optional)
- colorIew := []string{"Inner_example"} // []string | (optional)
- colorIsw := []string{"Inner_example"} // []string | (optional)
- colorN := []string{"Inner_example"} // []string | (optional)
- colorNic := []string{"Inner_example"} // []string | (optional)
- colorNie := []string{"Inner_example"} // []string | (optional)
- colorNiew := []string{"Inner_example"} // []string | (optional)
- colorNisw := []string{"Inner_example"} // []string | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRackRolesList`: PaginatedRackRoleList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ color := []string{"Inner_example"} // []string | (optional)
+ colorEmpty := true // bool | (optional)
+ colorIc := []string{"Inner_example"} // []string | (optional)
+ colorIe := []string{"Inner_example"} // []string | (optional)
+ colorIew := []string{"Inner_example"} // []string | (optional)
+ colorIsw := []string{"Inner_example"} // []string | (optional)
+ colorN := []string{"Inner_example"} // []string | (optional)
+ colorNic := []string{"Inner_example"} // []string | (optional)
+ colorNie := []string{"Inner_example"} // []string | (optional)
+ colorNiew := []string{"Inner_example"} // []string | (optional)
+ colorNisw := []string{"Inner_example"} // []string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRackRolesList`: PaginatedRackRoleList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesList`: %v\n", resp)
}
```
@@ -26551,25 +26947,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rack role.
- patchedRackRoleRequest := *openapiclient.NewPatchedRackRoleRequest() // PatchedRackRoleRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this rack role.
+ patchedRackRoleRequest := *openapiclient.NewPatchedRackRoleRequest() // PatchedRackRoleRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRackRolesPartialUpdate`: RackRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRackRolesPartialUpdate`: RackRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesPartialUpdate`: %v\n", resp)
}
```
@@ -26623,24 +27019,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rack role.
+ id := int32(56) // int32 | A unique integer value identifying this rack role.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackRolesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRackRolesRetrieve`: RackRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackRolesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRackRolesRetrieve`: RackRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesRetrieve`: %v\n", resp)
}
```
@@ -26693,25 +27089,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rack role.
- rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest |
+ id := int32(56) // int32 | A unique integer value identifying this rack role.
+ rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).RackRoleRequest(rackRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRackRolesUpdate`: RackRole
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).RackRoleRequest(rackRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRackRolesUpdate`: RackRole
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesUpdate`: %v\n", resp)
}
```
@@ -26765,22 +27161,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []RackRequest |
+ rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []RackRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimRacksBulkDestroy(context.Background()).RackRequest(rackRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimRacksBulkDestroy(context.Background()).RackRequest(rackRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -26829,24 +27225,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []RackRequest |
+ rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []RackRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRacksBulkPartialUpdate(context.Background()).RackRequest(rackRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRacksBulkPartialUpdate`: []Rack
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRacksBulkPartialUpdate(context.Background()).RackRequest(rackRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRacksBulkPartialUpdate`: []Rack
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksBulkPartialUpdate`: %v\n", resp)
}
```
@@ -26895,24 +27291,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []RackRequest |
+ rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []RackRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRacksBulkUpdate(context.Background()).RackRequest(rackRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRacksBulkUpdate`: []Rack
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRacksBulkUpdate(context.Background()).RackRequest(rackRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRacksBulkUpdate`: []Rack
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksBulkUpdate`: %v\n", resp)
}
```
@@ -26961,24 +27357,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", int32(123)) // WritableRackRequest |
+ writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", int32(123)) // WritableRackRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRacksCreate(context.Background()).WritableRackRequest(writableRackRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRacksCreate`: Rack
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRacksCreate(context.Background()).WritableRackRequest(writableRackRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRacksCreate`: Rack
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksCreate`: %v\n", resp)
}
```
@@ -27027,22 +27423,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rack.
+ id := int32(56) // int32 | A unique integer value identifying this rack.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimRacksDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimRacksDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -27095,24 +27491,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rack.
+ id := int32(56) // int32 | A unique integer value identifying this rack.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRacksElevationRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksElevationRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRacksElevationRetrieve`: Rack
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksElevationRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRacksElevationRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksElevationRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRacksElevationRetrieve`: Rack
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksElevationRetrieve`: %v\n", resp)
}
```
@@ -27153,7 +27549,7 @@ Name | Type | Description | Notes
## DcimRacksList
-> PaginatedRackList DcimRacksList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute()
+> PaginatedRackList DcimRacksList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute()
@@ -27165,192 +27561,203 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- assetTag := []string{"Inner_example"} // []string | (optional)
- assetTagEmpty := true // bool | (optional)
- assetTagIc := []string{"Inner_example"} // []string | (optional)
- assetTagIe := []string{"Inner_example"} // []string | (optional)
- assetTagIew := []string{"Inner_example"} // []string | (optional)
- assetTagIsw := []string{"Inner_example"} // []string | (optional)
- assetTagN := []string{"Inner_example"} // []string | (optional)
- assetTagNic := []string{"Inner_example"} // []string | (optional)
- assetTagNie := []string{"Inner_example"} // []string | (optional)
- assetTagNiew := []string{"Inner_example"} // []string | (optional)
- assetTagNisw := []string{"Inner_example"} // []string | (optional)
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- 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)
- descUnits := true // bool | (optional)
- facilityId := []string{"Inner_example"} // []string | (optional)
- facilityIdEmpty := true // bool | (optional)
- facilityIdIc := []string{"Inner_example"} // []string | (optional)
- facilityIdIe := []string{"Inner_example"} // []string | (optional)
- facilityIdIew := []string{"Inner_example"} // []string | (optional)
- facilityIdIsw := []string{"Inner_example"} // []string | (optional)
- facilityIdN := []string{"Inner_example"} // []string | (optional)
- facilityIdNic := []string{"Inner_example"} // []string | (optional)
- facilityIdNie := []string{"Inner_example"} // []string | (optional)
- facilityIdNiew := []string{"Inner_example"} // []string | (optional)
- facilityIdNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- location := []int32{int32(123)} // []int32 | Location (slug) (optional)
- locationN := []int32{int32(123)} // []int32 | Location (slug) (optional)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- maxWeight := []int32{int32(123)} // []int32 | (optional)
- maxWeightEmpty := true // bool | (optional)
- maxWeightGt := []int32{int32(123)} // []int32 | (optional)
- maxWeightGte := []int32{int32(123)} // []int32 | (optional)
- maxWeightLt := []int32{int32(123)} // []int32 | (optional)
- maxWeightLte := []int32{int32(123)} // []int32 | (optional)
- maxWeightN := []int32{int32(123)} // []int32 | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- mountingDepth := []int32{int32(123)} // []int32 | (optional)
- mountingDepthEmpty := true // bool | (optional)
- mountingDepthGt := []int32{int32(123)} // []int32 | (optional)
- mountingDepthGte := []int32{int32(123)} // []int32 | (optional)
- mountingDepthLt := []int32{int32(123)} // []int32 | (optional)
- mountingDepthLte := []int32{int32(123)} // []int32 | (optional)
- mountingDepthN := []int32{int32(123)} // []int32 | (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)
- outerDepth := []int32{int32(123)} // []int32 | (optional)
- outerDepthEmpty := true // bool | (optional)
- outerDepthGt := []int32{int32(123)} // []int32 | (optional)
- outerDepthGte := []int32{int32(123)} // []int32 | (optional)
- outerDepthLt := []int32{int32(123)} // []int32 | (optional)
- outerDepthLte := []int32{int32(123)} // []int32 | (optional)
- outerDepthN := []int32{int32(123)} // []int32 | (optional)
- outerUnit := "outerUnit_example" // string | (optional)
- outerUnitN := "outerUnitN_example" // string | (optional)
- outerWidth := []int32{int32(123)} // []int32 | (optional)
- outerWidthEmpty := true // bool | (optional)
- outerWidthGt := []int32{int32(123)} // []int32 | (optional)
- outerWidthGte := []int32{int32(123)} // []int32 | (optional)
- outerWidthLt := []int32{int32(123)} // []int32 | (optional)
- outerWidthLte := []int32{int32(123)} // []int32 | (optional)
- outerWidthN := []int32{int32(123)} // []int32 | (optional)
- q := "q_example" // string | Search (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
- roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
- serial := []string{"Inner_example"} // []string | (optional)
- serialEmpty := true // bool | (optional)
- serialIc := []string{"Inner_example"} // []string | (optional)
- serialIe := []string{"Inner_example"} // []string | (optional)
- serialIew := []string{"Inner_example"} // []string | (optional)
- serialIsw := []string{"Inner_example"} // []string | (optional)
- serialN := []string{"Inner_example"} // []string | (optional)
- serialNic := []string{"Inner_example"} // []string | (optional)
- serialNie := []string{"Inner_example"} // []string | (optional)
- serialNiew := []string{"Inner_example"} // []string | (optional)
- serialNisw := []string{"Inner_example"} // []string | (optional)
- site := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- startingUnit := []int32{int32(123)} // []int32 | (optional)
- startingUnitEmpty := true // bool | (optional)
- startingUnitGt := []int32{int32(123)} // []int32 | (optional)
- startingUnitGte := []int32{int32(123)} // []int32 | (optional)
- startingUnitLt := []int32{int32(123)} // []int32 | (optional)
- startingUnitLte := []int32{int32(123)} // []int32 | (optional)
- startingUnitN := []int32{int32(123)} // []int32 | (optional)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- type_ := []string{"Inner_example"} // []string | (optional)
- typeN := []string{"Inner_example"} // []string | (optional)
- uHeight := []int32{int32(123)} // []int32 | (optional)
- uHeightEmpty := true // bool | (optional)
- uHeightGt := []int32{int32(123)} // []int32 | (optional)
- uHeightGte := []int32{int32(123)} // []int32 | (optional)
- uHeightLt := []int32{int32(123)} // []int32 | (optional)
- uHeightLte := []int32{int32(123)} // []int32 | (optional)
- uHeightN := []int32{int32(123)} // []int32 | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- weight := []float64{float64(123)} // []float64 | (optional)
- weightEmpty := true // bool | (optional)
- weightGt := []float64{float64(123)} // []float64 | (optional)
- weightGte := []float64{float64(123)} // []float64 | (optional)
- weightLt := []float64{float64(123)} // []float64 | (optional)
- weightLte := []float64{float64(123)} // []float64 | (optional)
- weightN := []float64{float64(123)} // []float64 | (optional)
- weightUnit := "weightUnit_example" // string | (optional)
- weightUnitN := "weightUnitN_example" // string | (optional)
- width := []int32{int32(123)} // []int32 | Rail-to-rail width (optional)
- widthN := []int32{int32(123)} // []int32 | Rail-to-rail width (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRacksList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRacksList`: PaginatedRackList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ assetTag := []string{"Inner_example"} // []string | (optional)
+ assetTagEmpty := true // bool | (optional)
+ assetTagIc := []string{"Inner_example"} // []string | (optional)
+ assetTagIe := []string{"Inner_example"} // []string | (optional)
+ assetTagIew := []string{"Inner_example"} // []string | (optional)
+ assetTagIsw := []string{"Inner_example"} // []string | (optional)
+ assetTagN := []string{"Inner_example"} // []string | (optional)
+ assetTagNic := []string{"Inner_example"} // []string | (optional)
+ assetTagNie := []string{"Inner_example"} // []string | (optional)
+ assetTagNiew := []string{"Inner_example"} // []string | (optional)
+ assetTagNisw := []string{"Inner_example"} // []string | (optional)
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ 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)
+ descUnits := true // bool | (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)
+ facilityId := []string{"Inner_example"} // []string | (optional)
+ facilityIdEmpty := true // bool | (optional)
+ facilityIdIc := []string{"Inner_example"} // []string | (optional)
+ facilityIdIe := []string{"Inner_example"} // []string | (optional)
+ facilityIdIew := []string{"Inner_example"} // []string | (optional)
+ facilityIdIsw := []string{"Inner_example"} // []string | (optional)
+ facilityIdN := []string{"Inner_example"} // []string | (optional)
+ facilityIdNic := []string{"Inner_example"} // []string | (optional)
+ facilityIdNie := []string{"Inner_example"} // []string | (optional)
+ facilityIdNiew := []string{"Inner_example"} // []string | (optional)
+ facilityIdNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ location := []int32{int32(123)} // []int32 | Location (slug) (optional)
+ locationN := []int32{int32(123)} // []int32 | Location (slug) (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ maxWeight := []int32{int32(123)} // []int32 | (optional)
+ maxWeightEmpty := true // bool | (optional)
+ maxWeightGt := []int32{int32(123)} // []int32 | (optional)
+ maxWeightGte := []int32{int32(123)} // []int32 | (optional)
+ maxWeightLt := []int32{int32(123)} // []int32 | (optional)
+ maxWeightLte := []int32{int32(123)} // []int32 | (optional)
+ maxWeightN := []int32{int32(123)} // []int32 | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ mountingDepth := []int32{int32(123)} // []int32 | (optional)
+ mountingDepthEmpty := true // bool | (optional)
+ mountingDepthGt := []int32{int32(123)} // []int32 | (optional)
+ mountingDepthGte := []int32{int32(123)} // []int32 | (optional)
+ mountingDepthLt := []int32{int32(123)} // []int32 | (optional)
+ mountingDepthLte := []int32{int32(123)} // []int32 | (optional)
+ mountingDepthN := []int32{int32(123)} // []int32 | (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)
+ outerDepth := []int32{int32(123)} // []int32 | (optional)
+ outerDepthEmpty := true // bool | (optional)
+ outerDepthGt := []int32{int32(123)} // []int32 | (optional)
+ outerDepthGte := []int32{int32(123)} // []int32 | (optional)
+ outerDepthLt := []int32{int32(123)} // []int32 | (optional)
+ outerDepthLte := []int32{int32(123)} // []int32 | (optional)
+ outerDepthN := []int32{int32(123)} // []int32 | (optional)
+ outerUnit := "outerUnit_example" // string | (optional)
+ outerUnitN := "outerUnitN_example" // string | (optional)
+ outerWidth := []int32{int32(123)} // []int32 | (optional)
+ outerWidthEmpty := true // bool | (optional)
+ outerWidthGt := []int32{int32(123)} // []int32 | (optional)
+ outerWidthGte := []int32{int32(123)} // []int32 | (optional)
+ outerWidthLt := []int32{int32(123)} // []int32 | (optional)
+ outerWidthLte := []int32{int32(123)} // []int32 | (optional)
+ outerWidthN := []int32{int32(123)} // []int32 | (optional)
+ q := "q_example" // string | Search (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
+ roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
+ serial := []string{"Inner_example"} // []string | (optional)
+ serialEmpty := true // bool | (optional)
+ serialIc := []string{"Inner_example"} // []string | (optional)
+ serialIe := []string{"Inner_example"} // []string | (optional)
+ serialIew := []string{"Inner_example"} // []string | (optional)
+ serialIsw := []string{"Inner_example"} // []string | (optional)
+ serialN := []string{"Inner_example"} // []string | (optional)
+ serialNic := []string{"Inner_example"} // []string | (optional)
+ serialNie := []string{"Inner_example"} // []string | (optional)
+ serialNiew := []string{"Inner_example"} // []string | (optional)
+ serialNisw := []string{"Inner_example"} // []string | (optional)
+ site := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ startingUnit := []int32{int32(123)} // []int32 | (optional)
+ startingUnitEmpty := true // bool | (optional)
+ startingUnitGt := []int32{int32(123)} // []int32 | (optional)
+ startingUnitGte := []int32{int32(123)} // []int32 | (optional)
+ startingUnitLt := []int32{int32(123)} // []int32 | (optional)
+ startingUnitLte := []int32{int32(123)} // []int32 | (optional)
+ startingUnitN := []int32{int32(123)} // []int32 | (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ type_ := []string{"Inner_example"} // []string | (optional)
+ typeN := []string{"Inner_example"} // []string | (optional)
+ uHeight := []int32{int32(123)} // []int32 | (optional)
+ uHeightEmpty := true // bool | (optional)
+ uHeightGt := []int32{int32(123)} // []int32 | (optional)
+ uHeightGte := []int32{int32(123)} // []int32 | (optional)
+ uHeightLt := []int32{int32(123)} // []int32 | (optional)
+ uHeightLte := []int32{int32(123)} // []int32 | (optional)
+ uHeightN := []int32{int32(123)} // []int32 | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ weight := []float64{float64(123)} // []float64 | (optional)
+ weightEmpty := true // bool | (optional)
+ weightGt := []float64{float64(123)} // []float64 | (optional)
+ weightGte := []float64{float64(123)} // []float64 | (optional)
+ weightLt := []float64{float64(123)} // []float64 | (optional)
+ weightLte := []float64{float64(123)} // []float64 | (optional)
+ weightN := []float64{float64(123)} // []float64 | (optional)
+ weightUnit := "weightUnit_example" // string | (optional)
+ weightUnitN := "weightUnitN_example" // string | (optional)
+ width := []int32{int32(123)} // []int32 | Rail-to-rail width (optional)
+ widthN := []int32{int32(123)} // []int32 | Rail-to-rail width (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRacksList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRacksList`: PaginatedRackList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksList`: %v\n", resp)
}
```
@@ -27391,6 +27798,17 @@ Name | Type | Description | Notes
**createdN** | [**[]time.Time**](time.Time.md) | |
**createdByRequest** | **string** | |
**descUnits** | **bool** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
**facilityId** | **[]string** | |
**facilityIdEmpty** | **bool** | |
**facilityIdIc** | **[]string** | |
@@ -27566,25 +27984,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rack.
- patchedWritableRackRequest := *openapiclient.NewPatchedWritableRackRequest() // PatchedWritableRackRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this rack.
+ patchedWritableRackRequest := *openapiclient.NewPatchedWritableRackRequest() // PatchedWritableRackRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRacksPartialUpdate(context.Background(), id).PatchedWritableRackRequest(patchedWritableRackRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRacksPartialUpdate`: Rack
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRacksPartialUpdate(context.Background(), id).PatchedWritableRackRequest(patchedWritableRackRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRacksPartialUpdate`: Rack
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksPartialUpdate`: %v\n", resp)
}
```
@@ -27638,24 +28056,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rack.
+ id := int32(56) // int32 | A unique integer value identifying this rack.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRacksRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRacksRetrieve`: Rack
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRacksRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRacksRetrieve`: Rack
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksRetrieve`: %v\n", resp)
}
```
@@ -27708,25 +28126,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rack.
- writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", int32(123)) // WritableRackRequest |
+ id := int32(56) // int32 | A unique integer value identifying this rack.
+ writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", int32(123)) // WritableRackRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRacksUpdate(context.Background(), id).WritableRackRequest(writableRackRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRacksUpdate`: Rack
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRacksUpdate(context.Background(), id).WritableRackRequest(writableRackRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRacksUpdate`: Rack
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksUpdate`: %v\n", resp)
}
```
@@ -27780,22 +28198,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", "Type_example")} // []RearPortTemplateRequest |
+ rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkDestroy(context.Background()).RearPortTemplateRequest(rearPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkDestroy(context.Background()).RearPortTemplateRequest(rearPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -27844,24 +28262,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", "Type_example")} // []RearPortTemplateRequest |
+ rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkPartialUpdate(context.Background()).RearPortTemplateRequest(rearPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortTemplatesBulkPartialUpdate`: []RearPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkPartialUpdate(context.Background()).RearPortTemplateRequest(rearPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortTemplatesBulkPartialUpdate`: []RearPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -27910,24 +28328,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", "Type_example")} // []RearPortTemplateRequest |
+ rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkUpdate(context.Background()).RearPortTemplateRequest(rearPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortTemplatesBulkUpdate`: []RearPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkUpdate(context.Background()).RearPortTemplateRequest(rearPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortTemplatesBulkUpdate`: []RearPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesBulkUpdate`: %v\n", resp)
}
```
@@ -27976,24 +28394,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableRearPortTemplateRequest := *openapiclient.NewWritableRearPortTemplateRequest("Name_example", "Type_example") // WritableRearPortTemplateRequest |
+ writableRearPortTemplateRequest := *openapiclient.NewWritableRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesCreate(context.Background()).WritableRearPortTemplateRequest(writableRearPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortTemplatesCreate`: RearPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesCreate(context.Background()).WritableRearPortTemplateRequest(writableRearPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortTemplatesCreate`: RearPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesCreate`: %v\n", resp)
}
```
@@ -28042,22 +28460,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rear port template.
+ id := int32(56) // int32 | A unique integer value identifying this rear port template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimRearPortTemplatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimRearPortTemplatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -28098,7 +28516,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).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).Id(id).IdEmpty(idEmpty).IdGt(idGt).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()
@@ -28110,87 +28528,98 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- color := []string{"Inner_example"} // []string | (optional)
- colorEmpty := true // bool | (optional)
- colorIc := []string{"Inner_example"} // []string | (optional)
- colorIe := []string{"Inner_example"} // []string | (optional)
- colorIew := []string{"Inner_example"} // []string | (optional)
- colorIsw := []string{"Inner_example"} // []string | (optional)
- colorN := []string{"Inner_example"} // []string | (optional)
- colorNic := []string{"Inner_example"} // []string | (optional)
- colorNie := []string{"Inner_example"} // []string | (optional)
- colorNiew := []string{"Inner_example"} // []string | (optional)
- colorNisw := []string{"Inner_example"} // []string | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
- name := []string{"Inner_example"} // []string | (optional)
- 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)
- positions := []int32{int32(123)} // []int32 | (optional)
- positionsEmpty := true // bool | (optional)
- positionsGt := []int32{int32(123)} // []int32 | (optional)
- positionsGte := []int32{int32(123)} // []int32 | (optional)
- positionsLt := []int32{int32(123)} // []int32 | (optional)
- positionsLte := []int32{int32(123)} // []int32 | (optional)
- positionsN := []int32{int32(123)} // []int32 | (optional)
- q := "q_example" // string | Search (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.DcimRearPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortTemplatesList`: PaginatedRearPortTemplateList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ color := []string{"Inner_example"} // []string | (optional)
+ colorEmpty := true // bool | (optional)
+ colorIc := []string{"Inner_example"} // []string | (optional)
+ colorIe := []string{"Inner_example"} // []string | (optional)
+ colorIew := []string{"Inner_example"} // []string | (optional)
+ colorIsw := []string{"Inner_example"} // []string | (optional)
+ colorN := []string{"Inner_example"} // []string | (optional)
+ colorNic := []string{"Inner_example"} // []string | (optional)
+ colorNie := []string{"Inner_example"} // []string | (optional)
+ colorNiew := []string{"Inner_example"} // []string | (optional)
+ colorNisw := []string{"Inner_example"} // []string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ 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)
+ positions := []int32{int32(123)} // []int32 | (optional)
+ positionsEmpty := true // bool | (optional)
+ positionsGt := []int32{int32(123)} // []int32 | (optional)
+ positionsGte := []int32{int32(123)} // []int32 | (optional)
+ positionsLt := []int32{int32(123)} // []int32 | (optional)
+ positionsLte := []int32{int32(123)} // []int32 | (optional)
+ positionsN := []int32{int32(123)} // []int32 | (optional)
+ q := "q_example" // string | Search (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.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()
+ 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)
+ }
+ // response from `DcimRearPortTemplatesList`: PaginatedRearPortTemplateList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesList`: %v\n", resp)
}
```
@@ -28224,6 +28653,17 @@ 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** | |
**devicetypeId** | **[]int32** | Device type (ID) |
**devicetypeIdN** | **[]int32** | Device type (ID) |
**id** | **[]int32** | |
@@ -28301,25 +28741,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rear port template.
- patchedWritableRearPortTemplateRequest := *openapiclient.NewPatchedWritableRearPortTemplateRequest() // PatchedWritableRearPortTemplateRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this rear port template.
+ patchedWritableRearPortTemplateRequest := *openapiclient.NewPatchedWritableRearPortTemplateRequest() // PatchedWritableRearPortTemplateRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesPartialUpdate(context.Background(), id).PatchedWritableRearPortTemplateRequest(patchedWritableRearPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortTemplatesPartialUpdate`: RearPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesPartialUpdate(context.Background(), id).PatchedWritableRearPortTemplateRequest(patchedWritableRearPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortTemplatesPartialUpdate`: RearPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesPartialUpdate`: %v\n", resp)
}
```
@@ -28373,24 +28813,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rear port template.
+ id := int32(56) // int32 | A unique integer value identifying this rear port template.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortTemplatesRetrieve`: RearPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortTemplatesRetrieve`: RearPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesRetrieve`: %v\n", resp)
}
```
@@ -28443,25 +28883,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rear port template.
- writableRearPortTemplateRequest := *openapiclient.NewWritableRearPortTemplateRequest("Name_example", "Type_example") // WritableRearPortTemplateRequest |
+ id := int32(56) // int32 | A unique integer value identifying this rear port template.
+ writableRearPortTemplateRequest := *openapiclient.NewWritableRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortTemplateRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesUpdate(context.Background(), id).WritableRearPortTemplateRequest(writableRearPortTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortTemplatesUpdate`: RearPortTemplate
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesUpdate(context.Background(), id).WritableRearPortTemplateRequest(writableRearPortTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortTemplatesUpdate`: RearPortTemplate
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesUpdate`: %v\n", resp)
}
```
@@ -28515,22 +28955,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", "Type_example")} // []RearPortRequest |
+ rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimRearPortsBulkDestroy(context.Background()).RearPortRequest(rearPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimRearPortsBulkDestroy(context.Background()).RearPortRequest(rearPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -28579,24 +29019,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", "Type_example")} // []RearPortRequest |
+ rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortsBulkPartialUpdate(context.Background()).RearPortRequest(rearPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortsBulkPartialUpdate`: []RearPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortsBulkPartialUpdate(context.Background()).RearPortRequest(rearPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortsBulkPartialUpdate`: []RearPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -28645,24 +29085,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", "Type_example")} // []RearPortRequest |
+ rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortsBulkUpdate(context.Background()).RearPortRequest(rearPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortsBulkUpdate`: []RearPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortsBulkUpdate(context.Background()).RearPortRequest(rearPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortsBulkUpdate`: []RearPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsBulkUpdate`: %v\n", resp)
}
```
@@ -28711,24 +29151,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(int32(123), "Name_example", "Type_example") // WritableRearPortRequest |
+ writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(int32(123), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortsCreate(context.Background()).WritableRearPortRequest(writableRearPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortsCreate`: RearPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortsCreate(context.Background()).WritableRearPortRequest(writableRearPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortsCreate`: RearPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsCreate`: %v\n", resp)
}
```
@@ -28777,22 +29217,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rear port.
+ id := int32(56) // int32 | A unique integer value identifying this rear port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimRearPortsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimRearPortsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -28845,153 +29285,153 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (optional)
- cabled := true // bool | (optional)
- color := []string{"Inner_example"} // []string | (optional)
- colorEmpty := true // bool | (optional)
- colorIc := []string{"Inner_example"} // []string | (optional)
- colorIe := []string{"Inner_example"} // []string | (optional)
- colorIew := []string{"Inner_example"} // []string | (optional)
- colorIsw := []string{"Inner_example"} // []string | (optional)
- colorN := []string{"Inner_example"} // []string | (optional)
- colorNic := []string{"Inner_example"} // []string | (optional)
- colorNie := []string{"Inner_example"} // []string | (optional)
- colorNiew := []string{"Inner_example"} // []string | (optional)
- colorNisw := []string{"Inner_example"} // []string | (optional)
- 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)
- 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)
- deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- 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)
- location := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- 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)
- positions := []int32{int32(123)} // []int32 | (optional)
- positionsEmpty := true // bool | (optional)
- positionsGt := []int32{int32(123)} // []int32 | (optional)
- positionsGte := []int32{int32(123)} // []int32 | (optional)
- positionsLt := []int32{int32(123)} // []int32 | (optional)
- positionsLte := []int32{int32(123)} // []int32 | (optional)
- positionsN := []int32{int32(123)} // []int32 | (optional)
- q := "q_example" // string | Search (optional)
- rack := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
- rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
- roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- type_ := []string{"Inner_example"} // []string | (optional)
- typeN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
- virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
- virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortsList`: PaginatedRearPortList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ cableEnd := "cableEnd_example" // string | (optional)
+ cableEndN := "cableEndN_example" // string | (optional)
+ cabled := true // bool | (optional)
+ color := []string{"Inner_example"} // []string | (optional)
+ colorEmpty := true // bool | (optional)
+ colorIc := []string{"Inner_example"} // []string | (optional)
+ colorIe := []string{"Inner_example"} // []string | (optional)
+ colorIew := []string{"Inner_example"} // []string | (optional)
+ colorIsw := []string{"Inner_example"} // []string | (optional)
+ colorN := []string{"Inner_example"} // []string | (optional)
+ colorNic := []string{"Inner_example"} // []string | (optional)
+ colorNie := []string{"Inner_example"} // []string | (optional)
+ colorNiew := []string{"Inner_example"} // []string | (optional)
+ colorNisw := []string{"Inner_example"} // []string | (optional)
+ 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)
+ 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)
+ deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ 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)
+ location := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ 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)
+ positions := []int32{int32(123)} // []int32 | (optional)
+ positionsEmpty := true // bool | (optional)
+ positionsGt := []int32{int32(123)} // []int32 | (optional)
+ positionsGte := []int32{int32(123)} // []int32 | (optional)
+ positionsLt := []int32{int32(123)} // []int32 | (optional)
+ positionsLte := []int32{int32(123)} // []int32 | (optional)
+ positionsN := []int32{int32(123)} // []int32 | (optional)
+ q := "q_example" // string | Search (optional)
+ rack := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
+ rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Device role (slug) (optional)
+ roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ type_ := []string{"Inner_example"} // []string | (optional)
+ typeN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional)
+ virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+ virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortsList`: PaginatedRearPortList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsList`: %v\n", resp)
}
```
@@ -29168,25 +29608,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rear port.
- patchedWritableRearPortRequest := *openapiclient.NewPatchedWritableRearPortRequest() // PatchedWritableRearPortRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this rear port.
+ patchedWritableRearPortRequest := *openapiclient.NewPatchedWritableRearPortRequest() // PatchedWritableRearPortRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortsPartialUpdate(context.Background(), id).PatchedWritableRearPortRequest(patchedWritableRearPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortsPartialUpdate`: RearPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortsPartialUpdate(context.Background(), id).PatchedWritableRearPortRequest(patchedWritableRearPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortsPartialUpdate`: RearPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsPartialUpdate`: %v\n", resp)
}
```
@@ -29240,24 +29680,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rear port.
+ id := int32(56) // int32 | A unique integer value identifying this rear port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortsPathsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsPathsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortsPathsRetrieve`: RearPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsPathsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortsPathsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsPathsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortsPathsRetrieve`: RearPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsPathsRetrieve`: %v\n", resp)
}
```
@@ -29310,24 +29750,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rear port.
+ id := int32(56) // int32 | A unique integer value identifying this rear port.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortsRetrieve`: RearPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortsRetrieve`: RearPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsRetrieve`: %v\n", resp)
}
```
@@ -29380,25 +29820,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this rear port.
- writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(int32(123), "Name_example", "Type_example") // WritableRearPortRequest |
+ 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 |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortsUpdate(context.Background(), id).WritableRearPortRequest(writableRearPortRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRearPortsUpdate`: RearPort
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRearPortsUpdate(context.Background(), id).WritableRearPortRequest(writableRearPortRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRearPortsUpdate`: RearPort
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsUpdate`: %v\n", resp)
}
```
@@ -29452,22 +29892,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- regionRequest := []openapiclient.RegionRequest{*openapiclient.NewRegionRequest("Name_example", "Slug_example")} // []RegionRequest |
+ regionRequest := []openapiclient.RegionRequest{*openapiclient.NewRegionRequest("Name_example", "Slug_example")} // []RegionRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimRegionsBulkDestroy(context.Background()).RegionRequest(regionRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimRegionsBulkDestroy(context.Background()).RegionRequest(regionRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -29516,24 +29956,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- regionRequest := []openapiclient.RegionRequest{*openapiclient.NewRegionRequest("Name_example", "Slug_example")} // []RegionRequest |
+ regionRequest := []openapiclient.RegionRequest{*openapiclient.NewRegionRequest("Name_example", "Slug_example")} // []RegionRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRegionsBulkPartialUpdate(context.Background()).RegionRequest(regionRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRegionsBulkPartialUpdate`: []Region
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRegionsBulkPartialUpdate(context.Background()).RegionRequest(regionRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRegionsBulkPartialUpdate`: []Region
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -29582,24 +30022,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- regionRequest := []openapiclient.RegionRequest{*openapiclient.NewRegionRequest("Name_example", "Slug_example")} // []RegionRequest |
+ regionRequest := []openapiclient.RegionRequest{*openapiclient.NewRegionRequest("Name_example", "Slug_example")} // []RegionRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRegionsBulkUpdate(context.Background()).RegionRequest(regionRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRegionsBulkUpdate`: []Region
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRegionsBulkUpdate(context.Background()).RegionRequest(regionRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRegionsBulkUpdate`: []Region
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsBulkUpdate`: %v\n", resp)
}
```
@@ -29648,24 +30088,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableRegionRequest := *openapiclient.NewWritableRegionRequest("Name_example", "Slug_example") // WritableRegionRequest |
+ writableRegionRequest := *openapiclient.NewWritableRegionRequest("Name_example", "Slug_example") // WritableRegionRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRegionsCreate(context.Background()).WritableRegionRequest(writableRegionRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRegionsCreate`: Region
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRegionsCreate(context.Background()).WritableRegionRequest(writableRegionRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRegionsCreate`: Region
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsCreate`: %v\n", resp)
}
```
@@ -29714,22 +30154,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this region.
+ id := int32(56) // int32 | A unique integer value identifying this region.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimRegionsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimRegionsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -29782,97 +30222,97 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- parent := []string{"Inner_example"} // []string | Parent region (slug) (optional)
- parentN := []string{"Inner_example"} // []string | Parent region (slug) (optional)
- parentId := []*int32{int32(123)} // []*int32 | Parent region (ID) (optional)
- parentIdN := []*int32{int32(123)} // []*int32 | Parent region (ID) (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRegionsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRegionsList`: PaginatedRegionList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ parent := []string{"Inner_example"} // []string | Parent region (slug) (optional)
+ parentN := []string{"Inner_example"} // []string | Parent region (slug) (optional)
+ parentId := []*int32{int32(123)} // []*int32 | Parent region (ID) (optional)
+ parentIdN := []*int32{int32(123)} // []*int32 | Parent region (ID) (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRegionsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRegionsList`: PaginatedRegionList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsList`: %v\n", resp)
}
```
@@ -29993,25 +30433,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this region.
- patchedWritableRegionRequest := *openapiclient.NewPatchedWritableRegionRequest() // PatchedWritableRegionRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this region.
+ patchedWritableRegionRequest := *openapiclient.NewPatchedWritableRegionRequest() // PatchedWritableRegionRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRegionsPartialUpdate(context.Background(), id).PatchedWritableRegionRequest(patchedWritableRegionRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRegionsPartialUpdate`: Region
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRegionsPartialUpdate(context.Background(), id).PatchedWritableRegionRequest(patchedWritableRegionRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRegionsPartialUpdate`: Region
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsPartialUpdate`: %v\n", resp)
}
```
@@ -30065,24 +30505,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this region.
+ id := int32(56) // int32 | A unique integer value identifying this region.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRegionsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRegionsRetrieve`: Region
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRegionsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRegionsRetrieve`: Region
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsRetrieve`: %v\n", resp)
}
```
@@ -30135,25 +30575,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this region.
- writableRegionRequest := *openapiclient.NewWritableRegionRequest("Name_example", "Slug_example") // WritableRegionRequest |
+ id := int32(56) // int32 | A unique integer value identifying this region.
+ writableRegionRequest := *openapiclient.NewWritableRegionRequest("Name_example", "Slug_example") // WritableRegionRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRegionsUpdate(context.Background(), id).WritableRegionRequest(writableRegionRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimRegionsUpdate`: Region
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimRegionsUpdate(context.Background(), id).WritableRegionRequest(writableRegionRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimRegionsUpdate`: Region
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsUpdate`: %v\n", resp)
}
```
@@ -30207,22 +30647,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- siteGroupRequest := []openapiclient.SiteGroupRequest{*openapiclient.NewSiteGroupRequest("Name_example", "Slug_example")} // []SiteGroupRequest |
+ siteGroupRequest := []openapiclient.SiteGroupRequest{*openapiclient.NewSiteGroupRequest("Name_example", "Slug_example")} // []SiteGroupRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimSiteGroupsBulkDestroy(context.Background()).SiteGroupRequest(siteGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimSiteGroupsBulkDestroy(context.Background()).SiteGroupRequest(siteGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -30271,24 +30711,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- siteGroupRequest := []openapiclient.SiteGroupRequest{*openapiclient.NewSiteGroupRequest("Name_example", "Slug_example")} // []SiteGroupRequest |
+ siteGroupRequest := []openapiclient.SiteGroupRequest{*openapiclient.NewSiteGroupRequest("Name_example", "Slug_example")} // []SiteGroupRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSiteGroupsBulkPartialUpdate(context.Background()).SiteGroupRequest(siteGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimSiteGroupsBulkPartialUpdate`: []SiteGroup
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimSiteGroupsBulkPartialUpdate(context.Background()).SiteGroupRequest(siteGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimSiteGroupsBulkPartialUpdate`: []SiteGroup
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -30337,24 +30777,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- siteGroupRequest := []openapiclient.SiteGroupRequest{*openapiclient.NewSiteGroupRequest("Name_example", "Slug_example")} // []SiteGroupRequest |
+ siteGroupRequest := []openapiclient.SiteGroupRequest{*openapiclient.NewSiteGroupRequest("Name_example", "Slug_example")} // []SiteGroupRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSiteGroupsBulkUpdate(context.Background()).SiteGroupRequest(siteGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimSiteGroupsBulkUpdate`: []SiteGroup
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimSiteGroupsBulkUpdate(context.Background()).SiteGroupRequest(siteGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimSiteGroupsBulkUpdate`: []SiteGroup
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsBulkUpdate`: %v\n", resp)
}
```
@@ -30403,24 +30843,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableSiteGroupRequest := *openapiclient.NewWritableSiteGroupRequest("Name_example", "Slug_example") // WritableSiteGroupRequest |
+ writableSiteGroupRequest := *openapiclient.NewWritableSiteGroupRequest("Name_example", "Slug_example") // WritableSiteGroupRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSiteGroupsCreate(context.Background()).WritableSiteGroupRequest(writableSiteGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimSiteGroupsCreate`: SiteGroup
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimSiteGroupsCreate(context.Background()).WritableSiteGroupRequest(writableSiteGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimSiteGroupsCreate`: SiteGroup
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsCreate`: %v\n", resp)
}
```
@@ -30469,22 +30909,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this site group.
+ id := int32(56) // int32 | A unique integer value identifying this site group.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimSiteGroupsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimSiteGroupsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -30537,97 +30977,97 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- parent := []string{"Inner_example"} // []string | Parent site group (slug) (optional)
- parentN := []string{"Inner_example"} // []string | Parent site group (slug) (optional)
- parentId := []*int32{int32(123)} // []*int32 | Parent site group (ID) (optional)
- parentIdN := []*int32{int32(123)} // []*int32 | Parent site group (ID) (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSiteGroupsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimSiteGroupsList`: PaginatedSiteGroupList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ parent := []string{"Inner_example"} // []string | Parent site group (slug) (optional)
+ parentN := []string{"Inner_example"} // []string | Parent site group (slug) (optional)
+ parentId := []*int32{int32(123)} // []*int32 | Parent site group (ID) (optional)
+ parentIdN := []*int32{int32(123)} // []*int32 | Parent site group (ID) (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimSiteGroupsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimSiteGroupsList`: PaginatedSiteGroupList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsList`: %v\n", resp)
}
```
@@ -30748,25 +31188,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this site group.
- patchedWritableSiteGroupRequest := *openapiclient.NewPatchedWritableSiteGroupRequest() // PatchedWritableSiteGroupRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this site group.
+ patchedWritableSiteGroupRequest := *openapiclient.NewPatchedWritableSiteGroupRequest() // PatchedWritableSiteGroupRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSiteGroupsPartialUpdate(context.Background(), id).PatchedWritableSiteGroupRequest(patchedWritableSiteGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimSiteGroupsPartialUpdate`: SiteGroup
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimSiteGroupsPartialUpdate(context.Background(), id).PatchedWritableSiteGroupRequest(patchedWritableSiteGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimSiteGroupsPartialUpdate`: SiteGroup
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsPartialUpdate`: %v\n", resp)
}
```
@@ -30820,24 +31260,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this site group.
+ id := int32(56) // int32 | A unique integer value identifying this site group.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSiteGroupsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimSiteGroupsRetrieve`: SiteGroup
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimSiteGroupsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimSiteGroupsRetrieve`: SiteGroup
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsRetrieve`: %v\n", resp)
}
```
@@ -30890,25 +31330,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this site group.
- writableSiteGroupRequest := *openapiclient.NewWritableSiteGroupRequest("Name_example", "Slug_example") // WritableSiteGroupRequest |
+ id := int32(56) // int32 | A unique integer value identifying this site group.
+ writableSiteGroupRequest := *openapiclient.NewWritableSiteGroupRequest("Name_example", "Slug_example") // WritableSiteGroupRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSiteGroupsUpdate(context.Background(), id).WritableSiteGroupRequest(writableSiteGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimSiteGroupsUpdate`: SiteGroup
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimSiteGroupsUpdate(context.Background(), id).WritableSiteGroupRequest(writableSiteGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimSiteGroupsUpdate`: SiteGroup
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsUpdate`: %v\n", resp)
}
```
@@ -30962,22 +31402,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- siteRequest := []openapiclient.SiteRequest{*openapiclient.NewSiteRequest("Name_example", "Slug_example")} // []SiteRequest |
+ siteRequest := []openapiclient.SiteRequest{*openapiclient.NewSiteRequest("Name_example", "Slug_example")} // []SiteRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimSitesBulkDestroy(context.Background()).SiteRequest(siteRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimSitesBulkDestroy(context.Background()).SiteRequest(siteRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -31026,24 +31466,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- siteRequest := []openapiclient.SiteRequest{*openapiclient.NewSiteRequest("Name_example", "Slug_example")} // []SiteRequest |
+ siteRequest := []openapiclient.SiteRequest{*openapiclient.NewSiteRequest("Name_example", "Slug_example")} // []SiteRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSitesBulkPartialUpdate(context.Background()).SiteRequest(siteRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimSitesBulkPartialUpdate`: []Site
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimSitesBulkPartialUpdate(context.Background()).SiteRequest(siteRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimSitesBulkPartialUpdate`: []Site
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -31092,24 +31532,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- siteRequest := []openapiclient.SiteRequest{*openapiclient.NewSiteRequest("Name_example", "Slug_example")} // []SiteRequest |
+ siteRequest := []openapiclient.SiteRequest{*openapiclient.NewSiteRequest("Name_example", "Slug_example")} // []SiteRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSitesBulkUpdate(context.Background()).SiteRequest(siteRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimSitesBulkUpdate`: []Site
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimSitesBulkUpdate(context.Background()).SiteRequest(siteRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimSitesBulkUpdate`: []Site
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesBulkUpdate`: %v\n", resp)
}
```
@@ -31158,24 +31598,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableSiteRequest := *openapiclient.NewWritableSiteRequest("Name_example", "Slug_example") // WritableSiteRequest |
+ writableSiteRequest := *openapiclient.NewWritableSiteRequest("Name_example", "Slug_example") // WritableSiteRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSitesCreate(context.Background()).WritableSiteRequest(writableSiteRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimSitesCreate`: Site
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimSitesCreate(context.Background()).WritableSiteRequest(writableSiteRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimSitesCreate`: Site
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesCreate`: %v\n", resp)
}
```
@@ -31224,22 +31664,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this site.
+ id := int32(56) // int32 | A unique integer value identifying this site.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimSitesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimSitesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -31292,140 +31732,140 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- asn := []int64{int64(123)} // []int64 | AS (ID) (optional)
- asnN := []int64{int64(123)} // []int64 | AS (ID) (optional)
- asnId := []int32{int32(123)} // []int32 | AS (ID) (optional)
- asnIdN := []int32{int32(123)} // []int32 | AS (ID) (optional)
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- 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)
- group := []int32{int32(123)} // []int32 | Group (slug) (optional)
- groupN := []int32{int32(123)} // []int32 | Group (slug) (optional)
- groupId := []int32{int32(123)} // []int32 | Group (ID) (optional)
- groupIdN := []int32{int32(123)} // []int32 | Group (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- latitude := []float64{float64(123)} // []float64 | (optional)
- latitudeEmpty := true // bool | (optional)
- latitudeGt := []float64{float64(123)} // []float64 | (optional)
- latitudeGte := []float64{float64(123)} // []float64 | (optional)
- latitudeLt := []float64{float64(123)} // []float64 | (optional)
- latitudeLte := []float64{float64(123)} // []float64 | (optional)
- latitudeN := []float64{float64(123)} // []float64 | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- longitude := []float64{float64(123)} // []float64 | (optional)
- longitudeEmpty := true // bool | (optional)
- longitudeGt := []float64{float64(123)} // []float64 | (optional)
- longitudeGte := []float64{float64(123)} // []float64 | (optional)
- longitudeLt := []float64{float64(123)} // []float64 | (optional)
- longitudeLte := []float64{float64(123)} // []float64 | (optional)
- longitudeN := []float64{float64(123)} // []float64 | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- 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()
- 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)
- }
- // response from `DcimSitesList`: PaginatedSiteList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ asn := []int64{int64(123)} // []int64 | AS (ID) (optional)
+ asnN := []int64{int64(123)} // []int64 | AS (ID) (optional)
+ asnId := []int32{int32(123)} // []int32 | AS (ID) (optional)
+ asnIdN := []int32{int32(123)} // []int32 | AS (ID) (optional)
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ 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)
+ group := []int32{int32(123)} // []int32 | Group (slug) (optional)
+ groupN := []int32{int32(123)} // []int32 | Group (slug) (optional)
+ groupId := []int32{int32(123)} // []int32 | Group (ID) (optional)
+ groupIdN := []int32{int32(123)} // []int32 | Group (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ latitude := []float64{float64(123)} // []float64 | (optional)
+ latitudeEmpty := true // bool | (optional)
+ latitudeGt := []float64{float64(123)} // []float64 | (optional)
+ latitudeGte := []float64{float64(123)} // []float64 | (optional)
+ latitudeLt := []float64{float64(123)} // []float64 | (optional)
+ latitudeLte := []float64{float64(123)} // []float64 | (optional)
+ latitudeN := []float64{float64(123)} // []float64 | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ longitude := []float64{float64(123)} // []float64 | (optional)
+ longitudeEmpty := true // bool | (optional)
+ longitudeGt := []float64{float64(123)} // []float64 | (optional)
+ longitudeGte := []float64{float64(123)} // []float64 | (optional)
+ longitudeLt := []float64{float64(123)} // []float64 | (optional)
+ longitudeLte := []float64{float64(123)} // []float64 | (optional)
+ longitudeN := []float64{float64(123)} // []float64 | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ 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()
+ 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)
+ }
+ // response from `DcimSitesList`: PaginatedSiteList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesList`: %v\n", resp)
}
```
@@ -31589,25 +32029,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this site.
- patchedWritableSiteRequest := *openapiclient.NewPatchedWritableSiteRequest() // PatchedWritableSiteRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this site.
+ patchedWritableSiteRequest := *openapiclient.NewPatchedWritableSiteRequest() // PatchedWritableSiteRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSitesPartialUpdate(context.Background(), id).PatchedWritableSiteRequest(patchedWritableSiteRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimSitesPartialUpdate`: Site
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimSitesPartialUpdate(context.Background(), id).PatchedWritableSiteRequest(patchedWritableSiteRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimSitesPartialUpdate`: Site
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesPartialUpdate`: %v\n", resp)
}
```
@@ -31661,24 +32101,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this site.
+ id := int32(56) // int32 | A unique integer value identifying this site.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSitesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimSitesRetrieve`: Site
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimSitesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimSitesRetrieve`: Site
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesRetrieve`: %v\n", resp)
}
```
@@ -31731,25 +32171,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this site.
- writableSiteRequest := *openapiclient.NewWritableSiteRequest("Name_example", "Slug_example") // WritableSiteRequest |
+ id := int32(56) // int32 | A unique integer value identifying this site.
+ writableSiteRequest := *openapiclient.NewWritableSiteRequest("Name_example", "Slug_example") // WritableSiteRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSitesUpdate(context.Background(), id).WritableSiteRequest(writableSiteRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimSitesUpdate`: Site
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimSitesUpdate(context.Background(), id).WritableSiteRequest(writableSiteRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimSitesUpdate`: Site
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesUpdate`: %v\n", resp)
}
```
@@ -31803,22 +32243,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- virtualChassisRequest := []openapiclient.VirtualChassisRequest{*openapiclient.NewVirtualChassisRequest("Name_example")} // []VirtualChassisRequest |
+ virtualChassisRequest := []openapiclient.VirtualChassisRequest{*openapiclient.NewVirtualChassisRequest("Name_example")} // []VirtualChassisRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimVirtualChassisBulkDestroy(context.Background()).VirtualChassisRequest(virtualChassisRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimVirtualChassisBulkDestroy(context.Background()).VirtualChassisRequest(virtualChassisRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -31867,24 +32307,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- virtualChassisRequest := []openapiclient.VirtualChassisRequest{*openapiclient.NewVirtualChassisRequest("Name_example")} // []VirtualChassisRequest |
+ virtualChassisRequest := []openapiclient.VirtualChassisRequest{*openapiclient.NewVirtualChassisRequest("Name_example")} // []VirtualChassisRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualChassisBulkPartialUpdate(context.Background()).VirtualChassisRequest(virtualChassisRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualChassisBulkPartialUpdate`: []VirtualChassis
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimVirtualChassisBulkPartialUpdate(context.Background()).VirtualChassisRequest(virtualChassisRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimVirtualChassisBulkPartialUpdate`: []VirtualChassis
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisBulkPartialUpdate`: %v\n", resp)
}
```
@@ -31933,24 +32373,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- virtualChassisRequest := []openapiclient.VirtualChassisRequest{*openapiclient.NewVirtualChassisRequest("Name_example")} // []VirtualChassisRequest |
+ virtualChassisRequest := []openapiclient.VirtualChassisRequest{*openapiclient.NewVirtualChassisRequest("Name_example")} // []VirtualChassisRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualChassisBulkUpdate(context.Background()).VirtualChassisRequest(virtualChassisRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualChassisBulkUpdate`: []VirtualChassis
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimVirtualChassisBulkUpdate(context.Background()).VirtualChassisRequest(virtualChassisRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimVirtualChassisBulkUpdate`: []VirtualChassis
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisBulkUpdate`: %v\n", resp)
}
```
@@ -31999,24 +32439,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableVirtualChassisRequest := *openapiclient.NewWritableVirtualChassisRequest("Name_example") // WritableVirtualChassisRequest |
+ writableVirtualChassisRequest := *openapiclient.NewWritableVirtualChassisRequest("Name_example") // WritableVirtualChassisRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualChassisCreate(context.Background()).WritableVirtualChassisRequest(writableVirtualChassisRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualChassisCreate`: VirtualChassis
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimVirtualChassisCreate(context.Background()).WritableVirtualChassisRequest(writableVirtualChassisRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimVirtualChassisCreate`: VirtualChassis
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisCreate`: %v\n", resp)
}
```
@@ -32065,22 +32505,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this virtual chassis.
+ id := int32(56) // int32 | A unique integer value identifying this virtual chassis.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimVirtualChassisDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimVirtualChassisDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -32121,7 +32561,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).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).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).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()
@@ -32133,96 +32573,107 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- domain := []string{"Inner_example"} // []string | (optional)
- domainEmpty := true // bool | (optional)
- domainIc := []string{"Inner_example"} // []string | (optional)
- domainIe := []string{"Inner_example"} // []string | (optional)
- domainIew := []string{"Inner_example"} // []string | (optional)
- domainIsw := []string{"Inner_example"} // []string | (optional)
- domainN := []string{"Inner_example"} // []string | (optional)
- domainNic := []string{"Inner_example"} // []string | (optional)
- domainNie := []string{"Inner_example"} // []string | (optional)
- domainNiew := []string{"Inner_example"} // []string | (optional)
- domainNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- 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)
- master := []*string{"Inner_example"} // []*string | Master (name) (optional)
- masterN := []*string{"Inner_example"} // []*string | Master (name) (optional)
- masterId := []*int32{int32(123)} // []*int32 | Master (ID) (optional)
- masterIdN := []*int32{int32(123)} // []*int32 | Master (ID) (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- site := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantId := []int32{int32(123)} // []int32 | Tenant (ID) (optional)
- tenantIdN := []int32{int32(123)} // []int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualChassisList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Domain(domain).DomainEmpty(domainEmpty).DomainIc(domainIc).DomainIe(domainIe).DomainIew(domainIew).DomainIsw(domainIsw).DomainN(domainN).DomainNic(domainNic).DomainNie(domainNie).DomainNiew(domainNiew).DomainNisw(domainNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Master(master).MasterN(masterN).MasterId(masterId).MasterIdN(masterIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualChassisList`: PaginatedVirtualChassisList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ domain := []string{"Inner_example"} // []string | (optional)
+ domainEmpty := true // bool | (optional)
+ domainIc := []string{"Inner_example"} // []string | (optional)
+ domainIe := []string{"Inner_example"} // []string | (optional)
+ domainIew := []string{"Inner_example"} // []string | (optional)
+ domainIsw := []string{"Inner_example"} // []string | (optional)
+ domainN := []string{"Inner_example"} // []string | (optional)
+ domainNic := []string{"Inner_example"} // []string | (optional)
+ domainNie := []string{"Inner_example"} // []string | (optional)
+ domainNiew := []string{"Inner_example"} // []string | (optional)
+ domainNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ master := []*string{"Inner_example"} // []*string | Master (name) (optional)
+ masterN := []*string{"Inner_example"} // []*string | Master (name) (optional)
+ masterId := []*int32{int32(123)} // []*int32 | Master (ID) (optional)
+ masterIdN := []*int32{int32(123)} // []*int32 | Master (ID) (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site name (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantId := []int32{int32(123)} // []int32 | Tenant (ID) (optional)
+ tenantIdN := []int32{int32(123)} // []int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.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()
+ 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)
+ }
+ // response from `DcimVirtualChassisList`: PaginatedVirtualChassisList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisList`: %v\n", resp)
}
```
@@ -32245,6 +32696,17 @@ 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** | |
**domain** | **[]string** | |
**domainEmpty** | **bool** | |
**domainIc** | **[]string** | |
@@ -32342,25 +32804,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this virtual chassis.
- patchedWritableVirtualChassisRequest := *openapiclient.NewPatchedWritableVirtualChassisRequest() // PatchedWritableVirtualChassisRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this virtual chassis.
+ patchedWritableVirtualChassisRequest := *openapiclient.NewPatchedWritableVirtualChassisRequest() // PatchedWritableVirtualChassisRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualChassisPartialUpdate(context.Background(), id).PatchedWritableVirtualChassisRequest(patchedWritableVirtualChassisRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualChassisPartialUpdate`: VirtualChassis
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimVirtualChassisPartialUpdate(context.Background(), id).PatchedWritableVirtualChassisRequest(patchedWritableVirtualChassisRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimVirtualChassisPartialUpdate`: VirtualChassis
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisPartialUpdate`: %v\n", resp)
}
```
@@ -32414,24 +32876,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this virtual chassis.
+ id := int32(56) // int32 | A unique integer value identifying this virtual chassis.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualChassisRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualChassisRetrieve`: VirtualChassis
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimVirtualChassisRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimVirtualChassisRetrieve`: VirtualChassis
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisRetrieve`: %v\n", resp)
}
```
@@ -32484,25 +32946,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this virtual chassis.
- writableVirtualChassisRequest := *openapiclient.NewWritableVirtualChassisRequest("Name_example") // WritableVirtualChassisRequest |
+ id := int32(56) // int32 | A unique integer value identifying this virtual chassis.
+ writableVirtualChassisRequest := *openapiclient.NewWritableVirtualChassisRequest("Name_example") // WritableVirtualChassisRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualChassisUpdate(context.Background(), id).WritableVirtualChassisRequest(writableVirtualChassisRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualChassisUpdate`: VirtualChassis
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimVirtualChassisUpdate(context.Background(), id).WritableVirtualChassisRequest(writableVirtualChassisRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimVirtualChassisUpdate`: VirtualChassis
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisUpdate`: %v\n", resp)
}
```
@@ -32556,22 +33018,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewNestedDeviceRequest(), "Status_example")} // []VirtualDeviceContextRequest |
+ virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewNestedDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkDestroy(context.Background()).VirtualDeviceContextRequest(virtualDeviceContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkDestroy(context.Background()).VirtualDeviceContextRequest(virtualDeviceContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -32620,24 +33082,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewNestedDeviceRequest(), "Status_example")} // []VirtualDeviceContextRequest |
+ virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewNestedDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkPartialUpdate(context.Background()).VirtualDeviceContextRequest(virtualDeviceContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualDeviceContextsBulkPartialUpdate`: []VirtualDeviceContext
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsBulkPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkPartialUpdate(context.Background()).VirtualDeviceContextRequest(virtualDeviceContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimVirtualDeviceContextsBulkPartialUpdate`: []VirtualDeviceContext
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -32686,24 +33148,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewNestedDeviceRequest(), "Status_example")} // []VirtualDeviceContextRequest |
+ virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewNestedDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkUpdate(context.Background()).VirtualDeviceContextRequest(virtualDeviceContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualDeviceContextsBulkUpdate`: []VirtualDeviceContext
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsBulkUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkUpdate(context.Background()).VirtualDeviceContextRequest(virtualDeviceContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimVirtualDeviceContextsBulkUpdate`: []VirtualDeviceContext
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsBulkUpdate`: %v\n", resp)
}
```
@@ -32752,24 +33214,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", "Status_example") // WritableVirtualDeviceContextRequest |
+ writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsCreate(context.Background()).WritableVirtualDeviceContextRequest(writableVirtualDeviceContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualDeviceContextsCreate`: VirtualDeviceContext
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsCreate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsCreate(context.Background()).WritableVirtualDeviceContextRequest(writableVirtualDeviceContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimVirtualDeviceContextsCreate`: VirtualDeviceContext
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsCreate`: %v\n", resp)
}
```
@@ -32818,22 +33280,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this virtual device context.
+ id := int32(56) // int32 | A unique integer value identifying this virtual device context.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -32874,7 +33336,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).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -32886,80 +33348,95 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- device := []int32{int32(123)} // []int32 | Device model (optional)
- deviceN := []int32{int32(123)} // []int32 | Device model (optional)
- deviceId := []int32{int32(123)} // []int32 | VDC (ID) (optional)
- deviceIdN := []int32{int32(123)} // []int32 | VDC (ID) (optional)
- hasPrimaryIp := true // bool | Has a primary IP (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- 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)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualDeviceContextsList`: PaginatedVirtualDeviceContextList
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ device := []int32{int32(123)} // []int32 | Device model (optional)
+ deviceN := []int32{int32(123)} // []int32 | Device model (optional)
+ deviceId := []int32{int32(123)} // []int32 | VDC (ID) (optional)
+ deviceIdN := []int32{int32(123)} // []int32 | VDC (ID) (optional)
+ hasPrimaryIp := true // bool | Has a primary IP (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ 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)
+ primaryIp4Id := []int32{int32(123)} // []int32 | Primary IPv4 (ID) (optional)
+ primaryIp4IdN := []int32{int32(123)} // []int32 | Primary IPv4 (ID) (optional)
+ primaryIp6Id := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional)
+ primaryIp6IdN := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional)
+ q := "q_example" // string | Search (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).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)
+ }
+ // response from `DcimVirtualDeviceContextsList`: PaginatedVirtualDeviceContextList
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsList`: %v\n", resp)
}
```
@@ -32982,6 +33459,17 @@ 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** | **[]int32** | Device model |
**deviceN** | **[]int32** | Device model |
**deviceId** | **[]int32** | VDC (ID) |
@@ -33016,6 +33504,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. |
+ **primaryIp4Id** | **[]int32** | Primary IPv4 (ID) |
+ **primaryIp4IdN** | **[]int32** | Primary IPv4 (ID) |
+ **primaryIp6Id** | **[]int32** | Primary IPv6 (ID) |
+ **primaryIp6IdN** | **[]int32** | Primary IPv6 (ID) |
**q** | **string** | Search |
**status** | **[]string** | |
**statusN** | **[]string** | |
@@ -33063,25 +33555,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this virtual device context.
- patchedWritableVirtualDeviceContextRequest := *openapiclient.NewPatchedWritableVirtualDeviceContextRequest() // PatchedWritableVirtualDeviceContextRequest | (optional)
+ id := int32(56) // int32 | A unique integer value identifying this virtual device context.
+ patchedWritableVirtualDeviceContextRequest := *openapiclient.NewPatchedWritableVirtualDeviceContextRequest() // PatchedWritableVirtualDeviceContextRequest | (optional)
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsPartialUpdate(context.Background(), id).PatchedWritableVirtualDeviceContextRequest(patchedWritableVirtualDeviceContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualDeviceContextsPartialUpdate`: VirtualDeviceContext
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsPartialUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsPartialUpdate(context.Background(), id).PatchedWritableVirtualDeviceContextRequest(patchedWritableVirtualDeviceContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimVirtualDeviceContextsPartialUpdate`: VirtualDeviceContext
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsPartialUpdate`: %v\n", resp)
}
```
@@ -33135,24 +33627,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this virtual device context.
+ id := int32(56) // int32 | A unique integer value identifying this virtual device context.
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualDeviceContextsRetrieve`: VirtualDeviceContext
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimVirtualDeviceContextsRetrieve`: VirtualDeviceContext
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsRetrieve`: %v\n", resp)
}
```
@@ -33205,25 +33697,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this virtual device context.
- writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", "Status_example") // WritableVirtualDeviceContextRequest |
+ id := int32(56) // int32 | A unique integer value identifying this virtual device context.
+ writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest |
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsUpdate(context.Background(), id).WritableVirtualDeviceContextRequest(writableVirtualDeviceContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DcimVirtualDeviceContextsUpdate`: VirtualDeviceContext
- fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsUpdate`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsUpdate(context.Background(), id).WritableVirtualDeviceContextRequest(writableVirtualDeviceContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DcimVirtualDeviceContextsUpdate`: VirtualDeviceContext
+ fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsUpdate`: %v\n", resp)
}
```
diff --git a/docs/DcimDevicesRenderConfigCreateFormatParameter.md b/docs/DcimDevicesRenderConfigCreateFormatParameter.md
new file mode 100644
index 0000000000..e20cb439ff
--- /dev/null
+++ b/docs/DcimDevicesRenderConfigCreateFormatParameter.md
@@ -0,0 +1,13 @@
+# DcimDevicesRenderConfigCreateFormatParameter
+
+## Enum
+
+
+* `JSON` (value: `"json"`)
+
+* `TXT` (value: `"txt"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Device.md b/docs/Device.md
index fc594e92c8..92c8beb388 100644
--- a/docs/Device.md
+++ b/docs/Device.md
@@ -36,7 +36,7 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**ConfigTemplate** | Pointer to [**NullableNestedConfigTemplate**](NestedConfigTemplate.md) | | [optional]
-**LocalContextData** | Pointer to **map[string]interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional]
+**LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
@@ -998,20 +998,20 @@ HasConfigTemplate returns a boolean if a field has been set.
UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
### GetLocalContextData
-`func (o *Device) GetLocalContextData() map[string]interface{}`
+`func (o *Device) GetLocalContextData() interface{}`
GetLocalContextData returns the LocalContextData field if non-nil, zero value otherwise.
### GetLocalContextDataOk
-`func (o *Device) GetLocalContextDataOk() (*map[string]interface{}, bool)`
+`func (o *Device) GetLocalContextDataOk() (*interface{}, bool)`
GetLocalContextDataOk returns a tuple with the LocalContextData field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLocalContextData
-`func (o *Device) SetLocalContextData(v map[string]interface{})`
+`func (o *Device) SetLocalContextData(v interface{})`
SetLocalContextData sets LocalContextData field to given value.
diff --git a/docs/DeviceAirflow.md b/docs/DeviceAirflow.md
index 7e41310b57..9b95ef2fcf 100644
--- a/docs/DeviceAirflow.md
+++ b/docs/DeviceAirflow.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional]
+**Label** | Pointer to [**DeviceAirflowLabel**](DeviceAirflowLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *DeviceAirflow) GetValue() string`
+`func (o *DeviceAirflow) GetValue() DeviceAirflowValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *DeviceAirflow) GetValueOk() (*string, bool)`
+`func (o *DeviceAirflow) 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 *DeviceAirflow) SetValue(v string)`
+`func (o *DeviceAirflow) SetValue(v DeviceAirflowValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *DeviceAirflow) GetLabel() string`
+`func (o *DeviceAirflow) GetLabel() DeviceAirflowLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *DeviceAirflow) GetLabelOk() (*string, bool)`
+`func (o *DeviceAirflow) 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 *DeviceAirflow) SetLabel(v string)`
+`func (o *DeviceAirflow) SetLabel(v DeviceAirflowLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/DeviceAirflowLabel.md b/docs/DeviceAirflowLabel.md
new file mode 100644
index 0000000000..5cbc469ad6
--- /dev/null
+++ b/docs/DeviceAirflowLabel.md
@@ -0,0 +1,23 @@
+# DeviceAirflowLabel
+
+## Enum
+
+
+* `FRONT_TO_REAR` (value: `"Front to rear"`)
+
+* `REAR_TO_FRONT` (value: `"Rear to front"`)
+
+* `LEFT_TO_RIGHT` (value: `"Left to right"`)
+
+* `RIGHT_TO_LEFT` (value: `"Right to left"`)
+
+* `SIDE_TO_REAR` (value: `"Side to rear"`)
+
+* `PASSIVE` (value: `"Passive"`)
+
+* `MIXED` (value: `"Mixed"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeviceAirflowValue.md b/docs/DeviceAirflowValue.md
new file mode 100644
index 0000000000..9b26719a04
--- /dev/null
+++ b/docs/DeviceAirflowValue.md
@@ -0,0 +1,25 @@
+# DeviceAirflowValue
+
+## Enum
+
+
+* `FRONT_TO_REAR` (value: `"front-to-rear"`)
+
+* `REAR_TO_FRONT` (value: `"rear-to-front"`)
+
+* `LEFT_TO_RIGHT` (value: `"left-to-right"`)
+
+* `RIGHT_TO_LEFT` (value: `"right-to-left"`)
+
+* `SIDE_TO_REAR` (value: `"side-to-rear"`)
+
+* `PASSIVE` (value: `"passive"`)
+
+* `MIXED` (value: `"mixed"`)
+
+* `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/DeviceFace.md b/docs/DeviceFace.md
index 0135055fd9..69cef766a4 100644
--- a/docs/DeviceFace.md
+++ b/docs/DeviceFace.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `front` - Front * `rear` - Rear | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**DeviceFaceValue**](DeviceFaceValue.md) | | [optional]
+**Label** | Pointer to [**DeviceFaceLabel**](DeviceFaceLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *DeviceFace) GetValue() string`
+`func (o *DeviceFace) GetValue() DeviceFaceValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *DeviceFace) GetValueOk() (*string, bool)`
+`func (o *DeviceFace) GetValueOk() (*DeviceFaceValue, 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 *DeviceFace) SetValue(v string)`
+`func (o *DeviceFace) SetValue(v DeviceFaceValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *DeviceFace) GetLabel() string`
+`func (o *DeviceFace) GetLabel() DeviceFaceLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *DeviceFace) GetLabelOk() (*string, bool)`
+`func (o *DeviceFace) GetLabelOk() (*DeviceFaceLabel, bool)`
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLabel
-`func (o *DeviceFace) SetLabel(v string)`
+`func (o *DeviceFace) SetLabel(v DeviceFaceLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/DeviceFaceLabel.md b/docs/DeviceFaceLabel.md
new file mode 100644
index 0000000000..6bf0efc942
--- /dev/null
+++ b/docs/DeviceFaceLabel.md
@@ -0,0 +1,13 @@
+# DeviceFaceLabel
+
+## Enum
+
+
+* `FRONT` (value: `"Front"`)
+
+* `REAR` (value: `"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/DeviceFaceValue.md b/docs/DeviceFaceValue.md
new file mode 100644
index 0000000000..88d0a1ec03
--- /dev/null
+++ b/docs/DeviceFaceValue.md
@@ -0,0 +1,15 @@
+# DeviceFaceValue
+
+## Enum
+
+
+* `FRONT` (value: `"front"`)
+
+* `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/DeviceStatus.md b/docs/DeviceStatus.md
index f645f8e29f..4d37495f2f 100644
--- a/docs/DeviceStatus.md
+++ b/docs/DeviceStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional]
+**Label** | Pointer to [**DeviceStatusLabel**](DeviceStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *DeviceStatus) GetValue() string`
+`func (o *DeviceStatus) GetValue() DeviceStatusValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *DeviceStatus) GetValueOk() (*string, bool)`
+`func (o *DeviceStatus) GetValueOk() (*DeviceStatusValue, 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 *DeviceStatus) SetValue(v string)`
+`func (o *DeviceStatus) SetValue(v DeviceStatusValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *DeviceStatus) GetLabel() string`
+`func (o *DeviceStatus) GetLabel() DeviceStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *DeviceStatus) GetLabelOk() (*string, bool)`
+`func (o *DeviceStatus) GetLabelOk() (*DeviceStatusLabel, 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 *DeviceStatus) SetLabel(v string)`
+`func (o *DeviceStatus) SetLabel(v DeviceStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/DeviceStatusLabel.md b/docs/DeviceStatusLabel.md
new file mode 100644
index 0000000000..25cba22f34
--- /dev/null
+++ b/docs/DeviceStatusLabel.md
@@ -0,0 +1,23 @@
+# DeviceStatusLabel
+
+## Enum
+
+
+* `OFFLINE` (value: `"Offline"`)
+
+* `ACTIVE` (value: `"Active"`)
+
+* `PLANNED` (value: `"Planned"`)
+
+* `STAGED` (value: `"Staged"`)
+
+* `FAILED` (value: `"Failed"`)
+
+* `INVENTORY` (value: `"Inventory"`)
+
+* `DECOMMISSIONING` (value: `"Decommissioning"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeviceStatusValue.md b/docs/DeviceStatusValue.md
new file mode 100644
index 0000000000..0602536391
--- /dev/null
+++ b/docs/DeviceStatusValue.md
@@ -0,0 +1,23 @@
+# DeviceStatusValue
+
+## Enum
+
+
+* `OFFLINE` (value: `"offline"`)
+
+* `ACTIVE` (value: `"active"`)
+
+* `PLANNED` (value: `"planned"`)
+
+* `STAGED` (value: `"staged"`)
+
+* `FAILED` (value: `"failed"`)
+
+* `INVENTORY` (value: `"inventory"`)
+
+* `DECOMMISSIONING` (value: `"decommissioning"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeviceType.md b/docs/DeviceType.md
index caf98534cf..39b0358afb 100644
--- a/docs/DeviceType.md
+++ b/docs/DeviceType.md
@@ -13,7 +13,8 @@ Name | Type | Description | Notes
**Slug** | **string** | |
**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional]
**UHeight** | Pointer to **float64** | | [optional] [default to 1.0]
-**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces | [optional]
+**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]
@@ -262,6 +263,31 @@ SetUHeight sets UHeight field to given value.
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`
diff --git a/docs/DeviceTypeAirflow.md b/docs/DeviceTypeAirflow.md
index af9bf592a8..fab620ce56 100644
--- a/docs/DeviceTypeAirflow.md
+++ b/docs/DeviceTypeAirflow.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional]
+**Label** | Pointer to [**DeviceAirflowLabel**](DeviceAirflowLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *DeviceTypeAirflow) GetValue() string`
+`func (o *DeviceTypeAirflow) GetValue() DeviceAirflowValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *DeviceTypeAirflow) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *DeviceTypeAirflow) SetValue(v DeviceAirflowValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *DeviceTypeAirflow) GetLabel() string`
+`func (o *DeviceTypeAirflow) GetLabel() DeviceAirflowLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *DeviceTypeAirflow) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *DeviceTypeAirflow) SetLabel(v DeviceAirflowLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/DeviceTypeRequest.md b/docs/DeviceTypeRequest.md
index 2044c15542..2f531a49e1 100644
--- a/docs/DeviceTypeRequest.md
+++ b/docs/DeviceTypeRequest.md
@@ -10,11 +10,12 @@ Name | Type | Description | Notes
**Slug** | **string** | |
**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional]
**UHeight** | Pointer to **float64** | | [optional] [default to 1.0]
-**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces | [optional]
-**SubdeviceRole** | Pointer to **NullableString** | * `parent` - Parent * `child` - Child | [optional]
-**Airflow** | Pointer to **NullableString** | * `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]
+**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 **NullableString** | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | [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]
@@ -186,6 +187,31 @@ SetUHeight sets UHeight field to given value.
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`
@@ -213,20 +239,20 @@ HasIsFullDepth returns a boolean if a field has been set.
### GetSubdeviceRole
-`func (o *DeviceTypeRequest) GetSubdeviceRole() string`
+`func (o *DeviceTypeRequest) GetSubdeviceRole() DeviceTypeRequestSubdeviceRole`
GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise.
### GetSubdeviceRoleOk
-`func (o *DeviceTypeRequest) GetSubdeviceRoleOk() (*string, bool)`
+`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 string)`
+`func (o *DeviceTypeRequest) SetSubdeviceRole(v DeviceTypeRequestSubdeviceRole)`
SetSubdeviceRole sets SubdeviceRole field to given value.
@@ -248,20 +274,20 @@ HasSubdeviceRole returns a boolean if a field has been set.
UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil
### GetAirflow
-`func (o *DeviceTypeRequest) GetAirflow() string`
+`func (o *DeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow`
GetAirflow returns the Airflow field if non-nil, zero value otherwise.
### GetAirflowOk
-`func (o *DeviceTypeRequest) GetAirflowOk() (*string, bool)`
+`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 string)`
+`func (o *DeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow)`
SetAirflow sets Airflow field to given value.
@@ -318,20 +344,20 @@ HasWeight returns a boolean if a field has been set.
UnsetWeight ensures that no value is present for Weight, not even an explicit nil
### GetWeightUnit
-`func (o *DeviceTypeRequest) GetWeightUnit() string`
+`func (o *DeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *DeviceTypeRequest) GetWeightUnitOk() (*string, bool)`
+`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 string)`
+`func (o *DeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)`
SetWeightUnit sets WeightUnit field to given value.
diff --git a/docs/DeviceTypeRequestAirflow.md b/docs/DeviceTypeRequestAirflow.md
new file mode 100644
index 0000000000..db29e38f3f
--- /dev/null
+++ b/docs/DeviceTypeRequestAirflow.md
@@ -0,0 +1,25 @@
+# DeviceTypeRequestAirflow
+
+## Enum
+
+
+* `FRONT_TO_REAR` (value: `"front-to-rear"`)
+
+* `REAR_TO_FRONT` (value: `"rear-to-front"`)
+
+* `LEFT_TO_RIGHT` (value: `"left-to-right"`)
+
+* `RIGHT_TO_LEFT` (value: `"right-to-left"`)
+
+* `SIDE_TO_REAR` (value: `"side-to-rear"`)
+
+* `PASSIVE` (value: `"passive"`)
+
+* `MIXED` (value: `"mixed"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeviceTypeRequestSubdeviceRole.md b/docs/DeviceTypeRequestSubdeviceRole.md
new file mode 100644
index 0000000000..b25ddf7650
--- /dev/null
+++ b/docs/DeviceTypeRequestSubdeviceRole.md
@@ -0,0 +1,15 @@
+# DeviceTypeRequestSubdeviceRole
+
+## Enum
+
+
+* `PARENT` (value: `"parent"`)
+
+* `CHILD` (value: `"child"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeviceTypeRequestWeightUnit.md b/docs/DeviceTypeRequestWeightUnit.md
new file mode 100644
index 0000000000..ea9ac170d3
--- /dev/null
+++ b/docs/DeviceTypeRequestWeightUnit.md
@@ -0,0 +1,19 @@
+# DeviceTypeRequestWeightUnit
+
+## Enum
+
+
+* `KG` (value: `"kg"`)
+
+* `G` (value: `"g"`)
+
+* `LB` (value: `"lb"`)
+
+* `OZ` (value: `"oz"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeviceTypeSubdeviceRole.md b/docs/DeviceTypeSubdeviceRole.md
index 1f7a6056c4..f1209e70ac 100644
--- a/docs/DeviceTypeSubdeviceRole.md
+++ b/docs/DeviceTypeSubdeviceRole.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `parent` - Parent * `child` - Child | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**DeviceTypeSubdeviceRoleValue**](DeviceTypeSubdeviceRoleValue.md) | | [optional]
+**Label** | Pointer to [**DeviceTypeSubdeviceRoleLabel**](DeviceTypeSubdeviceRoleLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *DeviceTypeSubdeviceRole) GetValue() string`
+`func (o *DeviceTypeSubdeviceRole) GetValue() DeviceTypeSubdeviceRoleValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *DeviceTypeSubdeviceRole) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *DeviceTypeSubdeviceRole) SetValue(v DeviceTypeSubdeviceRoleValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *DeviceTypeSubdeviceRole) GetLabel() string`
+`func (o *DeviceTypeSubdeviceRole) GetLabel() DeviceTypeSubdeviceRoleLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *DeviceTypeSubdeviceRole) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *DeviceTypeSubdeviceRole) SetLabel(v DeviceTypeSubdeviceRoleLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/DeviceTypeSubdeviceRoleLabel.md b/docs/DeviceTypeSubdeviceRoleLabel.md
new file mode 100644
index 0000000000..0df3e3f7ff
--- /dev/null
+++ b/docs/DeviceTypeSubdeviceRoleLabel.md
@@ -0,0 +1,13 @@
+# DeviceTypeSubdeviceRoleLabel
+
+## Enum
+
+
+* `PARENT` (value: `"Parent"`)
+
+* `CHILD` (value: `"Child"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeviceTypeSubdeviceRoleValue.md b/docs/DeviceTypeSubdeviceRoleValue.md
new file mode 100644
index 0000000000..21912d5303
--- /dev/null
+++ b/docs/DeviceTypeSubdeviceRoleValue.md
@@ -0,0 +1,15 @@
+# DeviceTypeSubdeviceRoleValue
+
+## Enum
+
+
+* `PARENT` (value: `"parent"`)
+
+* `CHILD` (value: `"child"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeviceTypeWeightUnit.md b/docs/DeviceTypeWeightUnit.md
index 8c95737f27..a4ff2942b8 100644
--- a/docs/DeviceTypeWeightUnit.md
+++ b/docs/DeviceTypeWeightUnit.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional]
+**Label** | Pointer to [**DeviceTypeWeightUnitLabel**](DeviceTypeWeightUnitLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *DeviceTypeWeightUnit) GetValue() string`
+`func (o *DeviceTypeWeightUnit) GetValue() DeviceTypeWeightUnitValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *DeviceTypeWeightUnit) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *DeviceTypeWeightUnit) SetValue(v DeviceTypeWeightUnitValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *DeviceTypeWeightUnit) GetLabel() string`
+`func (o *DeviceTypeWeightUnit) GetLabel() DeviceTypeWeightUnitLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *DeviceTypeWeightUnit) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *DeviceTypeWeightUnit) SetLabel(v DeviceTypeWeightUnitLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/DeviceTypeWeightUnitLabel.md b/docs/DeviceTypeWeightUnitLabel.md
new file mode 100644
index 0000000000..ccc9d2c7ab
--- /dev/null
+++ b/docs/DeviceTypeWeightUnitLabel.md
@@ -0,0 +1,17 @@
+# DeviceTypeWeightUnitLabel
+
+## Enum
+
+
+* `KILOGRAMS` (value: `"Kilograms"`)
+
+* `GRAMS` (value: `"Grams"`)
+
+* `POUNDS` (value: `"Pounds"`)
+
+* `OUNCES` (value: `"Ounces"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeviceTypeWeightUnitValue.md b/docs/DeviceTypeWeightUnitValue.md
new file mode 100644
index 0000000000..4d8026e601
--- /dev/null
+++ b/docs/DeviceTypeWeightUnitValue.md
@@ -0,0 +1,19 @@
+# DeviceTypeWeightUnitValue
+
+## Enum
+
+
+* `KG` (value: `"kg"`)
+
+* `G` (value: `"g"`)
+
+* `LB` (value: `"lb"`)
+
+* `OZ` (value: `"oz"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeviceWithConfigContext.md b/docs/DeviceWithConfigContext.md
index a3ec4d2b93..9ad734f3dd 100644
--- a/docs/DeviceWithConfigContext.md
+++ b/docs/DeviceWithConfigContext.md
@@ -36,8 +36,8 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**ConfigTemplate** | Pointer to [**NullableNestedConfigTemplate**](NestedConfigTemplate.md) | | [optional]
-**ConfigContext** | **map[string]interface{}** | | [readonly]
-**LocalContextData** | Pointer to **map[string]interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional]
+**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]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
@@ -57,7 +57,7 @@ Name | Type | Description | Notes
### NewDeviceWithConfigContext
-`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType NestedDeviceType, role NestedDeviceRole, deviceRole DeviceDeviceRole, site NestedSite, parentDevice NestedDevice, primaryIp NestedIPAddress, configContext map[string]interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *DeviceWithConfigContext`
+`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType NestedDeviceType, role NestedDeviceRole, deviceRole DeviceDeviceRole, site NestedSite, parentDevice NestedDevice, primaryIp NestedIPAddress, 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,
@@ -999,20 +999,20 @@ HasConfigTemplate returns a boolean if a field has been set.
UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
### GetConfigContext
-`func (o *DeviceWithConfigContext) GetConfigContext() map[string]interface{}`
+`func (o *DeviceWithConfigContext) GetConfigContext() interface{}`
GetConfigContext returns the ConfigContext field if non-nil, zero value otherwise.
### GetConfigContextOk
-`func (o *DeviceWithConfigContext) GetConfigContextOk() (*map[string]interface{}, bool)`
+`func (o *DeviceWithConfigContext) GetConfigContextOk() (*interface{}, bool)`
GetConfigContextOk returns a tuple with the ConfigContext field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetConfigContext
-`func (o *DeviceWithConfigContext) SetConfigContext(v map[string]interface{})`
+`func (o *DeviceWithConfigContext) SetConfigContext(v interface{})`
SetConfigContext sets ConfigContext field to given value.
@@ -1029,20 +1029,20 @@ SetConfigContext sets ConfigContext field to given value.
UnsetConfigContext ensures that no value is present for ConfigContext, not even an explicit nil
### GetLocalContextData
-`func (o *DeviceWithConfigContext) GetLocalContextData() map[string]interface{}`
+`func (o *DeviceWithConfigContext) GetLocalContextData() interface{}`
GetLocalContextData returns the LocalContextData field if non-nil, zero value otherwise.
### GetLocalContextDataOk
-`func (o *DeviceWithConfigContext) GetLocalContextDataOk() (*map[string]interface{}, bool)`
+`func (o *DeviceWithConfigContext) GetLocalContextDataOk() (*interface{}, bool)`
GetLocalContextDataOk returns a tuple with the LocalContextData field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLocalContextData
-`func (o *DeviceWithConfigContext) SetLocalContextData(v map[string]interface{})`
+`func (o *DeviceWithConfigContext) SetLocalContextData(v interface{})`
SetLocalContextData sets LocalContextData field to given value.
diff --git a/docs/DeviceWithConfigContextRequest.md b/docs/DeviceWithConfigContextRequest.md
index 783f565b25..40069a9f13 100644
--- a/docs/DeviceWithConfigContextRequest.md
+++ b/docs/DeviceWithConfigContextRequest.md
@@ -15,11 +15,11 @@ Name | Type | Description | Notes
**Location** | Pointer to [**NullableNestedLocationRequest**](NestedLocationRequest.md) | | [optional]
**Rack** | Pointer to [**NullableNestedRackRequest**](NestedRackRequest.md) | | [optional]
**Position** | Pointer to **NullableFloat64** | | [optional]
-**Face** | Pointer to **string** | * `front` - Front * `rear` - Rear | [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 **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | [optional]
-**Airflow** | Pointer to **string** | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | [optional]
+**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]
@@ -30,7 +30,7 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**ConfigTemplate** | Pointer to [**NullableNestedConfigTemplateRequest**](NestedConfigTemplateRequest.md) | | [optional]
-**LocalContextData** | Pointer to **map[string]interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional]
+**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]
@@ -385,20 +385,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 *DeviceWithConfigContextRequest) GetFace() string`
+`func (o *DeviceWithConfigContextRequest) GetFace() DeviceFaceValue`
GetFace returns the Face field if non-nil, zero value otherwise.
### GetFaceOk
-`func (o *DeviceWithConfigContextRequest) GetFaceOk() (*string, bool)`
+`func (o *DeviceWithConfigContextRequest) GetFaceOk() (*DeviceFaceValue, 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 *DeviceWithConfigContextRequest) SetFace(v string)`
+`func (o *DeviceWithConfigContextRequest) SetFace(v DeviceFaceValue)`
SetFace sets Face field to given value.
@@ -480,20 +480,20 @@ HasLongitude returns a boolean if a field has been set.
UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil
### GetStatus
-`func (o *DeviceWithConfigContextRequest) GetStatus() string`
+`func (o *DeviceWithConfigContextRequest) GetStatus() DeviceStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *DeviceWithConfigContextRequest) GetStatusOk() (*string, bool)`
+`func (o *DeviceWithConfigContextRequest) GetStatusOk() (*DeviceStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *DeviceWithConfigContextRequest) SetStatus(v string)`
+`func (o *DeviceWithConfigContextRequest) SetStatus(v DeviceStatusValue)`
SetStatus sets Status field to given value.
@@ -505,20 +505,20 @@ HasStatus returns a boolean if a field has been set.
### GetAirflow
-`func (o *DeviceWithConfigContextRequest) GetAirflow() string`
+`func (o *DeviceWithConfigContextRequest) GetAirflow() DeviceAirflowValue`
GetAirflow returns the Airflow field if non-nil, zero value otherwise.
### GetAirflowOk
-`func (o *DeviceWithConfigContextRequest) GetAirflowOk() (*string, bool)`
+`func (o *DeviceWithConfigContextRequest) GetAirflowOk() (*DeviceAirflowValue, bool)`
GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAirflow
-`func (o *DeviceWithConfigContextRequest) SetAirflow(v string)`
+`func (o *DeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue)`
SetAirflow sets Airflow field to given value.
@@ -860,20 +860,20 @@ HasConfigTemplate returns a boolean if a field has been set.
UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
### GetLocalContextData
-`func (o *DeviceWithConfigContextRequest) GetLocalContextData() map[string]interface{}`
+`func (o *DeviceWithConfigContextRequest) GetLocalContextData() interface{}`
GetLocalContextData returns the LocalContextData field if non-nil, zero value otherwise.
### GetLocalContextDataOk
-`func (o *DeviceWithConfigContextRequest) GetLocalContextDataOk() (*map[string]interface{}, bool)`
+`func (o *DeviceWithConfigContextRequest) GetLocalContextDataOk() (*interface{}, bool)`
GetLocalContextDataOk returns a tuple with the LocalContextData field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLocalContextData
-`func (o *DeviceWithConfigContextRequest) SetLocalContextData(v map[string]interface{})`
+`func (o *DeviceWithConfigContextRequest) SetLocalContextData(v interface{})`
SetLocalContextData sets LocalContextData field to given value.
diff --git a/docs/Encryption.md b/docs/Encryption.md
new file mode 100644
index 0000000000..3cc0aaad23
--- /dev/null
+++ b/docs/Encryption.md
@@ -0,0 +1,25 @@
+# Encryption
+
+## Enum
+
+
+* `AES_128_CBC` (value: `"aes-128-cbc"`)
+
+* `AES_128_GCM` (value: `"aes-128-gcm"`)
+
+* `AES_192_CBC` (value: `"aes-192-cbc"`)
+
+* `AES_192_GCM` (value: `"aes-192-gcm"`)
+
+* `AES_256_CBC` (value: `"aes-256-cbc"`)
+
+* `AES_256_GCM` (value: `"aes-256-gcm"`)
+
+* `_3DES_CBC` (value: `"3des-cbc"`)
+
+* `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/End.md b/docs/End.md
new file mode 100644
index 0000000000..65f87217af
--- /dev/null
+++ b/docs/End.md
@@ -0,0 +1,13 @@
+# End
+
+## 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
new file mode 100644
index 0000000000..4dc00441aa
--- /dev/null
+++ b/docs/EventRule.md
@@ -0,0 +1,566 @@
+# EventRule
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **int32** | | [readonly]
+**Url** | **string** | | [readonly]
+**Display** | **string** | | [readonly]
+**ContentTypes** | **[]string** | |
+**Name** | **string** | |
+**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional]
+**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional]
+**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional]
+**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional]
+**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional]
+**Enabled** | Pointer to **bool** | | [optional]
+**Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional]
+**ActionType** | [**EventRuleActionType**](EventRuleActionType.md) | |
+**ActionObjectType** | **string** | |
+**ActionObjectId** | Pointer to **NullableInt64** | | [optional]
+**ActionObject** | **map[string]interface{}** | | [readonly]
+**Description** | Pointer to **string** | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
+**Created** | **NullableTime** | | [readonly]
+**LastUpdated** | **NullableTime** | | [readonly]
+
+## Methods
+
+### NewEventRule
+
+`func NewEventRule(id int32, url string, display string, contentTypes []string, name string, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *EventRule`
+
+NewEventRule instantiates a new EventRule object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewEventRuleWithDefaults
+
+`func NewEventRuleWithDefaults() *EventRule`
+
+NewEventRuleWithDefaults instantiates a new EventRule object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetId
+
+`func (o *EventRule) GetId() int32`
+
+GetId returns the Id field if non-nil, zero value otherwise.
+
+### GetIdOk
+
+`func (o *EventRule) GetIdOk() (*int32, bool)`
+
+GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetId
+
+`func (o *EventRule) SetId(v int32)`
+
+SetId sets Id field to given value.
+
+
+### GetUrl
+
+`func (o *EventRule) GetUrl() string`
+
+GetUrl returns the Url field if non-nil, zero value otherwise.
+
+### GetUrlOk
+
+`func (o *EventRule) GetUrlOk() (*string, bool)`
+
+GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetUrl
+
+`func (o *EventRule) SetUrl(v string)`
+
+SetUrl sets Url field to given value.
+
+
+### GetDisplay
+
+`func (o *EventRule) GetDisplay() string`
+
+GetDisplay returns the Display field if non-nil, zero value otherwise.
+
+### GetDisplayOk
+
+`func (o *EventRule) GetDisplayOk() (*string, bool)`
+
+GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDisplay
+
+`func (o *EventRule) SetDisplay(v string)`
+
+SetDisplay sets Display field to given value.
+
+
+### GetContentTypes
+
+`func (o *EventRule) GetContentTypes() []string`
+
+GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+
+### GetContentTypesOk
+
+`func (o *EventRule) 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 *EventRule) SetContentTypes(v []string)`
+
+SetContentTypes sets ContentTypes field to given value.
+
+
+### GetName
+
+`func (o *EventRule) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *EventRule) GetNameOk() (*string, bool)`
+
+GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetName
+
+`func (o *EventRule) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetTypeCreate
+
+`func (o *EventRule) GetTypeCreate() bool`
+
+GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise.
+
+### GetTypeCreateOk
+
+`func (o *EventRule) GetTypeCreateOk() (*bool, bool)`
+
+GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeCreate
+
+`func (o *EventRule) SetTypeCreate(v bool)`
+
+SetTypeCreate sets TypeCreate field to given value.
+
+### HasTypeCreate
+
+`func (o *EventRule) HasTypeCreate() bool`
+
+HasTypeCreate returns a boolean if a field has been set.
+
+### GetTypeUpdate
+
+`func (o *EventRule) GetTypeUpdate() bool`
+
+GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise.
+
+### GetTypeUpdateOk
+
+`func (o *EventRule) GetTypeUpdateOk() (*bool, bool)`
+
+GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeUpdate
+
+`func (o *EventRule) SetTypeUpdate(v bool)`
+
+SetTypeUpdate sets TypeUpdate field to given value.
+
+### HasTypeUpdate
+
+`func (o *EventRule) HasTypeUpdate() bool`
+
+HasTypeUpdate returns a boolean if a field has been set.
+
+### GetTypeDelete
+
+`func (o *EventRule) GetTypeDelete() bool`
+
+GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise.
+
+### GetTypeDeleteOk
+
+`func (o *EventRule) GetTypeDeleteOk() (*bool, bool)`
+
+GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeDelete
+
+`func (o *EventRule) SetTypeDelete(v bool)`
+
+SetTypeDelete sets TypeDelete field to given value.
+
+### HasTypeDelete
+
+`func (o *EventRule) HasTypeDelete() bool`
+
+HasTypeDelete returns a boolean if a field has been set.
+
+### GetTypeJobStart
+
+`func (o *EventRule) GetTypeJobStart() bool`
+
+GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise.
+
+### GetTypeJobStartOk
+
+`func (o *EventRule) GetTypeJobStartOk() (*bool, bool)`
+
+GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeJobStart
+
+`func (o *EventRule) SetTypeJobStart(v bool)`
+
+SetTypeJobStart sets TypeJobStart field to given value.
+
+### HasTypeJobStart
+
+`func (o *EventRule) HasTypeJobStart() bool`
+
+HasTypeJobStart returns a boolean if a field has been set.
+
+### GetTypeJobEnd
+
+`func (o *EventRule) GetTypeJobEnd() bool`
+
+GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise.
+
+### GetTypeJobEndOk
+
+`func (o *EventRule) GetTypeJobEndOk() (*bool, bool)`
+
+GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeJobEnd
+
+`func (o *EventRule) SetTypeJobEnd(v bool)`
+
+SetTypeJobEnd sets TypeJobEnd field to given value.
+
+### HasTypeJobEnd
+
+`func (o *EventRule) HasTypeJobEnd() bool`
+
+HasTypeJobEnd returns a boolean if a field has been set.
+
+### GetEnabled
+
+`func (o *EventRule) GetEnabled() bool`
+
+GetEnabled returns the Enabled field if non-nil, zero value otherwise.
+
+### GetEnabledOk
+
+`func (o *EventRule) GetEnabledOk() (*bool, bool)`
+
+GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEnabled
+
+`func (o *EventRule) SetEnabled(v bool)`
+
+SetEnabled sets Enabled field to given value.
+
+### HasEnabled
+
+`func (o *EventRule) HasEnabled() bool`
+
+HasEnabled returns a boolean if a field has been set.
+
+### GetConditions
+
+`func (o *EventRule) GetConditions() interface{}`
+
+GetConditions returns the Conditions field if non-nil, zero value otherwise.
+
+### GetConditionsOk
+
+`func (o *EventRule) GetConditionsOk() (*interface{}, bool)`
+
+GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetConditions
+
+`func (o *EventRule) SetConditions(v interface{})`
+
+SetConditions sets Conditions field to given value.
+
+### HasConditions
+
+`func (o *EventRule) HasConditions() bool`
+
+HasConditions returns a boolean if a field has been set.
+
+### SetConditionsNil
+
+`func (o *EventRule) SetConditionsNil(b bool)`
+
+ SetConditionsNil sets the value for Conditions to be an explicit nil
+
+### UnsetConditions
+`func (o *EventRule) UnsetConditions()`
+
+UnsetConditions ensures that no value is present for Conditions, not even an explicit nil
+### GetActionType
+
+`func (o *EventRule) GetActionType() EventRuleActionType`
+
+GetActionType returns the ActionType field if non-nil, zero value otherwise.
+
+### GetActionTypeOk
+
+`func (o *EventRule) GetActionTypeOk() (*EventRuleActionType, bool)`
+
+GetActionTypeOk returns a tuple with the ActionType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActionType
+
+`func (o *EventRule) SetActionType(v EventRuleActionType)`
+
+SetActionType sets ActionType field to given value.
+
+
+### GetActionObjectType
+
+`func (o *EventRule) GetActionObjectType() string`
+
+GetActionObjectType returns the ActionObjectType field if non-nil, zero value otherwise.
+
+### GetActionObjectTypeOk
+
+`func (o *EventRule) GetActionObjectTypeOk() (*string, bool)`
+
+GetActionObjectTypeOk returns a tuple with the ActionObjectType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActionObjectType
+
+`func (o *EventRule) SetActionObjectType(v string)`
+
+SetActionObjectType sets ActionObjectType field to given value.
+
+
+### GetActionObjectId
+
+`func (o *EventRule) GetActionObjectId() int64`
+
+GetActionObjectId returns the ActionObjectId field if non-nil, zero value otherwise.
+
+### GetActionObjectIdOk
+
+`func (o *EventRule) GetActionObjectIdOk() (*int64, bool)`
+
+GetActionObjectIdOk returns a tuple with the ActionObjectId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActionObjectId
+
+`func (o *EventRule) SetActionObjectId(v int64)`
+
+SetActionObjectId sets ActionObjectId field to given value.
+
+### HasActionObjectId
+
+`func (o *EventRule) HasActionObjectId() bool`
+
+HasActionObjectId returns a boolean if a field has been set.
+
+### SetActionObjectIdNil
+
+`func (o *EventRule) SetActionObjectIdNil(b bool)`
+
+ SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil
+
+### UnsetActionObjectId
+`func (o *EventRule) UnsetActionObjectId()`
+
+UnsetActionObjectId ensures that no value is present for ActionObjectId, not even an explicit nil
+### GetActionObject
+
+`func (o *EventRule) GetActionObject() map[string]interface{}`
+
+GetActionObject returns the ActionObject field if non-nil, zero value otherwise.
+
+### GetActionObjectOk
+
+`func (o *EventRule) GetActionObjectOk() (*map[string]interface{}, bool)`
+
+GetActionObjectOk returns a tuple with the ActionObject field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActionObject
+
+`func (o *EventRule) SetActionObject(v map[string]interface{})`
+
+SetActionObject sets ActionObject field to given value.
+
+
+### GetDescription
+
+`func (o *EventRule) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *EventRule) GetDescriptionOk() (*string, bool)`
+
+GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDescription
+
+`func (o *EventRule) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *EventRule) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *EventRule) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *EventRule) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+
+GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCustomFields
+
+`func (o *EventRule) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *EventRule) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *EventRule) GetTags() []NestedTag`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *EventRule) GetTagsOk() (*[]NestedTag, bool)`
+
+GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTags
+
+`func (o *EventRule) SetTags(v []NestedTag)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *EventRule) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCreated
+
+`func (o *EventRule) GetCreated() time.Time`
+
+GetCreated returns the Created field if non-nil, zero value otherwise.
+
+### GetCreatedOk
+
+`func (o *EventRule) GetCreatedOk() (*time.Time, bool)`
+
+GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCreated
+
+`func (o *EventRule) SetCreated(v time.Time)`
+
+SetCreated sets Created field to given value.
+
+
+### SetCreatedNil
+
+`func (o *EventRule) SetCreatedNil(b bool)`
+
+ SetCreatedNil sets the value for Created to be an explicit nil
+
+### UnsetCreated
+`func (o *EventRule) UnsetCreated()`
+
+UnsetCreated ensures that no value is present for Created, not even an explicit nil
+### GetLastUpdated
+
+`func (o *EventRule) GetLastUpdated() time.Time`
+
+GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
+
+### GetLastUpdatedOk
+
+`func (o *EventRule) GetLastUpdatedOk() (*time.Time, bool)`
+
+GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLastUpdated
+
+`func (o *EventRule) SetLastUpdated(v time.Time)`
+
+SetLastUpdated sets LastUpdated field to given value.
+
+
+### SetLastUpdatedNil
+
+`func (o *EventRule) SetLastUpdatedNil(b bool)`
+
+ SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
+
+### UnsetLastUpdated
+`func (o *EventRule) UnsetLastUpdated()`
+
+UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CustomFieldUiVisibility.md b/docs/EventRuleActionType.md
similarity index 55%
rename from docs/CustomFieldUiVisibility.md
rename to docs/EventRuleActionType.md
index db50e379a4..f494b375c0 100644
--- a/docs/CustomFieldUiVisibility.md
+++ b/docs/EventRuleActionType.md
@@ -1,78 +1,78 @@
-# CustomFieldUiVisibility
+# EventRuleActionType
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional]
+**Label** | Pointer to [**EventRuleActionTypeLabel**](EventRuleActionTypeLabel.md) | | [optional]
## Methods
-### NewCustomFieldUiVisibility
+### NewEventRuleActionType
-`func NewCustomFieldUiVisibility() *CustomFieldUiVisibility`
+`func NewEventRuleActionType() *EventRuleActionType`
-NewCustomFieldUiVisibility instantiates a new CustomFieldUiVisibility object
+NewEventRuleActionType instantiates a new EventRuleActionType object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewCustomFieldUiVisibilityWithDefaults
+### NewEventRuleActionTypeWithDefaults
-`func NewCustomFieldUiVisibilityWithDefaults() *CustomFieldUiVisibility`
+`func NewEventRuleActionTypeWithDefaults() *EventRuleActionType`
-NewCustomFieldUiVisibilityWithDefaults instantiates a new CustomFieldUiVisibility object
+NewEventRuleActionTypeWithDefaults instantiates a new EventRuleActionType object
This 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 *CustomFieldUiVisibility) GetValue() string`
+`func (o *EventRuleActionType) GetValue() EventRuleActionTypeValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *CustomFieldUiVisibility) GetValueOk() (*string, bool)`
+`func (o *EventRuleActionType) GetValueOk() (*EventRuleActionTypeValue, 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 *CustomFieldUiVisibility) SetValue(v string)`
+`func (o *EventRuleActionType) SetValue(v EventRuleActionTypeValue)`
SetValue sets Value field to given value.
### HasValue
-`func (o *CustomFieldUiVisibility) HasValue() bool`
+`func (o *EventRuleActionType) HasValue() bool`
HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *CustomFieldUiVisibility) GetLabel() string`
+`func (o *EventRuleActionType) GetLabel() EventRuleActionTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *CustomFieldUiVisibility) GetLabelOk() (*string, bool)`
+`func (o *EventRuleActionType) GetLabelOk() (*EventRuleActionTypeLabel, 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 *CustomFieldUiVisibility) SetLabel(v string)`
+`func (o *EventRuleActionType) SetLabel(v EventRuleActionTypeLabel)`
SetLabel sets Label field to given value.
### HasLabel
-`func (o *CustomFieldUiVisibility) HasLabel() bool`
+`func (o *EventRuleActionType) HasLabel() bool`
HasLabel returns a boolean if a field has been set.
diff --git a/docs/EventRuleActionTypeLabel.md b/docs/EventRuleActionTypeLabel.md
new file mode 100644
index 0000000000..7c1a6f4597
--- /dev/null
+++ b/docs/EventRuleActionTypeLabel.md
@@ -0,0 +1,13 @@
+# EventRuleActionTypeLabel
+
+## Enum
+
+
+* `WEBHOOK` (value: `"Webhook"`)
+
+* `SCRIPT` (value: `"Script"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/EventRuleActionTypeValue.md b/docs/EventRuleActionTypeValue.md
new file mode 100644
index 0000000000..73ad2faee3
--- /dev/null
+++ b/docs/EventRuleActionTypeValue.md
@@ -0,0 +1,13 @@
+# EventRuleActionTypeValue
+
+## Enum
+
+
+* `WEBHOOK` (value: `"webhook"`)
+
+* `SCRIPT` (value: `"script"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/EventRuleRequest.md b/docs/EventRuleRequest.md
new file mode 100644
index 0000000000..f059af6918
--- /dev/null
+++ b/docs/EventRuleRequest.md
@@ -0,0 +1,420 @@
+# EventRuleRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ContentTypes** | **[]string** | |
+**Name** | **string** | |
+**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional]
+**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional]
+**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional]
+**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional]
+**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional]
+**Enabled** | Pointer to **bool** | | [optional]
+**Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional]
+**ActionType** | [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | |
+**ActionObjectType** | **string** | |
+**ActionObjectId** | Pointer to **NullableInt64** | | [optional]
+**Description** | Pointer to **string** | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+
+## Methods
+
+### NewEventRuleRequest
+
+`func NewEventRuleRequest(contentTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string, ) *EventRuleRequest`
+
+NewEventRuleRequest instantiates a new EventRuleRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewEventRuleRequestWithDefaults
+
+`func NewEventRuleRequestWithDefaults() *EventRuleRequest`
+
+NewEventRuleRequestWithDefaults instantiates a new EventRuleRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetContentTypes
+
+`func (o *EventRuleRequest) GetContentTypes() []string`
+
+GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+
+### GetContentTypesOk
+
+`func (o *EventRuleRequest) 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 *EventRuleRequest) SetContentTypes(v []string)`
+
+SetContentTypes sets ContentTypes field to given value.
+
+
+### GetName
+
+`func (o *EventRuleRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *EventRuleRequest) GetNameOk() (*string, bool)`
+
+GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetName
+
+`func (o *EventRuleRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetTypeCreate
+
+`func (o *EventRuleRequest) GetTypeCreate() bool`
+
+GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise.
+
+### GetTypeCreateOk
+
+`func (o *EventRuleRequest) GetTypeCreateOk() (*bool, bool)`
+
+GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeCreate
+
+`func (o *EventRuleRequest) SetTypeCreate(v bool)`
+
+SetTypeCreate sets TypeCreate field to given value.
+
+### HasTypeCreate
+
+`func (o *EventRuleRequest) HasTypeCreate() bool`
+
+HasTypeCreate returns a boolean if a field has been set.
+
+### GetTypeUpdate
+
+`func (o *EventRuleRequest) GetTypeUpdate() bool`
+
+GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise.
+
+### GetTypeUpdateOk
+
+`func (o *EventRuleRequest) GetTypeUpdateOk() (*bool, bool)`
+
+GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeUpdate
+
+`func (o *EventRuleRequest) SetTypeUpdate(v bool)`
+
+SetTypeUpdate sets TypeUpdate field to given value.
+
+### HasTypeUpdate
+
+`func (o *EventRuleRequest) HasTypeUpdate() bool`
+
+HasTypeUpdate returns a boolean if a field has been set.
+
+### GetTypeDelete
+
+`func (o *EventRuleRequest) GetTypeDelete() bool`
+
+GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise.
+
+### GetTypeDeleteOk
+
+`func (o *EventRuleRequest) GetTypeDeleteOk() (*bool, bool)`
+
+GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeDelete
+
+`func (o *EventRuleRequest) SetTypeDelete(v bool)`
+
+SetTypeDelete sets TypeDelete field to given value.
+
+### HasTypeDelete
+
+`func (o *EventRuleRequest) HasTypeDelete() bool`
+
+HasTypeDelete returns a boolean if a field has been set.
+
+### GetTypeJobStart
+
+`func (o *EventRuleRequest) GetTypeJobStart() bool`
+
+GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise.
+
+### GetTypeJobStartOk
+
+`func (o *EventRuleRequest) GetTypeJobStartOk() (*bool, bool)`
+
+GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeJobStart
+
+`func (o *EventRuleRequest) SetTypeJobStart(v bool)`
+
+SetTypeJobStart sets TypeJobStart field to given value.
+
+### HasTypeJobStart
+
+`func (o *EventRuleRequest) HasTypeJobStart() bool`
+
+HasTypeJobStart returns a boolean if a field has been set.
+
+### GetTypeJobEnd
+
+`func (o *EventRuleRequest) GetTypeJobEnd() bool`
+
+GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise.
+
+### GetTypeJobEndOk
+
+`func (o *EventRuleRequest) GetTypeJobEndOk() (*bool, bool)`
+
+GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeJobEnd
+
+`func (o *EventRuleRequest) SetTypeJobEnd(v bool)`
+
+SetTypeJobEnd sets TypeJobEnd field to given value.
+
+### HasTypeJobEnd
+
+`func (o *EventRuleRequest) HasTypeJobEnd() bool`
+
+HasTypeJobEnd returns a boolean if a field has been set.
+
+### GetEnabled
+
+`func (o *EventRuleRequest) GetEnabled() bool`
+
+GetEnabled returns the Enabled field if non-nil, zero value otherwise.
+
+### GetEnabledOk
+
+`func (o *EventRuleRequest) GetEnabledOk() (*bool, bool)`
+
+GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEnabled
+
+`func (o *EventRuleRequest) SetEnabled(v bool)`
+
+SetEnabled sets Enabled field to given value.
+
+### HasEnabled
+
+`func (o *EventRuleRequest) HasEnabled() bool`
+
+HasEnabled returns a boolean if a field has been set.
+
+### GetConditions
+
+`func (o *EventRuleRequest) GetConditions() interface{}`
+
+GetConditions returns the Conditions field if non-nil, zero value otherwise.
+
+### GetConditionsOk
+
+`func (o *EventRuleRequest) GetConditionsOk() (*interface{}, bool)`
+
+GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetConditions
+
+`func (o *EventRuleRequest) SetConditions(v interface{})`
+
+SetConditions sets Conditions field to given value.
+
+### HasConditions
+
+`func (o *EventRuleRequest) HasConditions() bool`
+
+HasConditions returns a boolean if a field has been set.
+
+### SetConditionsNil
+
+`func (o *EventRuleRequest) SetConditionsNil(b bool)`
+
+ SetConditionsNil sets the value for Conditions to be an explicit nil
+
+### UnsetConditions
+`func (o *EventRuleRequest) UnsetConditions()`
+
+UnsetConditions ensures that no value is present for Conditions, not even an explicit nil
+### GetActionType
+
+`func (o *EventRuleRequest) GetActionType() EventRuleActionTypeValue`
+
+GetActionType returns the ActionType field if non-nil, zero value otherwise.
+
+### GetActionTypeOk
+
+`func (o *EventRuleRequest) GetActionTypeOk() (*EventRuleActionTypeValue, bool)`
+
+GetActionTypeOk returns a tuple with the ActionType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActionType
+
+`func (o *EventRuleRequest) SetActionType(v EventRuleActionTypeValue)`
+
+SetActionType sets ActionType field to given value.
+
+
+### GetActionObjectType
+
+`func (o *EventRuleRequest) GetActionObjectType() string`
+
+GetActionObjectType returns the ActionObjectType field if non-nil, zero value otherwise.
+
+### GetActionObjectTypeOk
+
+`func (o *EventRuleRequest) GetActionObjectTypeOk() (*string, bool)`
+
+GetActionObjectTypeOk returns a tuple with the ActionObjectType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActionObjectType
+
+`func (o *EventRuleRequest) SetActionObjectType(v string)`
+
+SetActionObjectType sets ActionObjectType field to given value.
+
+
+### GetActionObjectId
+
+`func (o *EventRuleRequest) GetActionObjectId() int64`
+
+GetActionObjectId returns the ActionObjectId field if non-nil, zero value otherwise.
+
+### GetActionObjectIdOk
+
+`func (o *EventRuleRequest) GetActionObjectIdOk() (*int64, bool)`
+
+GetActionObjectIdOk returns a tuple with the ActionObjectId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActionObjectId
+
+`func (o *EventRuleRequest) SetActionObjectId(v int64)`
+
+SetActionObjectId sets ActionObjectId field to given value.
+
+### HasActionObjectId
+
+`func (o *EventRuleRequest) HasActionObjectId() bool`
+
+HasActionObjectId returns a boolean if a field has been set.
+
+### SetActionObjectIdNil
+
+`func (o *EventRuleRequest) SetActionObjectIdNil(b bool)`
+
+ SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil
+
+### UnsetActionObjectId
+`func (o *EventRuleRequest) UnsetActionObjectId()`
+
+UnsetActionObjectId ensures that no value is present for ActionObjectId, not even an explicit nil
+### GetDescription
+
+`func (o *EventRuleRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *EventRuleRequest) GetDescriptionOk() (*string, bool)`
+
+GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDescription
+
+`func (o *EventRuleRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *EventRuleRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *EventRuleRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *EventRuleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+
+GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCustomFields
+
+`func (o *EventRuleRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *EventRuleRequest) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *EventRuleRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *EventRuleRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+
+GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTags
+
+`func (o *EventRuleRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *EventRuleRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ExtrasApi.md b/docs/ExtrasAPI.md
similarity index 50%
rename from docs/ExtrasApi.md
rename to docs/ExtrasAPI.md
index 2b25d31436..e0d639f292 100644
--- a/docs/ExtrasApi.md
+++ b/docs/ExtrasAPI.md
@@ -68,6 +68,15 @@ Method | HTTP request | Description
[**ExtrasDashboardPartialUpdate**](ExtrasAPI.md#ExtrasDashboardPartialUpdate) | **Patch** /api/extras/dashboard/ |
[**ExtrasDashboardRetrieve**](ExtrasAPI.md#ExtrasDashboardRetrieve) | **Get** /api/extras/dashboard/ |
[**ExtrasDashboardUpdate**](ExtrasAPI.md#ExtrasDashboardUpdate) | **Put** /api/extras/dashboard/ |
+[**ExtrasEventRulesBulkDestroy**](ExtrasAPI.md#ExtrasEventRulesBulkDestroy) | **Delete** /api/extras/event-rules/ |
+[**ExtrasEventRulesBulkPartialUpdate**](ExtrasAPI.md#ExtrasEventRulesBulkPartialUpdate) | **Patch** /api/extras/event-rules/ |
+[**ExtrasEventRulesBulkUpdate**](ExtrasAPI.md#ExtrasEventRulesBulkUpdate) | **Put** /api/extras/event-rules/ |
+[**ExtrasEventRulesCreate**](ExtrasAPI.md#ExtrasEventRulesCreate) | **Post** /api/extras/event-rules/ |
+[**ExtrasEventRulesDestroy**](ExtrasAPI.md#ExtrasEventRulesDestroy) | **Delete** /api/extras/event-rules/{id}/ |
+[**ExtrasEventRulesList**](ExtrasAPI.md#ExtrasEventRulesList) | **Get** /api/extras/event-rules/ |
+[**ExtrasEventRulesPartialUpdate**](ExtrasAPI.md#ExtrasEventRulesPartialUpdate) | **Patch** /api/extras/event-rules/{id}/ |
+[**ExtrasEventRulesRetrieve**](ExtrasAPI.md#ExtrasEventRulesRetrieve) | **Get** /api/extras/event-rules/{id}/ |
+[**ExtrasEventRulesUpdate**](ExtrasAPI.md#ExtrasEventRulesUpdate) | **Put** /api/extras/event-rules/{id}/ |
[**ExtrasExportTemplatesBulkDestroy**](ExtrasAPI.md#ExtrasExportTemplatesBulkDestroy) | **Delete** /api/extras/export-templates/ |
[**ExtrasExportTemplatesBulkPartialUpdate**](ExtrasAPI.md#ExtrasExportTemplatesBulkPartialUpdate) | **Patch** /api/extras/export-templates/ |
[**ExtrasExportTemplatesBulkUpdate**](ExtrasAPI.md#ExtrasExportTemplatesBulkUpdate) | **Put** /api/extras/export-templates/ |
@@ -142,22 +151,22 @@ Method | HTTP request | Description
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewNestedUserRequest("Username_example"))} // []BookmarkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkDestroy(context.Background()).BookmarkRequest(bookmarkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewNestedUserRequest("Username_example"))} // []BookmarkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkDestroy(context.Background()).BookmarkRequest(bookmarkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -206,24 +215,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewNestedUserRequest("Username_example"))} // []BookmarkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkPartialUpdate(context.Background()).BookmarkRequest(bookmarkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasBookmarksBulkPartialUpdate`: []Bookmark
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksBulkPartialUpdate`: %v\n", resp)
+ bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewNestedUserRequest("Username_example"))} // []BookmarkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkPartialUpdate(context.Background()).BookmarkRequest(bookmarkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasBookmarksBulkPartialUpdate`: []Bookmark
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksBulkPartialUpdate`: %v\n", resp)
}
```
@@ -272,24 +281,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewNestedUserRequest("Username_example"))} // []BookmarkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkUpdate(context.Background()).BookmarkRequest(bookmarkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasBookmarksBulkUpdate`: []Bookmark
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksBulkUpdate`: %v\n", resp)
+ bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewNestedUserRequest("Username_example"))} // []BookmarkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkUpdate(context.Background()).BookmarkRequest(bookmarkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasBookmarksBulkUpdate`: []Bookmark
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksBulkUpdate`: %v\n", resp)
}
```
@@ -338,24 +347,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableBookmarkRequest := *openapiclient.NewWritableBookmarkRequest("ObjectType_example", int64(123), int32(123)) // WritableBookmarkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksCreate(context.Background()).WritableBookmarkRequest(writableBookmarkRequest).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)
- }
- // response from `ExtrasBookmarksCreate`: Bookmark
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksCreate`: %v\n", resp)
+ writableBookmarkRequest := *openapiclient.NewWritableBookmarkRequest("ObjectType_example", int64(123), int32(123)) // WritableBookmarkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksCreate(context.Background()).WritableBookmarkRequest(writableBookmarkRequest).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)
+ }
+ // response from `ExtrasBookmarksCreate`: Bookmark
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksCreate`: %v\n", resp)
}
```
@@ -404,22 +413,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this bookmark.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasBookmarksDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this bookmark.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasBookmarksDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -472,55 +481,55 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- created := time.Now() // time.Time | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- objectId := []int32{int32(123)} // []int32 | (optional)
- objectIdEmpty := true // bool | (optional)
- objectIdGt := []int32{int32(123)} // []int32 | (optional)
- objectIdGte := []int32{int32(123)} // []int32 | (optional)
- objectIdLt := []int32{int32(123)} // []int32 | (optional)
- objectIdLte := []int32{int32(123)} // []int32 | (optional)
- objectIdN := []int32{int32(123)} // []int32 | (optional)
- objectType := "objectType_example" // string | (optional)
- objectTypeN := "objectTypeN_example" // string | (optional)
- objectTypeId := []int32{int32(123)} // []int32 | (optional)
- objectTypeIdEmpty := []int32{int32(123)} // []int32 | (optional)
- objectTypeIdGt := []int32{int32(123)} // []int32 | (optional)
- objectTypeIdGte := []int32{int32(123)} // []int32 | (optional)
- objectTypeIdLt := []int32{int32(123)} // []int32 | (optional)
- objectTypeIdLte := []int32{int32(123)} // []int32 | (optional)
- objectTypeIdN := []int32{int32(123)} // []int32 | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- user := []string{"Inner_example"} // []string | User (name) (optional)
- userN := []string{"Inner_example"} // []string | User (name) (optional)
- userId := []int32{int32(123)} // []int32 | User (ID) (optional)
- userIdN := []int32{int32(123)} // []int32 | User (ID) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksList(context.Background()).Created(created).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).ObjectTypeId(objectTypeId).ObjectTypeIdEmpty(objectTypeIdEmpty).ObjectTypeIdGt(objectTypeIdGt).ObjectTypeIdGte(objectTypeIdGte).ObjectTypeIdLt(objectTypeIdLt).ObjectTypeIdLte(objectTypeIdLte).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasBookmarksList`: PaginatedBookmarkList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksList`: %v\n", resp)
+ created := time.Now() // time.Time | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ objectId := []int32{int32(123)} // []int32 | (optional)
+ objectIdEmpty := true // bool | (optional)
+ objectIdGt := []int32{int32(123)} // []int32 | (optional)
+ objectIdGte := []int32{int32(123)} // []int32 | (optional)
+ objectIdLt := []int32{int32(123)} // []int32 | (optional)
+ objectIdLte := []int32{int32(123)} // []int32 | (optional)
+ objectIdN := []int32{int32(123)} // []int32 | (optional)
+ objectType := "objectType_example" // string | (optional)
+ objectTypeN := "objectTypeN_example" // string | (optional)
+ objectTypeId := []int32{int32(123)} // []int32 | (optional)
+ objectTypeIdEmpty := []int32{int32(123)} // []int32 | (optional)
+ objectTypeIdGt := []int32{int32(123)} // []int32 | (optional)
+ objectTypeIdGte := []int32{int32(123)} // []int32 | (optional)
+ objectTypeIdLt := []int32{int32(123)} // []int32 | (optional)
+ objectTypeIdLte := []int32{int32(123)} // []int32 | (optional)
+ objectTypeIdN := []int32{int32(123)} // []int32 | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ user := []string{"Inner_example"} // []string | User (name) (optional)
+ userN := []string{"Inner_example"} // []string | User (name) (optional)
+ userId := []int32{int32(123)} // []int32 | User (ID) (optional)
+ userIdN := []int32{int32(123)} // []int32 | User (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksList(context.Background()).Created(created).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).ObjectTypeId(objectTypeId).ObjectTypeIdEmpty(objectTypeIdEmpty).ObjectTypeIdGt(objectTypeIdGt).ObjectTypeIdGte(objectTypeIdGte).ObjectTypeIdLt(objectTypeIdLt).ObjectTypeIdLte(objectTypeIdLte).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasBookmarksList`: PaginatedBookmarkList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksList`: %v\n", resp)
}
```
@@ -599,25 +608,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this bookmark.
- patchedWritableBookmarkRequest := *openapiclient.NewPatchedWritableBookmarkRequest() // PatchedWritableBookmarkRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksPartialUpdate(context.Background(), id).PatchedWritableBookmarkRequest(patchedWritableBookmarkRequest).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)
- }
- // response from `ExtrasBookmarksPartialUpdate`: Bookmark
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this bookmark.
+ patchedWritableBookmarkRequest := *openapiclient.NewPatchedWritableBookmarkRequest() // PatchedWritableBookmarkRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksPartialUpdate(context.Background(), id).PatchedWritableBookmarkRequest(patchedWritableBookmarkRequest).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)
+ }
+ // response from `ExtrasBookmarksPartialUpdate`: Bookmark
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksPartialUpdate`: %v\n", resp)
}
```
@@ -671,24 +680,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this bookmark.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasBookmarksRetrieve`: Bookmark
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this bookmark.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasBookmarksRetrieve`: Bookmark
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksRetrieve`: %v\n", resp)
}
```
@@ -741,25 +750,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this bookmark.
- writableBookmarkRequest := *openapiclient.NewWritableBookmarkRequest("ObjectType_example", int64(123), int32(123)) // WritableBookmarkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksUpdate(context.Background(), id).WritableBookmarkRequest(writableBookmarkRequest).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)
- }
- // response from `ExtrasBookmarksUpdate`: Bookmark
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this bookmark.
+ writableBookmarkRequest := *openapiclient.NewWritableBookmarkRequest("ObjectType_example", int64(123), int32(123)) // WritableBookmarkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksUpdate(context.Background(), id).WritableBookmarkRequest(writableBookmarkRequest).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)
+ }
+ // response from `ExtrasBookmarksUpdate`: Bookmark
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksUpdate`: %v\n", resp)
}
```
@@ -813,22 +822,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- configContextRequest := []openapiclient.ConfigContextRequest{*openapiclient.NewConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)})} // []ConfigContextRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasConfigContextsBulkDestroy(context.Background()).ConfigContextRequest(configContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configContextRequest := []openapiclient.ConfigContextRequest{*openapiclient.NewConfigContextRequest("Name_example", interface{}(123))} // []ConfigContextRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasConfigContextsBulkDestroy(context.Background()).ConfigContextRequest(configContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -877,24 +886,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- configContextRequest := []openapiclient.ConfigContextRequest{*openapiclient.NewConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)})} // []ConfigContextRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsBulkPartialUpdate(context.Background()).ConfigContextRequest(configContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigContextsBulkPartialUpdate`: []ConfigContext
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsBulkPartialUpdate`: %v\n", resp)
+ configContextRequest := []openapiclient.ConfigContextRequest{*openapiclient.NewConfigContextRequest("Name_example", interface{}(123))} // []ConfigContextRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsBulkPartialUpdate(context.Background()).ConfigContextRequest(configContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigContextsBulkPartialUpdate`: []ConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -943,24 +952,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- configContextRequest := []openapiclient.ConfigContextRequest{*openapiclient.NewConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)})} // []ConfigContextRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsBulkUpdate(context.Background()).ConfigContextRequest(configContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigContextsBulkUpdate`: []ConfigContext
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsBulkUpdate`: %v\n", resp)
+ configContextRequest := []openapiclient.ConfigContextRequest{*openapiclient.NewConfigContextRequest("Name_example", interface{}(123))} // []ConfigContextRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsBulkUpdate(context.Background()).ConfigContextRequest(configContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigContextsBulkUpdate`: []ConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsBulkUpdate`: %v\n", resp)
}
```
@@ -1009,24 +1018,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)}) // WritableConfigContextRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsCreate(context.Background()).WritableConfigContextRequest(writableConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigContextsCreate`: ConfigContext
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsCreate`: %v\n", resp)
+ writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", interface{}(123)) // WritableConfigContextRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsCreate(context.Background()).WritableConfigContextRequest(writableConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigContextsCreate`: ConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsCreate`: %v\n", resp)
}
```
@@ -1075,22 +1084,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this config context.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasConfigContextsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this config context.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasConfigContextsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1131,7 +1140,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).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).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()
@@ -1143,123 +1152,134 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- clusterGroup := []string{"Inner_example"} // []string | Cluster group (slug) (optional)
- clusterGroupN := []string{"Inner_example"} // []string | Cluster group (slug) (optional)
- clusterGroupId := []int32{int32(123)} // []int32 | Cluster group (optional)
- clusterGroupIdN := []int32{int32(123)} // []int32 | Cluster group (optional)
- clusterId := []int32{int32(123)} // []int32 | Cluster (optional)
- clusterIdN := []int32{int32(123)} // []int32 | Cluster (optional)
- clusterType := []string{"Inner_example"} // []string | Cluster type (slug) (optional)
- clusterTypeN := []string{"Inner_example"} // []string | Cluster type (slug) (optional)
- clusterTypeId := []int32{int32(123)} // []int32 | Cluster type (optional)
- clusterTypeIdN := []int32{int32(123)} // []int32 | Cluster type (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- dataFileId := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
- dataFileIdN := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
- dataSourceId := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
- dataSourceIdN := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
- dataSynced := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedEmpty := true // bool | (optional)
- dataSyncedGt := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedGte := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedLt := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedLte := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedN := []time.Time{time.Now()} // []time.Time | (optional)
- deviceTypeId := []int32{int32(123)} // []int32 | Device type (optional)
- deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- isActive := true // bool | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- location := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
- locationId := []int32{int32(123)} // []int32 | Location (optional)
- locationIdN := []int32{int32(123)} // []int32 | Location (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- platform := []string{"Inner_example"} // []string | Platform (slug) (optional)
- platformN := []string{"Inner_example"} // []string | Platform (slug) (optional)
- platformId := []int32{int32(123)} // []int32 | Platform (optional)
- platformIdN := []int32{int32(123)} // []int32 | Platform (optional)
- q := "q_example" // string | Search (optional)
- region := []string{"Inner_example"} // []string | Region (slug) (optional)
- regionN := []string{"Inner_example"} // []string | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (optional)
- role := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleId := []int32{int32(123)} // []int32 | Role (optional)
- roleIdN := []int32{int32(123)} // []int32 | Role (optional)
- site := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteGroup := []string{"Inner_example"} // []string | Site group (slug) (optional)
- siteGroupN := []string{"Inner_example"} // []string | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (optional)
- siteId := []int32{int32(123)} // []int32 | Site (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (optional)
- tag := []string{"Inner_example"} // []string | Tag (slug) (optional)
- tagN := []string{"Inner_example"} // []string | Tag (slug) (optional)
- tagId := []int32{int32(123)} // []int32 | Tag (optional)
- tagIdN := []int32{int32(123)} // []int32 | Tag (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []string{"Inner_example"} // []string | Tenant group (slug) (optional)
- tenantGroupN := []string{"Inner_example"} // []string | Tenant group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant group (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant group (optional)
- tenantId := []int32{int32(123)} // []int32 | Tenant (optional)
- tenantIdN := []int32{int32(123)} // []int32 | Tenant (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigContextsList`: PaginatedConfigContextList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ clusterGroup := []string{"Inner_example"} // []string | Cluster group (slug) (optional)
+ clusterGroupN := []string{"Inner_example"} // []string | Cluster group (slug) (optional)
+ clusterGroupId := []int32{int32(123)} // []int32 | Cluster group (optional)
+ clusterGroupIdN := []int32{int32(123)} // []int32 | Cluster group (optional)
+ clusterId := []int32{int32(123)} // []int32 | Cluster (optional)
+ clusterIdN := []int32{int32(123)} // []int32 | Cluster (optional)
+ clusterType := []string{"Inner_example"} // []string | Cluster type (slug) (optional)
+ clusterTypeN := []string{"Inner_example"} // []string | Cluster type (slug) (optional)
+ clusterTypeId := []int32{int32(123)} // []int32 | Cluster type (optional)
+ clusterTypeIdN := []int32{int32(123)} // []int32 | Cluster type (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ dataFileId := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
+ dataFileIdN := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
+ dataSourceId := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
+ dataSourceIdN := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
+ dataSynced := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedEmpty := true // bool | (optional)
+ dataSyncedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedN := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ deviceTypeId := []int32{int32(123)} // []int32 | Device type (optional)
+ deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ isActive := true // bool | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ location := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
+ locationId := []int32{int32(123)} // []int32 | Location (optional)
+ locationIdN := []int32{int32(123)} // []int32 | Location (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ platform := []string{"Inner_example"} // []string | Platform (slug) (optional)
+ platformN := []string{"Inner_example"} // []string | Platform (slug) (optional)
+ platformId := []int32{int32(123)} // []int32 | Platform (optional)
+ platformIdN := []int32{int32(123)} // []int32 | Platform (optional)
+ q := "q_example" // string | Search (optional)
+ region := []string{"Inner_example"} // []string | Region (slug) (optional)
+ regionN := []string{"Inner_example"} // []string | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (optional)
+ role := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleId := []int32{int32(123)} // []int32 | Role (optional)
+ roleIdN := []int32{int32(123)} // []int32 | Role (optional)
+ site := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteGroup := []string{"Inner_example"} // []string | Site group (slug) (optional)
+ siteGroupN := []string{"Inner_example"} // []string | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (optional)
+ tag := []string{"Inner_example"} // []string | Tag (slug) (optional)
+ tagN := []string{"Inner_example"} // []string | Tag (slug) (optional)
+ tagId := []int32{int32(123)} // []int32 | Tag (optional)
+ tagIdN := []int32{int32(123)} // []int32 | Tag (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []string{"Inner_example"} // []string | Tenant group (slug) (optional)
+ tenantGroupN := []string{"Inner_example"} // []string | Tenant group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant group (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant group (optional)
+ tenantId := []int32{int32(123)} // []int32 | Tenant (optional)
+ tenantIdN := []int32{int32(123)} // []int32 | Tenant (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).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()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigContextsList`: PaginatedConfigContextList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsList`: %v\n", resp)
}
```
@@ -1303,6 +1323,17 @@ Name | Type | Description | Notes
**dataSyncedLt** | [**[]time.Time**](time.Time.md) | |
**dataSyncedLte** | [**[]time.Time**](time.Time.md) | |
**dataSyncedN** | [**[]time.Time**](time.Time.md) | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
**deviceTypeId** | **[]int32** | Device type |
**deviceTypeIdN** | **[]int32** | Device type |
**id** | **[]int32** | |
@@ -1406,25 +1437,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this config context.
- patchedWritableConfigContextRequest := *openapiclient.NewPatchedWritableConfigContextRequest() // PatchedWritableConfigContextRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsPartialUpdate(context.Background(), id).PatchedWritableConfigContextRequest(patchedWritableConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigContextsPartialUpdate`: ConfigContext
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this config context.
+ patchedWritableConfigContextRequest := *openapiclient.NewPatchedWritableConfigContextRequest() // PatchedWritableConfigContextRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsPartialUpdate(context.Background(), id).PatchedWritableConfigContextRequest(patchedWritableConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigContextsPartialUpdate`: ConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsPartialUpdate`: %v\n", resp)
}
```
@@ -1478,24 +1509,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this config context.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigContextsRetrieve`: ConfigContext
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this config context.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigContextsRetrieve`: ConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsRetrieve`: %v\n", resp)
}
```
@@ -1548,25 +1579,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this config context.
- writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)}) // WritableConfigContextRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsSyncCreate(context.Background(), id).WritableConfigContextRequest(writableConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsSyncCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigContextsSyncCreate`: ConfigContext
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsSyncCreate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this config context.
+ writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", interface{}(123)) // WritableConfigContextRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsSyncCreate(context.Background(), id).WritableConfigContextRequest(writableConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsSyncCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigContextsSyncCreate`: ConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsSyncCreate`: %v\n", resp)
}
```
@@ -1620,25 +1651,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this config context.
- writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)}) // WritableConfigContextRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsUpdate(context.Background(), id).WritableConfigContextRequest(writableConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigContextsUpdate`: ConfigContext
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this config context.
+ writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", interface{}(123)) // WritableConfigContextRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsUpdate(context.Background(), id).WritableConfigContextRequest(writableConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigContextsUpdate`: ConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsUpdate`: %v\n", resp)
}
```
@@ -1692,22 +1723,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesBulkDestroy(context.Background()).ConfigTemplateRequest(configTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesBulkDestroy(context.Background()).ConfigTemplateRequest(configTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1756,24 +1787,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesBulkPartialUpdate(context.Background()).ConfigTemplateRequest(configTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigTemplatesBulkPartialUpdate`: []ConfigTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesBulkPartialUpdate`: %v\n", resp)
+ configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesBulkPartialUpdate(context.Background()).ConfigTemplateRequest(configTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigTemplatesBulkPartialUpdate`: []ConfigTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -1822,24 +1853,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesBulkUpdate(context.Background()).ConfigTemplateRequest(configTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigTemplatesBulkUpdate`: []ConfigTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesBulkUpdate`: %v\n", resp)
+ configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesBulkUpdate(context.Background()).ConfigTemplateRequest(configTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigTemplatesBulkUpdate`: []ConfigTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesBulkUpdate`: %v\n", resp)
}
```
@@ -1888,24 +1919,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesCreate(context.Background()).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigTemplatesCreate`: ConfigTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesCreate`: %v\n", resp)
+ writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesCreate(context.Background()).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigTemplatesCreate`: ConfigTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesCreate`: %v\n", resp)
}
```
@@ -1954,22 +1985,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this config template.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this config template.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -2022,70 +2053,70 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- dataFileId := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
- dataFileIdN := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
- dataSourceId := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
- dataSourceIdN := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
- dataSynced := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedEmpty := true // bool | (optional)
- dataSyncedGt := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedGte := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedLt := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedLte := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedN := []time.Time{time.Now()} // []time.Time | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesList(context.Background()).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigTemplatesList`: PaginatedConfigTemplateList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ dataFileId := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
+ dataFileIdN := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
+ dataSourceId := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
+ dataSourceIdN := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
+ dataSynced := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedEmpty := true // bool | (optional)
+ dataSyncedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedN := []time.Time{time.Now()} // []time.Time | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesList(context.Background()).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigTemplatesList`: PaginatedConfigTemplateList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesList`: %v\n", resp)
}
```
@@ -2179,25 +2210,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this config template.
- patchedWritableConfigTemplateRequest := *openapiclient.NewPatchedWritableConfigTemplateRequest() // PatchedWritableConfigTemplateRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesPartialUpdate(context.Background(), id).PatchedWritableConfigTemplateRequest(patchedWritableConfigTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigTemplatesPartialUpdate`: ConfigTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this config template.
+ patchedWritableConfigTemplateRequest := *openapiclient.NewPatchedWritableConfigTemplateRequest() // PatchedWritableConfigTemplateRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesPartialUpdate(context.Background(), id).PatchedWritableConfigTemplateRequest(patchedWritableConfigTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigTemplatesPartialUpdate`: ConfigTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesPartialUpdate`: %v\n", resp)
}
```
@@ -2251,26 +2282,26 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this config template.
- writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest |
- format := "format_example" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesRenderCreate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Format(format).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesRenderCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigTemplatesRenderCreate`: ConfigTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesRenderCreate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this config template.
+ writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest |
+ 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()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesRenderCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigTemplatesRenderCreate`: ConfigTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesRenderCreate`: %v\n", resp)
}
```
@@ -2291,7 +2322,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**writableConfigTemplateRequest** | [**WritableConfigTemplateRequest**](WritableConfigTemplateRequest.md) | |
- **format** | **string** | |
+ **format** | [**DcimDevicesRenderConfigCreateFormatParameter**](DcimDevicesRenderConfigCreateFormatParameter.md) | |
### Return type
@@ -2325,24 +2356,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this config template.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasConfigTemplatesRetrieve`: ConfigTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this config template.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasConfigTemplatesRetrieve`: ConfigTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesRetrieve`: %v\n", resp)
}
```
@@ -2395,25 +2426,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this config template.
- writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesSyncCreate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).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)
- }
- // response from `ExtrasConfigTemplatesSyncCreate`: ConfigTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesSyncCreate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this config template.
+ writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesSyncCreate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).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)
+ }
+ // response from `ExtrasConfigTemplatesSyncCreate`: ConfigTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesSyncCreate`: %v\n", resp)
}
```
@@ -2467,25 +2498,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this config template.
- writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesUpdate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).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)
- }
- // response from `ExtrasConfigTemplatesUpdate`: ConfigTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this config template.
+ writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesUpdate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).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)
+ }
+ // response from `ExtrasConfigTemplatesUpdate`: ConfigTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesUpdate`: %v\n", resp)
}
```
@@ -2539,30 +2570,30 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "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)
+ 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)
}
```
@@ -2617,24 +2648,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "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)
+ 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)
}
```
@@ -2687,22 +2718,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- customFieldChoiceSetRequest := []openapiclient.CustomFieldChoiceSetRequest{*openapiclient.NewCustomFieldChoiceSetRequest("Name_example")} // []CustomFieldChoiceSetRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkDestroy(context.Background()).CustomFieldChoiceSetRequest(customFieldChoiceSetRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ customFieldChoiceSetRequest := []openapiclient.CustomFieldChoiceSetRequest{*openapiclient.NewCustomFieldChoiceSetRequest("Name_example")} // []CustomFieldChoiceSetRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkDestroy(context.Background()).CustomFieldChoiceSetRequest(customFieldChoiceSetRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -2751,24 +2782,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- customFieldChoiceSetRequest := []openapiclient.CustomFieldChoiceSetRequest{*openapiclient.NewCustomFieldChoiceSetRequest("Name_example")} // []CustomFieldChoiceSetRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkPartialUpdate(context.Background()).CustomFieldChoiceSetRequest(customFieldChoiceSetRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldChoiceSetsBulkPartialUpdate`: []CustomFieldChoiceSet
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkPartialUpdate`: %v\n", resp)
+ customFieldChoiceSetRequest := []openapiclient.CustomFieldChoiceSetRequest{*openapiclient.NewCustomFieldChoiceSetRequest("Name_example")} // []CustomFieldChoiceSetRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkPartialUpdate(context.Background()).CustomFieldChoiceSetRequest(customFieldChoiceSetRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldChoiceSetsBulkPartialUpdate`: []CustomFieldChoiceSet
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -2817,24 +2848,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- customFieldChoiceSetRequest := []openapiclient.CustomFieldChoiceSetRequest{*openapiclient.NewCustomFieldChoiceSetRequest("Name_example")} // []CustomFieldChoiceSetRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkUpdate(context.Background()).CustomFieldChoiceSetRequest(customFieldChoiceSetRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldChoiceSetsBulkUpdate`: []CustomFieldChoiceSet
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkUpdate`: %v\n", resp)
+ customFieldChoiceSetRequest := []openapiclient.CustomFieldChoiceSetRequest{*openapiclient.NewCustomFieldChoiceSetRequest("Name_example")} // []CustomFieldChoiceSetRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkUpdate(context.Background()).CustomFieldChoiceSetRequest(customFieldChoiceSetRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldChoiceSetsBulkUpdate`: []CustomFieldChoiceSet
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkUpdate`: %v\n", resp)
}
```
@@ -2883,24 +2914,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this custom field choice set.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsChoicesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsChoicesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldChoiceSetsChoicesRetrieve`: CustomFieldChoiceSet
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsChoicesRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this custom field choice set.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsChoicesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsChoicesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldChoiceSetsChoicesRetrieve`: CustomFieldChoiceSet
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsChoicesRetrieve`: %v\n", resp)
}
```
@@ -2953,24 +2984,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableCustomFieldChoiceSetRequest := *openapiclient.NewWritableCustomFieldChoiceSetRequest("Name_example") // WritableCustomFieldChoiceSetRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsCreate(context.Background()).WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldChoiceSetsCreate`: CustomFieldChoiceSet
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsCreate`: %v\n", resp)
+ writableCustomFieldChoiceSetRequest := *openapiclient.NewWritableCustomFieldChoiceSetRequest("Name_example") // WritableCustomFieldChoiceSetRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsCreate(context.Background()).WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldChoiceSetsCreate`: CustomFieldChoiceSet
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsCreate`: %v\n", resp)
}
```
@@ -3019,22 +3050,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this custom field choice set.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this custom field choice set.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -3087,60 +3118,60 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- baseChoices := "baseChoices_example" // string | Base set of predefined choices (optional) (optional)
- baseChoicesN := "baseChoicesN_example" // string | Base set of predefined choices (optional) (optional)
- choice := []string{"Inner_example"} // []string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- orderAlphabetically := true // bool | (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsList(context.Background()).BaseChoices(baseChoices).BaseChoicesN(baseChoicesN).Choice(choice).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldChoiceSetsList`: PaginatedCustomFieldChoiceSetList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsList`: %v\n", resp)
+ baseChoices := "baseChoices_example" // string | Base set of predefined choices (optional) (optional)
+ baseChoicesN := "baseChoicesN_example" // string | Base set of predefined choices (optional) (optional)
+ choice := []string{"Inner_example"} // []string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ orderAlphabetically := true // bool | (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsList(context.Background()).BaseChoices(baseChoices).BaseChoicesN(baseChoicesN).Choice(choice).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldChoiceSetsList`: PaginatedCustomFieldChoiceSetList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsList`: %v\n", resp)
}
```
@@ -3225,25 +3256,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this custom field choice set.
- patchedWritableCustomFieldChoiceSetRequest := *openapiclient.NewPatchedWritableCustomFieldChoiceSetRequest() // PatchedWritableCustomFieldChoiceSetRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsPartialUpdate(context.Background(), id).PatchedWritableCustomFieldChoiceSetRequest(patchedWritableCustomFieldChoiceSetRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldChoiceSetsPartialUpdate`: CustomFieldChoiceSet
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this custom field choice set.
+ patchedWritableCustomFieldChoiceSetRequest := *openapiclient.NewPatchedWritableCustomFieldChoiceSetRequest() // PatchedWritableCustomFieldChoiceSetRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsPartialUpdate(context.Background(), id).PatchedWritableCustomFieldChoiceSetRequest(patchedWritableCustomFieldChoiceSetRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldChoiceSetsPartialUpdate`: CustomFieldChoiceSet
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsPartialUpdate`: %v\n", resp)
}
```
@@ -3297,24 +3328,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this custom field choice set.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldChoiceSetsRetrieve`: CustomFieldChoiceSet
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this custom field choice set.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldChoiceSetsRetrieve`: CustomFieldChoiceSet
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsRetrieve`: %v\n", resp)
}
```
@@ -3367,25 +3398,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this custom field choice set.
- writableCustomFieldChoiceSetRequest := *openapiclient.NewWritableCustomFieldChoiceSetRequest("Name_example") // WritableCustomFieldChoiceSetRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsUpdate(context.Background(), id).WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldChoiceSetsUpdate`: CustomFieldChoiceSet
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this custom field choice set.
+ writableCustomFieldChoiceSetRequest := *openapiclient.NewWritableCustomFieldChoiceSetRequest("Name_example") // WritableCustomFieldChoiceSetRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsUpdate(context.Background(), id).WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldChoiceSetsUpdate`: CustomFieldChoiceSet
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsUpdate`: %v\n", resp)
}
```
@@ -3439,22 +3470,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- customFieldRequest := []openapiclient.CustomFieldRequest{*openapiclient.NewCustomFieldRequest([]string{"ContentTypes_example"}, "Type_example", "Name_example")} // []CustomFieldRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkDestroy(context.Background()).CustomFieldRequest(customFieldRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ customFieldRequest := []openapiclient.CustomFieldRequest{*openapiclient.NewCustomFieldRequest([]string{"ContentTypes_example"}, openapiclient.CustomField_type_value("text"), "Name_example")} // []CustomFieldRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkDestroy(context.Background()).CustomFieldRequest(customFieldRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -3503,24 +3534,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- customFieldRequest := []openapiclient.CustomFieldRequest{*openapiclient.NewCustomFieldRequest([]string{"ContentTypes_example"}, "Type_example", "Name_example")} // []CustomFieldRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkPartialUpdate(context.Background()).CustomFieldRequest(customFieldRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldsBulkPartialUpdate`: []CustomField
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsBulkPartialUpdate`: %v\n", resp)
+ customFieldRequest := []openapiclient.CustomFieldRequest{*openapiclient.NewCustomFieldRequest([]string{"ContentTypes_example"}, openapiclient.CustomField_type_value("text"), "Name_example")} // []CustomFieldRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkPartialUpdate(context.Background()).CustomFieldRequest(customFieldRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldsBulkPartialUpdate`: []CustomField
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -3569,24 +3600,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- customFieldRequest := []openapiclient.CustomFieldRequest{*openapiclient.NewCustomFieldRequest([]string{"ContentTypes_example"}, "Type_example", "Name_example")} // []CustomFieldRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkUpdate(context.Background()).CustomFieldRequest(customFieldRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldsBulkUpdate`: []CustomField
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsBulkUpdate`: %v\n", resp)
+ customFieldRequest := []openapiclient.CustomFieldRequest{*openapiclient.NewCustomFieldRequest([]string{"ContentTypes_example"}, openapiclient.CustomField_type_value("text"), "Name_example")} // []CustomFieldRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkUpdate(context.Background()).CustomFieldRequest(customFieldRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldsBulkUpdate`: []CustomField
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsBulkUpdate`: %v\n", resp)
}
```
@@ -3635,24 +3666,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableCustomFieldRequest := *openapiclient.NewWritableCustomFieldRequest([]string{"ContentTypes_example"}, "Name_example") // WritableCustomFieldRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsCreate(context.Background()).WritableCustomFieldRequest(writableCustomFieldRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldsCreate`: CustomField
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsCreate`: %v\n", resp)
+ writableCustomFieldRequest := *openapiclient.NewWritableCustomFieldRequest([]string{"ContentTypes_example"}, "Name_example") // WritableCustomFieldRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsCreate(context.Background()).WritableCustomFieldRequest(writableCustomFieldRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldsCreate`: CustomField
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsCreate`: %v\n", resp)
}
```
@@ -3701,22 +3732,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this custom field.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this custom field.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -3757,122 +3788,124 @@ 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).UiVisibility(uiVisibility).UiVisibilityN(uiVisibilityN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- choiceSet := []string{"Inner_example"} // []string | (optional)
- choiceSetN := []string{"Inner_example"} // []string | (optional)
- choiceSetId := []*int32{int32(123)} // []*int32 | (optional)
- choiceSetIdN := []*int32{int32(123)} // []*int32 | (optional)
- contentTypeId := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdEmpty := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGt := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGte := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdLt := []int32{int32(123)} // []int32 | (optional)
- 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)
- 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)
- groupName := []string{"Inner_example"} // []string | (optional)
- groupNameEmpty := true // bool | (optional)
- groupNameIc := []string{"Inner_example"} // []string | (optional)
- groupNameIe := []string{"Inner_example"} // []string | (optional)
- groupNameIew := []string{"Inner_example"} // []string | (optional)
- groupNameIsw := []string{"Inner_example"} // []string | (optional)
- groupNameN := []string{"Inner_example"} // []string | (optional)
- groupNameNic := []string{"Inner_example"} // []string | (optional)
- groupNameNie := []string{"Inner_example"} // []string | (optional)
- groupNameNiew := []string{"Inner_example"} // []string | (optional)
- groupNameNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- isCloneable := true // bool | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- required := true // bool | (optional)
- searchWeight := []int32{int32(123)} // []int32 | (optional)
- searchWeightEmpty := true // bool | (optional)
- searchWeightGt := []int32{int32(123)} // []int32 | (optional)
- searchWeightGte := []int32{int32(123)} // []int32 | (optional)
- searchWeightLt := []int32{int32(123)} // []int32 | (optional)
- searchWeightLte := []int32{int32(123)} // []int32 | (optional)
- searchWeightN := []int32{int32(123)} // []int32 | (optional)
- type_ := []string{"Inner_example"} // []string | The type of data this custom field holds (optional)
- typeN := []string{"Inner_example"} // []string | The type of data this custom field holds (optional)
- uiVisibility := "uiVisibility_example" // string | Specifies the visibility of custom field in the UI (optional)
- uiVisibilityN := "uiVisibilityN_example" // string | Specifies the visibility of custom field in the UI (optional)
- weight := []int32{int32(123)} // []int32 | (optional)
- weightEmpty := true // bool | (optional)
- weightGt := []int32{int32(123)} // []int32 | (optional)
- weightGte := []int32{int32(123)} // []int32 | (optional)
- weightLt := []int32{int32(123)} // []int32 | (optional)
- weightLte := []int32{int32(123)} // []int32 | (optional)
- weightN := []int32{int32(123)} // []int32 | (optional)
-
- 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).UiVisibility(uiVisibility).UiVisibilityN(uiVisibilityN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldsList`: PaginatedCustomFieldList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsList`: %v\n", resp)
+> 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ choiceSet := []string{"Inner_example"} // []string | (optional)
+ choiceSetN := []string{"Inner_example"} // []string | (optional)
+ choiceSetId := []*int32{int32(123)} // []*int32 | (optional)
+ choiceSetIdN := []*int32{int32(123)} // []*int32 | (optional)
+ contentTypeId := []int32{int32(123)} // []int32 | (optional)
+ contentTypeIdEmpty := []int32{int32(123)} // []int32 | (optional)
+ contentTypeIdGt := []int32{int32(123)} // []int32 | (optional)
+ contentTypeIdGte := []int32{int32(123)} // []int32 | (optional)
+ contentTypeIdLt := []int32{int32(123)} // []int32 | (optional)
+ 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)
+ 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)
+ groupName := []string{"Inner_example"} // []string | (optional)
+ groupNameEmpty := true // bool | (optional)
+ groupNameIc := []string{"Inner_example"} // []string | (optional)
+ groupNameIe := []string{"Inner_example"} // []string | (optional)
+ groupNameIew := []string{"Inner_example"} // []string | (optional)
+ groupNameIsw := []string{"Inner_example"} // []string | (optional)
+ groupNameN := []string{"Inner_example"} // []string | (optional)
+ groupNameNic := []string{"Inner_example"} // []string | (optional)
+ groupNameNie := []string{"Inner_example"} // []string | (optional)
+ groupNameNiew := []string{"Inner_example"} // []string | (optional)
+ groupNameNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ isCloneable := true // bool | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ required := true // bool | (optional)
+ searchWeight := []int32{int32(123)} // []int32 | (optional)
+ searchWeightEmpty := true // bool | (optional)
+ searchWeightGt := []int32{int32(123)} // []int32 | (optional)
+ searchWeightGte := []int32{int32(123)} // []int32 | (optional)
+ searchWeightLt := []int32{int32(123)} // []int32 | (optional)
+ searchWeightLte := []int32{int32(123)} // []int32 | (optional)
+ searchWeightN := []int32{int32(123)} // []int32 | (optional)
+ type_ := []string{"Inner_example"} // []string | The type of data this custom field holds (optional)
+ 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)
+ 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.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()
+ 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)
+ }
+ // response from `ExtrasCustomFieldsList`: PaginatedCustomFieldList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsList`: %v\n", resp)
}
```
@@ -3965,8 +3998,10 @@ 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 |
- **uiVisibility** | **string** | Specifies the visibility of custom field in the UI |
- **uiVisibilityN** | **string** | Specifies the visibility of custom field in the UI |
+ **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 |
**weight** | **[]int32** | |
**weightEmpty** | **bool** | |
**weightGt** | **[]int32** | |
@@ -4007,25 +4042,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this custom field.
- patchedWritableCustomFieldRequest := *openapiclient.NewPatchedWritableCustomFieldRequest() // PatchedWritableCustomFieldRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsPartialUpdate(context.Background(), id).PatchedWritableCustomFieldRequest(patchedWritableCustomFieldRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldsPartialUpdate`: CustomField
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this custom field.
+ patchedWritableCustomFieldRequest := *openapiclient.NewPatchedWritableCustomFieldRequest() // PatchedWritableCustomFieldRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsPartialUpdate(context.Background(), id).PatchedWritableCustomFieldRequest(patchedWritableCustomFieldRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldsPartialUpdate`: CustomField
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsPartialUpdate`: %v\n", resp)
}
```
@@ -4079,24 +4114,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this custom field.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldsRetrieve`: CustomField
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this custom field.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldsRetrieve`: CustomField
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsRetrieve`: %v\n", resp)
}
```
@@ -4149,25 +4184,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this custom field.
- writableCustomFieldRequest := *openapiclient.NewWritableCustomFieldRequest([]string{"ContentTypes_example"}, "Name_example") // WritableCustomFieldRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsUpdate(context.Background(), id).WritableCustomFieldRequest(writableCustomFieldRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomFieldsUpdate`: CustomField
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this custom field.
+ writableCustomFieldRequest := *openapiclient.NewWritableCustomFieldRequest([]string{"ContentTypes_example"}, "Name_example") // WritableCustomFieldRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsUpdate(context.Background(), id).WritableCustomFieldRequest(writableCustomFieldRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomFieldsUpdate`: CustomField
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsUpdate`: %v\n", resp)
}
```
@@ -4221,22 +4256,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- customLinkRequest := []openapiclient.CustomLinkRequest{*openapiclient.NewCustomLinkRequest([]string{"ContentTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example")} // []CustomLinkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkDestroy(context.Background()).CustomLinkRequest(customLinkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ customLinkRequest := []openapiclient.CustomLinkRequest{*openapiclient.NewCustomLinkRequest([]string{"ContentTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example")} // []CustomLinkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkDestroy(context.Background()).CustomLinkRequest(customLinkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -4285,24 +4320,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- customLinkRequest := []openapiclient.CustomLinkRequest{*openapiclient.NewCustomLinkRequest([]string{"ContentTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example")} // []CustomLinkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkPartialUpdate(context.Background()).CustomLinkRequest(customLinkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomLinksBulkPartialUpdate`: []CustomLink
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksBulkPartialUpdate`: %v\n", resp)
+ customLinkRequest := []openapiclient.CustomLinkRequest{*openapiclient.NewCustomLinkRequest([]string{"ContentTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example")} // []CustomLinkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkPartialUpdate(context.Background()).CustomLinkRequest(customLinkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomLinksBulkPartialUpdate`: []CustomLink
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksBulkPartialUpdate`: %v\n", resp)
}
```
@@ -4351,24 +4386,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- customLinkRequest := []openapiclient.CustomLinkRequest{*openapiclient.NewCustomLinkRequest([]string{"ContentTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example")} // []CustomLinkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkUpdate(context.Background()).CustomLinkRequest(customLinkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomLinksBulkUpdate`: []CustomLink
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksBulkUpdate`: %v\n", resp)
+ customLinkRequest := []openapiclient.CustomLinkRequest{*openapiclient.NewCustomLinkRequest([]string{"ContentTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example")} // []CustomLinkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkUpdate(context.Background()).CustomLinkRequest(customLinkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomLinksBulkUpdate`: []CustomLink
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksBulkUpdate`: %v\n", resp)
}
```
@@ -4417,24 +4452,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- customLinkRequest := *openapiclient.NewCustomLinkRequest([]string{"ContentTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example") // CustomLinkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksCreate(context.Background()).CustomLinkRequest(customLinkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomLinksCreate`: CustomLink
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksCreate`: %v\n", resp)
+ customLinkRequest := *openapiclient.NewCustomLinkRequest([]string{"ContentTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example") // CustomLinkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksCreate(context.Background()).CustomLinkRequest(customLinkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomLinksCreate`: CustomLink
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksCreate`: %v\n", resp)
}
```
@@ -4483,22 +4518,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this custom link.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasCustomLinksDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this custom link.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasCustomLinksDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -4551,102 +4586,102 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- enabled := true // bool | (optional)
- groupName := []string{"Inner_example"} // []string | (optional)
- groupNameEmpty := true // bool | (optional)
- groupNameIc := []string{"Inner_example"} // []string | (optional)
- groupNameIe := []string{"Inner_example"} // []string | (optional)
- groupNameIew := []string{"Inner_example"} // []string | (optional)
- groupNameIsw := []string{"Inner_example"} // []string | (optional)
- groupNameN := []string{"Inner_example"} // []string | (optional)
- groupNameNic := []string{"Inner_example"} // []string | (optional)
- groupNameNie := []string{"Inner_example"} // []string | (optional)
- groupNameNiew := []string{"Inner_example"} // []string | (optional)
- groupNameNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- linkText := "linkText_example" // string | (optional)
- linkTextIc := "linkTextIc_example" // string | (optional)
- linkTextIe := "linkTextIe_example" // string | (optional)
- linkTextIew := "linkTextIew_example" // string | (optional)
- linkTextIsw := "linkTextIsw_example" // string | (optional)
- linkTextN := "linkTextN_example" // string | (optional)
- linkTextNic := "linkTextNic_example" // string | (optional)
- linkTextNie := "linkTextNie_example" // string | (optional)
- linkTextNiew := "linkTextNiew_example" // string | (optional)
- linkTextNisw := "linkTextNisw_example" // string | (optional)
- linkUrl := "linkUrl_example" // string | (optional)
- linkUrlIc := "linkUrlIc_example" // string | (optional)
- linkUrlIe := "linkUrlIe_example" // string | (optional)
- linkUrlIew := "linkUrlIew_example" // string | (optional)
- linkUrlIsw := "linkUrlIsw_example" // string | (optional)
- linkUrlN := "linkUrlN_example" // string | (optional)
- linkUrlNic := "linkUrlNic_example" // string | (optional)
- linkUrlNie := "linkUrlNie_example" // string | (optional)
- linkUrlNiew := "linkUrlNiew_example" // string | (optional)
- linkUrlNisw := "linkUrlNisw_example" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- newWindow := true // bool | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- 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.ExtrasCustomLinksList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Enabled(enabled).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).LinkText(linkText).LinkTextIc(linkTextIc).LinkTextIe(linkTextIe).LinkTextIew(linkTextIew).LinkTextIsw(linkTextIsw).LinkTextN(linkTextN).LinkTextNic(linkTextNic).LinkTextNie(linkTextNie).LinkTextNiew(linkTextNiew).LinkTextNisw(linkTextNisw).LinkUrl(linkUrl).LinkUrlIc(linkUrlIc).LinkUrlIe(linkUrlIe).LinkUrlIew(linkUrlIew).LinkUrlIsw(linkUrlIsw).LinkUrlN(linkUrlN).LinkUrlNic(linkUrlNic).LinkUrlNie(linkUrlNie).LinkUrlNiew(linkUrlNiew).LinkUrlNisw(linkUrlNisw).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).Offset(offset).Ordering(ordering).Q(q).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomLinksList`: PaginatedCustomLinkList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksList`: %v\n", resp)
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ enabled := true // bool | (optional)
+ groupName := []string{"Inner_example"} // []string | (optional)
+ groupNameEmpty := true // bool | (optional)
+ groupNameIc := []string{"Inner_example"} // []string | (optional)
+ groupNameIe := []string{"Inner_example"} // []string | (optional)
+ groupNameIew := []string{"Inner_example"} // []string | (optional)
+ groupNameIsw := []string{"Inner_example"} // []string | (optional)
+ groupNameN := []string{"Inner_example"} // []string | (optional)
+ groupNameNic := []string{"Inner_example"} // []string | (optional)
+ groupNameNie := []string{"Inner_example"} // []string | (optional)
+ groupNameNiew := []string{"Inner_example"} // []string | (optional)
+ groupNameNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ linkText := "linkText_example" // string | (optional)
+ linkTextIc := "linkTextIc_example" // string | (optional)
+ linkTextIe := "linkTextIe_example" // string | (optional)
+ linkTextIew := "linkTextIew_example" // string | (optional)
+ linkTextIsw := "linkTextIsw_example" // string | (optional)
+ linkTextN := "linkTextN_example" // string | (optional)
+ linkTextNic := "linkTextNic_example" // string | (optional)
+ linkTextNie := "linkTextNie_example" // string | (optional)
+ linkTextNiew := "linkTextNiew_example" // string | (optional)
+ linkTextNisw := "linkTextNisw_example" // string | (optional)
+ linkUrl := "linkUrl_example" // string | (optional)
+ linkUrlIc := "linkUrlIc_example" // string | (optional)
+ linkUrlIe := "linkUrlIe_example" // string | (optional)
+ linkUrlIew := "linkUrlIew_example" // string | (optional)
+ linkUrlIsw := "linkUrlIsw_example" // string | (optional)
+ linkUrlN := "linkUrlN_example" // string | (optional)
+ linkUrlNic := "linkUrlNic_example" // string | (optional)
+ linkUrlNie := "linkUrlNie_example" // string | (optional)
+ linkUrlNiew := "linkUrlNiew_example" // string | (optional)
+ linkUrlNisw := "linkUrlNisw_example" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ newWindow := true // bool | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ 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.ExtrasCustomLinksList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Enabled(enabled).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).LinkText(linkText).LinkTextIc(linkTextIc).LinkTextIe(linkTextIe).LinkTextIew(linkTextIew).LinkTextIsw(linkTextIsw).LinkTextN(linkTextN).LinkTextNic(linkTextNic).LinkTextNie(linkTextNie).LinkTextNiew(linkTextNiew).LinkTextNisw(linkTextNisw).LinkUrl(linkUrl).LinkUrlIc(linkUrlIc).LinkUrlIe(linkUrlIe).LinkUrlIew(linkUrlIew).LinkUrlIsw(linkUrlIsw).LinkUrlN(linkUrlN).LinkUrlNic(linkUrlNic).LinkUrlNie(linkUrlNie).LinkUrlNiew(linkUrlNiew).LinkUrlNisw(linkUrlNisw).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).Offset(offset).Ordering(ordering).Q(q).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomLinksList`: PaginatedCustomLinkList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksList`: %v\n", resp)
}
```
@@ -4773,25 +4808,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this custom link.
- patchedCustomLinkRequest := *openapiclient.NewPatchedCustomLinkRequest() // PatchedCustomLinkRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksPartialUpdate(context.Background(), id).PatchedCustomLinkRequest(patchedCustomLinkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomLinksPartialUpdate`: CustomLink
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this custom link.
+ patchedCustomLinkRequest := *openapiclient.NewPatchedCustomLinkRequest() // PatchedCustomLinkRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksPartialUpdate(context.Background(), id).PatchedCustomLinkRequest(patchedCustomLinkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomLinksPartialUpdate`: CustomLink
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksPartialUpdate`: %v\n", resp)
}
```
@@ -4845,24 +4880,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this custom link.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomLinksRetrieve`: CustomLink
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this custom link.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomLinksRetrieve`: CustomLink
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksRetrieve`: %v\n", resp)
}
```
@@ -4915,25 +4950,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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 |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksUpdate(context.Background(), id).CustomLinkRequest(customLinkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasCustomLinksUpdate`: CustomLink
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksUpdate`: %v\n", resp)
+ 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 |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksUpdate(context.Background(), id).CustomLinkRequest(customLinkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasCustomLinksUpdate`: CustomLink
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksUpdate`: %v\n", resp)
}
```
@@ -4987,21 +5022,21 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasDashboardDestroy(context.Background()).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasDashboardDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasDashboardDestroy(context.Background()).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasDashboardDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -5046,24 +5081,24 @@ Other parameters are passed through a pointer to a apiExtrasDashboardDestroyRequ
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- patchedDashboardRequest := *openapiclient.NewPatchedDashboardRequest() // PatchedDashboardRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasDashboardPartialUpdate(context.Background()).PatchedDashboardRequest(patchedDashboardRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasDashboardPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasDashboardPartialUpdate`: Dashboard
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasDashboardPartialUpdate`: %v\n", resp)
+ patchedDashboardRequest := *openapiclient.NewPatchedDashboardRequest() // PatchedDashboardRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasDashboardPartialUpdate(context.Background()).PatchedDashboardRequest(patchedDashboardRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasDashboardPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasDashboardPartialUpdate`: Dashboard
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasDashboardPartialUpdate`: %v\n", resp)
}
```
@@ -5112,23 +5147,23 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasDashboardRetrieve(context.Background()).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasDashboardRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasDashboardRetrieve`: Dashboard
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasDashboardRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasDashboardRetrieve(context.Background()).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasDashboardRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasDashboardRetrieve`: Dashboard
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasDashboardRetrieve`: %v\n", resp)
}
```
@@ -5173,24 +5208,24 @@ Other parameters are passed through a pointer to a apiExtrasDashboardRetrieveReq
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- dashboardRequest := *openapiclient.NewDashboardRequest() // DashboardRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasDashboardUpdate(context.Background()).DashboardRequest(dashboardRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasDashboardUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasDashboardUpdate`: Dashboard
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasDashboardUpdate`: %v\n", resp)
+ dashboardRequest := *openapiclient.NewDashboardRequest() // DashboardRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasDashboardUpdate(context.Background()).DashboardRequest(dashboardRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasDashboardUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasDashboardUpdate`: Dashboard
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasDashboardUpdate`: %v\n", resp)
}
```
@@ -5225,9 +5260,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasExportTemplatesBulkDestroy
+## ExtrasEventRulesBulkDestroy
-> ExtrasExportTemplatesBulkDestroy(ctx).ExportTemplateRequest(exportTemplateRequest).Execute()
+> ExtrasEventRulesBulkDestroy(ctx).EventRuleRequest(eventRuleRequest).Execute()
@@ -5239,22 +5274,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- exportTemplateRequest := []openapiclient.ExportTemplateRequest{*openapiclient.NewExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example")} // []ExportTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkDestroy(context.Background()).ExportTemplateRequest(exportTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ContentTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasEventRulesBulkDestroy(context.Background()).EventRuleRequest(eventRuleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasEventRulesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -5264,12 +5299,12 @@ func main() {
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasExportTemplatesBulkDestroyRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasEventRulesBulkDestroyRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **exportTemplateRequest** | [**[]ExportTemplateRequest**](ExportTemplateRequest.md) | |
+ **eventRuleRequest** | [**[]EventRuleRequest**](EventRuleRequest.md) | |
### Return type
@@ -5289,9 +5324,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasExportTemplatesBulkPartialUpdate
+## ExtrasEventRulesBulkPartialUpdate
-> []ExportTemplate ExtrasExportTemplatesBulkPartialUpdate(ctx).ExportTemplateRequest(exportTemplateRequest).Execute()
+> []EventRule ExtrasEventRulesBulkPartialUpdate(ctx).EventRuleRequest(eventRuleRequest).Execute()
@@ -5303,24 +5338,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- exportTemplateRequest := []openapiclient.ExportTemplateRequest{*openapiclient.NewExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example")} // []ExportTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkPartialUpdate(context.Background()).ExportTemplateRequest(exportTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasExportTemplatesBulkPartialUpdate`: []ExportTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesBulkPartialUpdate`: %v\n", resp)
+ eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ContentTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesBulkPartialUpdate(context.Background()).EventRuleRequest(eventRuleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasEventRulesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasEventRulesBulkPartialUpdate`: []EventRule
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasEventRulesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -5330,16 +5365,16 @@ func main() {
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasExportTemplatesBulkPartialUpdateRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasEventRulesBulkPartialUpdateRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **exportTemplateRequest** | [**[]ExportTemplateRequest**](ExportTemplateRequest.md) | |
+ **eventRuleRequest** | [**[]EventRuleRequest**](EventRuleRequest.md) | |
### Return type
-[**[]ExportTemplate**](ExportTemplate.md)
+[**[]EventRule**](EventRule.md)
### Authorization
@@ -5355,9 +5390,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasExportTemplatesBulkUpdate
+## ExtrasEventRulesBulkUpdate
-> []ExportTemplate ExtrasExportTemplatesBulkUpdate(ctx).ExportTemplateRequest(exportTemplateRequest).Execute()
+> []EventRule ExtrasEventRulesBulkUpdate(ctx).EventRuleRequest(eventRuleRequest).Execute()
@@ -5369,24 +5404,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- exportTemplateRequest := []openapiclient.ExportTemplateRequest{*openapiclient.NewExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example")} // []ExportTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkUpdate(context.Background()).ExportTemplateRequest(exportTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasExportTemplatesBulkUpdate`: []ExportTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesBulkUpdate`: %v\n", resp)
+ eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ContentTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesBulkUpdate(context.Background()).EventRuleRequest(eventRuleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasEventRulesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasEventRulesBulkUpdate`: []EventRule
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasEventRulesBulkUpdate`: %v\n", resp)
}
```
@@ -5396,16 +5431,16 @@ func main() {
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasExportTemplatesBulkUpdateRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasEventRulesBulkUpdateRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **exportTemplateRequest** | [**[]ExportTemplateRequest**](ExportTemplateRequest.md) | |
+ **eventRuleRequest** | [**[]EventRuleRequest**](EventRuleRequest.md) | |
### Return type
-[**[]ExportTemplate**](ExportTemplate.md)
+[**[]EventRule**](EventRule.md)
### Authorization
@@ -5421,9 +5456,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasExportTemplatesCreate
+## ExtrasEventRulesCreate
-> ExportTemplate ExtrasExportTemplatesCreate(ctx).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
+> EventRule ExtrasEventRulesCreate(ctx).WritableEventRuleRequest(writableEventRuleRequest).Execute()
@@ -5435,24 +5470,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableExportTemplateRequest := *openapiclient.NewWritableExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example") // WritableExportTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesCreate(context.Background()).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasExportTemplatesCreate`: ExportTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesCreate`: %v\n", resp)
+ writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ContentTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesCreate(context.Background()).WritableEventRuleRequest(writableEventRuleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasEventRulesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasEventRulesCreate`: EventRule
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasEventRulesCreate`: %v\n", resp)
}
```
@@ -5462,16 +5497,16 @@ func main() {
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasExportTemplatesCreateRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasEventRulesCreateRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableExportTemplateRequest** | [**WritableExportTemplateRequest**](WritableExportTemplateRequest.md) | |
+ **writableEventRuleRequest** | [**WritableEventRuleRequest**](WritableEventRuleRequest.md) | |
### Return type
-[**ExportTemplate**](ExportTemplate.md)
+[**EventRule**](EventRule.md)
### Authorization
@@ -5487,9 +5522,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasExportTemplatesDestroy
+## ExtrasEventRulesDestroy
-> ExtrasExportTemplatesDestroy(ctx, id).Execute()
+> ExtrasEventRulesDestroy(ctx, id).Execute()
@@ -5501,22 +5536,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this export template.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this event rule.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasEventRulesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasEventRulesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -5526,11 +5561,11 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this export template. |
+**id** | **int32** | A unique integer value identifying this event rule. |
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasExportTemplatesDestroyRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasEventRulesDestroyRequest struct via the builder pattern
Name | Type | Description | Notes
@@ -5555,9 +5590,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasExportTemplatesList
+## ExtrasEventRulesList
-> 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()
+> 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()
@@ -5569,85 +5604,110 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- dataFileId := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
- dataFileIdN := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
- dataSourceId := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
- dataSourceIdN := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
- dataSynced := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedEmpty := true // bool | (optional)
- dataSyncedGt := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedGte := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedLt := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedLte := []time.Time{time.Now()} // []time.Time | (optional)
- dataSyncedN := []time.Time{time.Now()} // []time.Time | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
-
- 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()
- 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)
- }
- // response from `ExtrasExportTemplatesList`: PaginatedExportTemplateList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ actionObjectId := []int32{int32(123)} // []int32 | (optional)
+ actionObjectIdEmpty := []int32{int32(123)} // []int32 | (optional)
+ actionObjectIdGt := []int32{int32(123)} // []int32 | (optional)
+ actionObjectIdGte := []int32{int32(123)} // []int32 | (optional)
+ actionObjectIdLt := []int32{int32(123)} // []int32 | (optional)
+ actionObjectIdLte := []int32{int32(123)} // []int32 | (optional)
+ actionObjectIdN := []int32{int32(123)} // []int32 | (optional)
+ actionObjectType := "actionObjectType_example" // string | (optional)
+ 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)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ enabled := true // bool | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ typeCreate := true // bool | (optional)
+ typeDelete := true // bool | (optional)
+ typeJobEnd := true // bool | (optional)
+ typeJobStart := true // bool | (optional)
+ typeUpdate := true // bool | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesList(context.Background()).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).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()
+ 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)
+ }
+ // response from `ExtrasEventRulesList`: PaginatedEventRuleList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasEventRulesList`: %v\n", resp)
}
```
@@ -5657,11 +5717,22 @@ func main() {
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasExportTemplatesListRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasEventRulesListRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **actionObjectId** | **[]int32** | |
+ **actionObjectIdEmpty** | **[]int32** | |
+ **actionObjectIdGt** | **[]int32** | |
+ **actionObjectIdGte** | **[]int32** | |
+ **actionObjectIdLt** | **[]int32** | |
+ **actionObjectIdLte** | **[]int32** | |
+ **actionObjectIdN** | **[]int32** | |
+ **actionObjectType** | **string** | |
+ **actionObjectTypeN** | **string** | |
+ **actionType** | **[]string** | |
+ **actionTypeN** | **[]string** | |
**contentTypeId** | **[]int32** | |
**contentTypeIdEmpty** | **[]int32** | |
**contentTypeIdGt** | **[]int32** | |
@@ -5679,17 +5750,14 @@ Name | Type | Description | Notes
**contentTypesNie** | **string** | |
**contentTypesNiew** | **string** | |
**contentTypesNisw** | **string** | |
- **dataFileId** | **[]int32** | Data file (ID) |
- **dataFileIdN** | **[]int32** | Data file (ID) |
- **dataSourceId** | **[]int32** | Data source (ID) |
- **dataSourceIdN** | **[]int32** | Data source (ID) |
- **dataSynced** | [**[]time.Time**](time.Time.md) | |
- **dataSyncedEmpty** | **bool** | |
- **dataSyncedGt** | [**[]time.Time**](time.Time.md) | |
- **dataSyncedGte** | [**[]time.Time**](time.Time.md) | |
- **dataSyncedLt** | [**[]time.Time**](time.Time.md) | |
- **dataSyncedLte** | [**[]time.Time**](time.Time.md) | |
- **dataSyncedN** | [**[]time.Time**](time.Time.md) | |
+ **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** | |
@@ -5701,6 +5769,7 @@ Name | Type | Description | Notes
**descriptionNie** | **[]string** | |
**descriptionNiew** | **[]string** | |
**descriptionNisw** | **[]string** | |
+ **enabled** | **bool** | |
**id** | **[]int32** | |
**idEmpty** | **bool** | |
**idGt** | **[]int32** | |
@@ -5708,7 +5777,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** | |
@@ -5723,10 +5800,18 @@ 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 |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **typeCreate** | **bool** | |
+ **typeDelete** | **bool** | |
+ **typeJobEnd** | **bool** | |
+ **typeJobStart** | **bool** | |
+ **typeUpdate** | **bool** | |
+ **updatedByRequest** | **string** | |
### Return type
-[**PaginatedExportTemplateList**](PaginatedExportTemplateList.md)
+[**PaginatedEventRuleList**](PaginatedEventRuleList.md)
### Authorization
@@ -5742,9 +5827,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasExportTemplatesPartialUpdate
+## ExtrasEventRulesPartialUpdate
-> ExportTemplate ExtrasExportTemplatesPartialUpdate(ctx, id).PatchedWritableExportTemplateRequest(patchedWritableExportTemplateRequest).Execute()
+> EventRule ExtrasEventRulesPartialUpdate(ctx, id).PatchedWritableEventRuleRequest(patchedWritableEventRuleRequest).Execute()
@@ -5756,25 +5841,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this export template.
- patchedWritableExportTemplateRequest := *openapiclient.NewPatchedWritableExportTemplateRequest() // PatchedWritableExportTemplateRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesPartialUpdate(context.Background(), id).PatchedWritableExportTemplateRequest(patchedWritableExportTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasExportTemplatesPartialUpdate`: ExportTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this event rule.
+ patchedWritableEventRuleRequest := *openapiclient.NewPatchedWritableEventRuleRequest() // PatchedWritableEventRuleRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesPartialUpdate(context.Background(), id).PatchedWritableEventRuleRequest(patchedWritableEventRuleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasEventRulesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasEventRulesPartialUpdate`: EventRule
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasEventRulesPartialUpdate`: %v\n", resp)
}
```
@@ -5784,21 +5869,21 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this export template. |
+**id** | **int32** | A unique integer value identifying this event rule. |
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasExportTemplatesPartialUpdateRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasEventRulesPartialUpdateRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableExportTemplateRequest** | [**PatchedWritableExportTemplateRequest**](PatchedWritableExportTemplateRequest.md) | |
+ **patchedWritableEventRuleRequest** | [**PatchedWritableEventRuleRequest**](PatchedWritableEventRuleRequest.md) | |
### Return type
-[**ExportTemplate**](ExportTemplate.md)
+[**EventRule**](EventRule.md)
### Authorization
@@ -5814,9 +5899,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasExportTemplatesRetrieve
+## ExtrasEventRulesRetrieve
-> ExportTemplate ExtrasExportTemplatesRetrieve(ctx, id).Execute()
+> EventRule ExtrasEventRulesRetrieve(ctx, id).Execute()
@@ -5828,24 +5913,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this export template.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasExportTemplatesRetrieve`: ExportTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this event rule.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasEventRulesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasEventRulesRetrieve`: EventRule
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasEventRulesRetrieve`: %v\n", resp)
}
```
@@ -5855,11 +5940,11 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this export template. |
+**id** | **int32** | A unique integer value identifying this event rule. |
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasExportTemplatesRetrieveRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasEventRulesRetrieveRequest struct via the builder pattern
Name | Type | Description | Notes
@@ -5868,7 +5953,7 @@ Name | Type | Description | Notes
### Return type
-[**ExportTemplate**](ExportTemplate.md)
+[**EventRule**](EventRule.md)
### Authorization
@@ -5884,9 +5969,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasExportTemplatesSyncCreate
+## ExtrasEventRulesUpdate
-> ExportTemplate ExtrasExportTemplatesSyncCreate(ctx, id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
+> EventRule ExtrasEventRulesUpdate(ctx, id).WritableEventRuleRequest(writableEventRuleRequest).Execute()
@@ -5898,25 +5983,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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 |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesSyncCreate(context.Background(), id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesSyncCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasExportTemplatesSyncCreate`: ExportTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesSyncCreate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this event rule.
+ writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ContentTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesUpdate(context.Background(), id).WritableEventRuleRequest(writableEventRuleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasEventRulesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasEventRulesUpdate`: EventRule
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasEventRulesUpdate`: %v\n", resp)
}
```
@@ -5926,21 +6011,21 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this export template. |
+**id** | **int32** | A unique integer value identifying this event rule. |
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasExportTemplatesSyncCreateRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasEventRulesUpdateRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableExportTemplateRequest** | [**WritableExportTemplateRequest**](WritableExportTemplateRequest.md) | |
+ **writableEventRuleRequest** | [**WritableEventRuleRequest**](WritableEventRuleRequest.md) | |
### Return type
-[**ExportTemplate**](ExportTemplate.md)
+[**EventRule**](EventRule.md)
### Authorization
@@ -5956,9 +6041,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasExportTemplatesUpdate
+## ExtrasExportTemplatesBulkDestroy
-> ExportTemplate ExtrasExportTemplatesUpdate(ctx, id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
+> ExtrasExportTemplatesBulkDestroy(ctx).ExportTemplateRequest(exportTemplateRequest).Execute()
@@ -5970,49 +6055,41 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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 |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesUpdate(context.Background(), id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasExportTemplatesUpdate`: ExportTemplate
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesUpdate`: %v\n", resp)
+ exportTemplateRequest := []openapiclient.ExportTemplateRequest{*openapiclient.NewExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example")} // []ExportTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkDestroy(context.Background()).ExportTemplateRequest(exportTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 export template. |
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasExportTemplatesUpdateRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasExportTemplatesBulkDestroyRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-
- **writableExportTemplateRequest** | [**WritableExportTemplateRequest**](WritableExportTemplateRequest.md) | |
+ **exportTemplateRequest** | [**[]ExportTemplateRequest**](ExportTemplateRequest.md) | |
### Return type
-[**ExportTemplate**](ExportTemplate.md)
+ (empty response body)
### Authorization
@@ -6021,16 +6098,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)
-## ExtrasImageAttachmentsBulkDestroy
+## ExtrasExportTemplatesBulkPartialUpdate
-> ExtrasImageAttachmentsBulkDestroy(ctx).ImageAttachmentRequest(imageAttachmentRequest).Execute()
+> []ExportTemplate ExtrasExportTemplatesBulkPartialUpdate(ctx).ExportTemplateRequest(exportTemplateRequest).Execute()
@@ -6042,22 +6119,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ContentType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkDestroy(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ exportTemplateRequest := []openapiclient.ExportTemplateRequest{*openapiclient.NewExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example")} // []ExportTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkPartialUpdate(context.Background()).ExportTemplateRequest(exportTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasExportTemplatesBulkPartialUpdate`: []ExportTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -6067,16 +6146,16 @@ func main() {
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasImageAttachmentsBulkDestroyRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasExportTemplatesBulkPartialUpdateRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **imageAttachmentRequest** | [**[]ImageAttachmentRequest**](ImageAttachmentRequest.md) | |
+ **exportTemplateRequest** | [**[]ExportTemplateRequest**](ExportTemplateRequest.md) | |
### Return type
- (empty response body)
+[**[]ExportTemplate**](ExportTemplate.md)
### Authorization
@@ -6085,16 +6164,16 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
+- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
-## ExtrasImageAttachmentsBulkPartialUpdate
+## ExtrasExportTemplatesBulkUpdate
-> []ImageAttachment ExtrasImageAttachmentsBulkPartialUpdate(ctx).ImageAttachmentRequest(imageAttachmentRequest).Execute()
+> []ExportTemplate ExtrasExportTemplatesBulkUpdate(ctx).ExportTemplateRequest(exportTemplateRequest).Execute()
@@ -6106,24 +6185,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ContentType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkPartialUpdate(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasImageAttachmentsBulkPartialUpdate`: []ImageAttachment
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsBulkPartialUpdate`: %v\n", resp)
+ exportTemplateRequest := []openapiclient.ExportTemplateRequest{*openapiclient.NewExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example")} // []ExportTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkUpdate(context.Background()).ExportTemplateRequest(exportTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasExportTemplatesBulkUpdate`: []ExportTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesBulkUpdate`: %v\n", resp)
}
```
@@ -6133,16 +6212,16 @@ func main() {
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasImageAttachmentsBulkPartialUpdateRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasExportTemplatesBulkUpdateRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **imageAttachmentRequest** | [**[]ImageAttachmentRequest**](ImageAttachmentRequest.md) | |
+ **exportTemplateRequest** | [**[]ExportTemplateRequest**](ExportTemplateRequest.md) | |
### Return type
-[**[]ImageAttachment**](ImageAttachment.md)
+[**[]ExportTemplate**](ExportTemplate.md)
### Authorization
@@ -6158,9 +6237,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasImageAttachmentsBulkUpdate
+## ExtrasExportTemplatesCreate
-> []ImageAttachment ExtrasImageAttachmentsBulkUpdate(ctx).ImageAttachmentRequest(imageAttachmentRequest).Execute()
+> ExportTemplate ExtrasExportTemplatesCreate(ctx).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
@@ -6172,24 +6251,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ContentType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkUpdate(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasImageAttachmentsBulkUpdate`: []ImageAttachment
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsBulkUpdate`: %v\n", resp)
+ writableExportTemplateRequest := *openapiclient.NewWritableExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example") // WritableExportTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesCreate(context.Background()).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasExportTemplatesCreate`: ExportTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesCreate`: %v\n", resp)
}
```
@@ -6199,16 +6278,16 @@ func main() {
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasImageAttachmentsBulkUpdateRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasExportTemplatesCreateRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **imageAttachmentRequest** | [**[]ImageAttachmentRequest**](ImageAttachmentRequest.md) | |
+ **writableExportTemplateRequest** | [**WritableExportTemplateRequest**](WritableExportTemplateRequest.md) | |
### Return type
-[**[]ImageAttachment**](ImageAttachment.md)
+[**ExportTemplate**](ExportTemplate.md)
### Authorization
@@ -6224,9 +6303,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasImageAttachmentsCreate
+## ExtrasExportTemplatesDestroy
-> ImageAttachment ExtrasImageAttachmentsCreate(ctx).ImageAttachmentRequest(imageAttachmentRequest).Execute()
+> ExtrasExportTemplatesDestroy(ctx, id).Execute()
@@ -6238,43 +6317,45 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ContentType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsCreate(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasImageAttachmentsCreate`: ImageAttachment
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsCreate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this export template.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 export template. |
### Other Parameters
-Other parameters are passed through a pointer to a apiExtrasImageAttachmentsCreateRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasExportTemplatesDestroyRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **imageAttachmentRequest** | [**ImageAttachmentRequest**](ImageAttachmentRequest.md) | |
+
### Return type
-[**ImageAttachment**](ImageAttachment.md)
+ (empty response body)
### Authorization
@@ -6282,17 +6363,686 @@ Name | Type | Description | Notes
### HTTP request headers
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: application/json
+- **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)
-## ExtrasImageAttachmentsDestroy
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ dataFileId := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
+ dataFileIdN := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
+ dataSourceId := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
+ dataSourceIdN := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
+ dataSynced := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedEmpty := true // bool | (optional)
+ dataSyncedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ dataSyncedN := []time.Time{time.Now()} // []time.Time | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+
+ 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()
+ 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)
+ }
+ // response from `ExtrasExportTemplatesList`: PaginatedExportTemplateList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiExtrasExportTemplatesListRequest struct via the builder pattern
+
+
+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** | |
+ **dataFileId** | **[]int32** | Data file (ID) |
+ **dataFileIdN** | **[]int32** | Data file (ID) |
+ **dataSourceId** | **[]int32** | Data source (ID) |
+ **dataSourceIdN** | **[]int32** | Data source (ID) |
+ **dataSynced** | [**[]time.Time**](time.Time.md) | |
+ **dataSyncedEmpty** | **bool** | |
+ **dataSyncedGt** | [**[]time.Time**](time.Time.md) | |
+ **dataSyncedGte** | [**[]time.Time**](time.Time.md) | |
+ **dataSyncedLt** | [**[]time.Time**](time.Time.md) | |
+ **dataSyncedLte** | [**[]time.Time**](time.Time.md) | |
+ **dataSyncedN** | [**[]time.Time**](time.Time.md) | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **limit** | **int32** | Number of results to return per page. |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+
+### Return type
+
+[**PaginatedExportTemplateList**](PaginatedExportTemplateList.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)
+
+
+## ExtrasExportTemplatesPartialUpdate
+
+> ExportTemplate ExtrasExportTemplatesPartialUpdate(ctx, id).PatchedWritableExportTemplateRequest(patchedWritableExportTemplateRequest).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 export template.
+ patchedWritableExportTemplateRequest := *openapiclient.NewPatchedWritableExportTemplateRequest() // PatchedWritableExportTemplateRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesPartialUpdate(context.Background(), id).PatchedWritableExportTemplateRequest(patchedWritableExportTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasExportTemplatesPartialUpdate`: ExportTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesPartialUpdate`: %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 export template. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiExtrasExportTemplatesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableExportTemplateRequest** | [**PatchedWritableExportTemplateRequest**](PatchedWritableExportTemplateRequest.md) | |
+
+### Return type
+
+[**ExportTemplate**](ExportTemplate.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)
+
+
+## ExtrasExportTemplatesRetrieve
+
+> ExportTemplate ExtrasExportTemplatesRetrieve(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 export template.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasExportTemplatesRetrieve`: ExportTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesRetrieve`: %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 export template. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiExtrasExportTemplatesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**ExportTemplate**](ExportTemplate.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)
+
+
+## ExtrasExportTemplatesSyncCreate
+
+> ExportTemplate ExtrasExportTemplatesSyncCreate(ctx, id).WritableExportTemplateRequest(writableExportTemplateRequest).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 export template.
+ writableExportTemplateRequest := *openapiclient.NewWritableExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example") // WritableExportTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesSyncCreate(context.Background(), id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesSyncCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasExportTemplatesSyncCreate`: ExportTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesSyncCreate`: %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 export template. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiExtrasExportTemplatesSyncCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableExportTemplateRequest** | [**WritableExportTemplateRequest**](WritableExportTemplateRequest.md) | |
+
+### Return type
+
+[**ExportTemplate**](ExportTemplate.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)
+
+
+## ExtrasExportTemplatesUpdate
+
+> ExportTemplate ExtrasExportTemplatesUpdate(ctx, id).WritableExportTemplateRequest(writableExportTemplateRequest).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 export template.
+ writableExportTemplateRequest := *openapiclient.NewWritableExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example") // WritableExportTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesUpdate(context.Background(), id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasExportTemplatesUpdate`: ExportTemplate
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesUpdate`: %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 export template. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiExtrasExportTemplatesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableExportTemplateRequest** | [**WritableExportTemplateRequest**](WritableExportTemplateRequest.md) | |
+
+### Return type
+
+[**ExportTemplate**](ExportTemplate.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)
+
+
+## ExtrasImageAttachmentsBulkDestroy
+
+> ExtrasImageAttachmentsBulkDestroy(ctx).ImageAttachmentRequest(imageAttachmentRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ContentType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkDestroy(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiExtrasImageAttachmentsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **imageAttachmentRequest** | [**[]ImageAttachmentRequest**](ImageAttachmentRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
-> ExtrasImageAttachmentsDestroy(ctx, id).Execute()
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## ExtrasImageAttachmentsBulkPartialUpdate
+
+> []ImageAttachment ExtrasImageAttachmentsBulkPartialUpdate(ctx).ImageAttachmentRequest(imageAttachmentRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ContentType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkPartialUpdate(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasImageAttachmentsBulkPartialUpdate`: []ImageAttachment
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiExtrasImageAttachmentsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **imageAttachmentRequest** | [**[]ImageAttachmentRequest**](ImageAttachmentRequest.md) | |
+
+### Return type
+
+[**[]ImageAttachment**](ImageAttachment.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)
+
+
+## ExtrasImageAttachmentsBulkUpdate
+
+> []ImageAttachment ExtrasImageAttachmentsBulkUpdate(ctx).ImageAttachmentRequest(imageAttachmentRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ContentType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkUpdate(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasImageAttachmentsBulkUpdate`: []ImageAttachment
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiExtrasImageAttachmentsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **imageAttachmentRequest** | [**[]ImageAttachmentRequest**](ImageAttachmentRequest.md) | |
+
+### Return type
+
+[**[]ImageAttachment**](ImageAttachment.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)
+
+
+## ExtrasImageAttachmentsCreate
+
+> ImageAttachment ExtrasImageAttachmentsCreate(ctx).ImageAttachmentRequest(imageAttachmentRequest).Execute()
@@ -6304,22 +7054,88 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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 |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsCreate(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasImageAttachmentsCreate`: ImageAttachment
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiExtrasImageAttachmentsCreateRequest struct via the builder pattern
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **imageAttachmentRequest** | [**ImageAttachmentRequest**](ImageAttachmentRequest.md) | |
+
+### Return type
+
+[**ImageAttachment**](ImageAttachment.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)
+
+
+## ExtrasImageAttachmentsDestroy
+
+> ExtrasImageAttachmentsDestroy(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 image attachment.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -6372,58 +7188,58 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- objectId := []int32{int32(123)} // []int32 | (optional)
- objectIdEmpty := true // bool | (optional)
- objectIdGt := []int32{int32(123)} // []int32 | (optional)
- objectIdGte := []int32{int32(123)} // []int32 | (optional)
- objectIdLt := []int32{int32(123)} // []int32 | (optional)
- objectIdLte := []int32{int32(123)} // []int32 | (optional)
- objectIdN := []int32{int32(123)} // []int32 | (optional)
- 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.ExtrasImageAttachmentsList(context.Background()).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Q(q).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasImageAttachmentsList`: PaginatedImageAttachmentList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ objectId := []int32{int32(123)} // []int32 | (optional)
+ objectIdEmpty := true // bool | (optional)
+ objectIdGt := []int32{int32(123)} // []int32 | (optional)
+ objectIdGte := []int32{int32(123)} // []int32 | (optional)
+ objectIdLt := []int32{int32(123)} // []int32 | (optional)
+ objectIdLte := []int32{int32(123)} // []int32 | (optional)
+ objectIdN := []int32{int32(123)} // []int32 | (optional)
+ 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.ExtrasImageAttachmentsList(context.Background()).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Q(q).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasImageAttachmentsList`: PaginatedImageAttachmentList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsList`: %v\n", resp)
}
```
@@ -6505,25 +7321,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this image attachment.
- patchedImageAttachmentRequest := *openapiclient.NewPatchedImageAttachmentRequest() // PatchedImageAttachmentRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsPartialUpdate(context.Background(), id).PatchedImageAttachmentRequest(patchedImageAttachmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasImageAttachmentsPartialUpdate`: ImageAttachment
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this image attachment.
+ patchedImageAttachmentRequest := *openapiclient.NewPatchedImageAttachmentRequest() // PatchedImageAttachmentRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsPartialUpdate(context.Background(), id).PatchedImageAttachmentRequest(patchedImageAttachmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasImageAttachmentsPartialUpdate`: ImageAttachment
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsPartialUpdate`: %v\n", resp)
}
```
@@ -6577,24 +7393,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this image attachment.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasImageAttachmentsRetrieve`: ImageAttachment
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this image attachment.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasImageAttachmentsRetrieve`: ImageAttachment
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsRetrieve`: %v\n", resp)
}
```
@@ -6647,25 +7463,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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 |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsUpdate(context.Background(), id).ImageAttachmentRequest(imageAttachmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasImageAttachmentsUpdate`: ImageAttachment
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsUpdate`: %v\n", resp)
+ 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 |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsUpdate(context.Background(), id).ImageAttachmentRequest(imageAttachmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasImageAttachmentsUpdate`: ImageAttachment
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsUpdate`: %v\n", resp)
}
```
@@ -6719,22 +7535,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- journalEntryRequest := []openapiclient.JournalEntryRequest{*openapiclient.NewJournalEntryRequest("AssignedObjectType_example", int64(123), "Comments_example")} // []JournalEntryRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkDestroy(context.Background()).JournalEntryRequest(journalEntryRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ journalEntryRequest := []openapiclient.JournalEntryRequest{*openapiclient.NewJournalEntryRequest("AssignedObjectType_example", int64(123), "Comments_example")} // []JournalEntryRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkDestroy(context.Background()).JournalEntryRequest(journalEntryRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -6783,24 +7599,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- journalEntryRequest := []openapiclient.JournalEntryRequest{*openapiclient.NewJournalEntryRequest("AssignedObjectType_example", int64(123), "Comments_example")} // []JournalEntryRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkPartialUpdate(context.Background()).JournalEntryRequest(journalEntryRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasJournalEntriesBulkPartialUpdate`: []JournalEntry
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesBulkPartialUpdate`: %v\n", resp)
+ journalEntryRequest := []openapiclient.JournalEntryRequest{*openapiclient.NewJournalEntryRequest("AssignedObjectType_example", int64(123), "Comments_example")} // []JournalEntryRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkPartialUpdate(context.Background()).JournalEntryRequest(journalEntryRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasJournalEntriesBulkPartialUpdate`: []JournalEntry
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -6849,24 +7665,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- journalEntryRequest := []openapiclient.JournalEntryRequest{*openapiclient.NewJournalEntryRequest("AssignedObjectType_example", int64(123), "Comments_example")} // []JournalEntryRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkUpdate(context.Background()).JournalEntryRequest(journalEntryRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasJournalEntriesBulkUpdate`: []JournalEntry
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesBulkUpdate`: %v\n", resp)
+ journalEntryRequest := []openapiclient.JournalEntryRequest{*openapiclient.NewJournalEntryRequest("AssignedObjectType_example", int64(123), "Comments_example")} // []JournalEntryRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkUpdate(context.Background()).JournalEntryRequest(journalEntryRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasJournalEntriesBulkUpdate`: []JournalEntry
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesBulkUpdate`: %v\n", resp)
}
```
@@ -6915,24 +7731,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableJournalEntryRequest := *openapiclient.NewWritableJournalEntryRequest("AssignedObjectType_example", int64(123), "Comments_example") // WritableJournalEntryRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesCreate(context.Background()).WritableJournalEntryRequest(writableJournalEntryRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasJournalEntriesCreate`: JournalEntry
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesCreate`: %v\n", resp)
+ writableJournalEntryRequest := *openapiclient.NewWritableJournalEntryRequest("AssignedObjectType_example", int64(123), "Comments_example") // WritableJournalEntryRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesCreate(context.Background()).WritableJournalEntryRequest(writableJournalEntryRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasJournalEntriesCreate`: JournalEntry
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesCreate`: %v\n", resp)
}
```
@@ -6981,22 +7797,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this journal entry.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this journal entry.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -7049,66 +7865,66 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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{int32(123)} // []int32 | (optional)
- assignedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional)
- createdAfter := time.Now() // time.Time | (optional)
- createdBefore := time.Now() // time.Time | (optional)
- createdBy := []string{"Inner_example"} // []string | User (name) (optional)
- createdByN := []string{"Inner_example"} // []string | User (name) (optional)
- createdById := []*int32{int32(123)} // []*int32 | User (ID) (optional)
- createdByIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- kind := []string{"Inner_example"} // []string | (optional)
- kindN := []string{"Inner_example"} // []string | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- 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.ExtrasJournalEntriesList(context.Background()).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).CreatedAfter(createdAfter).CreatedBefore(createdBefore).CreatedBy(createdBy).CreatedByN(createdByN).CreatedById(createdById).CreatedByIdN(createdByIdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).KindN(kindN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasJournalEntriesList`: PaginatedJournalEntryList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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{int32(123)} // []int32 | (optional)
+ assignedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional)
+ createdAfter := time.Now() // time.Time | (optional)
+ createdBefore := time.Now() // time.Time | (optional)
+ createdBy := []string{"Inner_example"} // []string | User (name) (optional)
+ createdByN := []string{"Inner_example"} // []string | User (name) (optional)
+ createdById := []*int32{int32(123)} // []*int32 | User (ID) (optional)
+ createdByIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ kind := []string{"Inner_example"} // []string | (optional)
+ kindN := []string{"Inner_example"} // []string | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ 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.ExtrasJournalEntriesList(context.Background()).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).CreatedAfter(createdAfter).CreatedBefore(createdBefore).CreatedBy(createdBy).CreatedByN(createdByN).CreatedById(createdById).CreatedByIdN(createdByIdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).KindN(kindN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasJournalEntriesList`: PaginatedJournalEntryList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesList`: %v\n", resp)
}
```
@@ -7198,25 +8014,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this journal entry.
- patchedWritableJournalEntryRequest := *openapiclient.NewPatchedWritableJournalEntryRequest() // PatchedWritableJournalEntryRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesPartialUpdate(context.Background(), id).PatchedWritableJournalEntryRequest(patchedWritableJournalEntryRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasJournalEntriesPartialUpdate`: JournalEntry
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this journal entry.
+ patchedWritableJournalEntryRequest := *openapiclient.NewPatchedWritableJournalEntryRequest() // PatchedWritableJournalEntryRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesPartialUpdate(context.Background(), id).PatchedWritableJournalEntryRequest(patchedWritableJournalEntryRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasJournalEntriesPartialUpdate`: JournalEntry
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesPartialUpdate`: %v\n", resp)
}
```
@@ -7270,24 +8086,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this journal entry.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasJournalEntriesRetrieve`: JournalEntry
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this journal entry.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasJournalEntriesRetrieve`: JournalEntry
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesRetrieve`: %v\n", resp)
}
```
@@ -7340,25 +8156,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this journal entry.
- writableJournalEntryRequest := *openapiclient.NewWritableJournalEntryRequest("AssignedObjectType_example", int64(123), "Comments_example") // WritableJournalEntryRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesUpdate(context.Background(), id).WritableJournalEntryRequest(writableJournalEntryRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasJournalEntriesUpdate`: JournalEntry
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this journal entry.
+ writableJournalEntryRequest := *openapiclient.NewWritableJournalEntryRequest("AssignedObjectType_example", int64(123), "Comments_example") // WritableJournalEntryRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesUpdate(context.Background(), id).WritableJournalEntryRequest(writableJournalEntryRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasJournalEntriesUpdate`: JournalEntry
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesUpdate`: %v\n", resp)
}
```
@@ -7412,77 +8228,77 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- action := "action_example" // string | (optional)
- actionN := "actionN_example" // string | (optional)
- changedObjectId := []int32{int32(123)} // []int32 | (optional)
- changedObjectIdEmpty := true // bool | (optional)
- changedObjectIdGt := []int32{int32(123)} // []int32 | (optional)
- changedObjectIdGte := []int32{int32(123)} // []int32 | (optional)
- changedObjectIdLt := []int32{int32(123)} // []int32 | (optional)
- changedObjectIdLte := []int32{int32(123)} // []int32 | (optional)
- changedObjectIdN := []int32{int32(123)} // []int32 | (optional)
- changedObjectType := "changedObjectType_example" // string | (optional)
- changedObjectTypeN := "changedObjectTypeN_example" // string | (optional)
- changedObjectTypeId := []int32{int32(123)} // []int32 | (optional)
- changedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- objectRepr := []string{"Inner_example"} // []string | (optional)
- objectReprEmpty := true // bool | (optional)
- objectReprIc := []string{"Inner_example"} // []string | (optional)
- objectReprIe := []string{"Inner_example"} // []string | (optional)
- objectReprIew := []string{"Inner_example"} // []string | (optional)
- objectReprIsw := []string{"Inner_example"} // []string | (optional)
- objectReprN := []string{"Inner_example"} // []string | (optional)
- objectReprNic := []string{"Inner_example"} // []string | (optional)
- objectReprNie := []string{"Inner_example"} // []string | (optional)
- objectReprNiew := []string{"Inner_example"} // []string | (optional)
- objectReprNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- requestId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- timeAfter := time.Now() // time.Time | (optional)
- timeBefore := time.Now() // time.Time | (optional)
- user := []string{"Inner_example"} // []string | User name (optional)
- userN := []string{"Inner_example"} // []string | User name (optional)
- userId := []*int32{int32(123)} // []*int32 | User (ID) (optional)
- userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional)
- userName := []string{"Inner_example"} // []string | (optional)
- userNameEmpty := true // bool | (optional)
- userNameIc := []string{"Inner_example"} // []string | (optional)
- userNameIe := []string{"Inner_example"} // []string | (optional)
- userNameIew := []string{"Inner_example"} // []string | (optional)
- userNameIsw := []string{"Inner_example"} // []string | (optional)
- userNameN := []string{"Inner_example"} // []string | (optional)
- userNameNic := []string{"Inner_example"} // []string | (optional)
- userNameNie := []string{"Inner_example"} // []string | (optional)
- userNameNiew := []string{"Inner_example"} // []string | (optional)
- userNameNisw := []string{"Inner_example"} // []string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesList(context.Background()).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasObjectChangesList`: PaginatedObjectChangeList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ action := "action_example" // string | (optional)
+ actionN := "actionN_example" // string | (optional)
+ changedObjectId := []int32{int32(123)} // []int32 | (optional)
+ changedObjectIdEmpty := true // bool | (optional)
+ changedObjectIdGt := []int32{int32(123)} // []int32 | (optional)
+ changedObjectIdGte := []int32{int32(123)} // []int32 | (optional)
+ changedObjectIdLt := []int32{int32(123)} // []int32 | (optional)
+ changedObjectIdLte := []int32{int32(123)} // []int32 | (optional)
+ changedObjectIdN := []int32{int32(123)} // []int32 | (optional)
+ changedObjectType := "changedObjectType_example" // string | (optional)
+ changedObjectTypeN := "changedObjectTypeN_example" // string | (optional)
+ changedObjectTypeId := []int32{int32(123)} // []int32 | (optional)
+ changedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ objectRepr := []string{"Inner_example"} // []string | (optional)
+ objectReprEmpty := true // bool | (optional)
+ objectReprIc := []string{"Inner_example"} // []string | (optional)
+ objectReprIe := []string{"Inner_example"} // []string | (optional)
+ objectReprIew := []string{"Inner_example"} // []string | (optional)
+ objectReprIsw := []string{"Inner_example"} // []string | (optional)
+ objectReprN := []string{"Inner_example"} // []string | (optional)
+ objectReprNic := []string{"Inner_example"} // []string | (optional)
+ objectReprNie := []string{"Inner_example"} // []string | (optional)
+ objectReprNiew := []string{"Inner_example"} // []string | (optional)
+ objectReprNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ requestId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ timeAfter := time.Now() // time.Time | (optional)
+ timeBefore := time.Now() // time.Time | (optional)
+ user := []string{"Inner_example"} // []string | User name (optional)
+ userN := []string{"Inner_example"} // []string | User name (optional)
+ userId := []*int32{int32(123)} // []*int32 | User (ID) (optional)
+ userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional)
+ userName := []string{"Inner_example"} // []string | (optional)
+ userNameEmpty := true // bool | (optional)
+ userNameIc := []string{"Inner_example"} // []string | (optional)
+ userNameIe := []string{"Inner_example"} // []string | (optional)
+ userNameIew := []string{"Inner_example"} // []string | (optional)
+ userNameIsw := []string{"Inner_example"} // []string | (optional)
+ userNameN := []string{"Inner_example"} // []string | (optional)
+ userNameNic := []string{"Inner_example"} // []string | (optional)
+ userNameNie := []string{"Inner_example"} // []string | (optional)
+ userNameNiew := []string{"Inner_example"} // []string | (optional)
+ userNameNisw := []string{"Inner_example"} // []string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesList(context.Background()).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasObjectChangesList`: PaginatedObjectChangeList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesList`: %v\n", resp)
}
```
@@ -7583,24 +8399,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this object change.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasObjectChangesRetrieve`: ObjectChange
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this object change.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasObjectChangesRetrieve`: ObjectChange
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesRetrieve`: %v\n", resp)
}
```
@@ -7653,22 +8469,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ContentTypes_example"}, "Name_example", "Slug_example", map[string]interface{}{"key": interface{}(123)})} // []SavedFilterRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ContentTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -7717,24 +8533,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ContentTypes_example"}, "Name_example", "Slug_example", map[string]interface{}{"key": interface{}(123)})} // []SavedFilterRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasSavedFiltersBulkPartialUpdate`: []SavedFilter
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp)
+ savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ContentTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasSavedFiltersBulkPartialUpdate`: []SavedFilter
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp)
}
```
@@ -7783,24 +8599,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ContentTypes_example"}, "Name_example", "Slug_example", map[string]interface{}{"key": interface{}(123)})} // []SavedFilterRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasSavedFiltersBulkUpdate`: []SavedFilter
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkUpdate`: %v\n", resp)
+ savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ContentTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasSavedFiltersBulkUpdate`: []SavedFilter
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkUpdate`: %v\n", resp)
}
```
@@ -7849,24 +8665,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ContentTypes_example"}, "Name_example", "Slug_example", map[string]interface{}{"key": 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)
+ savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ContentTypes_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)
}
```
@@ -7915,22 +8731,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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)
- }
+ 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)
+ }
}
```
@@ -7983,98 +8799,98 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- shared := true // bool | (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- usable := true // bool | (optional)
- user := []string{"Inner_example"} // []string | User (name) (optional)
- userN := []string{"Inner_example"} // []string | User (name) (optional)
- userId := []*int32{int32(123)} // []*int32 | User (ID) (optional)
- userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional)
- weight := []int32{int32(123)} // []int32 | (optional)
- weightEmpty := true // bool | (optional)
- weightGt := []int32{int32(123)} // []int32 | (optional)
- weightGte := []int32{int32(123)} // []int32 | (optional)
- weightLt := []int32{int32(123)} // []int32 | (optional)
- weightLte := []int32{int32(123)} // []int32 | (optional)
- weightN := []int32{int32(123)} // []int32 | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasSavedFiltersList`: PaginatedSavedFilterList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersList`: %v\n", resp)
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ shared := true // bool | (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ usable := true // bool | (optional)
+ user := []string{"Inner_example"} // []string | User (name) (optional)
+ userN := []string{"Inner_example"} // []string | User (name) (optional)
+ userId := []*int32{int32(123)} // []*int32 | User (ID) (optional)
+ userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional)
+ weight := []int32{int32(123)} // []int32 | (optional)
+ weightEmpty := true // bool | (optional)
+ weightGt := []int32{int32(123)} // []int32 | (optional)
+ weightGte := []int32{int32(123)} // []int32 | (optional)
+ weightLt := []int32{int32(123)} // []int32 | (optional)
+ weightLte := []int32{int32(123)} // []int32 | (optional)
+ weightN := []int32{int32(123)} // []int32 | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasSavedFiltersList`: PaginatedSavedFilterList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersList`: %v\n", resp)
}
```
@@ -8197,25 +9013,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this saved filter.
- patchedSavedFilterRequest := *openapiclient.NewPatchedSavedFilterRequest() // PatchedSavedFilterRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasSavedFiltersPartialUpdate`: SavedFilter
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this saved filter.
+ patchedSavedFilterRequest := *openapiclient.NewPatchedSavedFilterRequest() // PatchedSavedFilterRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasSavedFiltersPartialUpdate`: SavedFilter
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersPartialUpdate`: %v\n", resp)
}
```
@@ -8269,24 +9085,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this saved filter.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasSavedFiltersRetrieve`: SavedFilter
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this saved filter.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasSavedFiltersRetrieve`: SavedFilter
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersRetrieve`: %v\n", resp)
}
```
@@ -8339,25 +9155,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this saved filter.
- savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ContentTypes_example"}, "Name_example", "Slug_example", map[string]interface{}{"key": interface{}(123)}) // SavedFilterRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).SavedFilterRequest(savedFilterRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasSavedFiltersUpdate`: SavedFilter
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersUpdate`: %v\n", resp)
+ 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 |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).SavedFilterRequest(savedFilterRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasSavedFiltersUpdate`: SavedFilter
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersUpdate`: %v\n", resp)
}
```
@@ -8411,22 +9227,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tagRequest := []openapiclient.TagRequest{*openapiclient.NewTagRequest("Name_example", "Slug_example")} // []TagRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasTagsBulkDestroy(context.Background()).TagRequest(tagRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ tagRequest := []openapiclient.TagRequest{*openapiclient.NewTagRequest("Name_example", "Slug_example")} // []TagRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasTagsBulkDestroy(context.Background()).TagRequest(tagRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -8475,24 +9291,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tagRequest := []openapiclient.TagRequest{*openapiclient.NewTagRequest("Name_example", "Slug_example")} // []TagRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasTagsBulkPartialUpdate(context.Background()).TagRequest(tagRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasTagsBulkPartialUpdate`: []Tag
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsBulkPartialUpdate`: %v\n", resp)
+ tagRequest := []openapiclient.TagRequest{*openapiclient.NewTagRequest("Name_example", "Slug_example")} // []TagRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasTagsBulkPartialUpdate(context.Background()).TagRequest(tagRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasTagsBulkPartialUpdate`: []Tag
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -8541,24 +9357,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tagRequest := []openapiclient.TagRequest{*openapiclient.NewTagRequest("Name_example", "Slug_example")} // []TagRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasTagsBulkUpdate(context.Background()).TagRequest(tagRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasTagsBulkUpdate`: []Tag
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsBulkUpdate`: %v\n", resp)
+ tagRequest := []openapiclient.TagRequest{*openapiclient.NewTagRequest("Name_example", "Slug_example")} // []TagRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasTagsBulkUpdate(context.Background()).TagRequest(tagRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasTagsBulkUpdate`: []Tag
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsBulkUpdate`: %v\n", resp)
}
```
@@ -8607,24 +9423,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tagRequest := *openapiclient.NewTagRequest("Name_example", "Slug_example") // TagRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasTagsCreate(context.Background()).TagRequest(tagRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasTagsCreate`: Tag
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsCreate`: %v\n", resp)
+ tagRequest := *openapiclient.NewTagRequest("Name_example", "Slug_example") // TagRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasTagsCreate(context.Background()).TagRequest(tagRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasTagsCreate`: Tag
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsCreate`: %v\n", resp)
}
```
@@ -8673,22 +9489,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this tag.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasTagsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this tag.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasTagsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -8741,101 +9557,101 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- color := []string{"Inner_example"} // []string | (optional)
- colorEmpty := true // bool | (optional)
- colorIc := []string{"Inner_example"} // []string | (optional)
- colorIe := []string{"Inner_example"} // []string | (optional)
- colorIew := []string{"Inner_example"} // []string | (optional)
- colorIsw := []string{"Inner_example"} // []string | (optional)
- colorN := []string{"Inner_example"} // []string | (optional)
- colorNic := []string{"Inner_example"} // []string | (optional)
- colorNie := []string{"Inner_example"} // []string | (optional)
- colorNiew := []string{"Inner_example"} // []string | (optional)
- colorNisw := []string{"Inner_example"} // []string | (optional)
- contentType := []string{"Inner_example"} // []string | (optional)
- contentTypeId := []int32{int32(123)} // []int32 | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- 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)
- forObjectTypeId := []int32{int32(123)} // []int32 | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- 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)
- objectTypes := []int32{int32(123)} // []int32 | (optional)
- objectTypesN := []int32{int32(123)} // []int32 | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasTagsList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ContentType(contentType).ContentTypeId(contentTypeId).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ForObjectTypeId(forObjectTypeId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectTypes(objectTypes).ObjectTypesN(objectTypesN).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasTagsList`: PaginatedTagList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ color := []string{"Inner_example"} // []string | (optional)
+ colorEmpty := true // bool | (optional)
+ colorIc := []string{"Inner_example"} // []string | (optional)
+ colorIe := []string{"Inner_example"} // []string | (optional)
+ colorIew := []string{"Inner_example"} // []string | (optional)
+ colorIsw := []string{"Inner_example"} // []string | (optional)
+ colorN := []string{"Inner_example"} // []string | (optional)
+ colorNic := []string{"Inner_example"} // []string | (optional)
+ colorNie := []string{"Inner_example"} // []string | (optional)
+ colorNiew := []string{"Inner_example"} // []string | (optional)
+ colorNisw := []string{"Inner_example"} // []string | (optional)
+ contentType := []string{"Inner_example"} // []string | (optional)
+ contentTypeId := []int32{int32(123)} // []int32 | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ forObjectTypeId := []int32{int32(123)} // []int32 | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ 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)
+ objectTypes := []int32{int32(123)} // []int32 | (optional)
+ objectTypesN := []int32{int32(123)} // []int32 | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasTagsList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ContentType(contentType).ContentTypeId(contentTypeId).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ForObjectTypeId(forObjectTypeId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectTypes(objectTypes).ObjectTypesN(objectTypesN).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasTagsList`: PaginatedTagList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsList`: %v\n", resp)
}
```
@@ -8960,25 +9776,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this tag.
- patchedTagRequest := *openapiclient.NewPatchedTagRequest() // PatchedTagRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasTagsPartialUpdate(context.Background(), id).PatchedTagRequest(patchedTagRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasTagsPartialUpdate`: Tag
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this tag.
+ patchedTagRequest := *openapiclient.NewPatchedTagRequest() // PatchedTagRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasTagsPartialUpdate(context.Background(), id).PatchedTagRequest(patchedTagRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasTagsPartialUpdate`: Tag
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsPartialUpdate`: %v\n", resp)
}
```
@@ -9032,24 +9848,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this tag.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasTagsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasTagsRetrieve`: Tag
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this tag.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasTagsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasTagsRetrieve`: Tag
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsRetrieve`: %v\n", resp)
}
```
@@ -9102,25 +9918,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this tag.
- tagRequest := *openapiclient.NewTagRequest("Name_example", "Slug_example") // TagRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasTagsUpdate(context.Background(), id).TagRequest(tagRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasTagsUpdate`: Tag
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this tag.
+ tagRequest := *openapiclient.NewTagRequest("Name_example", "Slug_example") // TagRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasTagsUpdate(context.Background(), id).TagRequest(tagRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasTagsUpdate`: Tag
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsUpdate`: %v\n", resp)
}
```
@@ -9174,22 +9990,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- webhookRequest := []openapiclient.WebhookRequest{*openapiclient.NewWebhookRequest([]string{"ContentTypes_example"}, "Name_example", "PayloadUrl_example")} // []WebhookRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkDestroy(context.Background()).WebhookRequest(webhookRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ webhookRequest := []openapiclient.WebhookRequest{*openapiclient.NewWebhookRequest("Name_example", "PayloadUrl_example")} // []WebhookRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkDestroy(context.Background()).WebhookRequest(webhookRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -9238,24 +10054,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- webhookRequest := []openapiclient.WebhookRequest{*openapiclient.NewWebhookRequest([]string{"ContentTypes_example"}, "Name_example", "PayloadUrl_example")} // []WebhookRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkPartialUpdate(context.Background()).WebhookRequest(webhookRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasWebhooksBulkPartialUpdate`: []Webhook
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksBulkPartialUpdate`: %v\n", resp)
+ webhookRequest := []openapiclient.WebhookRequest{*openapiclient.NewWebhookRequest("Name_example", "PayloadUrl_example")} // []WebhookRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkPartialUpdate(context.Background()).WebhookRequest(webhookRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasWebhooksBulkPartialUpdate`: []Webhook
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksBulkPartialUpdate`: %v\n", resp)
}
```
@@ -9304,24 +10120,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- webhookRequest := []openapiclient.WebhookRequest{*openapiclient.NewWebhookRequest([]string{"ContentTypes_example"}, "Name_example", "PayloadUrl_example")} // []WebhookRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkUpdate(context.Background()).WebhookRequest(webhookRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasWebhooksBulkUpdate`: []Webhook
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksBulkUpdate`: %v\n", resp)
+ webhookRequest := []openapiclient.WebhookRequest{*openapiclient.NewWebhookRequest("Name_example", "PayloadUrl_example")} // []WebhookRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkUpdate(context.Background()).WebhookRequest(webhookRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasWebhooksBulkUpdate`: []Webhook
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksBulkUpdate`: %v\n", resp)
}
```
@@ -9370,24 +10186,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- webhookRequest := *openapiclient.NewWebhookRequest([]string{"ContentTypes_example"}, "Name_example", "PayloadUrl_example") // WebhookRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksCreate(context.Background()).WebhookRequest(webhookRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasWebhooksCreate`: Webhook
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksCreate`: %v\n", resp)
+ webhookRequest := *openapiclient.NewWebhookRequest("Name_example", "PayloadUrl_example") // WebhookRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksCreate(context.Background()).WebhookRequest(webhookRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasWebhooksCreate`: Webhook
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksCreate`: %v\n", resp)
}
```
@@ -9436,22 +10252,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this webhook.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ExtrasAPI.ExtrasWebhooksDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this webhook.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ExtrasAPI.ExtrasWebhooksDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -9492,7 +10308,7 @@ Name | Type | Description | Notes
## ExtrasWebhooksList
-> PaginatedWebhookList ExtrasWebhooksList(ctx).CaFilePath(caFilePath).CaFilePathEmpty(caFilePathEmpty).CaFilePathIc(caFilePathIc).CaFilePathIe(caFilePathIe).CaFilePathIew(caFilePathIew).CaFilePathIsw(caFilePathIsw).CaFilePathN(caFilePathN).CaFilePathNic(caFilePathNic).CaFilePathNie(caFilePathNie).CaFilePathNiew(caFilePathNiew).CaFilePathNisw(caFilePathNisw).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Enabled(enabled).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodN(httpMethodN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PayloadUrl(payloadUrl).PayloadUrlEmpty(payloadUrlEmpty).PayloadUrlIc(payloadUrlIc).PayloadUrlIe(payloadUrlIe).PayloadUrlIew(payloadUrlIew).PayloadUrlIsw(payloadUrlIsw).PayloadUrlN(payloadUrlN).PayloadUrlNic(payloadUrlNic).PayloadUrlNie(payloadUrlNie).PayloadUrlNiew(payloadUrlNiew).PayloadUrlNisw(payloadUrlNisw).Q(q).Secret(secret).SecretEmpty(secretEmpty).SecretIc(secretIc).SecretIe(secretIe).SecretIew(secretIew).SecretIsw(secretIsw).SecretN(secretN).SecretNic(secretNic).SecretNie(secretNie).SecretNiew(secretNiew).SecretNisw(secretNisw).SslVerification(sslVerification).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedWebhookList ExtrasWebhooksList(ctx).CaFilePath(caFilePath).CaFilePathEmpty(caFilePathEmpty).CaFilePathIc(caFilePathIc).CaFilePathIe(caFilePathIe).CaFilePathIew(caFilePathIew).CaFilePathIsw(caFilePathIsw).CaFilePathN(caFilePathN).CaFilePathNic(caFilePathNic).CaFilePathNie(caFilePathNie).CaFilePathNiew(caFilePathNiew).CaFilePathNisw(caFilePathNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodN(httpMethodN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PayloadUrl(payloadUrl).Q(q).Secret(secret).SecretEmpty(secretEmpty).SecretIc(secretIc).SecretIe(secretIe).SecretIew(secretIew).SecretIsw(secretIsw).SecretN(secretN).SecretNic(secretNic).SecretNie(secretNie).SecretNiew(secretNiew).SecretNisw(secretNisw).SslVerification(sslVerification).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
@@ -9504,135 +10320,113 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- caFilePath := []string{"Inner_example"} // []string | (optional)
- caFilePathEmpty := true // bool | (optional)
- caFilePathIc := []string{"Inner_example"} // []string | (optional)
- caFilePathIe := []string{"Inner_example"} // []string | (optional)
- caFilePathIew := []string{"Inner_example"} // []string | (optional)
- caFilePathIsw := []string{"Inner_example"} // []string | (optional)
- caFilePathN := []string{"Inner_example"} // []string | (optional)
- caFilePathNic := []string{"Inner_example"} // []string | (optional)
- caFilePathNie := []string{"Inner_example"} // []string | (optional)
- caFilePathNiew := []string{"Inner_example"} // []string | (optional)
- caFilePathNisw := []string{"Inner_example"} // []string | (optional)
- contentTypeId := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdEmpty := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGt := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGte := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdLt := []int32{int32(123)} // []int32 | (optional)
- 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)
- enabled := true // bool | (optional)
- httpContentType := []string{"Inner_example"} // []string | (optional)
- httpContentTypeEmpty := true // bool | (optional)
- httpContentTypeIc := []string{"Inner_example"} // []string | (optional)
- httpContentTypeIe := []string{"Inner_example"} // []string | (optional)
- httpContentTypeIew := []string{"Inner_example"} // []string | (optional)
- httpContentTypeIsw := []string{"Inner_example"} // []string | (optional)
- httpContentTypeN := []string{"Inner_example"} // []string | (optional)
- httpContentTypeNic := []string{"Inner_example"} // []string | (optional)
- httpContentTypeNie := []string{"Inner_example"} // []string | (optional)
- httpContentTypeNiew := []string{"Inner_example"} // []string | (optional)
- httpContentTypeNisw := []string{"Inner_example"} // []string | (optional)
- httpMethod := []string{"Inner_example"} // []string | (optional)
- httpMethodN := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- 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)
- payloadUrl := []string{"Inner_example"} // []string | (optional)
- payloadUrlEmpty := true // bool | (optional)
- payloadUrlIc := []string{"Inner_example"} // []string | (optional)
- payloadUrlIe := []string{"Inner_example"} // []string | (optional)
- payloadUrlIew := []string{"Inner_example"} // []string | (optional)
- payloadUrlIsw := []string{"Inner_example"} // []string | (optional)
- payloadUrlN := []string{"Inner_example"} // []string | (optional)
- payloadUrlNic := []string{"Inner_example"} // []string | (optional)
- payloadUrlNie := []string{"Inner_example"} // []string | (optional)
- payloadUrlNiew := []string{"Inner_example"} // []string | (optional)
- payloadUrlNisw := []string{"Inner_example"} // []string | (optional)
- q := "q_example" // string | Search (optional)
- secret := []string{"Inner_example"} // []string | (optional)
- secretEmpty := true // bool | (optional)
- secretIc := []string{"Inner_example"} // []string | (optional)
- secretIe := []string{"Inner_example"} // []string | (optional)
- secretIew := []string{"Inner_example"} // []string | (optional)
- secretIsw := []string{"Inner_example"} // []string | (optional)
- secretN := []string{"Inner_example"} // []string | (optional)
- secretNic := []string{"Inner_example"} // []string | (optional)
- secretNie := []string{"Inner_example"} // []string | (optional)
- secretNiew := []string{"Inner_example"} // []string | (optional)
- secretNisw := []string{"Inner_example"} // []string | (optional)
- sslVerification := true // bool | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- typeCreate := true // bool | (optional)
- typeDelete := true // bool | (optional)
- typeJobEnd := true // bool | (optional)
- typeJobStart := true // bool | (optional)
- typeUpdate := true // bool | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksList(context.Background()).CaFilePath(caFilePath).CaFilePathEmpty(caFilePathEmpty).CaFilePathIc(caFilePathIc).CaFilePathIe(caFilePathIe).CaFilePathIew(caFilePathIew).CaFilePathIsw(caFilePathIsw).CaFilePathN(caFilePathN).CaFilePathNic(caFilePathNic).CaFilePathNie(caFilePathNie).CaFilePathNiew(caFilePathNiew).CaFilePathNisw(caFilePathNisw).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Enabled(enabled).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodN(httpMethodN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PayloadUrl(payloadUrl).PayloadUrlEmpty(payloadUrlEmpty).PayloadUrlIc(payloadUrlIc).PayloadUrlIe(payloadUrlIe).PayloadUrlIew(payloadUrlIew).PayloadUrlIsw(payloadUrlIsw).PayloadUrlN(payloadUrlN).PayloadUrlNic(payloadUrlNic).PayloadUrlNie(payloadUrlNie).PayloadUrlNiew(payloadUrlNiew).PayloadUrlNisw(payloadUrlNisw).Q(q).Secret(secret).SecretEmpty(secretEmpty).SecretIc(secretIc).SecretIe(secretIe).SecretIew(secretIew).SecretIsw(secretIsw).SecretN(secretN).SecretNic(secretNic).SecretNie(secretNie).SecretNiew(secretNiew).SecretNisw(secretNisw).SslVerification(sslVerification).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasWebhooksList`: PaginatedWebhookList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksList`: %v\n", resp)
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ caFilePath := []string{"Inner_example"} // []string | (optional)
+ caFilePathEmpty := true // bool | (optional)
+ caFilePathIc := []string{"Inner_example"} // []string | (optional)
+ caFilePathIe := []string{"Inner_example"} // []string | (optional)
+ caFilePathIew := []string{"Inner_example"} // []string | (optional)
+ caFilePathIsw := []string{"Inner_example"} // []string | (optional)
+ caFilePathN := []string{"Inner_example"} // []string | (optional)
+ caFilePathNic := []string{"Inner_example"} // []string | (optional)
+ caFilePathNie := []string{"Inner_example"} // []string | (optional)
+ caFilePathNiew := []string{"Inner_example"} // []string | (optional)
+ caFilePathNisw := []string{"Inner_example"} // []string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ httpContentType := []string{"Inner_example"} // []string | (optional)
+ httpContentTypeEmpty := true // bool | (optional)
+ httpContentTypeIc := []string{"Inner_example"} // []string | (optional)
+ httpContentTypeIe := []string{"Inner_example"} // []string | (optional)
+ httpContentTypeIew := []string{"Inner_example"} // []string | (optional)
+ httpContentTypeIsw := []string{"Inner_example"} // []string | (optional)
+ httpContentTypeN := []string{"Inner_example"} // []string | (optional)
+ httpContentTypeNic := []string{"Inner_example"} // []string | (optional)
+ httpContentTypeNie := []string{"Inner_example"} // []string | (optional)
+ httpContentTypeNiew := []string{"Inner_example"} // []string | (optional)
+ httpContentTypeNisw := []string{"Inner_example"} // []string | (optional)
+ httpMethod := []string{"Inner_example"} // []string | (optional)
+ httpMethodN := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ 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)
+ payloadUrl := []string{"Inner_example"} // []string | (optional)
+ q := "q_example" // string | Search (optional)
+ secret := []string{"Inner_example"} // []string | (optional)
+ secretEmpty := true // bool | (optional)
+ secretIc := []string{"Inner_example"} // []string | (optional)
+ secretIe := []string{"Inner_example"} // []string | (optional)
+ secretIew := []string{"Inner_example"} // []string | (optional)
+ secretIsw := []string{"Inner_example"} // []string | (optional)
+ secretN := []string{"Inner_example"} // []string | (optional)
+ secretNic := []string{"Inner_example"} // []string | (optional)
+ secretNie := []string{"Inner_example"} // []string | (optional)
+ secretNiew := []string{"Inner_example"} // []string | (optional)
+ secretNisw := []string{"Inner_example"} // []string | (optional)
+ sslVerification := true // bool | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksList(context.Background()).CaFilePath(caFilePath).CaFilePathEmpty(caFilePathEmpty).CaFilePathIc(caFilePathIc).CaFilePathIe(caFilePathIe).CaFilePathIew(caFilePathIew).CaFilePathIsw(caFilePathIsw).CaFilePathN(caFilePathN).CaFilePathNic(caFilePathNic).CaFilePathNie(caFilePathNie).CaFilePathNiew(caFilePathNiew).CaFilePathNisw(caFilePathNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodN(httpMethodN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PayloadUrl(payloadUrl).Q(q).Secret(secret).SecretEmpty(secretEmpty).SecretIc(secretIc).SecretIe(secretIe).SecretIew(secretIew).SecretIsw(secretIsw).SecretN(secretN).SecretNic(secretNic).SecretNie(secretNie).SecretNiew(secretNiew).SecretNisw(secretNisw).SslVerification(sslVerification).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasWebhooksList`: PaginatedWebhookList
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksList`: %v\n", resp)
}
```
@@ -9658,23 +10452,6 @@ Name | Type | Description | Notes
**caFilePathNie** | **[]string** | |
**caFilePathNiew** | **[]string** | |
**caFilePathNisw** | **[]string** | |
- **contentTypeId** | **[]int32** | |
- **contentTypeIdEmpty** | **[]int32** | |
- **contentTypeIdGt** | **[]int32** | |
- **contentTypeIdGte** | **[]int32** | |
- **contentTypeIdLt** | **[]int32** | |
- **contentTypeIdLte** | **[]int32** | |
- **contentTypeIdN** | **[]int32** | |
- **contentTypes** | **string** | |
- **contentTypesIc** | **string** | |
- **contentTypesIe** | **string** | |
- **contentTypesIew** | **string** | |
- **contentTypesIsw** | **string** | |
- **contentTypesN** | **string** | |
- **contentTypesNic** | **string** | |
- **contentTypesNie** | **string** | |
- **contentTypesNiew** | **string** | |
- **contentTypesNisw** | **string** | |
**created** | [**[]time.Time**](time.Time.md) | |
**createdEmpty** | [**[]time.Time**](time.Time.md) | |
**createdGt** | [**[]time.Time**](time.Time.md) | |
@@ -9683,7 +10460,17 @@ Name | Type | Description | Notes
**createdLte** | [**[]time.Time**](time.Time.md) | |
**createdN** | [**[]time.Time**](time.Time.md) | |
**createdByRequest** | **string** | |
- **enabled** | **bool** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
**httpContentType** | **[]string** | |
**httpContentTypeEmpty** | **bool** | |
**httpContentTypeIc** | **[]string** | |
@@ -9727,16 +10514,6 @@ 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. |
**payloadUrl** | **[]string** | |
- **payloadUrlEmpty** | **bool** | |
- **payloadUrlIc** | **[]string** | |
- **payloadUrlIe** | **[]string** | |
- **payloadUrlIew** | **[]string** | |
- **payloadUrlIsw** | **[]string** | |
- **payloadUrlN** | **[]string** | |
- **payloadUrlNic** | **[]string** | |
- **payloadUrlNie** | **[]string** | |
- **payloadUrlNiew** | **[]string** | |
- **payloadUrlNisw** | **[]string** | |
**q** | **string** | Search |
**secret** | **[]string** | |
**secretEmpty** | **bool** | |
@@ -9752,11 +10529,6 @@ Name | Type | Description | Notes
**sslVerification** | **bool** | |
**tag** | **[]string** | |
**tagN** | **[]string** | |
- **typeCreate** | **bool** | |
- **typeDelete** | **bool** | |
- **typeJobEnd** | **bool** | |
- **typeJobStart** | **bool** | |
- **typeUpdate** | **bool** | |
**updatedByRequest** | **string** | |
### Return type
@@ -9791,25 +10563,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this webhook.
- patchedWebhookRequest := *openapiclient.NewPatchedWebhookRequest() // PatchedWebhookRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksPartialUpdate(context.Background(), id).PatchedWebhookRequest(patchedWebhookRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasWebhooksPartialUpdate`: Webhook
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this webhook.
+ patchedWebhookRequest := *openapiclient.NewPatchedWebhookRequest() // PatchedWebhookRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksPartialUpdate(context.Background(), id).PatchedWebhookRequest(patchedWebhookRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasWebhooksPartialUpdate`: Webhook
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksPartialUpdate`: %v\n", resp)
}
```
@@ -9863,24 +10635,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this webhook.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasWebhooksRetrieve`: Webhook
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this webhook.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasWebhooksRetrieve`: Webhook
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksRetrieve`: %v\n", resp)
}
```
@@ -9933,25 +10705,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this webhook.
- webhookRequest := *openapiclient.NewWebhookRequest([]string{"ContentTypes_example"}, "Name_example", "PayloadUrl_example") // WebhookRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksUpdate(context.Background(), id).WebhookRequest(webhookRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasWebhooksUpdate`: Webhook
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this webhook.
+ webhookRequest := *openapiclient.NewWebhookRequest("Name_example", "PayloadUrl_example") // WebhookRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksUpdate(context.Background(), id).WebhookRequest(webhookRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ExtrasWebhooksUpdate`: Webhook
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksUpdate`: %v\n", resp)
}
```
diff --git a/docs/FHRPGroup.md b/docs/FHRPGroup.md
index f4faa618d9..3d962c4dd1 100644
--- a/docs/FHRPGroup.md
+++ b/docs/FHRPGroup.md
@@ -8,9 +8,9 @@ Name | Type | Description | Notes
**Name** | Pointer to **string** | | [optional]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Protocol** | **string** | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other |
+**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | |
**GroupId** | **int32** | |
-**AuthType** | Pointer to **string** | * `plaintext` - Plaintext * `md5` - MD5 | [optional]
+**AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional]
**AuthKey** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
### NewFHRPGroup
-`func NewFHRPGroup(id int32, url string, display string, protocol string, groupId int32, created NullableTime, lastUpdated NullableTime, ipAddresses []NestedIPAddress, ) *FHRPGroup`
+`func NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32, created NullableTime, lastUpdated NullableTime, ipAddresses []NestedIPAddress, ) *FHRPGroup`
NewFHRPGroup instantiates a new FHRPGroup object
This constructor will assign default values to properties that have it defined,
@@ -126,20 +126,20 @@ SetDisplay sets Display field to given value.
### GetProtocol
-`func (o *FHRPGroup) GetProtocol() string`
+`func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol`
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
### GetProtocolOk
-`func (o *FHRPGroup) GetProtocolOk() (*string, bool)`
+`func (o *FHRPGroup) 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 *FHRPGroup) SetProtocol(v string)`
+`func (o *FHRPGroup) SetProtocol(v FHRPGroupProtocol)`
SetProtocol sets Protocol field to given value.
@@ -166,20 +166,20 @@ SetGroupId sets GroupId field to given value.
### GetAuthType
-`func (o *FHRPGroup) GetAuthType() string`
+`func (o *FHRPGroup) GetAuthType() AuthenticationType`
GetAuthType returns the AuthType field if non-nil, zero value otherwise.
### GetAuthTypeOk
-`func (o *FHRPGroup) GetAuthTypeOk() (*string, bool)`
+`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 string)`
+`func (o *FHRPGroup) SetAuthType(v AuthenticationType)`
SetAuthType sets AuthType field to given value.
diff --git a/docs/FHRPGroupAssignment.md b/docs/FHRPGroupAssignment.md
index ba96764757..efd9abf1bc 100644
--- a/docs/FHRPGroupAssignment.md
+++ b/docs/FHRPGroupAssignment.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
**Group** | [**NestedFHRPGroup**](NestedFHRPGroup.md) | |
**InterfaceType** | **string** | |
**InterfaceId** | **int64** | |
-**Interface** | **map[string]interface{}** | | [readonly]
+**Interface** | **interface{}** | | [readonly]
**Priority** | **int32** | |
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [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_ map[string]interface{}, priority int32, created NullableTime, lastUpdated NullableTime, ) *FHRPGroupAssignment`
+`func NewFHRPGroupAssignment(id int32, url string, display string, group NestedFHRPGroup, 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,
@@ -156,20 +156,20 @@ SetInterfaceId sets InterfaceId field to given value.
### GetInterface
-`func (o *FHRPGroupAssignment) GetInterface() map[string]interface{}`
+`func (o *FHRPGroupAssignment) GetInterface() interface{}`
GetInterface returns the Interface field if non-nil, zero value otherwise.
### GetInterfaceOk
-`func (o *FHRPGroupAssignment) GetInterfaceOk() (*map[string]interface{}, bool)`
+`func (o *FHRPGroupAssignment) GetInterfaceOk() (*interface{}, bool)`
GetInterfaceOk returns a tuple with the Interface field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetInterface
-`func (o *FHRPGroupAssignment) SetInterface(v map[string]interface{})`
+`func (o *FHRPGroupAssignment) SetInterface(v interface{})`
SetInterface sets Interface field to given value.
diff --git a/docs/FHRPGroupProtocol.md b/docs/FHRPGroupProtocol.md
new file mode 100644
index 0000000000..b7dbbe6062
--- /dev/null
+++ b/docs/FHRPGroupProtocol.md
@@ -0,0 +1,23 @@
+# FHRPGroupProtocol
+
+## Enum
+
+
+* `VRRP2` (value: `"vrrp2"`)
+
+* `VRRP3` (value: `"vrrp3"`)
+
+* `CARP` (value: `"carp"`)
+
+* `CLUSTERXL` (value: `"clusterxl"`)
+
+* `HSRP` (value: `"hsrp"`)
+
+* `GLBP` (value: `"glbp"`)
+
+* `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/FHRPGroupRequest.md b/docs/FHRPGroupRequest.md
index ea06c950da..534a798996 100644
--- a/docs/FHRPGroupRequest.md
+++ b/docs/FHRPGroupRequest.md
@@ -5,9 +5,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
-**Protocol** | **string** | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other |
+**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | |
**GroupId** | **int32** | |
-**AuthType** | Pointer to **string** | * `plaintext` - Plaintext * `md5` - MD5 | [optional]
+**AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional]
**AuthKey** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
### NewFHRPGroupRequest
-`func NewFHRPGroupRequest(protocol string, groupId int32, ) *FHRPGroupRequest`
+`func NewFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32, ) *FHRPGroupRequest`
NewFHRPGroupRequest instantiates a new FHRPGroupRequest object
This constructor will assign default values to properties that have it defined,
@@ -60,20 +60,20 @@ HasName returns a boolean if a field has been set.
### GetProtocol
-`func (o *FHRPGroupRequest) GetProtocol() string`
+`func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol`
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
### GetProtocolOk
-`func (o *FHRPGroupRequest) GetProtocolOk() (*string, bool)`
+`func (o *FHRPGroupRequest) 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 *FHRPGroupRequest) SetProtocol(v string)`
+`func (o *FHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)`
SetProtocol sets Protocol field to given value.
@@ -100,20 +100,20 @@ SetGroupId sets GroupId field to given value.
### GetAuthType
-`func (o *FHRPGroupRequest) GetAuthType() string`
+`func (o *FHRPGroupRequest) GetAuthType() AuthenticationType`
GetAuthType returns the AuthType field if non-nil, zero value otherwise.
### GetAuthTypeOk
-`func (o *FHRPGroupRequest) GetAuthTypeOk() (*string, bool)`
+`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 string)`
+`func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType)`
SetAuthType sets AuthType field to given value.
diff --git a/docs/FrontPortRequest.md b/docs/FrontPortRequest.md
index dbd38838f7..48b3253e55 100644
--- a/docs/FrontPortRequest.md
+++ b/docs/FrontPortRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other |
+**Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | |
**Color** | Pointer to **string** | | [optional]
**RearPort** | [**FrontPortRearPortRequest**](FrontPortRearPortRequest.md) | |
**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional]
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
### NewFrontPortRequest
-`func NewFrontPortRequest(device NestedDeviceRequest, name string, type_ string, rearPort FrontPortRearPortRequest, ) *FrontPortRequest`
+`func NewFrontPortRequest(device NestedDeviceRequest, 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,
@@ -138,20 +138,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *FrontPortRequest) GetType() string`
+`func (o *FrontPortRequest) GetType() FrontPortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *FrontPortRequest) GetTypeOk() (*string, bool)`
+`func (o *FrontPortRequest) 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 *FrontPortRequest) SetType(v string)`
+`func (o *FrontPortRequest) SetType(v FrontPortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/FrontPortTemplateRequest.md b/docs/FrontPortTemplateRequest.md
index b1e94d8cfa..eb1b790006 100644
--- a/docs/FrontPortTemplateRequest.md
+++ b/docs/FrontPortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**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** | **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other |
+**Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | |
**Color** | Pointer to **string** | | [optional]
**RearPort** | [**NestedRearPortTemplateRequest**](NestedRearPortTemplateRequest.md) | |
**RearPortPosition** | Pointer to **int32** | | [optional]
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
### NewFrontPortTemplateRequest
-`func NewFrontPortTemplateRequest(name string, type_ string, rearPort NestedRearPortTemplateRequest, ) *FrontPortTemplateRequest`
+`func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort NestedRearPortTemplateRequest, ) *FrontPortTemplateRequest`
NewFrontPortTemplateRequest instantiates a new FrontPortTemplateRequest object
This constructor will assign default values to properties that have it defined,
@@ -150,20 +150,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *FrontPortTemplateRequest) GetType() string`
+`func (o *FrontPortTemplateRequest) GetType() FrontPortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *FrontPortTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *FrontPortTemplateRequest) 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 *FrontPortTemplateRequest) SetType(v string)`
+`func (o *FrontPortTemplateRequest) SetType(v FrontPortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/FrontPortType.md b/docs/FrontPortType.md
index 3af02df9d0..73c767d397 100644
--- a/docs/FrontPortType.md
+++ b/docs/FrontPortType.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional]
+**Label** | Pointer to [**FrontPortTypeLabel**](FrontPortTypeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *FrontPortType) GetValue() string`
+`func (o *FrontPortType) GetValue() FrontPortTypeValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *FrontPortType) GetValueOk() (*string, bool)`
+`func (o *FrontPortType) GetValueOk() (*FrontPortTypeValue, bool)`
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValue
-`func (o *FrontPortType) SetValue(v string)`
+`func (o *FrontPortType) SetValue(v FrontPortTypeValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *FrontPortType) GetLabel() string`
+`func (o *FrontPortType) GetLabel() FrontPortTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *FrontPortType) GetLabelOk() (*string, bool)`
+`func (o *FrontPortType) GetLabelOk() (*FrontPortTypeLabel, bool)`
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLabel
-`func (o *FrontPortType) SetLabel(v string)`
+`func (o *FrontPortType) SetLabel(v FrontPortTypeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/FrontPortTypeLabel.md b/docs/FrontPortTypeLabel.md
new file mode 100644
index 0000000000..767d7d0ef3
--- /dev/null
+++ b/docs/FrontPortTypeLabel.md
@@ -0,0 +1,103 @@
+# FrontPortTypeLabel
+
+## Enum
+
+
+* `_8_P8_C` (value: `"8P8C"`)
+
+* `_8_P6_C` (value: `"8P6C"`)
+
+* `_8_P4_C` (value: `"8P4C"`)
+
+* `_8_P2_C` (value: `"8P2C"`)
+
+* `_6_P6_C` (value: `"6P6C"`)
+
+* `_6_P4_C` (value: `"6P4C"`)
+
+* `_6_P2_C` (value: `"6P2C"`)
+
+* `_4_P4_C` (value: `"4P4C"`)
+
+* `_4_P2_C` (value: `"4P2C"`)
+
+* `GG45` (value: `"GG45"`)
+
+* `TERA_4_P` (value: `"TERA 4P"`)
+
+* `TERA_2_P` (value: `"TERA 2P"`)
+
+* `TERA_1_P` (value: `"TERA 1P"`)
+
+* `_110_PUNCH` (value: `"110 Punch"`)
+
+* `BNC` (value: `"BNC"`)
+
+* `F_CONNECTOR` (value: `"F Connector"`)
+
+* `N_CONNECTOR` (value: `"N Connector"`)
+
+* `MRJ21` (value: `"MRJ21"`)
+
+* `FC` (value: `"FC"`)
+
+* `LC` (value: `"LC"`)
+
+* `LC_PC` (value: `"LC/PC"`)
+
+* `LC_UPC` (value: `"LC/UPC"`)
+
+* `LC_APC` (value: `"LC/APC"`)
+
+* `LSH` (value: `"LSH"`)
+
+* `LSH_PC` (value: `"LSH/PC"`)
+
+* `LSH_UPC` (value: `"LSH/UPC"`)
+
+* `LSH_APC` (value: `"LSH/APC"`)
+
+* `LX_5` (value: `"LX.5"`)
+
+* `LX_5_PC` (value: `"LX.5/PC"`)
+
+* `LX_5_UPC` (value: `"LX.5/UPC"`)
+
+* `LX_5_APC` (value: `"LX.5/APC"`)
+
+* `MPO` (value: `"MPO"`)
+
+* `MTRJ` (value: `"MTRJ"`)
+
+* `SC` (value: `"SC"`)
+
+* `SC_PC` (value: `"SC/PC"`)
+
+* `SC_UPC` (value: `"SC/UPC"`)
+
+* `SC_APC` (value: `"SC/APC"`)
+
+* `ST` (value: `"ST"`)
+
+* `CS` (value: `"CS"`)
+
+* `SN` (value: `"SN"`)
+
+* `SMA_905` (value: `"SMA 905"`)
+
+* `SMA_906` (value: `"SMA 906"`)
+
+* `URM_P2` (value: `"URM-P2"`)
+
+* `URM_P4` (value: `"URM-P4"`)
+
+* `URM_P8` (value: `"URM-P8"`)
+
+* `SPLICE` (value: `"Splice"`)
+
+* `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/FrontPortTypeValue.md b/docs/FrontPortTypeValue.md
new file mode 100644
index 0000000000..c6ac181220
--- /dev/null
+++ b/docs/FrontPortTypeValue.md
@@ -0,0 +1,103 @@
+# FrontPortTypeValue
+
+## Enum
+
+
+* `_8P8C` (value: `"8p8c"`)
+
+* `_8P6C` (value: `"8p6c"`)
+
+* `_8P4C` (value: `"8p4c"`)
+
+* `_8P2C` (value: `"8p2c"`)
+
+* `_6P6C` (value: `"6p6c"`)
+
+* `_6P4C` (value: `"6p4c"`)
+
+* `_6P2C` (value: `"6p2c"`)
+
+* `_4P4C` (value: `"4p4c"`)
+
+* `_4P2C` (value: `"4p2c"`)
+
+* `GG45` (value: `"gg45"`)
+
+* `TERA_4P` (value: `"tera-4p"`)
+
+* `TERA_2P` (value: `"tera-2p"`)
+
+* `TERA_1P` (value: `"tera-1p"`)
+
+* `_110_PUNCH` (value: `"110-punch"`)
+
+* `BNC` (value: `"bnc"`)
+
+* `F` (value: `"f"`)
+
+* `N` (value: `"n"`)
+
+* `MRJ21` (value: `"mrj21"`)
+
+* `FC` (value: `"fc"`)
+
+* `LC` (value: `"lc"`)
+
+* `LC_PC` (value: `"lc-pc"`)
+
+* `LC_UPC` (value: `"lc-upc"`)
+
+* `LC_APC` (value: `"lc-apc"`)
+
+* `LSH` (value: `"lsh"`)
+
+* `LSH_PC` (value: `"lsh-pc"`)
+
+* `LSH_UPC` (value: `"lsh-upc"`)
+
+* `LSH_APC` (value: `"lsh-apc"`)
+
+* `LX5` (value: `"lx5"`)
+
+* `LX5_PC` (value: `"lx5-pc"`)
+
+* `LX5_UPC` (value: `"lx5-upc"`)
+
+* `LX5_APC` (value: `"lx5-apc"`)
+
+* `MPO` (value: `"mpo"`)
+
+* `MTRJ` (value: `"mtrj"`)
+
+* `SC` (value: `"sc"`)
+
+* `SC_PC` (value: `"sc-pc"`)
+
+* `SC_UPC` (value: `"sc-upc"`)
+
+* `SC_APC` (value: `"sc-apc"`)
+
+* `ST` (value: `"st"`)
+
+* `CS` (value: `"cs"`)
+
+* `SN` (value: `"sn"`)
+
+* `SMA_905` (value: `"sma-905"`)
+
+* `SMA_906` (value: `"sma-906"`)
+
+* `URM_P2` (value: `"urm-p2"`)
+
+* `URM_P4` (value: `"urm-p4"`)
+
+* `URM_P8` (value: `"urm-p8"`)
+
+* `SPLICE` (value: `"splice"`)
+
+* `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/GenericObject.md b/docs/GenericObject.md
index 9093dcc78c..b409766a4d 100644
--- a/docs/GenericObject.md
+++ b/docs/GenericObject.md
@@ -6,13 +6,13 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ObjectType** | **string** | |
**ObjectId** | **int32** | |
-**Object** | **map[string]interface{}** | | [readonly]
+**Object** | **interface{}** | | [readonly]
## Methods
### NewGenericObject
-`func NewGenericObject(objectType string, objectId int32, object map[string]interface{}, ) *GenericObject`
+`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,
@@ -69,20 +69,20 @@ SetObjectId sets ObjectId field to given value.
### GetObject
-`func (o *GenericObject) GetObject() map[string]interface{}`
+`func (o *GenericObject) GetObject() interface{}`
GetObject returns the Object field if non-nil, zero value otherwise.
### GetObjectOk
-`func (o *GenericObject) GetObjectOk() (*map[string]interface{}, bool)`
+`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 map[string]interface{})`
+`func (o *GenericObject) SetObject(v interface{})`
SetObject sets Object field to given value.
diff --git a/docs/IKEPolicy.md b/docs/IKEPolicy.md
new file mode 100644
index 0000000000..3f7dbc860f
--- /dev/null
+++ b/docs/IKEPolicy.md
@@ -0,0 +1,374 @@
+# IKEPolicy
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **int32** | | [readonly]
+**Url** | **string** | | [readonly]
+**Display** | **string** | | [readonly]
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Version** | [**IKEPolicyVersion**](IKEPolicyVersion.md) | |
+**Mode** | [**IKEPolicyMode**](IKEPolicyMode.md) | |
+**Proposals** | Pointer to **[]int32** | | [optional]
+**PresharedKey** | Pointer to **string** | | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+**Created** | **NullableTime** | | [readonly]
+**LastUpdated** | **NullableTime** | | [readonly]
+
+## Methods
+
+### NewIKEPolicy
+
+`func NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, mode IKEPolicyMode, created NullableTime, lastUpdated NullableTime, ) *IKEPolicy`
+
+NewIKEPolicy instantiates a new IKEPolicy object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIKEPolicyWithDefaults
+
+`func NewIKEPolicyWithDefaults() *IKEPolicy`
+
+NewIKEPolicyWithDefaults instantiates a new IKEPolicy object
+This 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 *IKEPolicy) GetId() int32`
+
+GetId returns the Id field if non-nil, zero value otherwise.
+
+### GetIdOk
+
+`func (o *IKEPolicy) 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 *IKEPolicy) SetId(v int32)`
+
+SetId sets Id field to given value.
+
+
+### GetUrl
+
+`func (o *IKEPolicy) GetUrl() string`
+
+GetUrl returns the Url field if non-nil, zero value otherwise.
+
+### GetUrlOk
+
+`func (o *IKEPolicy) 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 *IKEPolicy) SetUrl(v string)`
+
+SetUrl sets Url field to given value.
+
+
+### GetDisplay
+
+`func (o *IKEPolicy) GetDisplay() string`
+
+GetDisplay returns the Display field if non-nil, zero value otherwise.
+
+### GetDisplayOk
+
+`func (o *IKEPolicy) 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 *IKEPolicy) SetDisplay(v string)`
+
+SetDisplay sets Display field to given value.
+
+
+### GetName
+
+`func (o *IKEPolicy) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *IKEPolicy) 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 *IKEPolicy) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *IKEPolicy) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *IKEPolicy) 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 *IKEPolicy) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *IKEPolicy) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetVersion
+
+`func (o *IKEPolicy) GetVersion() IKEPolicyVersion`
+
+GetVersion returns the Version field if non-nil, zero value otherwise.
+
+### GetVersionOk
+
+`func (o *IKEPolicy) GetVersionOk() (*IKEPolicyVersion, bool)`
+
+GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVersion
+
+`func (o *IKEPolicy) SetVersion(v IKEPolicyVersion)`
+
+SetVersion sets Version field to given value.
+
+
+### GetMode
+
+`func (o *IKEPolicy) GetMode() IKEPolicyMode`
+
+GetMode returns the Mode field if non-nil, zero value otherwise.
+
+### GetModeOk
+
+`func (o *IKEPolicy) GetModeOk() (*IKEPolicyMode, bool)`
+
+GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetMode
+
+`func (o *IKEPolicy) SetMode(v IKEPolicyMode)`
+
+SetMode sets Mode field to given value.
+
+
+### GetProposals
+
+`func (o *IKEPolicy) GetProposals() []int32`
+
+GetProposals returns the Proposals field if non-nil, zero value otherwise.
+
+### GetProposalsOk
+
+`func (o *IKEPolicy) GetProposalsOk() (*[]int32, bool)`
+
+GetProposalsOk returns a tuple with the Proposals field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetProposals
+
+`func (o *IKEPolicy) SetProposals(v []int32)`
+
+SetProposals sets Proposals field to given value.
+
+### HasProposals
+
+`func (o *IKEPolicy) HasProposals() bool`
+
+HasProposals returns a boolean if a field has been set.
+
+### GetPresharedKey
+
+`func (o *IKEPolicy) GetPresharedKey() string`
+
+GetPresharedKey returns the PresharedKey field if non-nil, zero value otherwise.
+
+### GetPresharedKeyOk
+
+`func (o *IKEPolicy) GetPresharedKeyOk() (*string, bool)`
+
+GetPresharedKeyOk returns a tuple with the PresharedKey field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPresharedKey
+
+`func (o *IKEPolicy) SetPresharedKey(v string)`
+
+SetPresharedKey sets PresharedKey field to given value.
+
+### HasPresharedKey
+
+`func (o *IKEPolicy) HasPresharedKey() bool`
+
+HasPresharedKey returns a boolean if a field has been set.
+
+### GetComments
+
+`func (o *IKEPolicy) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *IKEPolicy) 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 *IKEPolicy) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *IKEPolicy) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *IKEPolicy) GetTags() []NestedTag`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *IKEPolicy) 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 *IKEPolicy) SetTags(v []NestedTag)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *IKEPolicy) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *IKEPolicy) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *IKEPolicy) 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 *IKEPolicy) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *IKEPolicy) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+### GetCreated
+
+`func (o *IKEPolicy) GetCreated() time.Time`
+
+GetCreated returns the Created field if non-nil, zero value otherwise.
+
+### GetCreatedOk
+
+`func (o *IKEPolicy) 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 *IKEPolicy) SetCreated(v time.Time)`
+
+SetCreated sets Created field to given value.
+
+
+### SetCreatedNil
+
+`func (o *IKEPolicy) SetCreatedNil(b bool)`
+
+ SetCreatedNil sets the value for Created to be an explicit nil
+
+### UnsetCreated
+`func (o *IKEPolicy) UnsetCreated()`
+
+UnsetCreated ensures that no value is present for Created, not even an explicit nil
+### GetLastUpdated
+
+`func (o *IKEPolicy) GetLastUpdated() time.Time`
+
+GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
+
+### GetLastUpdatedOk
+
+`func (o *IKEPolicy) 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 *IKEPolicy) SetLastUpdated(v time.Time)`
+
+SetLastUpdated sets LastUpdated field to given value.
+
+
+### SetLastUpdatedNil
+
+`func (o *IKEPolicy) SetLastUpdatedNil(b bool)`
+
+ SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
+
+### UnsetLastUpdated
+`func (o *IKEPolicy) 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/IKEPolicyMode.md b/docs/IKEPolicyMode.md
new file mode 100644
index 0000000000..0d0455baf4
--- /dev/null
+++ b/docs/IKEPolicyMode.md
@@ -0,0 +1,82 @@
+# IKEPolicyMode
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Value** | Pointer to [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | [optional]
+**Label** | Pointer to [**IKEPolicyModeLabel**](IKEPolicyModeLabel.md) | | [optional]
+
+## Methods
+
+### NewIKEPolicyMode
+
+`func NewIKEPolicyMode() *IKEPolicyMode`
+
+NewIKEPolicyMode instantiates a new IKEPolicyMode object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIKEPolicyModeWithDefaults
+
+`func NewIKEPolicyModeWithDefaults() *IKEPolicyMode`
+
+NewIKEPolicyModeWithDefaults instantiates a new IKEPolicyMode object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetValue
+
+`func (o *IKEPolicyMode) GetValue() IKEPolicyModeValue`
+
+GetValue returns the Value field if non-nil, zero value otherwise.
+
+### GetValueOk
+
+`func (o *IKEPolicyMode) GetValueOk() (*IKEPolicyModeValue, bool)`
+
+GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetValue
+
+`func (o *IKEPolicyMode) SetValue(v IKEPolicyModeValue)`
+
+SetValue sets Value field to given value.
+
+### HasValue
+
+`func (o *IKEPolicyMode) HasValue() bool`
+
+HasValue returns a boolean if a field has been set.
+
+### GetLabel
+
+`func (o *IKEPolicyMode) GetLabel() IKEPolicyModeLabel`
+
+GetLabel returns the Label field if non-nil, zero value otherwise.
+
+### GetLabelOk
+
+`func (o *IKEPolicyMode) GetLabelOk() (*IKEPolicyModeLabel, bool)`
+
+GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLabel
+
+`func (o *IKEPolicyMode) SetLabel(v IKEPolicyModeLabel)`
+
+SetLabel sets Label field to given value.
+
+### HasLabel
+
+`func (o *IKEPolicyMode) HasLabel() bool`
+
+HasLabel returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEPolicyModeLabel.md b/docs/IKEPolicyModeLabel.md
new file mode 100644
index 0000000000..d4cd86e245
--- /dev/null
+++ b/docs/IKEPolicyModeLabel.md
@@ -0,0 +1,13 @@
+# IKEPolicyModeLabel
+
+## Enum
+
+
+* `AGGRESSIVE` (value: `"Aggressive"`)
+
+* `MAIN` (value: `"Main"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEPolicyModeValue.md b/docs/IKEPolicyModeValue.md
new file mode 100644
index 0000000000..25162465e1
--- /dev/null
+++ b/docs/IKEPolicyModeValue.md
@@ -0,0 +1,13 @@
+# IKEPolicyModeValue
+
+## Enum
+
+
+* `AGGRESSIVE` (value: `"aggressive"`)
+
+* `MAIN` (value: `"main"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEPolicyRequest.md b/docs/IKEPolicyRequest.md
new file mode 100644
index 0000000000..9a18d7f6dd
--- /dev/null
+++ b/docs/IKEPolicyRequest.md
@@ -0,0 +1,249 @@
+# IKEPolicyRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Version** | [**IKEPolicyVersionValue**](IKEPolicyVersionValue.md) | |
+**Mode** | [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | |
+**Proposals** | Pointer to **[]int32** | | [optional]
+**PresharedKey** | Pointer to **string** | | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewIKEPolicyRequest
+
+`func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, mode IKEPolicyModeValue, ) *IKEPolicyRequest`
+
+NewIKEPolicyRequest instantiates a new IKEPolicyRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIKEPolicyRequestWithDefaults
+
+`func NewIKEPolicyRequestWithDefaults() *IKEPolicyRequest`
+
+NewIKEPolicyRequestWithDefaults instantiates a new IKEPolicyRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetName
+
+`func (o *IKEPolicyRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *IKEPolicyRequest) GetNameOk() (*string, bool)`
+
+GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetName
+
+`func (o *IKEPolicyRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *IKEPolicyRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *IKEPolicyRequest) GetDescriptionOk() (*string, bool)`
+
+GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDescription
+
+`func (o *IKEPolicyRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *IKEPolicyRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetVersion
+
+`func (o *IKEPolicyRequest) GetVersion() IKEPolicyVersionValue`
+
+GetVersion returns the Version field if non-nil, zero value otherwise.
+
+### GetVersionOk
+
+`func (o *IKEPolicyRequest) GetVersionOk() (*IKEPolicyVersionValue, bool)`
+
+GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVersion
+
+`func (o *IKEPolicyRequest) SetVersion(v IKEPolicyVersionValue)`
+
+SetVersion sets Version field to given value.
+
+
+### GetMode
+
+`func (o *IKEPolicyRequest) GetMode() IKEPolicyModeValue`
+
+GetMode returns the Mode field if non-nil, zero value otherwise.
+
+### GetModeOk
+
+`func (o *IKEPolicyRequest) GetModeOk() (*IKEPolicyModeValue, bool)`
+
+GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetMode
+
+`func (o *IKEPolicyRequest) SetMode(v IKEPolicyModeValue)`
+
+SetMode sets Mode field to given value.
+
+
+### GetProposals
+
+`func (o *IKEPolicyRequest) GetProposals() []int32`
+
+GetProposals returns the Proposals field if non-nil, zero value otherwise.
+
+### GetProposalsOk
+
+`func (o *IKEPolicyRequest) GetProposalsOk() (*[]int32, bool)`
+
+GetProposalsOk returns a tuple with the Proposals field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetProposals
+
+`func (o *IKEPolicyRequest) SetProposals(v []int32)`
+
+SetProposals sets Proposals field to given value.
+
+### HasProposals
+
+`func (o *IKEPolicyRequest) HasProposals() bool`
+
+HasProposals returns a boolean if a field has been set.
+
+### GetPresharedKey
+
+`func (o *IKEPolicyRequest) GetPresharedKey() string`
+
+GetPresharedKey returns the PresharedKey field if non-nil, zero value otherwise.
+
+### GetPresharedKeyOk
+
+`func (o *IKEPolicyRequest) GetPresharedKeyOk() (*string, bool)`
+
+GetPresharedKeyOk returns a tuple with the PresharedKey field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPresharedKey
+
+`func (o *IKEPolicyRequest) SetPresharedKey(v string)`
+
+SetPresharedKey sets PresharedKey field to given value.
+
+### HasPresharedKey
+
+`func (o *IKEPolicyRequest) HasPresharedKey() bool`
+
+HasPresharedKey returns a boolean if a field has been set.
+
+### GetComments
+
+`func (o *IKEPolicyRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *IKEPolicyRequest) GetCommentsOk() (*string, bool)`
+
+GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetComments
+
+`func (o *IKEPolicyRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *IKEPolicyRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *IKEPolicyRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *IKEPolicyRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+
+GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTags
+
+`func (o *IKEPolicyRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *IKEPolicyRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *IKEPolicyRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *IKEPolicyRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+
+GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCustomFields
+
+`func (o *IKEPolicyRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *IKEPolicyRequest) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEPolicyVersion.md b/docs/IKEPolicyVersion.md
new file mode 100644
index 0000000000..ce66f1baf2
--- /dev/null
+++ b/docs/IKEPolicyVersion.md
@@ -0,0 +1,82 @@
+# IKEPolicyVersion
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Value** | Pointer to [**IKEPolicyVersionValue**](IKEPolicyVersionValue.md) | | [optional]
+**Label** | Pointer to [**IKEPolicyVersionLabel**](IKEPolicyVersionLabel.md) | | [optional]
+
+## Methods
+
+### NewIKEPolicyVersion
+
+`func NewIKEPolicyVersion() *IKEPolicyVersion`
+
+NewIKEPolicyVersion instantiates a new IKEPolicyVersion object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIKEPolicyVersionWithDefaults
+
+`func NewIKEPolicyVersionWithDefaults() *IKEPolicyVersion`
+
+NewIKEPolicyVersionWithDefaults instantiates a new IKEPolicyVersion object
+This 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 *IKEPolicyVersion) GetValue() IKEPolicyVersionValue`
+
+GetValue returns the Value field if non-nil, zero value otherwise.
+
+### GetValueOk
+
+`func (o *IKEPolicyVersion) GetValueOk() (*IKEPolicyVersionValue, 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 *IKEPolicyVersion) SetValue(v IKEPolicyVersionValue)`
+
+SetValue sets Value field to given value.
+
+### HasValue
+
+`func (o *IKEPolicyVersion) HasValue() bool`
+
+HasValue returns a boolean if a field has been set.
+
+### GetLabel
+
+`func (o *IKEPolicyVersion) GetLabel() IKEPolicyVersionLabel`
+
+GetLabel returns the Label field if non-nil, zero value otherwise.
+
+### GetLabelOk
+
+`func (o *IKEPolicyVersion) GetLabelOk() (*IKEPolicyVersionLabel, 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 *IKEPolicyVersion) SetLabel(v IKEPolicyVersionLabel)`
+
+SetLabel sets Label field to given value.
+
+### HasLabel
+
+`func (o *IKEPolicyVersion) 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/IKEPolicyVersionLabel.md b/docs/IKEPolicyVersionLabel.md
new file mode 100644
index 0000000000..49e1a64150
--- /dev/null
+++ b/docs/IKEPolicyVersionLabel.md
@@ -0,0 +1,13 @@
+# IKEPolicyVersionLabel
+
+## Enum
+
+
+* `IKEV1` (value: `"IKEv1"`)
+
+* `IKEV2` (value: `"IKEv2"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEPolicyVersionValue.md b/docs/IKEPolicyVersionValue.md
new file mode 100644
index 0000000000..1d75daff3b
--- /dev/null
+++ b/docs/IKEPolicyVersionValue.md
@@ -0,0 +1,13 @@
+# IKEPolicyVersionValue
+
+## Enum
+
+
+* `_1` (value: `1`)
+
+* `_2` (value: `2`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEProposal.md b/docs/IKEProposal.md
new file mode 100644
index 0000000000..ee499984d3
--- /dev/null
+++ b/docs/IKEProposal.md
@@ -0,0 +1,400 @@
+# IKEProposal
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **int32** | | [readonly]
+**Url** | **string** | | [readonly]
+**Display** | **string** | | [readonly]
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**AuthenticationMethod** | [**IKEProposalAuthenticationMethod**](IKEProposalAuthenticationMethod.md) | |
+**EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithm**](IKEProposalEncryptionAlgorithm.md) | |
+**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | |
+**Group** | [**IKEProposalGroup**](IKEProposalGroup.md) | |
+**SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+**Created** | **NullableTime** | | [readonly]
+**LastUpdated** | **NullableTime** | | [readonly]
+
+## Methods
+
+### NewIKEProposal
+
+`func NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime, ) *IKEProposal`
+
+NewIKEProposal instantiates a new IKEProposal object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIKEProposalWithDefaults
+
+`func NewIKEProposalWithDefaults() *IKEProposal`
+
+NewIKEProposalWithDefaults instantiates a new IKEProposal object
+This 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 *IKEProposal) GetId() int32`
+
+GetId returns the Id field if non-nil, zero value otherwise.
+
+### GetIdOk
+
+`func (o *IKEProposal) 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 *IKEProposal) SetId(v int32)`
+
+SetId sets Id field to given value.
+
+
+### GetUrl
+
+`func (o *IKEProposal) GetUrl() string`
+
+GetUrl returns the Url field if non-nil, zero value otherwise.
+
+### GetUrlOk
+
+`func (o *IKEProposal) 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 *IKEProposal) SetUrl(v string)`
+
+SetUrl sets Url field to given value.
+
+
+### GetDisplay
+
+`func (o *IKEProposal) GetDisplay() string`
+
+GetDisplay returns the Display field if non-nil, zero value otherwise.
+
+### GetDisplayOk
+
+`func (o *IKEProposal) 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 *IKEProposal) SetDisplay(v string)`
+
+SetDisplay sets Display field to given value.
+
+
+### GetName
+
+`func (o *IKEProposal) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *IKEProposal) 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 *IKEProposal) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *IKEProposal) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *IKEProposal) 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 *IKEProposal) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *IKEProposal) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetAuthenticationMethod
+
+`func (o *IKEProposal) GetAuthenticationMethod() IKEProposalAuthenticationMethod`
+
+GetAuthenticationMethod returns the AuthenticationMethod field if non-nil, zero value otherwise.
+
+### GetAuthenticationMethodOk
+
+`func (o *IKEProposal) GetAuthenticationMethodOk() (*IKEProposalAuthenticationMethod, bool)`
+
+GetAuthenticationMethodOk returns a tuple with the AuthenticationMethod field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAuthenticationMethod
+
+`func (o *IKEProposal) SetAuthenticationMethod(v IKEProposalAuthenticationMethod)`
+
+SetAuthenticationMethod sets AuthenticationMethod field to given value.
+
+
+### GetEncryptionAlgorithm
+
+`func (o *IKEProposal) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithm`
+
+GetEncryptionAlgorithm returns the EncryptionAlgorithm field if non-nil, zero value otherwise.
+
+### GetEncryptionAlgorithmOk
+
+`func (o *IKEProposal) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithm, bool)`
+
+GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEncryptionAlgorithm
+
+`func (o *IKEProposal) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithm)`
+
+SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value.
+
+
+### GetAuthenticationAlgorithm
+
+`func (o *IKEProposal) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithm`
+
+GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field if non-nil, zero value otherwise.
+
+### GetAuthenticationAlgorithmOk
+
+`func (o *IKEProposal) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithm, bool)`
+
+GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAuthenticationAlgorithm
+
+`func (o *IKEProposal) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithm)`
+
+SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value.
+
+
+### GetGroup
+
+`func (o *IKEProposal) GetGroup() IKEProposalGroup`
+
+GetGroup returns the Group field if non-nil, zero value otherwise.
+
+### GetGroupOk
+
+`func (o *IKEProposal) GetGroupOk() (*IKEProposalGroup, 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 *IKEProposal) SetGroup(v IKEProposalGroup)`
+
+SetGroup sets Group field to given value.
+
+
+### GetSaLifetime
+
+`func (o *IKEProposal) GetSaLifetime() int32`
+
+GetSaLifetime returns the SaLifetime field if non-nil, zero value otherwise.
+
+### GetSaLifetimeOk
+
+`func (o *IKEProposal) GetSaLifetimeOk() (*int32, bool)`
+
+GetSaLifetimeOk returns a tuple with the SaLifetime field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSaLifetime
+
+`func (o *IKEProposal) SetSaLifetime(v int32)`
+
+SetSaLifetime sets SaLifetime field to given value.
+
+### HasSaLifetime
+
+`func (o *IKEProposal) HasSaLifetime() bool`
+
+HasSaLifetime returns a boolean if a field has been set.
+
+### SetSaLifetimeNil
+
+`func (o *IKEProposal) SetSaLifetimeNil(b bool)`
+
+ SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil
+
+### UnsetSaLifetime
+`func (o *IKEProposal) UnsetSaLifetime()`
+
+UnsetSaLifetime ensures that no value is present for SaLifetime, not even an explicit nil
+### GetComments
+
+`func (o *IKEProposal) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *IKEProposal) 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 *IKEProposal) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *IKEProposal) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *IKEProposal) GetTags() []NestedTag`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *IKEProposal) 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 *IKEProposal) SetTags(v []NestedTag)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *IKEProposal) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *IKEProposal) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *IKEProposal) 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 *IKEProposal) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *IKEProposal) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+### GetCreated
+
+`func (o *IKEProposal) GetCreated() time.Time`
+
+GetCreated returns the Created field if non-nil, zero value otherwise.
+
+### GetCreatedOk
+
+`func (o *IKEProposal) 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 *IKEProposal) SetCreated(v time.Time)`
+
+SetCreated sets Created field to given value.
+
+
+### SetCreatedNil
+
+`func (o *IKEProposal) SetCreatedNil(b bool)`
+
+ SetCreatedNil sets the value for Created to be an explicit nil
+
+### UnsetCreated
+`func (o *IKEProposal) UnsetCreated()`
+
+UnsetCreated ensures that no value is present for Created, not even an explicit nil
+### GetLastUpdated
+
+`func (o *IKEProposal) GetLastUpdated() time.Time`
+
+GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
+
+### GetLastUpdatedOk
+
+`func (o *IKEProposal) 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 *IKEProposal) SetLastUpdated(v time.Time)`
+
+SetLastUpdated sets LastUpdated field to given value.
+
+
+### SetLastUpdatedNil
+
+`func (o *IKEProposal) SetLastUpdatedNil(b bool)`
+
+ SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
+
+### UnsetLastUpdated
+`func (o *IKEProposal) 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/IKEProposalAuthenticationAlgorithm.md b/docs/IKEProposalAuthenticationAlgorithm.md
new file mode 100644
index 0000000000..c3924ab846
--- /dev/null
+++ b/docs/IKEProposalAuthenticationAlgorithm.md
@@ -0,0 +1,82 @@
+# IKEProposalAuthenticationAlgorithm
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Value** | Pointer to [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | [optional]
+**Label** | Pointer to [**IKEProposalAuthenticationAlgorithmLabel**](IKEProposalAuthenticationAlgorithmLabel.md) | | [optional]
+
+## Methods
+
+### NewIKEProposalAuthenticationAlgorithm
+
+`func NewIKEProposalAuthenticationAlgorithm() *IKEProposalAuthenticationAlgorithm`
+
+NewIKEProposalAuthenticationAlgorithm instantiates a new IKEProposalAuthenticationAlgorithm object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIKEProposalAuthenticationAlgorithmWithDefaults
+
+`func NewIKEProposalAuthenticationAlgorithmWithDefaults() *IKEProposalAuthenticationAlgorithm`
+
+NewIKEProposalAuthenticationAlgorithmWithDefaults instantiates a new IKEProposalAuthenticationAlgorithm object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetValue
+
+`func (o *IKEProposalAuthenticationAlgorithm) GetValue() IKEProposalAuthenticationAlgorithmValue`
+
+GetValue returns the Value field if non-nil, zero value otherwise.
+
+### GetValueOk
+
+`func (o *IKEProposalAuthenticationAlgorithm) GetValueOk() (*IKEProposalAuthenticationAlgorithmValue, bool)`
+
+GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetValue
+
+`func (o *IKEProposalAuthenticationAlgorithm) SetValue(v IKEProposalAuthenticationAlgorithmValue)`
+
+SetValue sets Value field to given value.
+
+### HasValue
+
+`func (o *IKEProposalAuthenticationAlgorithm) HasValue() bool`
+
+HasValue returns a boolean if a field has been set.
+
+### GetLabel
+
+`func (o *IKEProposalAuthenticationAlgorithm) GetLabel() IKEProposalAuthenticationAlgorithmLabel`
+
+GetLabel returns the Label field if non-nil, zero value otherwise.
+
+### GetLabelOk
+
+`func (o *IKEProposalAuthenticationAlgorithm) GetLabelOk() (*IKEProposalAuthenticationAlgorithmLabel, bool)`
+
+GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLabel
+
+`func (o *IKEProposalAuthenticationAlgorithm) SetLabel(v IKEProposalAuthenticationAlgorithmLabel)`
+
+SetLabel sets Label field to given value.
+
+### HasLabel
+
+`func (o *IKEProposalAuthenticationAlgorithm) HasLabel() bool`
+
+HasLabel returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEProposalAuthenticationAlgorithmLabel.md b/docs/IKEProposalAuthenticationAlgorithmLabel.md
new file mode 100644
index 0000000000..e4c16f5f86
--- /dev/null
+++ b/docs/IKEProposalAuthenticationAlgorithmLabel.md
@@ -0,0 +1,19 @@
+# IKEProposalAuthenticationAlgorithmLabel
+
+## Enum
+
+
+* `SHA_1_HMAC` (value: `"SHA-1 HMAC"`)
+
+* `SHA_256_HMAC` (value: `"SHA-256 HMAC"`)
+
+* `SHA_384_HMAC` (value: `"SHA-384 HMAC"`)
+
+* `SHA_512_HMAC` (value: `"SHA-512 HMAC"`)
+
+* `MD5_HMAC` (value: `"MD5 HMAC"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEProposalAuthenticationAlgorithmValue.md b/docs/IKEProposalAuthenticationAlgorithmValue.md
new file mode 100644
index 0000000000..4b3cbb9a4b
--- /dev/null
+++ b/docs/IKEProposalAuthenticationAlgorithmValue.md
@@ -0,0 +1,19 @@
+# IKEProposalAuthenticationAlgorithmValue
+
+## Enum
+
+
+* `SHA1` (value: `"hmac-sha1"`)
+
+* `SHA256` (value: `"hmac-sha256"`)
+
+* `SHA384` (value: `"hmac-sha384"`)
+
+* `SHA512` (value: `"hmac-sha512"`)
+
+* `MD5` (value: `"hmac-md5"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEProposalAuthenticationMethod.md b/docs/IKEProposalAuthenticationMethod.md
new file mode 100644
index 0000000000..85086da026
--- /dev/null
+++ b/docs/IKEProposalAuthenticationMethod.md
@@ -0,0 +1,82 @@
+# IKEProposalAuthenticationMethod
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Value** | Pointer to [**IKEProposalAuthenticationMethodValue**](IKEProposalAuthenticationMethodValue.md) | | [optional]
+**Label** | Pointer to [**IKEProposalAuthenticationMethodLabel**](IKEProposalAuthenticationMethodLabel.md) | | [optional]
+
+## Methods
+
+### NewIKEProposalAuthenticationMethod
+
+`func NewIKEProposalAuthenticationMethod() *IKEProposalAuthenticationMethod`
+
+NewIKEProposalAuthenticationMethod instantiates a new IKEProposalAuthenticationMethod object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIKEProposalAuthenticationMethodWithDefaults
+
+`func NewIKEProposalAuthenticationMethodWithDefaults() *IKEProposalAuthenticationMethod`
+
+NewIKEProposalAuthenticationMethodWithDefaults instantiates a new IKEProposalAuthenticationMethod object
+This 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 *IKEProposalAuthenticationMethod) GetValue() IKEProposalAuthenticationMethodValue`
+
+GetValue returns the Value field if non-nil, zero value otherwise.
+
+### GetValueOk
+
+`func (o *IKEProposalAuthenticationMethod) GetValueOk() (*IKEProposalAuthenticationMethodValue, 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 *IKEProposalAuthenticationMethod) SetValue(v IKEProposalAuthenticationMethodValue)`
+
+SetValue sets Value field to given value.
+
+### HasValue
+
+`func (o *IKEProposalAuthenticationMethod) HasValue() bool`
+
+HasValue returns a boolean if a field has been set.
+
+### GetLabel
+
+`func (o *IKEProposalAuthenticationMethod) GetLabel() IKEProposalAuthenticationMethodLabel`
+
+GetLabel returns the Label field if non-nil, zero value otherwise.
+
+### GetLabelOk
+
+`func (o *IKEProposalAuthenticationMethod) GetLabelOk() (*IKEProposalAuthenticationMethodLabel, 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 *IKEProposalAuthenticationMethod) SetLabel(v IKEProposalAuthenticationMethodLabel)`
+
+SetLabel sets Label field to given value.
+
+### HasLabel
+
+`func (o *IKEProposalAuthenticationMethod) 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/IKEProposalAuthenticationMethodLabel.md b/docs/IKEProposalAuthenticationMethodLabel.md
new file mode 100644
index 0000000000..9b3b37e159
--- /dev/null
+++ b/docs/IKEProposalAuthenticationMethodLabel.md
@@ -0,0 +1,17 @@
+# IKEProposalAuthenticationMethodLabel
+
+## Enum
+
+
+* `PRE_SHARED_KEYS` (value: `"Pre-shared keys"`)
+
+* `CERTIFICATES` (value: `"Certificates"`)
+
+* `RSA_SIGNATURES` (value: `"RSA signatures"`)
+
+* `DSA_SIGNATURES` (value: `"DSA signatures"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEProposalAuthenticationMethodValue.md b/docs/IKEProposalAuthenticationMethodValue.md
new file mode 100644
index 0000000000..2401fe5503
--- /dev/null
+++ b/docs/IKEProposalAuthenticationMethodValue.md
@@ -0,0 +1,17 @@
+# IKEProposalAuthenticationMethodValue
+
+## Enum
+
+
+* `PRESHARED_KEYS` (value: `"preshared-keys"`)
+
+* `CERTIFICATES` (value: `"certificates"`)
+
+* `RSA_SIGNATURES` (value: `"rsa-signatures"`)
+
+* `DSA_SIGNATURES` (value: `"dsa-signatures"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEProposalEncryptionAlgorithm.md b/docs/IKEProposalEncryptionAlgorithm.md
new file mode 100644
index 0000000000..4685912944
--- /dev/null
+++ b/docs/IKEProposalEncryptionAlgorithm.md
@@ -0,0 +1,82 @@
+# IKEProposalEncryptionAlgorithm
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Value** | Pointer to [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | | [optional]
+**Label** | Pointer to [**IKEProposalEncryptionAlgorithmLabel**](IKEProposalEncryptionAlgorithmLabel.md) | | [optional]
+
+## Methods
+
+### NewIKEProposalEncryptionAlgorithm
+
+`func NewIKEProposalEncryptionAlgorithm() *IKEProposalEncryptionAlgorithm`
+
+NewIKEProposalEncryptionAlgorithm instantiates a new IKEProposalEncryptionAlgorithm object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIKEProposalEncryptionAlgorithmWithDefaults
+
+`func NewIKEProposalEncryptionAlgorithmWithDefaults() *IKEProposalEncryptionAlgorithm`
+
+NewIKEProposalEncryptionAlgorithmWithDefaults instantiates a new IKEProposalEncryptionAlgorithm object
+This 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 *IKEProposalEncryptionAlgorithm) GetValue() IKEProposalEncryptionAlgorithmValue`
+
+GetValue returns the Value field if non-nil, zero value otherwise.
+
+### GetValueOk
+
+`func (o *IKEProposalEncryptionAlgorithm) GetValueOk() (*IKEProposalEncryptionAlgorithmValue, 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 *IKEProposalEncryptionAlgorithm) SetValue(v IKEProposalEncryptionAlgorithmValue)`
+
+SetValue sets Value field to given value.
+
+### HasValue
+
+`func (o *IKEProposalEncryptionAlgorithm) HasValue() bool`
+
+HasValue returns a boolean if a field has been set.
+
+### GetLabel
+
+`func (o *IKEProposalEncryptionAlgorithm) GetLabel() IKEProposalEncryptionAlgorithmLabel`
+
+GetLabel returns the Label field if non-nil, zero value otherwise.
+
+### GetLabelOk
+
+`func (o *IKEProposalEncryptionAlgorithm) GetLabelOk() (*IKEProposalEncryptionAlgorithmLabel, 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 *IKEProposalEncryptionAlgorithm) SetLabel(v IKEProposalEncryptionAlgorithmLabel)`
+
+SetLabel sets Label field to given value.
+
+### HasLabel
+
+`func (o *IKEProposalEncryptionAlgorithm) 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/IKEProposalEncryptionAlgorithmLabel.md b/docs/IKEProposalEncryptionAlgorithmLabel.md
new file mode 100644
index 0000000000..0b17c40e1b
--- /dev/null
+++ b/docs/IKEProposalEncryptionAlgorithmLabel.md
@@ -0,0 +1,23 @@
+# IKEProposalEncryptionAlgorithmLabel
+
+## Enum
+
+
+* `_128_BIT_AES__CBC` (value: `"128-bit AES (CBC)"`)
+
+* `_128_BIT_AES__GCM` (value: `"128-bit AES (GCM)"`)
+
+* `_192_BIT_AES__CBC` (value: `"192-bit AES (CBC)"`)
+
+* `_192_BIT_AES__GCM` (value: `"192-bit AES (GCM)"`)
+
+* `_256_BIT_AES__CBC` (value: `"256-bit AES (CBC)"`)
+
+* `_256_BIT_AES__GCM` (value: `"256-bit AES (GCM)"`)
+
+* `DES` (value: `"DES"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEProposalEncryptionAlgorithmValue.md b/docs/IKEProposalEncryptionAlgorithmValue.md
new file mode 100644
index 0000000000..321930f9a2
--- /dev/null
+++ b/docs/IKEProposalEncryptionAlgorithmValue.md
@@ -0,0 +1,23 @@
+# IKEProposalEncryptionAlgorithmValue
+
+## Enum
+
+
+* `AES_128_CBC` (value: `"aes-128-cbc"`)
+
+* `AES_128_GCM` (value: `"aes-128-gcm"`)
+
+* `AES_192_CBC` (value: `"aes-192-cbc"`)
+
+* `AES_192_GCM` (value: `"aes-192-gcm"`)
+
+* `AES_256_CBC` (value: `"aes-256-cbc"`)
+
+* `AES_256_GCM` (value: `"aes-256-gcm"`)
+
+* `_3DES_CBC` (value: `"3des-cbc"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEProposalGroup.md b/docs/IKEProposalGroup.md
new file mode 100644
index 0000000000..ec258bb211
--- /dev/null
+++ b/docs/IKEProposalGroup.md
@@ -0,0 +1,82 @@
+# IKEProposalGroup
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Value** | Pointer to [**IKEProposalGroupValue**](IKEProposalGroupValue.md) | | [optional]
+**Label** | Pointer to [**IKEProposalGroupLabel**](IKEProposalGroupLabel.md) | | [optional]
+
+## Methods
+
+### NewIKEProposalGroup
+
+`func NewIKEProposalGroup() *IKEProposalGroup`
+
+NewIKEProposalGroup instantiates a new IKEProposalGroup object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIKEProposalGroupWithDefaults
+
+`func NewIKEProposalGroupWithDefaults() *IKEProposalGroup`
+
+NewIKEProposalGroupWithDefaults instantiates a new IKEProposalGroup object
+This 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 *IKEProposalGroup) GetValue() IKEProposalGroupValue`
+
+GetValue returns the Value field if non-nil, zero value otherwise.
+
+### GetValueOk
+
+`func (o *IKEProposalGroup) GetValueOk() (*IKEProposalGroupValue, 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 *IKEProposalGroup) SetValue(v IKEProposalGroupValue)`
+
+SetValue sets Value field to given value.
+
+### HasValue
+
+`func (o *IKEProposalGroup) HasValue() bool`
+
+HasValue returns a boolean if a field has been set.
+
+### GetLabel
+
+`func (o *IKEProposalGroup) GetLabel() IKEProposalGroupLabel`
+
+GetLabel returns the Label field if non-nil, zero value otherwise.
+
+### GetLabelOk
+
+`func (o *IKEProposalGroup) GetLabelOk() (*IKEProposalGroupLabel, 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 *IKEProposalGroup) SetLabel(v IKEProposalGroupLabel)`
+
+SetLabel sets Label field to given value.
+
+### HasLabel
+
+`func (o *IKEProposalGroup) 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/IKEProposalGroupLabel.md b/docs/IKEProposalGroupLabel.md
new file mode 100644
index 0000000000..278a46a78c
--- /dev/null
+++ b/docs/IKEProposalGroupLabel.md
@@ -0,0 +1,55 @@
+# IKEProposalGroupLabel
+
+## Enum
+
+
+* `_1` (value: `"Group 1"`)
+
+* `_2` (value: `"Group 2"`)
+
+* `_5` (value: `"Group 5"`)
+
+* `_14` (value: `"Group 14"`)
+
+* `_16` (value: `"Group 16"`)
+
+* `_17` (value: `"Group 17"`)
+
+* `_18` (value: `"Group 18"`)
+
+* `_19` (value: `"Group 19"`)
+
+* `_20` (value: `"Group 20"`)
+
+* `_21` (value: `"Group 21"`)
+
+* `_22` (value: `"Group 22"`)
+
+* `_23` (value: `"Group 23"`)
+
+* `_24` (value: `"Group 24"`)
+
+* `_25` (value: `"Group 25"`)
+
+* `_26` (value: `"Group 26"`)
+
+* `_27` (value: `"Group 27"`)
+
+* `_28` (value: `"Group 28"`)
+
+* `_29` (value: `"Group 29"`)
+
+* `_30` (value: `"Group 30"`)
+
+* `_31` (value: `"Group 31"`)
+
+* `_32` (value: `"Group 32"`)
+
+* `_33` (value: `"Group 33"`)
+
+* `_34` (value: `"Group 34"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEProposalGroupValue.md b/docs/IKEProposalGroupValue.md
new file mode 100644
index 0000000000..dc461c7574
--- /dev/null
+++ b/docs/IKEProposalGroupValue.md
@@ -0,0 +1,55 @@
+# IKEProposalGroupValue
+
+## Enum
+
+
+* `_1` (value: `1`)
+
+* `_2` (value: `2`)
+
+* `_5` (value: `5`)
+
+* `_14` (value: `14`)
+
+* `_16` (value: `16`)
+
+* `_17` (value: `17`)
+
+* `_18` (value: `18`)
+
+* `_19` (value: `19`)
+
+* `_20` (value: `20`)
+
+* `_21` (value: `21`)
+
+* `_22` (value: `22`)
+
+* `_23` (value: `23`)
+
+* `_24` (value: `24`)
+
+* `_25` (value: `25`)
+
+* `_26` (value: `26`)
+
+* `_27` (value: `27`)
+
+* `_28` (value: `28`)
+
+* `_29` (value: `29`)
+
+* `_30` (value: `30`)
+
+* `_31` (value: `31`)
+
+* `_32` (value: `32`)
+
+* `_33` (value: `33`)
+
+* `_34` (value: `34`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IKEProposalRequest.md b/docs/IKEProposalRequest.md
new file mode 100644
index 0000000000..d61d24fd8a
--- /dev/null
+++ b/docs/IKEProposalRequest.md
@@ -0,0 +1,275 @@
+# IKEProposalRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**AuthenticationMethod** | [**IKEProposalAuthenticationMethodValue**](IKEProposalAuthenticationMethodValue.md) | |
+**EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | |
+**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | |
+**Group** | [**IKEProposalGroupValue**](IKEProposalGroupValue.md) | |
+**SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewIKEProposalRequest
+
+`func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, group IKEProposalGroupValue, ) *IKEProposalRequest`
+
+NewIKEProposalRequest instantiates a new IKEProposalRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIKEProposalRequestWithDefaults
+
+`func NewIKEProposalRequestWithDefaults() *IKEProposalRequest`
+
+NewIKEProposalRequestWithDefaults instantiates a new IKEProposalRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetName
+
+`func (o *IKEProposalRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *IKEProposalRequest) GetNameOk() (*string, bool)`
+
+GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetName
+
+`func (o *IKEProposalRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *IKEProposalRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *IKEProposalRequest) GetDescriptionOk() (*string, bool)`
+
+GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDescription
+
+`func (o *IKEProposalRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *IKEProposalRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetAuthenticationMethod
+
+`func (o *IKEProposalRequest) GetAuthenticationMethod() IKEProposalAuthenticationMethodValue`
+
+GetAuthenticationMethod returns the AuthenticationMethod field if non-nil, zero value otherwise.
+
+### GetAuthenticationMethodOk
+
+`func (o *IKEProposalRequest) GetAuthenticationMethodOk() (*IKEProposalAuthenticationMethodValue, bool)`
+
+GetAuthenticationMethodOk returns a tuple with the AuthenticationMethod field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAuthenticationMethod
+
+`func (o *IKEProposalRequest) SetAuthenticationMethod(v IKEProposalAuthenticationMethodValue)`
+
+SetAuthenticationMethod sets AuthenticationMethod field to given value.
+
+
+### GetEncryptionAlgorithm
+
+`func (o *IKEProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue`
+
+GetEncryptionAlgorithm returns the EncryptionAlgorithm field if non-nil, zero value otherwise.
+
+### GetEncryptionAlgorithmOk
+
+`func (o *IKEProposalRequest) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithmValue, bool)`
+
+GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEncryptionAlgorithm
+
+`func (o *IKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithmValue)`
+
+SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value.
+
+
+### GetAuthenticationAlgorithm
+
+`func (o *IKEProposalRequest) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithmValue`
+
+GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field if non-nil, zero value otherwise.
+
+### GetAuthenticationAlgorithmOk
+
+`func (o *IKEProposalRequest) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithmValue, bool)`
+
+GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAuthenticationAlgorithm
+
+`func (o *IKEProposalRequest) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithmValue)`
+
+SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value.
+
+
+### GetGroup
+
+`func (o *IKEProposalRequest) GetGroup() IKEProposalGroupValue`
+
+GetGroup returns the Group field if non-nil, zero value otherwise.
+
+### GetGroupOk
+
+`func (o *IKEProposalRequest) GetGroupOk() (*IKEProposalGroupValue, bool)`
+
+GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetGroup
+
+`func (o *IKEProposalRequest) SetGroup(v IKEProposalGroupValue)`
+
+SetGroup sets Group field to given value.
+
+
+### GetSaLifetime
+
+`func (o *IKEProposalRequest) GetSaLifetime() int32`
+
+GetSaLifetime returns the SaLifetime field if non-nil, zero value otherwise.
+
+### GetSaLifetimeOk
+
+`func (o *IKEProposalRequest) GetSaLifetimeOk() (*int32, bool)`
+
+GetSaLifetimeOk returns a tuple with the SaLifetime field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSaLifetime
+
+`func (o *IKEProposalRequest) SetSaLifetime(v int32)`
+
+SetSaLifetime sets SaLifetime field to given value.
+
+### HasSaLifetime
+
+`func (o *IKEProposalRequest) HasSaLifetime() bool`
+
+HasSaLifetime returns a boolean if a field has been set.
+
+### SetSaLifetimeNil
+
+`func (o *IKEProposalRequest) SetSaLifetimeNil(b bool)`
+
+ SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil
+
+### UnsetSaLifetime
+`func (o *IKEProposalRequest) UnsetSaLifetime()`
+
+UnsetSaLifetime ensures that no value is present for SaLifetime, not even an explicit nil
+### GetComments
+
+`func (o *IKEProposalRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *IKEProposalRequest) GetCommentsOk() (*string, bool)`
+
+GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetComments
+
+`func (o *IKEProposalRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *IKEProposalRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *IKEProposalRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *IKEProposalRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+
+GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTags
+
+`func (o *IKEProposalRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *IKEProposalRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *IKEProposalRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *IKEProposalRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+
+GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCustomFields
+
+`func (o *IKEProposalRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *IKEProposalRequest) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IPAddress.md b/docs/IPAddress.md
index 903faf9844..85bfc265bc 100644
--- a/docs/IPAddress.md
+++ b/docs/IPAddress.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
**Role** | Pointer to [**IPAddressRole**](IPAddressRole.md) | | [optional]
**AssignedObjectType** | Pointer to **NullableString** | | [optional]
**AssignedObjectId** | Pointer to **NullableInt64** | | [optional]
-**AssignedObject** | **map[string]interface{}** | | [readonly]
+**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]
@@ -30,7 +30,7 @@ Name | Type | Description | Notes
### NewIPAddress
-`func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, assignedObject map[string]interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime, ) *IPAddress`
+`func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, assignedObject interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime, ) *IPAddress`
NewIPAddress instantiates a new IPAddress object
This constructor will assign default values to properties that have it defined,
@@ -337,20 +337,20 @@ HasAssignedObjectId returns a boolean if a field has been set.
UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil
### GetAssignedObject
-`func (o *IPAddress) GetAssignedObject() map[string]interface{}`
+`func (o *IPAddress) GetAssignedObject() interface{}`
GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise.
### GetAssignedObjectOk
-`func (o *IPAddress) GetAssignedObjectOk() (*map[string]interface{}, bool)`
+`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 map[string]interface{})`
+`func (o *IPAddress) SetAssignedObject(v interface{})`
SetAssignedObject sets AssignedObject field to given value.
diff --git a/docs/IPAddressRequest.md b/docs/IPAddressRequest.md
index 8be2983d1f..1a6cb73252 100644
--- a/docs/IPAddressRequest.md
+++ b/docs/IPAddressRequest.md
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
**Address** | **string** | |
**Vrf** | Pointer to [**NullableNestedVRFRequest**](NestedVRFRequest.md) | | [optional]
**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**Status** | Pointer to **string** | * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC | [optional]
-**Role** | Pointer to **string** | * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP | [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]
@@ -129,20 +129,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
### GetStatus
-`func (o *IPAddressRequest) GetStatus() string`
+`func (o *IPAddressRequest) GetStatus() IPAddressStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *IPAddressRequest) GetStatusOk() (*string, bool)`
+`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 string)`
+`func (o *IPAddressRequest) SetStatus(v IPAddressStatusValue)`
SetStatus sets Status field to given value.
@@ -154,20 +154,20 @@ HasStatus returns a boolean if a field has been set.
### GetRole
-`func (o *IPAddressRequest) GetRole() string`
+`func (o *IPAddressRequest) GetRole() IPAddressRoleValue`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *IPAddressRequest) GetRoleOk() (*string, bool)`
+`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 string)`
+`func (o *IPAddressRequest) SetRole(v IPAddressRoleValue)`
SetRole sets Role field to given value.
diff --git a/docs/IPAddressRole.md b/docs/IPAddressRole.md
index 7056222f2c..a3556e5953 100644
--- a/docs/IPAddressRole.md
+++ b/docs/IPAddressRole.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**IPAddressRoleValue**](IPAddressRoleValue.md) | | [optional]
+**Label** | Pointer to [**IPAddressRoleLabel**](IPAddressRoleLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *IPAddressRole) GetValue() string`
+`func (o *IPAddressRole) GetValue() IPAddressRoleValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *IPAddressRole) GetValueOk() (*string, bool)`
+`func (o *IPAddressRole) GetValueOk() (*IPAddressRoleValue, bool)`
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValue
-`func (o *IPAddressRole) SetValue(v string)`
+`func (o *IPAddressRole) SetValue(v IPAddressRoleValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *IPAddressRole) GetLabel() string`
+`func (o *IPAddressRole) GetLabel() IPAddressRoleLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *IPAddressRole) GetLabelOk() (*string, bool)`
+`func (o *IPAddressRole) GetLabelOk() (*IPAddressRoleLabel, bool)`
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLabel
-`func (o *IPAddressRole) SetLabel(v string)`
+`func (o *IPAddressRole) SetLabel(v IPAddressRoleLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/IPAddressRoleLabel.md b/docs/IPAddressRoleLabel.md
new file mode 100644
index 0000000000..57453cb719
--- /dev/null
+++ b/docs/IPAddressRoleLabel.md
@@ -0,0 +1,25 @@
+# IPAddressRoleLabel
+
+## Enum
+
+
+* `LOOPBACK` (value: `"Loopback"`)
+
+* `SECONDARY` (value: `"Secondary"`)
+
+* `ANYCAST` (value: `"Anycast"`)
+
+* `VIP` (value: `"VIP"`)
+
+* `VRRP` (value: `"VRRP"`)
+
+* `HSRP` (value: `"HSRP"`)
+
+* `GLBP` (value: `"GLBP"`)
+
+* `CARP` (value: `"CARP"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IPAddressRoleValue.md b/docs/IPAddressRoleValue.md
new file mode 100644
index 0000000000..fe031504fc
--- /dev/null
+++ b/docs/IPAddressRoleValue.md
@@ -0,0 +1,27 @@
+# IPAddressRoleValue
+
+## Enum
+
+
+* `LOOPBACK` (value: `"loopback"`)
+
+* `SECONDARY` (value: `"secondary"`)
+
+* `ANYCAST` (value: `"anycast"`)
+
+* `VIP` (value: `"vip"`)
+
+* `VRRP` (value: `"vrrp"`)
+
+* `HSRP` (value: `"hsrp"`)
+
+* `GLBP` (value: `"glbp"`)
+
+* `CARP` (value: `"carp"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IPAddressStatus.md b/docs/IPAddressStatus.md
index a5102a13a4..961c2b0d10 100644
--- a/docs/IPAddressStatus.md
+++ b/docs/IPAddressStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**IPAddressStatusValue**](IPAddressStatusValue.md) | | [optional]
+**Label** | Pointer to [**IPAddressStatusLabel**](IPAddressStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *IPAddressStatus) GetValue() string`
+`func (o *IPAddressStatus) GetValue() IPAddressStatusValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *IPAddressStatus) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *IPAddressStatus) SetValue(v IPAddressStatusValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *IPAddressStatus) GetLabel() string`
+`func (o *IPAddressStatus) GetLabel() IPAddressStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *IPAddressStatus) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *IPAddressStatus) SetLabel(v IPAddressStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/IPAddressStatusLabel.md b/docs/IPAddressStatusLabel.md
new file mode 100644
index 0000000000..85c0415725
--- /dev/null
+++ b/docs/IPAddressStatusLabel.md
@@ -0,0 +1,19 @@
+# IPAddressStatusLabel
+
+## Enum
+
+
+* `ACTIVE` (value: `"Active"`)
+
+* `RESERVED` (value: `"Reserved"`)
+
+* `DEPRECATED` (value: `"Deprecated"`)
+
+* `DHCP` (value: `"DHCP"`)
+
+* `SLAAC` (value: `"SLAAC"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IPAddressStatusValue.md b/docs/IPAddressStatusValue.md
new file mode 100644
index 0000000000..8794985a82
--- /dev/null
+++ b/docs/IPAddressStatusValue.md
@@ -0,0 +1,19 @@
+# IPAddressStatusValue
+
+## Enum
+
+
+* `ACTIVE` (value: `"active"`)
+
+* `RESERVED` (value: `"reserved"`)
+
+* `DEPRECATED` (value: `"deprecated"`)
+
+* `DHCP` (value: `"dhcp"`)
+
+* `SLAAC` (value: `"slaac"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IPRangeRequest.md b/docs/IPRangeRequest.md
index a6510e9482..635db4df7d 100644
--- a/docs/IPRangeRequest.md
+++ b/docs/IPRangeRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**EndAddress** | **string** | |
**Vrf** | Pointer to [**NullableNestedVRFRequest**](NestedVRFRequest.md) | | [optional]
**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**Status** | Pointer to **string** | * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | [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]
@@ -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
### GetStatus
-`func (o *IPRangeRequest) GetStatus() string`
+`func (o *IPRangeRequest) GetStatus() IPRangeStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *IPRangeRequest) GetStatusOk() (*string, bool)`
+`func (o *IPRangeRequest) 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 *IPRangeRequest) SetStatus(v string)`
+`func (o *IPRangeRequest) SetStatus(v IPRangeStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/IPRangeStatus.md b/docs/IPRangeStatus.md
index 9b7135eaef..0b567e13e1 100644
--- a/docs/IPRangeStatus.md
+++ b/docs/IPRangeStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**IPRangeStatusValue**](IPRangeStatusValue.md) | | [optional]
+**Label** | Pointer to [**IPRangeStatusLabel**](IPRangeStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *IPRangeStatus) GetValue() string`
+`func (o *IPRangeStatus) GetValue() IPRangeStatusValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *IPRangeStatus) GetValueOk() (*string, bool)`
+`func (o *IPRangeStatus) GetValueOk() (*IPRangeStatusValue, 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 *IPRangeStatus) SetValue(v string)`
+`func (o *IPRangeStatus) SetValue(v IPRangeStatusValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *IPRangeStatus) GetLabel() string`
+`func (o *IPRangeStatus) GetLabel() IPRangeStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *IPRangeStatus) GetLabelOk() (*string, bool)`
+`func (o *IPRangeStatus) GetLabelOk() (*IPRangeStatusLabel, 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 *IPRangeStatus) SetLabel(v string)`
+`func (o *IPRangeStatus) SetLabel(v IPRangeStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/IPRangeStatusLabel.md b/docs/IPRangeStatusLabel.md
new file mode 100644
index 0000000000..4a47b7fafb
--- /dev/null
+++ b/docs/IPRangeStatusLabel.md
@@ -0,0 +1,15 @@
+# IPRangeStatusLabel
+
+## Enum
+
+
+* `ACTIVE` (value: `"Active"`)
+
+* `RESERVED` (value: `"Reserved"`)
+
+* `DEPRECATED` (value: `"Deprecated"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IPRangeStatusValue.md b/docs/IPRangeStatusValue.md
new file mode 100644
index 0000000000..02acf25d03
--- /dev/null
+++ b/docs/IPRangeStatusValue.md
@@ -0,0 +1,15 @@
+# IPRangeStatusValue
+
+## Enum
+
+
+* `ACTIVE` (value: `"active"`)
+
+* `RESERVED` (value: `"reserved"`)
+
+* `DEPRECATED` (value: `"deprecated"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IPSecPolicy.md b/docs/IPSecPolicy.md
new file mode 100644
index 0000000000..29be8ccd3c
--- /dev/null
+++ b/docs/IPSecPolicy.md
@@ -0,0 +1,332 @@
+# IPSecPolicy
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **int32** | | [readonly]
+**Url** | **string** | | [readonly]
+**Display** | **string** | | [readonly]
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Proposals** | Pointer to **[]int32** | | [optional]
+**PfsGroup** | Pointer to [**IKEProposalGroup**](IKEProposalGroup.md) | | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+**Created** | **NullableTime** | | [readonly]
+**LastUpdated** | **NullableTime** | | [readonly]
+
+## Methods
+
+### NewIPSecPolicy
+
+`func NewIPSecPolicy(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *IPSecPolicy`
+
+NewIPSecPolicy instantiates a new IPSecPolicy object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIPSecPolicyWithDefaults
+
+`func NewIPSecPolicyWithDefaults() *IPSecPolicy`
+
+NewIPSecPolicyWithDefaults instantiates a new IPSecPolicy object
+This 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 *IPSecPolicy) GetId() int32`
+
+GetId returns the Id field if non-nil, zero value otherwise.
+
+### GetIdOk
+
+`func (o *IPSecPolicy) 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 *IPSecPolicy) SetId(v int32)`
+
+SetId sets Id field to given value.
+
+
+### GetUrl
+
+`func (o *IPSecPolicy) GetUrl() string`
+
+GetUrl returns the Url field if non-nil, zero value otherwise.
+
+### GetUrlOk
+
+`func (o *IPSecPolicy) 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 *IPSecPolicy) SetUrl(v string)`
+
+SetUrl sets Url field to given value.
+
+
+### GetDisplay
+
+`func (o *IPSecPolicy) GetDisplay() string`
+
+GetDisplay returns the Display field if non-nil, zero value otherwise.
+
+### GetDisplayOk
+
+`func (o *IPSecPolicy) 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 *IPSecPolicy) SetDisplay(v string)`
+
+SetDisplay sets Display field to given value.
+
+
+### GetName
+
+`func (o *IPSecPolicy) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *IPSecPolicy) 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 *IPSecPolicy) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *IPSecPolicy) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *IPSecPolicy) 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 *IPSecPolicy) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *IPSecPolicy) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetProposals
+
+`func (o *IPSecPolicy) GetProposals() []int32`
+
+GetProposals returns the Proposals field if non-nil, zero value otherwise.
+
+### GetProposalsOk
+
+`func (o *IPSecPolicy) GetProposalsOk() (*[]int32, bool)`
+
+GetProposalsOk returns a tuple with the Proposals field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetProposals
+
+`func (o *IPSecPolicy) SetProposals(v []int32)`
+
+SetProposals sets Proposals field to given value.
+
+### HasProposals
+
+`func (o *IPSecPolicy) HasProposals() bool`
+
+HasProposals returns a boolean if a field has been set.
+
+### GetPfsGroup
+
+`func (o *IPSecPolicy) GetPfsGroup() IKEProposalGroup`
+
+GetPfsGroup returns the PfsGroup field if non-nil, zero value otherwise.
+
+### GetPfsGroupOk
+
+`func (o *IPSecPolicy) GetPfsGroupOk() (*IKEProposalGroup, bool)`
+
+GetPfsGroupOk returns a tuple with the PfsGroup field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPfsGroup
+
+`func (o *IPSecPolicy) SetPfsGroup(v IKEProposalGroup)`
+
+SetPfsGroup sets PfsGroup field to given value.
+
+### HasPfsGroup
+
+`func (o *IPSecPolicy) HasPfsGroup() bool`
+
+HasPfsGroup returns a boolean if a field has been set.
+
+### GetComments
+
+`func (o *IPSecPolicy) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *IPSecPolicy) 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 *IPSecPolicy) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *IPSecPolicy) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *IPSecPolicy) GetTags() []NestedTag`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *IPSecPolicy) 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 *IPSecPolicy) SetTags(v []NestedTag)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *IPSecPolicy) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *IPSecPolicy) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *IPSecPolicy) 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 *IPSecPolicy) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *IPSecPolicy) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+### GetCreated
+
+`func (o *IPSecPolicy) GetCreated() time.Time`
+
+GetCreated returns the Created field if non-nil, zero value otherwise.
+
+### GetCreatedOk
+
+`func (o *IPSecPolicy) 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 *IPSecPolicy) SetCreated(v time.Time)`
+
+SetCreated sets Created field to given value.
+
+
+### SetCreatedNil
+
+`func (o *IPSecPolicy) SetCreatedNil(b bool)`
+
+ SetCreatedNil sets the value for Created to be an explicit nil
+
+### UnsetCreated
+`func (o *IPSecPolicy) UnsetCreated()`
+
+UnsetCreated ensures that no value is present for Created, not even an explicit nil
+### GetLastUpdated
+
+`func (o *IPSecPolicy) GetLastUpdated() time.Time`
+
+GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
+
+### GetLastUpdatedOk
+
+`func (o *IPSecPolicy) 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 *IPSecPolicy) SetLastUpdated(v time.Time)`
+
+SetLastUpdated sets LastUpdated field to given value.
+
+
+### SetLastUpdatedNil
+
+`func (o *IPSecPolicy) SetLastUpdatedNil(b bool)`
+
+ SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
+
+### UnsetLastUpdated
+`func (o *IPSecPolicy) 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/IPSecPolicyRequest.md b/docs/IPSecPolicyRequest.md
new file mode 100644
index 0000000000..fc80ce630f
--- /dev/null
+++ b/docs/IPSecPolicyRequest.md
@@ -0,0 +1,207 @@
+# IPSecPolicyRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Proposals** | Pointer to **[]int32** | | [optional]
+**PfsGroup** | Pointer to [**IKEProposalGroupValue**](IKEProposalGroupValue.md) | | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewIPSecPolicyRequest
+
+`func NewIPSecPolicyRequest(name string, ) *IPSecPolicyRequest`
+
+NewIPSecPolicyRequest instantiates a new IPSecPolicyRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIPSecPolicyRequestWithDefaults
+
+`func NewIPSecPolicyRequestWithDefaults() *IPSecPolicyRequest`
+
+NewIPSecPolicyRequestWithDefaults instantiates a new IPSecPolicyRequest object
+This 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 *IPSecPolicyRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *IPSecPolicyRequest) 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 *IPSecPolicyRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *IPSecPolicyRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *IPSecPolicyRequest) 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 *IPSecPolicyRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *IPSecPolicyRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetProposals
+
+`func (o *IPSecPolicyRequest) GetProposals() []int32`
+
+GetProposals returns the Proposals field if non-nil, zero value otherwise.
+
+### GetProposalsOk
+
+`func (o *IPSecPolicyRequest) GetProposalsOk() (*[]int32, bool)`
+
+GetProposalsOk returns a tuple with the Proposals field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetProposals
+
+`func (o *IPSecPolicyRequest) SetProposals(v []int32)`
+
+SetProposals sets Proposals field to given value.
+
+### HasProposals
+
+`func (o *IPSecPolicyRequest) HasProposals() bool`
+
+HasProposals returns a boolean if a field has been set.
+
+### GetPfsGroup
+
+`func (o *IPSecPolicyRequest) GetPfsGroup() IKEProposalGroupValue`
+
+GetPfsGroup returns the PfsGroup field if non-nil, zero value otherwise.
+
+### GetPfsGroupOk
+
+`func (o *IPSecPolicyRequest) GetPfsGroupOk() (*IKEProposalGroupValue, bool)`
+
+GetPfsGroupOk returns a tuple with the PfsGroup field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPfsGroup
+
+`func (o *IPSecPolicyRequest) SetPfsGroup(v IKEProposalGroupValue)`
+
+SetPfsGroup sets PfsGroup field to given value.
+
+### HasPfsGroup
+
+`func (o *IPSecPolicyRequest) HasPfsGroup() bool`
+
+HasPfsGroup returns a boolean if a field has been set.
+
+### GetComments
+
+`func (o *IPSecPolicyRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *IPSecPolicyRequest) 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 *IPSecPolicyRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *IPSecPolicyRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *IPSecPolicyRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *IPSecPolicyRequest) 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 *IPSecPolicyRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *IPSecPolicyRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *IPSecPolicyRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *IPSecPolicyRequest) 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 *IPSecPolicyRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *IPSecPolicyRequest) 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/IPSecProfile.md b/docs/IPSecProfile.md
new file mode 100644
index 0000000000..0bc1ad7366
--- /dev/null
+++ b/docs/IPSecProfile.md
@@ -0,0 +1,343 @@
+# IPSecProfile
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **int32** | | [readonly]
+**Url** | **string** | | [readonly]
+**Display** | **string** | | [readonly]
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Mode** | [**IPSecProfileMode**](IPSecProfileMode.md) | |
+**IkePolicy** | [**NestedIKEPolicy**](NestedIKEPolicy.md) | |
+**IpsecPolicy** | [**NestedIPSecPolicy**](NestedIPSecPolicy.md) | |
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+**Created** | **NullableTime** | | [readonly]
+**LastUpdated** | **NullableTime** | | [readonly]
+
+## Methods
+
+### NewIPSecProfile
+
+`func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy NestedIKEPolicy, ipsecPolicy NestedIPSecPolicy, created NullableTime, lastUpdated NullableTime, ) *IPSecProfile`
+
+NewIPSecProfile instantiates a new IPSecProfile object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIPSecProfileWithDefaults
+
+`func NewIPSecProfileWithDefaults() *IPSecProfile`
+
+NewIPSecProfileWithDefaults instantiates a new IPSecProfile object
+This 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 *IPSecProfile) GetId() int32`
+
+GetId returns the Id field if non-nil, zero value otherwise.
+
+### GetIdOk
+
+`func (o *IPSecProfile) 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 *IPSecProfile) SetId(v int32)`
+
+SetId sets Id field to given value.
+
+
+### GetUrl
+
+`func (o *IPSecProfile) GetUrl() string`
+
+GetUrl returns the Url field if non-nil, zero value otherwise.
+
+### GetUrlOk
+
+`func (o *IPSecProfile) 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 *IPSecProfile) SetUrl(v string)`
+
+SetUrl sets Url field to given value.
+
+
+### GetDisplay
+
+`func (o *IPSecProfile) GetDisplay() string`
+
+GetDisplay returns the Display field if non-nil, zero value otherwise.
+
+### GetDisplayOk
+
+`func (o *IPSecProfile) 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 *IPSecProfile) SetDisplay(v string)`
+
+SetDisplay sets Display field to given value.
+
+
+### GetName
+
+`func (o *IPSecProfile) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *IPSecProfile) 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 *IPSecProfile) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *IPSecProfile) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *IPSecProfile) 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 *IPSecProfile) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *IPSecProfile) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetMode
+
+`func (o *IPSecProfile) GetMode() IPSecProfileMode`
+
+GetMode returns the Mode field if non-nil, zero value otherwise.
+
+### GetModeOk
+
+`func (o *IPSecProfile) GetModeOk() (*IPSecProfileMode, bool)`
+
+GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetMode
+
+`func (o *IPSecProfile) SetMode(v IPSecProfileMode)`
+
+SetMode sets Mode field to given value.
+
+
+### GetIkePolicy
+
+`func (o *IPSecProfile) GetIkePolicy() NestedIKEPolicy`
+
+GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise.
+
+### GetIkePolicyOk
+
+`func (o *IPSecProfile) GetIkePolicyOk() (*NestedIKEPolicy, 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)`
+
+SetIkePolicy sets IkePolicy field to given value.
+
+
+### GetIpsecPolicy
+
+`func (o *IPSecProfile) GetIpsecPolicy() NestedIPSecPolicy`
+
+GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise.
+
+### GetIpsecPolicyOk
+
+`func (o *IPSecProfile) GetIpsecPolicyOk() (*NestedIPSecPolicy, 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)`
+
+SetIpsecPolicy sets IpsecPolicy field to given value.
+
+
+### GetComments
+
+`func (o *IPSecProfile) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *IPSecProfile) 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 *IPSecProfile) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *IPSecProfile) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *IPSecProfile) GetTags() []NestedTag`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *IPSecProfile) 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 *IPSecProfile) SetTags(v []NestedTag)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *IPSecProfile) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *IPSecProfile) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *IPSecProfile) 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 *IPSecProfile) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *IPSecProfile) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+### GetCreated
+
+`func (o *IPSecProfile) GetCreated() time.Time`
+
+GetCreated returns the Created field if non-nil, zero value otherwise.
+
+### GetCreatedOk
+
+`func (o *IPSecProfile) 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 *IPSecProfile) SetCreated(v time.Time)`
+
+SetCreated sets Created field to given value.
+
+
+### SetCreatedNil
+
+`func (o *IPSecProfile) SetCreatedNil(b bool)`
+
+ SetCreatedNil sets the value for Created to be an explicit nil
+
+### UnsetCreated
+`func (o *IPSecProfile) UnsetCreated()`
+
+UnsetCreated ensures that no value is present for Created, not even an explicit nil
+### GetLastUpdated
+
+`func (o *IPSecProfile) GetLastUpdated() time.Time`
+
+GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
+
+### GetLastUpdatedOk
+
+`func (o *IPSecProfile) 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 *IPSecProfile) SetLastUpdated(v time.Time)`
+
+SetLastUpdated sets LastUpdated field to given value.
+
+
+### SetLastUpdatedNil
+
+`func (o *IPSecProfile) SetLastUpdatedNil(b bool)`
+
+ SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
+
+### UnsetLastUpdated
+`func (o *IPSecProfile) 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/IPSecProfileMode.md b/docs/IPSecProfileMode.md
new file mode 100644
index 0000000000..d7a86a6b81
--- /dev/null
+++ b/docs/IPSecProfileMode.md
@@ -0,0 +1,82 @@
+# IPSecProfileMode
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Value** | Pointer to [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | [optional]
+**Label** | Pointer to [**IPSecProfileModeLabel**](IPSecProfileModeLabel.md) | | [optional]
+
+## Methods
+
+### NewIPSecProfileMode
+
+`func NewIPSecProfileMode() *IPSecProfileMode`
+
+NewIPSecProfileMode instantiates a new IPSecProfileMode object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIPSecProfileModeWithDefaults
+
+`func NewIPSecProfileModeWithDefaults() *IPSecProfileMode`
+
+NewIPSecProfileModeWithDefaults instantiates a new IPSecProfileMode object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetValue
+
+`func (o *IPSecProfileMode) GetValue() IPSecProfileModeValue`
+
+GetValue returns the Value field if non-nil, zero value otherwise.
+
+### GetValueOk
+
+`func (o *IPSecProfileMode) GetValueOk() (*IPSecProfileModeValue, bool)`
+
+GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetValue
+
+`func (o *IPSecProfileMode) SetValue(v IPSecProfileModeValue)`
+
+SetValue sets Value field to given value.
+
+### HasValue
+
+`func (o *IPSecProfileMode) HasValue() bool`
+
+HasValue returns a boolean if a field has been set.
+
+### GetLabel
+
+`func (o *IPSecProfileMode) GetLabel() IPSecProfileModeLabel`
+
+GetLabel returns the Label field if non-nil, zero value otherwise.
+
+### GetLabelOk
+
+`func (o *IPSecProfileMode) GetLabelOk() (*IPSecProfileModeLabel, bool)`
+
+GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLabel
+
+`func (o *IPSecProfileMode) SetLabel(v IPSecProfileModeLabel)`
+
+SetLabel sets Label field to given value.
+
+### HasLabel
+
+`func (o *IPSecProfileMode) HasLabel() bool`
+
+HasLabel returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IPSecProfileModeLabel.md b/docs/IPSecProfileModeLabel.md
new file mode 100644
index 0000000000..98230af218
--- /dev/null
+++ b/docs/IPSecProfileModeLabel.md
@@ -0,0 +1,13 @@
+# IPSecProfileModeLabel
+
+## Enum
+
+
+* `ESP` (value: `"ESP"`)
+
+* `AH` (value: `"AH"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IPSecProfileModeValue.md b/docs/IPSecProfileModeValue.md
new file mode 100644
index 0000000000..f182a35ca2
--- /dev/null
+++ b/docs/IPSecProfileModeValue.md
@@ -0,0 +1,13 @@
+# IPSecProfileModeValue
+
+## Enum
+
+
+* `ESP` (value: `"esp"`)
+
+* `AH` (value: `"ah"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IPSecProfileRequest.md b/docs/IPSecProfileRequest.md
new file mode 100644
index 0000000000..8557843901
--- /dev/null
+++ b/docs/IPSecProfileRequest.md
@@ -0,0 +1,218 @@
+# IPSecProfileRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Mode** | [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | |
+**IkePolicy** | [**NestedIKEPolicyRequest**](NestedIKEPolicyRequest.md) | |
+**IpsecPolicy** | [**NestedIPSecPolicyRequest**](NestedIPSecPolicyRequest.md) | |
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewIPSecProfileRequest
+
+`func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy NestedIKEPolicyRequest, ipsecPolicy NestedIPSecPolicyRequest, ) *IPSecProfileRequest`
+
+NewIPSecProfileRequest instantiates a new IPSecProfileRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIPSecProfileRequestWithDefaults
+
+`func NewIPSecProfileRequestWithDefaults() *IPSecProfileRequest`
+
+NewIPSecProfileRequestWithDefaults instantiates a new IPSecProfileRequest object
+This 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 *IPSecProfileRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *IPSecProfileRequest) 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 *IPSecProfileRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *IPSecProfileRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *IPSecProfileRequest) 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 *IPSecProfileRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *IPSecProfileRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetMode
+
+`func (o *IPSecProfileRequest) GetMode() IPSecProfileModeValue`
+
+GetMode returns the Mode field if non-nil, zero value otherwise.
+
+### GetModeOk
+
+`func (o *IPSecProfileRequest) GetModeOk() (*IPSecProfileModeValue, bool)`
+
+GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetMode
+
+`func (o *IPSecProfileRequest) SetMode(v IPSecProfileModeValue)`
+
+SetMode sets Mode field to given value.
+
+
+### GetIkePolicy
+
+`func (o *IPSecProfileRequest) GetIkePolicy() NestedIKEPolicyRequest`
+
+GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise.
+
+### GetIkePolicyOk
+
+`func (o *IPSecProfileRequest) GetIkePolicyOk() (*NestedIKEPolicyRequest, 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)`
+
+SetIkePolicy sets IkePolicy field to given value.
+
+
+### GetIpsecPolicy
+
+`func (o *IPSecProfileRequest) GetIpsecPolicy() NestedIPSecPolicyRequest`
+
+GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise.
+
+### GetIpsecPolicyOk
+
+`func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*NestedIPSecPolicyRequest, 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)`
+
+SetIpsecPolicy sets IpsecPolicy field to given value.
+
+
+### GetComments
+
+`func (o *IPSecProfileRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *IPSecProfileRequest) 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 *IPSecProfileRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *IPSecProfileRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *IPSecProfileRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *IPSecProfileRequest) 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 *IPSecProfileRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *IPSecProfileRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *IPSecProfileRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *IPSecProfileRequest) 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 *IPSecProfileRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *IPSecProfileRequest) 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/IPSecProposal.md b/docs/IPSecProposal.md
new file mode 100644
index 0000000000..6664ca6a23
--- /dev/null
+++ b/docs/IPSecProposal.md
@@ -0,0 +1,394 @@
+# IPSecProposal
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **int32** | | [readonly]
+**Url** | **string** | | [readonly]
+**Display** | **string** | | [readonly]
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithm**](IKEProposalEncryptionAlgorithm.md) | |
+**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | |
+**SaLifetimeSeconds** | Pointer to **NullableInt32** | Security association lifetime (seconds) | [optional]
+**SaLifetimeData** | Pointer to **NullableInt32** | Security association lifetime (in kilobytes) | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+**Created** | **NullableTime** | | [readonly]
+**LastUpdated** | **NullableTime** | | [readonly]
+
+## Methods
+
+### NewIPSecProposal
+
+`func NewIPSecProposal(id int32, url string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime, ) *IPSecProposal`
+
+NewIPSecProposal instantiates a new IPSecProposal object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIPSecProposalWithDefaults
+
+`func NewIPSecProposalWithDefaults() *IPSecProposal`
+
+NewIPSecProposalWithDefaults instantiates a new IPSecProposal object
+This 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 *IPSecProposal) GetId() int32`
+
+GetId returns the Id field if non-nil, zero value otherwise.
+
+### GetIdOk
+
+`func (o *IPSecProposal) 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 *IPSecProposal) SetId(v int32)`
+
+SetId sets Id field to given value.
+
+
+### GetUrl
+
+`func (o *IPSecProposal) GetUrl() string`
+
+GetUrl returns the Url field if non-nil, zero value otherwise.
+
+### GetUrlOk
+
+`func (o *IPSecProposal) 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 *IPSecProposal) SetUrl(v string)`
+
+SetUrl sets Url field to given value.
+
+
+### GetDisplay
+
+`func (o *IPSecProposal) GetDisplay() string`
+
+GetDisplay returns the Display field if non-nil, zero value otherwise.
+
+### GetDisplayOk
+
+`func (o *IPSecProposal) 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 *IPSecProposal) SetDisplay(v string)`
+
+SetDisplay sets Display field to given value.
+
+
+### GetName
+
+`func (o *IPSecProposal) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *IPSecProposal) 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 *IPSecProposal) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *IPSecProposal) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *IPSecProposal) 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 *IPSecProposal) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *IPSecProposal) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetEncryptionAlgorithm
+
+`func (o *IPSecProposal) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithm`
+
+GetEncryptionAlgorithm returns the EncryptionAlgorithm field if non-nil, zero value otherwise.
+
+### GetEncryptionAlgorithmOk
+
+`func (o *IPSecProposal) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithm, bool)`
+
+GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEncryptionAlgorithm
+
+`func (o *IPSecProposal) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithm)`
+
+SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value.
+
+
+### GetAuthenticationAlgorithm
+
+`func (o *IPSecProposal) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithm`
+
+GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field if non-nil, zero value otherwise.
+
+### GetAuthenticationAlgorithmOk
+
+`func (o *IPSecProposal) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithm, bool)`
+
+GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAuthenticationAlgorithm
+
+`func (o *IPSecProposal) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithm)`
+
+SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value.
+
+
+### GetSaLifetimeSeconds
+
+`func (o *IPSecProposal) GetSaLifetimeSeconds() int32`
+
+GetSaLifetimeSeconds returns the SaLifetimeSeconds field if non-nil, zero value otherwise.
+
+### GetSaLifetimeSecondsOk
+
+`func (o *IPSecProposal) GetSaLifetimeSecondsOk() (*int32, bool)`
+
+GetSaLifetimeSecondsOk returns a tuple with the SaLifetimeSeconds field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSaLifetimeSeconds
+
+`func (o *IPSecProposal) SetSaLifetimeSeconds(v int32)`
+
+SetSaLifetimeSeconds sets SaLifetimeSeconds field to given value.
+
+### HasSaLifetimeSeconds
+
+`func (o *IPSecProposal) HasSaLifetimeSeconds() bool`
+
+HasSaLifetimeSeconds returns a boolean if a field has been set.
+
+### SetSaLifetimeSecondsNil
+
+`func (o *IPSecProposal) SetSaLifetimeSecondsNil(b bool)`
+
+ SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil
+
+### UnsetSaLifetimeSeconds
+`func (o *IPSecProposal) UnsetSaLifetimeSeconds()`
+
+UnsetSaLifetimeSeconds ensures that no value is present for SaLifetimeSeconds, not even an explicit nil
+### GetSaLifetimeData
+
+`func (o *IPSecProposal) GetSaLifetimeData() int32`
+
+GetSaLifetimeData returns the SaLifetimeData field if non-nil, zero value otherwise.
+
+### GetSaLifetimeDataOk
+
+`func (o *IPSecProposal) GetSaLifetimeDataOk() (*int32, bool)`
+
+GetSaLifetimeDataOk returns a tuple with the SaLifetimeData field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSaLifetimeData
+
+`func (o *IPSecProposal) SetSaLifetimeData(v int32)`
+
+SetSaLifetimeData sets SaLifetimeData field to given value.
+
+### HasSaLifetimeData
+
+`func (o *IPSecProposal) HasSaLifetimeData() bool`
+
+HasSaLifetimeData returns a boolean if a field has been set.
+
+### SetSaLifetimeDataNil
+
+`func (o *IPSecProposal) SetSaLifetimeDataNil(b bool)`
+
+ SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil
+
+### UnsetSaLifetimeData
+`func (o *IPSecProposal) UnsetSaLifetimeData()`
+
+UnsetSaLifetimeData ensures that no value is present for SaLifetimeData, not even an explicit nil
+### GetComments
+
+`func (o *IPSecProposal) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *IPSecProposal) 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 *IPSecProposal) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *IPSecProposal) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *IPSecProposal) GetTags() []NestedTag`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *IPSecProposal) 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 *IPSecProposal) SetTags(v []NestedTag)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *IPSecProposal) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *IPSecProposal) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *IPSecProposal) 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 *IPSecProposal) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *IPSecProposal) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+### GetCreated
+
+`func (o *IPSecProposal) GetCreated() time.Time`
+
+GetCreated returns the Created field if non-nil, zero value otherwise.
+
+### GetCreatedOk
+
+`func (o *IPSecProposal) 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 *IPSecProposal) SetCreated(v time.Time)`
+
+SetCreated sets Created field to given value.
+
+
+### SetCreatedNil
+
+`func (o *IPSecProposal) SetCreatedNil(b bool)`
+
+ SetCreatedNil sets the value for Created to be an explicit nil
+
+### UnsetCreated
+`func (o *IPSecProposal) UnsetCreated()`
+
+UnsetCreated ensures that no value is present for Created, not even an explicit nil
+### GetLastUpdated
+
+`func (o *IPSecProposal) GetLastUpdated() time.Time`
+
+GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
+
+### GetLastUpdatedOk
+
+`func (o *IPSecProposal) 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 *IPSecProposal) SetLastUpdated(v time.Time)`
+
+SetLastUpdated sets LastUpdated field to given value.
+
+
+### SetLastUpdatedNil
+
+`func (o *IPSecProposal) SetLastUpdatedNil(b bool)`
+
+ SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
+
+### UnsetLastUpdated
+`func (o *IPSecProposal) 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/IPSecProposalRequest.md b/docs/IPSecProposalRequest.md
new file mode 100644
index 0000000000..b32e9687a6
--- /dev/null
+++ b/docs/IPSecProposalRequest.md
@@ -0,0 +1,269 @@
+# IPSecProposalRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | |
+**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | |
+**SaLifetimeSeconds** | Pointer to **NullableInt32** | Security association lifetime (seconds) | [optional]
+**SaLifetimeData** | Pointer to **NullableInt32** | Security association lifetime (in kilobytes) | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewIPSecProposalRequest
+
+`func NewIPSecProposalRequest(name string, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, ) *IPSecProposalRequest`
+
+NewIPSecProposalRequest instantiates a new IPSecProposalRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewIPSecProposalRequestWithDefaults
+
+`func NewIPSecProposalRequestWithDefaults() *IPSecProposalRequest`
+
+NewIPSecProposalRequestWithDefaults instantiates a new IPSecProposalRequest object
+This 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 *IPSecProposalRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *IPSecProposalRequest) 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 *IPSecProposalRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *IPSecProposalRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *IPSecProposalRequest) 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 *IPSecProposalRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *IPSecProposalRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetEncryptionAlgorithm
+
+`func (o *IPSecProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue`
+
+GetEncryptionAlgorithm returns the EncryptionAlgorithm field if non-nil, zero value otherwise.
+
+### GetEncryptionAlgorithmOk
+
+`func (o *IPSecProposalRequest) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithmValue, bool)`
+
+GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEncryptionAlgorithm
+
+`func (o *IPSecProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithmValue)`
+
+SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value.
+
+
+### GetAuthenticationAlgorithm
+
+`func (o *IPSecProposalRequest) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithmValue`
+
+GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field if non-nil, zero value otherwise.
+
+### GetAuthenticationAlgorithmOk
+
+`func (o *IPSecProposalRequest) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithmValue, bool)`
+
+GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAuthenticationAlgorithm
+
+`func (o *IPSecProposalRequest) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithmValue)`
+
+SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value.
+
+
+### GetSaLifetimeSeconds
+
+`func (o *IPSecProposalRequest) GetSaLifetimeSeconds() int32`
+
+GetSaLifetimeSeconds returns the SaLifetimeSeconds field if non-nil, zero value otherwise.
+
+### GetSaLifetimeSecondsOk
+
+`func (o *IPSecProposalRequest) GetSaLifetimeSecondsOk() (*int32, bool)`
+
+GetSaLifetimeSecondsOk returns a tuple with the SaLifetimeSeconds field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSaLifetimeSeconds
+
+`func (o *IPSecProposalRequest) SetSaLifetimeSeconds(v int32)`
+
+SetSaLifetimeSeconds sets SaLifetimeSeconds field to given value.
+
+### HasSaLifetimeSeconds
+
+`func (o *IPSecProposalRequest) HasSaLifetimeSeconds() bool`
+
+HasSaLifetimeSeconds returns a boolean if a field has been set.
+
+### SetSaLifetimeSecondsNil
+
+`func (o *IPSecProposalRequest) SetSaLifetimeSecondsNil(b bool)`
+
+ SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil
+
+### UnsetSaLifetimeSeconds
+`func (o *IPSecProposalRequest) UnsetSaLifetimeSeconds()`
+
+UnsetSaLifetimeSeconds ensures that no value is present for SaLifetimeSeconds, not even an explicit nil
+### GetSaLifetimeData
+
+`func (o *IPSecProposalRequest) GetSaLifetimeData() int32`
+
+GetSaLifetimeData returns the SaLifetimeData field if non-nil, zero value otherwise.
+
+### GetSaLifetimeDataOk
+
+`func (o *IPSecProposalRequest) GetSaLifetimeDataOk() (*int32, bool)`
+
+GetSaLifetimeDataOk returns a tuple with the SaLifetimeData field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSaLifetimeData
+
+`func (o *IPSecProposalRequest) SetSaLifetimeData(v int32)`
+
+SetSaLifetimeData sets SaLifetimeData field to given value.
+
+### HasSaLifetimeData
+
+`func (o *IPSecProposalRequest) HasSaLifetimeData() bool`
+
+HasSaLifetimeData returns a boolean if a field has been set.
+
+### SetSaLifetimeDataNil
+
+`func (o *IPSecProposalRequest) SetSaLifetimeDataNil(b bool)`
+
+ SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil
+
+### UnsetSaLifetimeData
+`func (o *IPSecProposalRequest) UnsetSaLifetimeData()`
+
+UnsetSaLifetimeData ensures that no value is present for SaLifetimeData, not even an explicit nil
+### GetComments
+
+`func (o *IPSecProposalRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *IPSecProposalRequest) 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 *IPSecProposalRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *IPSecProposalRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *IPSecProposalRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *IPSecProposalRequest) 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 *IPSecProposalRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *IPSecProposalRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *IPSecProposalRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *IPSecProposalRequest) 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 *IPSecProposalRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *IPSecProposalRequest) 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/ImageAttachment.md b/docs/ImageAttachment.md
index 872efb7a9b..d3d66b7efb 100644
--- a/docs/ImageAttachment.md
+++ b/docs/ImageAttachment.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**ContentType** | **string** | |
**ObjectId** | **int64** | |
-**Parent** | **map[string]interface{}** | | [readonly]
+**Parent** | **interface{}** | | [readonly]
**Name** | Pointer to **string** | | [optional]
**Image** | **string** | |
**ImageHeight** | **int32** | |
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
### NewImageAttachment
-`func NewImageAttachment(id int32, url string, display string, contentType string, objectId int64, parent map[string]interface{}, image string, imageHeight int32, imageWidth int32, created NullableTime, lastUpdated NullableTime, ) *ImageAttachment`
+`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`
NewImageAttachment instantiates a new ImageAttachment object
This constructor will assign default values to properties that have it defined,
@@ -138,20 +138,20 @@ SetObjectId sets ObjectId field to given value.
### GetParent
-`func (o *ImageAttachment) GetParent() map[string]interface{}`
+`func (o *ImageAttachment) GetParent() interface{}`
GetParent returns the Parent field if non-nil, zero value otherwise.
### GetParentOk
-`func (o *ImageAttachment) GetParentOk() (*map[string]interface{}, bool)`
+`func (o *ImageAttachment) GetParentOk() (*interface{}, 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 *ImageAttachment) SetParent(v map[string]interface{})`
+`func (o *ImageAttachment) SetParent(v interface{})`
SetParent sets Parent field to given value.
diff --git a/docs/InterfaceDuplex.md b/docs/InterfaceDuplex.md
index ddc9e4f585..6ce177ec9c 100644
--- a/docs/InterfaceDuplex.md
+++ b/docs/InterfaceDuplex.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `half` - Half * `full` - Full * `auto` - Auto | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**InterfaceDuplexValue**](InterfaceDuplexValue.md) | | [optional]
+**Label** | Pointer to [**InterfaceDuplexLabel**](InterfaceDuplexLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *InterfaceDuplex) GetValue() string`
+`func (o *InterfaceDuplex) GetValue() InterfaceDuplexValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *InterfaceDuplex) GetValueOk() (*string, bool)`
+`func (o *InterfaceDuplex) GetValueOk() (*InterfaceDuplexValue, bool)`
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValue
-`func (o *InterfaceDuplex) SetValue(v string)`
+`func (o *InterfaceDuplex) SetValue(v InterfaceDuplexValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *InterfaceDuplex) GetLabel() string`
+`func (o *InterfaceDuplex) GetLabel() InterfaceDuplexLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *InterfaceDuplex) GetLabelOk() (*string, bool)`
+`func (o *InterfaceDuplex) GetLabelOk() (*InterfaceDuplexLabel, bool)`
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLabel
-`func (o *InterfaceDuplex) SetLabel(v string)`
+`func (o *InterfaceDuplex) SetLabel(v InterfaceDuplexLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/InterfaceDuplexLabel.md b/docs/InterfaceDuplexLabel.md
new file mode 100644
index 0000000000..1e762ac92c
--- /dev/null
+++ b/docs/InterfaceDuplexLabel.md
@@ -0,0 +1,15 @@
+# InterfaceDuplexLabel
+
+## Enum
+
+
+* `HALF` (value: `"Half"`)
+
+* `FULL` (value: `"Full"`)
+
+* `AUTO` (value: `"Auto"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InterfaceDuplexValue.md b/docs/InterfaceDuplexValue.md
new file mode 100644
index 0000000000..f5ad805d14
--- /dev/null
+++ b/docs/InterfaceDuplexValue.md
@@ -0,0 +1,17 @@
+# InterfaceDuplexValue
+
+## Enum
+
+
+* `HALF` (value: `"half"`)
+
+* `FULL` (value: `"full"`)
+
+* `AUTO` (value: `"auto"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InterfaceMode.md b/docs/InterfaceMode.md
index e32a336ef7..1c539dbb50 100644
--- a/docs/InterfaceMode.md
+++ b/docs/InterfaceMode.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**InterfaceModeValue**](InterfaceModeValue.md) | | [optional]
+**Label** | Pointer to [**InterfaceModeLabel**](InterfaceModeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *InterfaceMode) GetValue() string`
+`func (o *InterfaceMode) GetValue() InterfaceModeValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *InterfaceMode) GetValueOk() (*string, bool)`
+`func (o *InterfaceMode) GetValueOk() (*InterfaceModeValue, 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 *InterfaceMode) SetValue(v string)`
+`func (o *InterfaceMode) SetValue(v InterfaceModeValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *InterfaceMode) GetLabel() string`
+`func (o *InterfaceMode) GetLabel() InterfaceModeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *InterfaceMode) GetLabelOk() (*string, bool)`
+`func (o *InterfaceMode) GetLabelOk() (*InterfaceModeLabel, 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 *InterfaceMode) SetLabel(v string)`
+`func (o *InterfaceMode) SetLabel(v InterfaceModeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/InterfaceModeLabel.md b/docs/InterfaceModeLabel.md
new file mode 100644
index 0000000000..ebacbf5d7b
--- /dev/null
+++ b/docs/InterfaceModeLabel.md
@@ -0,0 +1,15 @@
+# InterfaceModeLabel
+
+## 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/InterfaceModeValue.md b/docs/InterfaceModeValue.md
new file mode 100644
index 0000000000..9a41444a04
--- /dev/null
+++ b/docs/InterfaceModeValue.md
@@ -0,0 +1,17 @@
+# InterfaceModeValue
+
+## Enum
+
+
+* `ACCESS` (value: `"access"`)
+
+* `TAGGED` (value: `"tagged"`)
+
+* `TAGGED_ALL` (value: `"tagged-all"`)
+
+* `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/InterfacePoeMode.md b/docs/InterfacePoeMode.md
index 7329ec627c..965aa561ec 100644
--- a/docs/InterfacePoeMode.md
+++ b/docs/InterfacePoeMode.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `pd` - PD * `pse` - PSE | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional]
+**Label** | Pointer to [**InterfacePoeModeLabel**](InterfacePoeModeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *InterfacePoeMode) GetValue() string`
+`func (o *InterfacePoeMode) GetValue() InterfacePoeModeValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *InterfacePoeMode) GetValueOk() (*string, bool)`
+`func (o *InterfacePoeMode) GetValueOk() (*InterfacePoeModeValue, bool)`
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValue
-`func (o *InterfacePoeMode) SetValue(v string)`
+`func (o *InterfacePoeMode) SetValue(v InterfacePoeModeValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *InterfacePoeMode) GetLabel() string`
+`func (o *InterfacePoeMode) GetLabel() InterfacePoeModeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *InterfacePoeMode) GetLabelOk() (*string, bool)`
+`func (o *InterfacePoeMode) GetLabelOk() (*InterfacePoeModeLabel, bool)`
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLabel
-`func (o *InterfacePoeMode) SetLabel(v string)`
+`func (o *InterfacePoeMode) SetLabel(v InterfacePoeModeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/InterfacePoeModeLabel.md b/docs/InterfacePoeModeLabel.md
new file mode 100644
index 0000000000..4a242acc7a
--- /dev/null
+++ b/docs/InterfacePoeModeLabel.md
@@ -0,0 +1,13 @@
+# InterfacePoeModeLabel
+
+## Enum
+
+
+* `PD` (value: `"PD"`)
+
+* `PSE` (value: `"PSE"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InterfacePoeModeValue.md b/docs/InterfacePoeModeValue.md
new file mode 100644
index 0000000000..1423422ad3
--- /dev/null
+++ b/docs/InterfacePoeModeValue.md
@@ -0,0 +1,15 @@
+# InterfacePoeModeValue
+
+## Enum
+
+
+* `PD` (value: `"pd"`)
+
+* `PSE` (value: `"pse"`)
+
+* `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/InterfacePoeType.md b/docs/InterfacePoeType.md
index 1ed6265a07..67a90a6c98 100644
--- a/docs/InterfacePoeType.md
+++ b/docs/InterfacePoeType.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional]
+**Label** | Pointer to [**InterfacePoeTypeLabel**](InterfacePoeTypeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *InterfacePoeType) GetValue() string`
+`func (o *InterfacePoeType) GetValue() InterfacePoeTypeValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *InterfacePoeType) GetValueOk() (*string, bool)`
+`func (o *InterfacePoeType) GetValueOk() (*InterfacePoeTypeValue, 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 *InterfacePoeType) SetValue(v string)`
+`func (o *InterfacePoeType) SetValue(v InterfacePoeTypeValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *InterfacePoeType) GetLabel() string`
+`func (o *InterfacePoeType) GetLabel() InterfacePoeTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *InterfacePoeType) GetLabelOk() (*string, bool)`
+`func (o *InterfacePoeType) GetLabelOk() (*InterfacePoeTypeLabel, 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 *InterfacePoeType) SetLabel(v string)`
+`func (o *InterfacePoeType) SetLabel(v InterfacePoeTypeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/InterfacePoeTypeLabel.md b/docs/InterfacePoeTypeLabel.md
new file mode 100644
index 0000000000..154b167eb6
--- /dev/null
+++ b/docs/InterfacePoeTypeLabel.md
@@ -0,0 +1,25 @@
+# InterfacePoeTypeLabel
+
+## Enum
+
+
+* `_802_3AF__TYPE_1` (value: `"802.3af (Type 1)"`)
+
+* `_802_3AT__TYPE_2` (value: `"802.3at (Type 2)"`)
+
+* `_802_3BT__TYPE_3` (value: `"802.3bt (Type 3)"`)
+
+* `_802_3BT__TYPE_4` (value: `"802.3bt (Type 4)"`)
+
+* `PASSIVE_24_V__2_PAIR` (value: `"Passive 24V (2-pair)"`)
+
+* `PASSIVE_24_V__4_PAIR` (value: `"Passive 24V (4-pair)"`)
+
+* `PASSIVE_48_V__2_PAIR` (value: `"Passive 48V (2-pair)"`)
+
+* `PASSIVE_48_V__4_PAIR` (value: `"Passive 48V (4-pair)"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InterfacePoeTypeValue.md b/docs/InterfacePoeTypeValue.md
new file mode 100644
index 0000000000..09f84f1af3
--- /dev/null
+++ b/docs/InterfacePoeTypeValue.md
@@ -0,0 +1,27 @@
+# InterfacePoeTypeValue
+
+## Enum
+
+
+* `TYPE1_IEEE802_3AF` (value: `"type1-ieee802.3af"`)
+
+* `TYPE2_IEEE802_3AT` (value: `"type2-ieee802.3at"`)
+
+* `TYPE3_IEEE802_3BT` (value: `"type3-ieee802.3bt"`)
+
+* `TYPE4_IEEE802_3BT` (value: `"type4-ieee802.3bt"`)
+
+* `PASSIVE_24V_2PAIR` (value: `"passive-24v-2pair"`)
+
+* `PASSIVE_24V_4PAIR` (value: `"passive-24v-4pair"`)
+
+* `PASSIVE_48V_2PAIR` (value: `"passive-48v-2pair"`)
+
+* `PASSIVE_48V_4PAIR` (value: `"passive-48v-4pair"`)
+
+* `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/InterfaceRequest.md b/docs/InterfaceRequest.md
index 3941142903..a5293437c2 100644
--- a/docs/InterfaceRequest.md
+++ b/docs/InterfaceRequest.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other |
+**Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | |
**Enabled** | Pointer to **bool** | | [optional]
**Parent** | Pointer to [**NullableNestedInterfaceRequest**](NestedInterfaceRequest.md) | | [optional]
**Bridge** | Pointer to [**NullableNestedInterfaceRequest**](NestedInterfaceRequest.md) | | [optional]
@@ -17,15 +17,15 @@ Name | Type | Description | Notes
**Mtu** | Pointer to **NullableInt32** | | [optional]
**MacAddress** | Pointer to **NullableString** | | [optional]
**Speed** | Pointer to **NullableInt32** | | [optional]
-**Duplex** | Pointer to **NullableString** | * `half` - Half * `full` - Full * `auto` - Auto | [optional]
+**Duplex** | Pointer to [**NullableInterfaceRequestDuplex**](InterfaceRequestDuplex.md) | | [optional]
**Wwn** | Pointer to **NullableString** | | [optional]
**MgmtOnly** | Pointer to **bool** | This interface is used only for out-of-band management | [optional]
**Description** | Pointer to **string** | | [optional]
-**Mode** | Pointer to **string** | * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | [optional]
-**RfRole** | Pointer to **string** | * `ap` - Access point * `station` - Station | [optional]
-**RfChannel** | Pointer to **string** | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) | [optional]
-**PoeMode** | Pointer to **string** | * `pd` - PD * `pse` - PSE | [optional]
-**PoeType** | Pointer to **string** | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | [optional]
+**Mode** | Pointer to [**InterfaceModeValue**](InterfaceModeValue.md) | | [optional]
+**RfRole** | Pointer to [**InterfaceRfRoleValue**](InterfaceRfRoleValue.md) | | [optional]
+**RfChannel** | Pointer to [**InterfaceRfChannelValue**](InterfaceRfChannelValue.md) | | [optional]
+**PoeMode** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional]
+**PoeType** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional]
**RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional]
**RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional]
**TxPower** | Pointer to **NullableInt32** | | [optional]
@@ -41,7 +41,7 @@ Name | Type | Description | Notes
### NewInterfaceRequest
-`func NewInterfaceRequest(device NestedDeviceRequest, name string, type_ string, ) *InterfaceRequest`
+`func NewInterfaceRequest(device NestedDeviceRequest, name string, type_ InterfaceTypeValue, ) *InterfaceRequest`
NewInterfaceRequest instantiates a new InterfaceRequest object
This constructor will assign default values to properties that have it defined,
@@ -183,20 +183,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *InterfaceRequest) GetType() string`
+`func (o *InterfaceRequest) GetType() InterfaceTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *InterfaceRequest) GetTypeOk() (*string, bool)`
+`func (o *InterfaceRequest) GetTypeOk() (*InterfaceTypeValue, 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 *InterfaceRequest) SetType(v string)`
+`func (o *InterfaceRequest) SetType(v InterfaceTypeValue)`
SetType sets Type field to given value.
@@ -438,20 +438,20 @@ HasSpeed returns a boolean if a field has been set.
UnsetSpeed ensures that no value is present for Speed, not even an explicit nil
### GetDuplex
-`func (o *InterfaceRequest) GetDuplex() string`
+`func (o *InterfaceRequest) GetDuplex() InterfaceRequestDuplex`
GetDuplex returns the Duplex field if non-nil, zero value otherwise.
### GetDuplexOk
-`func (o *InterfaceRequest) GetDuplexOk() (*string, bool)`
+`func (o *InterfaceRequest) GetDuplexOk() (*InterfaceRequestDuplex, bool)`
GetDuplexOk returns a tuple with the Duplex field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDuplex
-`func (o *InterfaceRequest) SetDuplex(v string)`
+`func (o *InterfaceRequest) SetDuplex(v InterfaceRequestDuplex)`
SetDuplex sets Duplex field to given value.
@@ -558,20 +558,20 @@ HasDescription returns a boolean if a field has been set.
### GetMode
-`func (o *InterfaceRequest) GetMode() string`
+`func (o *InterfaceRequest) GetMode() InterfaceModeValue`
GetMode returns the Mode field if non-nil, zero value otherwise.
### GetModeOk
-`func (o *InterfaceRequest) GetModeOk() (*string, bool)`
+`func (o *InterfaceRequest) GetModeOk() (*InterfaceModeValue, bool)`
GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMode
-`func (o *InterfaceRequest) SetMode(v string)`
+`func (o *InterfaceRequest) SetMode(v InterfaceModeValue)`
SetMode sets Mode field to given value.
@@ -583,20 +583,20 @@ HasMode returns a boolean if a field has been set.
### GetRfRole
-`func (o *InterfaceRequest) GetRfRole() string`
+`func (o *InterfaceRequest) GetRfRole() InterfaceRfRoleValue`
GetRfRole returns the RfRole field if non-nil, zero value otherwise.
### GetRfRoleOk
-`func (o *InterfaceRequest) GetRfRoleOk() (*string, bool)`
+`func (o *InterfaceRequest) GetRfRoleOk() (*InterfaceRfRoleValue, bool)`
GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRfRole
-`func (o *InterfaceRequest) SetRfRole(v string)`
+`func (o *InterfaceRequest) SetRfRole(v InterfaceRfRoleValue)`
SetRfRole sets RfRole field to given value.
@@ -608,20 +608,20 @@ HasRfRole returns a boolean if a field has been set.
### GetRfChannel
-`func (o *InterfaceRequest) GetRfChannel() string`
+`func (o *InterfaceRequest) GetRfChannel() InterfaceRfChannelValue`
GetRfChannel returns the RfChannel field if non-nil, zero value otherwise.
### GetRfChannelOk
-`func (o *InterfaceRequest) GetRfChannelOk() (*string, bool)`
+`func (o *InterfaceRequest) GetRfChannelOk() (*InterfaceRfChannelValue, bool)`
GetRfChannelOk returns a tuple with the RfChannel field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRfChannel
-`func (o *InterfaceRequest) SetRfChannel(v string)`
+`func (o *InterfaceRequest) SetRfChannel(v InterfaceRfChannelValue)`
SetRfChannel sets RfChannel field to given value.
@@ -633,20 +633,20 @@ HasRfChannel returns a boolean if a field has been set.
### GetPoeMode
-`func (o *InterfaceRequest) GetPoeMode() string`
+`func (o *InterfaceRequest) GetPoeMode() InterfacePoeModeValue`
GetPoeMode returns the PoeMode field if non-nil, zero value otherwise.
### GetPoeModeOk
-`func (o *InterfaceRequest) GetPoeModeOk() (*string, bool)`
+`func (o *InterfaceRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool)`
GetPoeModeOk returns a tuple with the PoeMode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPoeMode
-`func (o *InterfaceRequest) SetPoeMode(v string)`
+`func (o *InterfaceRequest) SetPoeMode(v InterfacePoeModeValue)`
SetPoeMode sets PoeMode field to given value.
@@ -658,20 +658,20 @@ HasPoeMode returns a boolean if a field has been set.
### GetPoeType
-`func (o *InterfaceRequest) GetPoeType() string`
+`func (o *InterfaceRequest) GetPoeType() InterfacePoeTypeValue`
GetPoeType returns the PoeType field if non-nil, zero value otherwise.
### GetPoeTypeOk
-`func (o *InterfaceRequest) GetPoeTypeOk() (*string, bool)`
+`func (o *InterfaceRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool)`
GetPoeTypeOk returns a tuple with the PoeType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPoeType
-`func (o *InterfaceRequest) SetPoeType(v string)`
+`func (o *InterfaceRequest) SetPoeType(v InterfacePoeTypeValue)`
SetPoeType sets PoeType field to given value.
diff --git a/docs/InterfaceRequestDuplex.md b/docs/InterfaceRequestDuplex.md
new file mode 100644
index 0000000000..73dfae4513
--- /dev/null
+++ b/docs/InterfaceRequestDuplex.md
@@ -0,0 +1,17 @@
+# InterfaceRequestDuplex
+
+## Enum
+
+
+* `HALF` (value: `"half"`)
+
+* `FULL` (value: `"full"`)
+
+* `AUTO` (value: `"auto"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InterfaceRfChannel.md b/docs/InterfaceRfChannel.md
index f183227b96..d26d3f5c6d 100644
--- a/docs/InterfaceRfChannel.md
+++ b/docs/InterfaceRfChannel.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**InterfaceRfChannelValue**](InterfaceRfChannelValue.md) | | [optional]
+**Label** | Pointer to [**InterfaceRfChannelLabel**](InterfaceRfChannelLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *InterfaceRfChannel) GetValue() string`
+`func (o *InterfaceRfChannel) GetValue() InterfaceRfChannelValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *InterfaceRfChannel) GetValueOk() (*string, bool)`
+`func (o *InterfaceRfChannel) GetValueOk() (*InterfaceRfChannelValue, 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 *InterfaceRfChannel) SetValue(v string)`
+`func (o *InterfaceRfChannel) SetValue(v InterfaceRfChannelValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *InterfaceRfChannel) GetLabel() string`
+`func (o *InterfaceRfChannel) GetLabel() InterfaceRfChannelLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *InterfaceRfChannel) GetLabelOk() (*string, bool)`
+`func (o *InterfaceRfChannel) GetLabelOk() (*InterfaceRfChannelLabel, 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 *InterfaceRfChannel) SetLabel(v string)`
+`func (o *InterfaceRfChannel) SetLabel(v InterfaceRfChannelLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/InterfaceRfChannelLabel.md b/docs/InterfaceRfChannelLabel.md
new file mode 100644
index 0000000000..f7a937b73d
--- /dev/null
+++ b/docs/InterfaceRfChannelLabel.md
@@ -0,0 +1,403 @@
+# InterfaceRfChannelLabel
+
+## Enum
+
+
+* `_1__2412_MHZ` (value: `"1 (2412 MHz)"`)
+
+* `_2__2417_MHZ` (value: `"2 (2417 MHz)"`)
+
+* `_3__2422_MHZ` (value: `"3 (2422 MHz)"`)
+
+* `_4__2427_MHZ` (value: `"4 (2427 MHz)"`)
+
+* `_5__2432_MHZ` (value: `"5 (2432 MHz)"`)
+
+* `_6__2437_MHZ` (value: `"6 (2437 MHz)"`)
+
+* `_7__2442_MHZ` (value: `"7 (2442 MHz)"`)
+
+* `_8__2447_MHZ` (value: `"8 (2447 MHz)"`)
+
+* `_9__2452_MHZ` (value: `"9 (2452 MHz)"`)
+
+* `_10__2457_MHZ` (value: `"10 (2457 MHz)"`)
+
+* `_11__2462_MHZ` (value: `"11 (2462 MHz)"`)
+
+* `_12__2467_MHZ` (value: `"12 (2467 MHz)"`)
+
+* `_13__2472_MHZ` (value: `"13 (2472 MHz)"`)
+
+* `_32__5160_20_MHZ` (value: `"32 (5160/20 MHz)"`)
+
+* `_34__5170_40_MHZ` (value: `"34 (5170/40 MHz)"`)
+
+* `_36__5180_20_MHZ` (value: `"36 (5180/20 MHz)"`)
+
+* `_38__5190_40_MHZ` (value: `"38 (5190/40 MHz)"`)
+
+* `_40__5200_20_MHZ` (value: `"40 (5200/20 MHz)"`)
+
+* `_42__5210_80_MHZ` (value: `"42 (5210/80 MHz)"`)
+
+* `_44__5220_20_MHZ` (value: `"44 (5220/20 MHz)"`)
+
+* `_46__5230_40_MHZ` (value: `"46 (5230/40 MHz)"`)
+
+* `_48__5240_20_MHZ` (value: `"48 (5240/20 MHz)"`)
+
+* `_50__5250_160_MHZ` (value: `"50 (5250/160 MHz)"`)
+
+* `_52__5260_20_MHZ` (value: `"52 (5260/20 MHz)"`)
+
+* `_54__5270_40_MHZ` (value: `"54 (5270/40 MHz)"`)
+
+* `_56__5280_20_MHZ` (value: `"56 (5280/20 MHz)"`)
+
+* `_58__5290_80_MHZ` (value: `"58 (5290/80 MHz)"`)
+
+* `_60__5300_20_MHZ` (value: `"60 (5300/20 MHz)"`)
+
+* `_62__5310_40_MHZ` (value: `"62 (5310/40 MHz)"`)
+
+* `_64__5320_20_MHZ` (value: `"64 (5320/20 MHz)"`)
+
+* `_100__5500_20_MHZ` (value: `"100 (5500/20 MHz)"`)
+
+* `_102__5510_40_MHZ` (value: `"102 (5510/40 MHz)"`)
+
+* `_104__5520_20_MHZ` (value: `"104 (5520/20 MHz)"`)
+
+* `_106__5530_80_MHZ` (value: `"106 (5530/80 MHz)"`)
+
+* `_108__5540_20_MHZ` (value: `"108 (5540/20 MHz)"`)
+
+* `_110__5550_40_MHZ` (value: `"110 (5550/40 MHz)"`)
+
+* `_112__5560_20_MHZ` (value: `"112 (5560/20 MHz)"`)
+
+* `_114__5570_160_MHZ` (value: `"114 (5570/160 MHz)"`)
+
+* `_116__5580_20_MHZ` (value: `"116 (5580/20 MHz)"`)
+
+* `_118__5590_40_MHZ` (value: `"118 (5590/40 MHz)"`)
+
+* `_120__5600_20_MHZ` (value: `"120 (5600/20 MHz)"`)
+
+* `_122__5610_80_MHZ` (value: `"122 (5610/80 MHz)"`)
+
+* `_124__5620_20_MHZ` (value: `"124 (5620/20 MHz)"`)
+
+* `_126__5630_40_MHZ` (value: `"126 (5630/40 MHz)"`)
+
+* `_128__5640_20_MHZ` (value: `"128 (5640/20 MHz)"`)
+
+* `_132__5660_20_MHZ` (value: `"132 (5660/20 MHz)"`)
+
+* `_134__5670_40_MHZ` (value: `"134 (5670/40 MHz)"`)
+
+* `_136__5680_20_MHZ` (value: `"136 (5680/20 MHz)"`)
+
+* `_138__5690_80_MHZ` (value: `"138 (5690/80 MHz)"`)
+
+* `_140__5700_20_MHZ` (value: `"140 (5700/20 MHz)"`)
+
+* `_142__5710_40_MHZ` (value: `"142 (5710/40 MHz)"`)
+
+* `_144__5720_20_MHZ` (value: `"144 (5720/20 MHz)"`)
+
+* `_149__5745_20_MHZ` (value: `"149 (5745/20 MHz)"`)
+
+* `_151__5755_40_MHZ` (value: `"151 (5755/40 MHz)"`)
+
+* `_153__5765_20_MHZ` (value: `"153 (5765/20 MHz)"`)
+
+* `_155__5775_80_MHZ` (value: `"155 (5775/80 MHz)"`)
+
+* `_157__5785_20_MHZ` (value: `"157 (5785/20 MHz)"`)
+
+* `_159__5795_40_MHZ` (value: `"159 (5795/40 MHz)"`)
+
+* `_161__5805_20_MHZ` (value: `"161 (5805/20 MHz)"`)
+
+* `_163__5815_160_MHZ` (value: `"163 (5815/160 MHz)"`)
+
+* `_165__5825_20_MHZ` (value: `"165 (5825/20 MHz)"`)
+
+* `_167__5835_40_MHZ` (value: `"167 (5835/40 MHz)"`)
+
+* `_169__5845_20_MHZ` (value: `"169 (5845/20 MHz)"`)
+
+* `_171__5855_80_MHZ` (value: `"171 (5855/80 MHz)"`)
+
+* `_173__5865_20_MHZ` (value: `"173 (5865/20 MHz)"`)
+
+* `_175__5875_40_MHZ` (value: `"175 (5875/40 MHz)"`)
+
+* `_177__5885_20_MHZ` (value: `"177 (5885/20 MHz)"`)
+
+* `_1__5955_20_MHZ` (value: `"1 (5955/20 MHz)"`)
+
+* `_3__5965_40_MHZ` (value: `"3 (5965/40 MHz)"`)
+
+* `_5__5975_20_MHZ` (value: `"5 (5975/20 MHz)"`)
+
+* `_7__5985_80_MHZ` (value: `"7 (5985/80 MHz)"`)
+
+* `_9__5995_20_MHZ` (value: `"9 (5995/20 MHz)"`)
+
+* `_11__6005_40_MHZ` (value: `"11 (6005/40 MHz)"`)
+
+* `_13__6015_20_MHZ` (value: `"13 (6015/20 MHz)"`)
+
+* `_15__6025_160_MHZ` (value: `"15 (6025/160 MHz)"`)
+
+* `_17__6035_20_MHZ` (value: `"17 (6035/20 MHz)"`)
+
+* `_19__6045_40_MHZ` (value: `"19 (6045/40 MHz)"`)
+
+* `_21__6055_20_MHZ` (value: `"21 (6055/20 MHz)"`)
+
+* `_23__6065_80_MHZ` (value: `"23 (6065/80 MHz)"`)
+
+* `_25__6075_20_MHZ` (value: `"25 (6075/20 MHz)"`)
+
+* `_27__6085_40_MHZ` (value: `"27 (6085/40 MHz)"`)
+
+* `_29__6095_20_MHZ` (value: `"29 (6095/20 MHz)"`)
+
+* `_31__6105_320_MHZ` (value: `"31 (6105/320 MHz)"`)
+
+* `_33__6115_20_MHZ` (value: `"33 (6115/20 MHz)"`)
+
+* `_35__6125_40_MHZ` (value: `"35 (6125/40 MHz)"`)
+
+* `_37__6135_20_MHZ` (value: `"37 (6135/20 MHz)"`)
+
+* `_39__6145_80_MHZ` (value: `"39 (6145/80 MHz)"`)
+
+* `_41__6155_20_MHZ` (value: `"41 (6155/20 MHz)"`)
+
+* `_43__6165_40_MHZ` (value: `"43 (6165/40 MHz)"`)
+
+* `_45__6175_20_MHZ` (value: `"45 (6175/20 MHz)"`)
+
+* `_47__6185_160_MHZ` (value: `"47 (6185/160 MHz)"`)
+
+* `_49__6195_20_MHZ` (value: `"49 (6195/20 MHz)"`)
+
+* `_51__6205_40_MHZ` (value: `"51 (6205/40 MHz)"`)
+
+* `_53__6215_20_MHZ` (value: `"53 (6215/20 MHz)"`)
+
+* `_55__6225_80_MHZ` (value: `"55 (6225/80 MHz)"`)
+
+* `_57__6235_20_MHZ` (value: `"57 (6235/20 MHz)"`)
+
+* `_59__6245_40_MHZ` (value: `"59 (6245/40 MHz)"`)
+
+* `_61__6255_20_MHZ` (value: `"61 (6255/20 MHz)"`)
+
+* `_65__6275_20_MHZ` (value: `"65 (6275/20 MHz)"`)
+
+* `_67__6285_40_MHZ` (value: `"67 (6285/40 MHz)"`)
+
+* `_69__6295_20_MHZ` (value: `"69 (6295/20 MHz)"`)
+
+* `_71__6305_80_MHZ` (value: `"71 (6305/80 MHz)"`)
+
+* `_73__6315_20_MHZ` (value: `"73 (6315/20 MHz)"`)
+
+* `_75__6325_40_MHZ` (value: `"75 (6325/40 MHz)"`)
+
+* `_77__6335_20_MHZ` (value: `"77 (6335/20 MHz)"`)
+
+* `_79__6345_160_MHZ` (value: `"79 (6345/160 MHz)"`)
+
+* `_81__6355_20_MHZ` (value: `"81 (6355/20 MHz)"`)
+
+* `_83__6365_40_MHZ` (value: `"83 (6365/40 MHz)"`)
+
+* `_85__6375_20_MHZ` (value: `"85 (6375/20 MHz)"`)
+
+* `_87__6385_80_MHZ` (value: `"87 (6385/80 MHz)"`)
+
+* `_89__6395_20_MHZ` (value: `"89 (6395/20 MHz)"`)
+
+* `_91__6405_40_MHZ` (value: `"91 (6405/40 MHz)"`)
+
+* `_93__6415_20_MHZ` (value: `"93 (6415/20 MHz)"`)
+
+* `_95__6425_320_MHZ` (value: `"95 (6425/320 MHz)"`)
+
+* `_97__6435_20_MHZ` (value: `"97 (6435/20 MHz)"`)
+
+* `_99__6445_40_MHZ` (value: `"99 (6445/40 MHz)"`)
+
+* `_101__6455_20_MHZ` (value: `"101 (6455/20 MHz)"`)
+
+* `_103__6465_80_MHZ` (value: `"103 (6465/80 MHz)"`)
+
+* `_105__6475_20_MHZ` (value: `"105 (6475/20 MHz)"`)
+
+* `_107__6485_40_MHZ` (value: `"107 (6485/40 MHz)"`)
+
+* `_109__6495_20_MHZ` (value: `"109 (6495/20 MHz)"`)
+
+* `_111__6505_160_MHZ` (value: `"111 (6505/160 MHz)"`)
+
+* `_113__6515_20_MHZ` (value: `"113 (6515/20 MHz)"`)
+
+* `_115__6525_40_MHZ` (value: `"115 (6525/40 MHz)"`)
+
+* `_117__6535_20_MHZ` (value: `"117 (6535/20 MHz)"`)
+
+* `_119__6545_80_MHZ` (value: `"119 (6545/80 MHz)"`)
+
+* `_121__6555_20_MHZ` (value: `"121 (6555/20 MHz)"`)
+
+* `_123__6565_40_MHZ` (value: `"123 (6565/40 MHz)"`)
+
+* `_125__6575_20_MHZ` (value: `"125 (6575/20 MHz)"`)
+
+* `_129__6595_20_MHZ` (value: `"129 (6595/20 MHz)"`)
+
+* `_131__6605_40_MHZ` (value: `"131 (6605/40 MHz)"`)
+
+* `_133__6615_20_MHZ` (value: `"133 (6615/20 MHz)"`)
+
+* `_135__6625_80_MHZ` (value: `"135 (6625/80 MHz)"`)
+
+* `_137__6635_20_MHZ` (value: `"137 (6635/20 MHz)"`)
+
+* `_139__6645_40_MHZ` (value: `"139 (6645/40 MHz)"`)
+
+* `_141__6655_20_MHZ` (value: `"141 (6655/20 MHz)"`)
+
+* `_143__6665_160_MHZ` (value: `"143 (6665/160 MHz)"`)
+
+* `_145__6675_20_MHZ` (value: `"145 (6675/20 MHz)"`)
+
+* `_147__6685_40_MHZ` (value: `"147 (6685/40 MHz)"`)
+
+* `_149__6695_20_MHZ` (value: `"149 (6695/20 MHz)"`)
+
+* `_151__6705_80_MHZ` (value: `"151 (6705/80 MHz)"`)
+
+* `_153__6715_20_MHZ` (value: `"153 (6715/20 MHz)"`)
+
+* `_155__6725_40_MHZ` (value: `"155 (6725/40 MHz)"`)
+
+* `_157__6735_20_MHZ` (value: `"157 (6735/20 MHz)"`)
+
+* `_159__6745_320_MHZ` (value: `"159 (6745/320 MHz)"`)
+
+* `_161__6755_20_MHZ` (value: `"161 (6755/20 MHz)"`)
+
+* `_163__6765_40_MHZ` (value: `"163 (6765/40 MHz)"`)
+
+* `_165__6775_20_MHZ` (value: `"165 (6775/20 MHz)"`)
+
+* `_167__6785_80_MHZ` (value: `"167 (6785/80 MHz)"`)
+
+* `_169__6795_20_MHZ` (value: `"169 (6795/20 MHz)"`)
+
+* `_171__6805_40_MHZ` (value: `"171 (6805/40 MHz)"`)
+
+* `_173__6815_20_MHZ` (value: `"173 (6815/20 MHz)"`)
+
+* `_175__6825_160_MHZ` (value: `"175 (6825/160 MHz)"`)
+
+* `_177__6835_20_MHZ` (value: `"177 (6835/20 MHz)"`)
+
+* `_179__6845_40_MHZ` (value: `"179 (6845/40 MHz)"`)
+
+* `_181__6855_20_MHZ` (value: `"181 (6855/20 MHz)"`)
+
+* `_183__6865_80_MHZ` (value: `"183 (6865/80 MHz)"`)
+
+* `_185__6875_20_MHZ` (value: `"185 (6875/20 MHz)"`)
+
+* `_187__6885_40_MHZ` (value: `"187 (6885/40 MHz)"`)
+
+* `_189__6895_20_MHZ` (value: `"189 (6895/20 MHz)"`)
+
+* `_193__6915_20_MHZ` (value: `"193 (6915/20 MHz)"`)
+
+* `_195__6925_40_MHZ` (value: `"195 (6925/40 MHz)"`)
+
+* `_197__6935_20_MHZ` (value: `"197 (6935/20 MHz)"`)
+
+* `_199__6945_80_MHZ` (value: `"199 (6945/80 MHz)"`)
+
+* `_201__6955_20_MHZ` (value: `"201 (6955/20 MHz)"`)
+
+* `_203__6965_40_MHZ` (value: `"203 (6965/40 MHz)"`)
+
+* `_205__6975_20_MHZ` (value: `"205 (6975/20 MHz)"`)
+
+* `_207__6985_160_MHZ` (value: `"207 (6985/160 MHz)"`)
+
+* `_209__6995_20_MHZ` (value: `"209 (6995/20 MHz)"`)
+
+* `_211__7005_40_MHZ` (value: `"211 (7005/40 MHz)"`)
+
+* `_213__7015_20_MHZ` (value: `"213 (7015/20 MHz)"`)
+
+* `_215__7025_80_MHZ` (value: `"215 (7025/80 MHz)"`)
+
+* `_217__7035_20_MHZ` (value: `"217 (7035/20 MHz)"`)
+
+* `_219__7045_40_MHZ` (value: `"219 (7045/40 MHz)"`)
+
+* `_221__7055_20_MHZ` (value: `"221 (7055/20 MHz)"`)
+
+* `_225__7075_20_MHZ` (value: `"225 (7075/20 MHz)"`)
+
+* `_227__7085_40_MHZ` (value: `"227 (7085/40 MHz)"`)
+
+* `_229__7095_20_MHZ` (value: `"229 (7095/20 MHz)"`)
+
+* `_233__7115_20_MHZ` (value: `"233 (7115/20 MHz)"`)
+
+* `_1__58_32_2_16_GHZ` (value: `"1 (58.32/2.16 GHz)"`)
+
+* `_2__60_48_2_16_GHZ` (value: `"2 (60.48/2.16 GHz)"`)
+
+* `_3__62_64_2_16_GHZ` (value: `"3 (62.64/2.16 GHz)"`)
+
+* `_4__64_80_2_16_GHZ` (value: `"4 (64.80/2.16 GHz)"`)
+
+* `_5__66_96_2_16_GHZ` (value: `"5 (66.96/2.16 GHz)"`)
+
+* `_6__69_12_2_16_GHZ` (value: `"6 (69.12/2.16 GHz)"`)
+
+* `_9__59_40_4_32_GHZ` (value: `"9 (59.40/4.32 GHz)"`)
+
+* `_10__61_56_4_32_GHZ` (value: `"10 (61.56/4.32 GHz)"`)
+
+* `_11__63_72_4_32_GHZ` (value: `"11 (63.72/4.32 GHz)"`)
+
+* `_12__65_88_4_32_GHZ` (value: `"12 (65.88/4.32 GHz)"`)
+
+* `_13__68_04_4_32_GHZ` (value: `"13 (68.04/4.32 GHz)"`)
+
+* `_17__60_48_6_48_GHZ` (value: `"17 (60.48/6.48 GHz)"`)
+
+* `_18__62_64_6_48_GHZ` (value: `"18 (62.64/6.48 GHz)"`)
+
+* `_19__64_80_6_48_GHZ` (value: `"19 (64.80/6.48 GHz)"`)
+
+* `_20__66_96_6_48_GHZ` (value: `"20 (66.96/6.48 GHz)"`)
+
+* `_25__61_56_8_64_GHZ` (value: `"25 (61.56/8.64 GHz)"`)
+
+* `_26__63_72_8_64_GHZ` (value: `"26 (63.72/8.64 GHz)"`)
+
+* `_27__65_88_8_64_GHZ` (value: `"27 (65.88/8.64 GHz)"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InterfaceRfChannelValue.md b/docs/InterfaceRfChannelValue.md
new file mode 100644
index 0000000000..1dd3e5b9f5
--- /dev/null
+++ b/docs/InterfaceRfChannelValue.md
@@ -0,0 +1,405 @@
+# InterfaceRfChannelValue
+
+## Enum
+
+
+* `_2_4G_1_2412_22` (value: `"2.4g-1-2412-22"`)
+
+* `_2_4G_2_2417_22` (value: `"2.4g-2-2417-22"`)
+
+* `_2_4G_3_2422_22` (value: `"2.4g-3-2422-22"`)
+
+* `_2_4G_4_2427_22` (value: `"2.4g-4-2427-22"`)
+
+* `_2_4G_5_2432_22` (value: `"2.4g-5-2432-22"`)
+
+* `_2_4G_6_2437_22` (value: `"2.4g-6-2437-22"`)
+
+* `_2_4G_7_2442_22` (value: `"2.4g-7-2442-22"`)
+
+* `_2_4G_8_2447_22` (value: `"2.4g-8-2447-22"`)
+
+* `_2_4G_9_2452_22` (value: `"2.4g-9-2452-22"`)
+
+* `_2_4G_10_2457_22` (value: `"2.4g-10-2457-22"`)
+
+* `_2_4G_11_2462_22` (value: `"2.4g-11-2462-22"`)
+
+* `_2_4G_12_2467_22` (value: `"2.4g-12-2467-22"`)
+
+* `_2_4G_13_2472_22` (value: `"2.4g-13-2472-22"`)
+
+* `_5G_32_5160_20` (value: `"5g-32-5160-20"`)
+
+* `_5G_34_5170_40` (value: `"5g-34-5170-40"`)
+
+* `_5G_36_5180_20` (value: `"5g-36-5180-20"`)
+
+* `_5G_38_5190_40` (value: `"5g-38-5190-40"`)
+
+* `_5G_40_5200_20` (value: `"5g-40-5200-20"`)
+
+* `_5G_42_5210_80` (value: `"5g-42-5210-80"`)
+
+* `_5G_44_5220_20` (value: `"5g-44-5220-20"`)
+
+* `_5G_46_5230_40` (value: `"5g-46-5230-40"`)
+
+* `_5G_48_5240_20` (value: `"5g-48-5240-20"`)
+
+* `_5G_50_5250_160` (value: `"5g-50-5250-160"`)
+
+* `_5G_52_5260_20` (value: `"5g-52-5260-20"`)
+
+* `_5G_54_5270_40` (value: `"5g-54-5270-40"`)
+
+* `_5G_56_5280_20` (value: `"5g-56-5280-20"`)
+
+* `_5G_58_5290_80` (value: `"5g-58-5290-80"`)
+
+* `_5G_60_5300_20` (value: `"5g-60-5300-20"`)
+
+* `_5G_62_5310_40` (value: `"5g-62-5310-40"`)
+
+* `_5G_64_5320_20` (value: `"5g-64-5320-20"`)
+
+* `_5G_100_5500_20` (value: `"5g-100-5500-20"`)
+
+* `_5G_102_5510_40` (value: `"5g-102-5510-40"`)
+
+* `_5G_104_5520_20` (value: `"5g-104-5520-20"`)
+
+* `_5G_106_5530_80` (value: `"5g-106-5530-80"`)
+
+* `_5G_108_5540_20` (value: `"5g-108-5540-20"`)
+
+* `_5G_110_5550_40` (value: `"5g-110-5550-40"`)
+
+* `_5G_112_5560_20` (value: `"5g-112-5560-20"`)
+
+* `_5G_114_5570_160` (value: `"5g-114-5570-160"`)
+
+* `_5G_116_5580_20` (value: `"5g-116-5580-20"`)
+
+* `_5G_118_5590_40` (value: `"5g-118-5590-40"`)
+
+* `_5G_120_5600_20` (value: `"5g-120-5600-20"`)
+
+* `_5G_122_5610_80` (value: `"5g-122-5610-80"`)
+
+* `_5G_124_5620_20` (value: `"5g-124-5620-20"`)
+
+* `_5G_126_5630_40` (value: `"5g-126-5630-40"`)
+
+* `_5G_128_5640_20` (value: `"5g-128-5640-20"`)
+
+* `_5G_132_5660_20` (value: `"5g-132-5660-20"`)
+
+* `_5G_134_5670_40` (value: `"5g-134-5670-40"`)
+
+* `_5G_136_5680_20` (value: `"5g-136-5680-20"`)
+
+* `_5G_138_5690_80` (value: `"5g-138-5690-80"`)
+
+* `_5G_140_5700_20` (value: `"5g-140-5700-20"`)
+
+* `_5G_142_5710_40` (value: `"5g-142-5710-40"`)
+
+* `_5G_144_5720_20` (value: `"5g-144-5720-20"`)
+
+* `_5G_149_5745_20` (value: `"5g-149-5745-20"`)
+
+* `_5G_151_5755_40` (value: `"5g-151-5755-40"`)
+
+* `_5G_153_5765_20` (value: `"5g-153-5765-20"`)
+
+* `_5G_155_5775_80` (value: `"5g-155-5775-80"`)
+
+* `_5G_157_5785_20` (value: `"5g-157-5785-20"`)
+
+* `_5G_159_5795_40` (value: `"5g-159-5795-40"`)
+
+* `_5G_161_5805_20` (value: `"5g-161-5805-20"`)
+
+* `_5G_163_5815_160` (value: `"5g-163-5815-160"`)
+
+* `_5G_165_5825_20` (value: `"5g-165-5825-20"`)
+
+* `_5G_167_5835_40` (value: `"5g-167-5835-40"`)
+
+* `_5G_169_5845_20` (value: `"5g-169-5845-20"`)
+
+* `_5G_171_5855_80` (value: `"5g-171-5855-80"`)
+
+* `_5G_173_5865_20` (value: `"5g-173-5865-20"`)
+
+* `_5G_175_5875_40` (value: `"5g-175-5875-40"`)
+
+* `_5G_177_5885_20` (value: `"5g-177-5885-20"`)
+
+* `_6G_1_5955_20` (value: `"6g-1-5955-20"`)
+
+* `_6G_3_5965_40` (value: `"6g-3-5965-40"`)
+
+* `_6G_5_5975_20` (value: `"6g-5-5975-20"`)
+
+* `_6G_7_5985_80` (value: `"6g-7-5985-80"`)
+
+* `_6G_9_5995_20` (value: `"6g-9-5995-20"`)
+
+* `_6G_11_6005_40` (value: `"6g-11-6005-40"`)
+
+* `_6G_13_6015_20` (value: `"6g-13-6015-20"`)
+
+* `_6G_15_6025_160` (value: `"6g-15-6025-160"`)
+
+* `_6G_17_6035_20` (value: `"6g-17-6035-20"`)
+
+* `_6G_19_6045_40` (value: `"6g-19-6045-40"`)
+
+* `_6G_21_6055_20` (value: `"6g-21-6055-20"`)
+
+* `_6G_23_6065_80` (value: `"6g-23-6065-80"`)
+
+* `_6G_25_6075_20` (value: `"6g-25-6075-20"`)
+
+* `_6G_27_6085_40` (value: `"6g-27-6085-40"`)
+
+* `_6G_29_6095_20` (value: `"6g-29-6095-20"`)
+
+* `_6G_31_6105_320` (value: `"6g-31-6105-320"`)
+
+* `_6G_33_6115_20` (value: `"6g-33-6115-20"`)
+
+* `_6G_35_6125_40` (value: `"6g-35-6125-40"`)
+
+* `_6G_37_6135_20` (value: `"6g-37-6135-20"`)
+
+* `_6G_39_6145_80` (value: `"6g-39-6145-80"`)
+
+* `_6G_41_6155_20` (value: `"6g-41-6155-20"`)
+
+* `_6G_43_6165_40` (value: `"6g-43-6165-40"`)
+
+* `_6G_45_6175_20` (value: `"6g-45-6175-20"`)
+
+* `_6G_47_6185_160` (value: `"6g-47-6185-160"`)
+
+* `_6G_49_6195_20` (value: `"6g-49-6195-20"`)
+
+* `_6G_51_6205_40` (value: `"6g-51-6205-40"`)
+
+* `_6G_53_6215_20` (value: `"6g-53-6215-20"`)
+
+* `_6G_55_6225_80` (value: `"6g-55-6225-80"`)
+
+* `_6G_57_6235_20` (value: `"6g-57-6235-20"`)
+
+* `_6G_59_6245_40` (value: `"6g-59-6245-40"`)
+
+* `_6G_61_6255_20` (value: `"6g-61-6255-20"`)
+
+* `_6G_65_6275_20` (value: `"6g-65-6275-20"`)
+
+* `_6G_67_6285_40` (value: `"6g-67-6285-40"`)
+
+* `_6G_69_6295_20` (value: `"6g-69-6295-20"`)
+
+* `_6G_71_6305_80` (value: `"6g-71-6305-80"`)
+
+* `_6G_73_6315_20` (value: `"6g-73-6315-20"`)
+
+* `_6G_75_6325_40` (value: `"6g-75-6325-40"`)
+
+* `_6G_77_6335_20` (value: `"6g-77-6335-20"`)
+
+* `_6G_79_6345_160` (value: `"6g-79-6345-160"`)
+
+* `_6G_81_6355_20` (value: `"6g-81-6355-20"`)
+
+* `_6G_83_6365_40` (value: `"6g-83-6365-40"`)
+
+* `_6G_85_6375_20` (value: `"6g-85-6375-20"`)
+
+* `_6G_87_6385_80` (value: `"6g-87-6385-80"`)
+
+* `_6G_89_6395_20` (value: `"6g-89-6395-20"`)
+
+* `_6G_91_6405_40` (value: `"6g-91-6405-40"`)
+
+* `_6G_93_6415_20` (value: `"6g-93-6415-20"`)
+
+* `_6G_95_6425_320` (value: `"6g-95-6425-320"`)
+
+* `_6G_97_6435_20` (value: `"6g-97-6435-20"`)
+
+* `_6G_99_6445_40` (value: `"6g-99-6445-40"`)
+
+* `_6G_101_6455_20` (value: `"6g-101-6455-20"`)
+
+* `_6G_103_6465_80` (value: `"6g-103-6465-80"`)
+
+* `_6G_105_6475_20` (value: `"6g-105-6475-20"`)
+
+* `_6G_107_6485_40` (value: `"6g-107-6485-40"`)
+
+* `_6G_109_6495_20` (value: `"6g-109-6495-20"`)
+
+* `_6G_111_6505_160` (value: `"6g-111-6505-160"`)
+
+* `_6G_113_6515_20` (value: `"6g-113-6515-20"`)
+
+* `_6G_115_6525_40` (value: `"6g-115-6525-40"`)
+
+* `_6G_117_6535_20` (value: `"6g-117-6535-20"`)
+
+* `_6G_119_6545_80` (value: `"6g-119-6545-80"`)
+
+* `_6G_121_6555_20` (value: `"6g-121-6555-20"`)
+
+* `_6G_123_6565_40` (value: `"6g-123-6565-40"`)
+
+* `_6G_125_6575_20` (value: `"6g-125-6575-20"`)
+
+* `_6G_129_6595_20` (value: `"6g-129-6595-20"`)
+
+* `_6G_131_6605_40` (value: `"6g-131-6605-40"`)
+
+* `_6G_133_6615_20` (value: `"6g-133-6615-20"`)
+
+* `_6G_135_6625_80` (value: `"6g-135-6625-80"`)
+
+* `_6G_137_6635_20` (value: `"6g-137-6635-20"`)
+
+* `_6G_139_6645_40` (value: `"6g-139-6645-40"`)
+
+* `_6G_141_6655_20` (value: `"6g-141-6655-20"`)
+
+* `_6G_143_6665_160` (value: `"6g-143-6665-160"`)
+
+* `_6G_145_6675_20` (value: `"6g-145-6675-20"`)
+
+* `_6G_147_6685_40` (value: `"6g-147-6685-40"`)
+
+* `_6G_149_6695_20` (value: `"6g-149-6695-20"`)
+
+* `_6G_151_6705_80` (value: `"6g-151-6705-80"`)
+
+* `_6G_153_6715_20` (value: `"6g-153-6715-20"`)
+
+* `_6G_155_6725_40` (value: `"6g-155-6725-40"`)
+
+* `_6G_157_6735_20` (value: `"6g-157-6735-20"`)
+
+* `_6G_159_6745_320` (value: `"6g-159-6745-320"`)
+
+* `_6G_161_6755_20` (value: `"6g-161-6755-20"`)
+
+* `_6G_163_6765_40` (value: `"6g-163-6765-40"`)
+
+* `_6G_165_6775_20` (value: `"6g-165-6775-20"`)
+
+* `_6G_167_6785_80` (value: `"6g-167-6785-80"`)
+
+* `_6G_169_6795_20` (value: `"6g-169-6795-20"`)
+
+* `_6G_171_6805_40` (value: `"6g-171-6805-40"`)
+
+* `_6G_173_6815_20` (value: `"6g-173-6815-20"`)
+
+* `_6G_175_6825_160` (value: `"6g-175-6825-160"`)
+
+* `_6G_177_6835_20` (value: `"6g-177-6835-20"`)
+
+* `_6G_179_6845_40` (value: `"6g-179-6845-40"`)
+
+* `_6G_181_6855_20` (value: `"6g-181-6855-20"`)
+
+* `_6G_183_6865_80` (value: `"6g-183-6865-80"`)
+
+* `_6G_185_6875_20` (value: `"6g-185-6875-20"`)
+
+* `_6G_187_6885_40` (value: `"6g-187-6885-40"`)
+
+* `_6G_189_6895_20` (value: `"6g-189-6895-20"`)
+
+* `_6G_193_6915_20` (value: `"6g-193-6915-20"`)
+
+* `_6G_195_6925_40` (value: `"6g-195-6925-40"`)
+
+* `_6G_197_6935_20` (value: `"6g-197-6935-20"`)
+
+* `_6G_199_6945_80` (value: `"6g-199-6945-80"`)
+
+* `_6G_201_6955_20` (value: `"6g-201-6955-20"`)
+
+* `_6G_203_6965_40` (value: `"6g-203-6965-40"`)
+
+* `_6G_205_6975_20` (value: `"6g-205-6975-20"`)
+
+* `_6G_207_6985_160` (value: `"6g-207-6985-160"`)
+
+* `_6G_209_6995_20` (value: `"6g-209-6995-20"`)
+
+* `_6G_211_7005_40` (value: `"6g-211-7005-40"`)
+
+* `_6G_213_7015_20` (value: `"6g-213-7015-20"`)
+
+* `_6G_215_7025_80` (value: `"6g-215-7025-80"`)
+
+* `_6G_217_7035_20` (value: `"6g-217-7035-20"`)
+
+* `_6G_219_7045_40` (value: `"6g-219-7045-40"`)
+
+* `_6G_221_7055_20` (value: `"6g-221-7055-20"`)
+
+* `_6G_225_7075_20` (value: `"6g-225-7075-20"`)
+
+* `_6G_227_7085_40` (value: `"6g-227-7085-40"`)
+
+* `_6G_229_7095_20` (value: `"6g-229-7095-20"`)
+
+* `_6G_233_7115_20` (value: `"6g-233-7115-20"`)
+
+* `_60G_1_58320_2160` (value: `"60g-1-58320-2160"`)
+
+* `_60G_2_60480_2160` (value: `"60g-2-60480-2160"`)
+
+* `_60G_3_62640_2160` (value: `"60g-3-62640-2160"`)
+
+* `_60G_4_64800_2160` (value: `"60g-4-64800-2160"`)
+
+* `_60G_5_66960_2160` (value: `"60g-5-66960-2160"`)
+
+* `_60G_6_69120_2160` (value: `"60g-6-69120-2160"`)
+
+* `_60G_9_59400_4320` (value: `"60g-9-59400-4320"`)
+
+* `_60G_10_61560_4320` (value: `"60g-10-61560-4320"`)
+
+* `_60G_11_63720_4320` (value: `"60g-11-63720-4320"`)
+
+* `_60G_12_65880_4320` (value: `"60g-12-65880-4320"`)
+
+* `_60G_13_68040_4320` (value: `"60g-13-68040-4320"`)
+
+* `_60G_17_60480_6480` (value: `"60g-17-60480-6480"`)
+
+* `_60G_18_62640_6480` (value: `"60g-18-62640-6480"`)
+
+* `_60G_19_64800_6480` (value: `"60g-19-64800-6480"`)
+
+* `_60G_20_66960_6480` (value: `"60g-20-66960-6480"`)
+
+* `_60G_25_61560_6480` (value: `"60g-25-61560-6480"`)
+
+* `_60G_26_63720_6480` (value: `"60g-26-63720-6480"`)
+
+* `_60G_27_65880_6480` (value: `"60g-27-65880-6480"`)
+
+* `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/InterfaceRfRole.md b/docs/InterfaceRfRole.md
index 2330d15fef..ce67e7cd5e 100644
--- a/docs/InterfaceRfRole.md
+++ b/docs/InterfaceRfRole.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `ap` - Access point * `station` - Station | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**InterfaceRfRoleValue**](InterfaceRfRoleValue.md) | | [optional]
+**Label** | Pointer to [**InterfaceRfRoleLabel**](InterfaceRfRoleLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *InterfaceRfRole) GetValue() string`
+`func (o *InterfaceRfRole) GetValue() InterfaceRfRoleValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *InterfaceRfRole) GetValueOk() (*string, bool)`
+`func (o *InterfaceRfRole) GetValueOk() (*InterfaceRfRoleValue, 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 *InterfaceRfRole) SetValue(v string)`
+`func (o *InterfaceRfRole) SetValue(v InterfaceRfRoleValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *InterfaceRfRole) GetLabel() string`
+`func (o *InterfaceRfRole) GetLabel() InterfaceRfRoleLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *InterfaceRfRole) GetLabelOk() (*string, bool)`
+`func (o *InterfaceRfRole) GetLabelOk() (*InterfaceRfRoleLabel, 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 *InterfaceRfRole) SetLabel(v string)`
+`func (o *InterfaceRfRole) SetLabel(v InterfaceRfRoleLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/InterfaceRfRoleLabel.md b/docs/InterfaceRfRoleLabel.md
new file mode 100644
index 0000000000..2afe643e3c
--- /dev/null
+++ b/docs/InterfaceRfRoleLabel.md
@@ -0,0 +1,13 @@
+# InterfaceRfRoleLabel
+
+## Enum
+
+
+* `ACCESS_POINT` (value: `"Access point"`)
+
+* `STATION` (value: `"Station"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InterfaceRfRoleValue.md b/docs/InterfaceRfRoleValue.md
new file mode 100644
index 0000000000..2d90283112
--- /dev/null
+++ b/docs/InterfaceRfRoleValue.md
@@ -0,0 +1,15 @@
+# InterfaceRfRoleValue
+
+## Enum
+
+
+* `AP` (value: `"ap"`)
+
+* `STATION` (value: `"station"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InterfaceTemplatePoeMode.md b/docs/InterfaceTemplatePoeMode.md
index 539639a612..7f10494fa6 100644
--- a/docs/InterfaceTemplatePoeMode.md
+++ b/docs/InterfaceTemplatePoeMode.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `pd` - PD * `pse` - PSE | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional]
+**Label** | Pointer to [**InterfacePoeModeLabel**](InterfacePoeModeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *InterfaceTemplatePoeMode) GetValue() string`
+`func (o *InterfaceTemplatePoeMode) GetValue() InterfacePoeModeValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *InterfaceTemplatePoeMode) GetValueOk() (*string, bool)`
+`func (o *InterfaceTemplatePoeMode) GetValueOk() (*InterfacePoeModeValue, bool)`
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValue
-`func (o *InterfaceTemplatePoeMode) SetValue(v string)`
+`func (o *InterfaceTemplatePoeMode) SetValue(v InterfacePoeModeValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *InterfaceTemplatePoeMode) GetLabel() string`
+`func (o *InterfaceTemplatePoeMode) GetLabel() InterfacePoeModeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *InterfaceTemplatePoeMode) GetLabelOk() (*string, bool)`
+`func (o *InterfaceTemplatePoeMode) GetLabelOk() (*InterfacePoeModeLabel, bool)`
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLabel
-`func (o *InterfaceTemplatePoeMode) SetLabel(v string)`
+`func (o *InterfaceTemplatePoeMode) SetLabel(v InterfacePoeModeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/InterfaceTemplatePoeType.md b/docs/InterfaceTemplatePoeType.md
index cbe9187b51..e2fb0eb80a 100644
--- a/docs/InterfaceTemplatePoeType.md
+++ b/docs/InterfaceTemplatePoeType.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional]
+**Label** | Pointer to [**InterfacePoeTypeLabel**](InterfacePoeTypeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *InterfaceTemplatePoeType) GetValue() string`
+`func (o *InterfaceTemplatePoeType) GetValue() InterfacePoeTypeValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *InterfaceTemplatePoeType) GetValueOk() (*string, bool)`
+`func (o *InterfaceTemplatePoeType) GetValueOk() (*InterfacePoeTypeValue, 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 *InterfaceTemplatePoeType) SetValue(v string)`
+`func (o *InterfaceTemplatePoeType) SetValue(v InterfacePoeTypeValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *InterfaceTemplatePoeType) GetLabel() string`
+`func (o *InterfaceTemplatePoeType) GetLabel() InterfacePoeTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *InterfaceTemplatePoeType) GetLabelOk() (*string, bool)`
+`func (o *InterfaceTemplatePoeType) GetLabelOk() (*InterfacePoeTypeLabel, 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 *InterfaceTemplatePoeType) SetLabel(v string)`
+`func (o *InterfaceTemplatePoeType) SetLabel(v InterfacePoeTypeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/InterfaceTemplateRequest.md b/docs/InterfaceTemplateRequest.md
index b9a486beac..21a865a4fb 100644
--- a/docs/InterfaceTemplateRequest.md
+++ b/docs/InterfaceTemplateRequest.md
@@ -8,20 +8,20 @@ Name | Type | Description | Notes
**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** | **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other |
+**Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | |
**Enabled** | Pointer to **bool** | | [optional]
**MgmtOnly** | Pointer to **bool** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Bridge** | Pointer to [**NullableNestedInterfaceTemplateRequest**](NestedInterfaceTemplateRequest.md) | | [optional]
-**PoeMode** | Pointer to **NullableString** | * `pd` - PD * `pse` - PSE | [optional]
-**PoeType** | Pointer to **NullableString** | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | [optional]
-**RfRole** | Pointer to **NullableString** | * `ap` - Access point * `station` - Station | [optional]
+**PoeMode** | Pointer to [**NullableInterfaceTemplateRequestPoeMode**](InterfaceTemplateRequestPoeMode.md) | | [optional]
+**PoeType** | Pointer to [**NullableInterfaceTemplateRequestPoeType**](InterfaceTemplateRequestPoeType.md) | | [optional]
+**RfRole** | Pointer to [**NullableInterfaceTemplateRequestRfRole**](InterfaceTemplateRequestRfRole.md) | | [optional]
## Methods
### NewInterfaceTemplateRequest
-`func NewInterfaceTemplateRequest(name string, type_ string, ) *InterfaceTemplateRequest`
+`func NewInterfaceTemplateRequest(name string, type_ InterfaceTypeValue, ) *InterfaceTemplateRequest`
NewInterfaceTemplateRequest instantiates a new InterfaceTemplateRequest object
This constructor will assign default values to properties that have it defined,
@@ -153,20 +153,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *InterfaceTemplateRequest) GetType() string`
+`func (o *InterfaceTemplateRequest) GetType() InterfaceTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *InterfaceTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *InterfaceTemplateRequest) GetTypeOk() (*InterfaceTypeValue, 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 *InterfaceTemplateRequest) SetType(v string)`
+`func (o *InterfaceTemplateRequest) SetType(v InterfaceTypeValue)`
SetType sets Type field to given value.
@@ -283,20 +283,20 @@ HasBridge returns a boolean if a field has been set.
UnsetBridge ensures that no value is present for Bridge, not even an explicit nil
### GetPoeMode
-`func (o *InterfaceTemplateRequest) GetPoeMode() string`
+`func (o *InterfaceTemplateRequest) GetPoeMode() InterfaceTemplateRequestPoeMode`
GetPoeMode returns the PoeMode field if non-nil, zero value otherwise.
### GetPoeModeOk
-`func (o *InterfaceTemplateRequest) GetPoeModeOk() (*string, bool)`
+`func (o *InterfaceTemplateRequest) GetPoeModeOk() (*InterfaceTemplateRequestPoeMode, bool)`
GetPoeModeOk returns a tuple with the PoeMode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPoeMode
-`func (o *InterfaceTemplateRequest) SetPoeMode(v string)`
+`func (o *InterfaceTemplateRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode)`
SetPoeMode sets PoeMode field to given value.
@@ -318,20 +318,20 @@ HasPoeMode returns a boolean if a field has been set.
UnsetPoeMode ensures that no value is present for PoeMode, not even an explicit nil
### GetPoeType
-`func (o *InterfaceTemplateRequest) GetPoeType() string`
+`func (o *InterfaceTemplateRequest) GetPoeType() InterfaceTemplateRequestPoeType`
GetPoeType returns the PoeType field if non-nil, zero value otherwise.
### GetPoeTypeOk
-`func (o *InterfaceTemplateRequest) GetPoeTypeOk() (*string, bool)`
+`func (o *InterfaceTemplateRequest) GetPoeTypeOk() (*InterfaceTemplateRequestPoeType, bool)`
GetPoeTypeOk returns a tuple with the PoeType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPoeType
-`func (o *InterfaceTemplateRequest) SetPoeType(v string)`
+`func (o *InterfaceTemplateRequest) SetPoeType(v InterfaceTemplateRequestPoeType)`
SetPoeType sets PoeType field to given value.
@@ -353,20 +353,20 @@ HasPoeType returns a boolean if a field has been set.
UnsetPoeType ensures that no value is present for PoeType, not even an explicit nil
### GetRfRole
-`func (o *InterfaceTemplateRequest) GetRfRole() string`
+`func (o *InterfaceTemplateRequest) GetRfRole() InterfaceTemplateRequestRfRole`
GetRfRole returns the RfRole field if non-nil, zero value otherwise.
### GetRfRoleOk
-`func (o *InterfaceTemplateRequest) GetRfRoleOk() (*string, bool)`
+`func (o *InterfaceTemplateRequest) GetRfRoleOk() (*InterfaceTemplateRequestRfRole, bool)`
GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRfRole
-`func (o *InterfaceTemplateRequest) SetRfRole(v string)`
+`func (o *InterfaceTemplateRequest) SetRfRole(v InterfaceTemplateRequestRfRole)`
SetRfRole sets RfRole field to given value.
diff --git a/docs/InterfaceTemplateRequestPoeMode.md b/docs/InterfaceTemplateRequestPoeMode.md
new file mode 100644
index 0000000000..4ac9e3b3b7
--- /dev/null
+++ b/docs/InterfaceTemplateRequestPoeMode.md
@@ -0,0 +1,15 @@
+# InterfaceTemplateRequestPoeMode
+
+## Enum
+
+
+* `PD` (value: `"pd"`)
+
+* `PSE` (value: `"pse"`)
+
+* `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/InterfaceTemplateRequestPoeType.md b/docs/InterfaceTemplateRequestPoeType.md
new file mode 100644
index 0000000000..0e53f6500f
--- /dev/null
+++ b/docs/InterfaceTemplateRequestPoeType.md
@@ -0,0 +1,27 @@
+# InterfaceTemplateRequestPoeType
+
+## Enum
+
+
+* `TYPE1_IEEE802_3AF` (value: `"type1-ieee802.3af"`)
+
+* `TYPE2_IEEE802_3AT` (value: `"type2-ieee802.3at"`)
+
+* `TYPE3_IEEE802_3BT` (value: `"type3-ieee802.3bt"`)
+
+* `TYPE4_IEEE802_3BT` (value: `"type4-ieee802.3bt"`)
+
+* `PASSIVE_24V_2PAIR` (value: `"passive-24v-2pair"`)
+
+* `PASSIVE_24V_4PAIR` (value: `"passive-24v-4pair"`)
+
+* `PASSIVE_48V_2PAIR` (value: `"passive-48v-2pair"`)
+
+* `PASSIVE_48V_4PAIR` (value: `"passive-48v-4pair"`)
+
+* `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/InterfaceTemplateRequestRfRole.md b/docs/InterfaceTemplateRequestRfRole.md
new file mode 100644
index 0000000000..ac35a98c96
--- /dev/null
+++ b/docs/InterfaceTemplateRequestRfRole.md
@@ -0,0 +1,15 @@
+# InterfaceTemplateRequestRfRole
+
+## Enum
+
+
+* `AP` (value: `"ap"`)
+
+* `STATION` (value: `"station"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InterfaceTemplateRfRole.md b/docs/InterfaceTemplateRfRole.md
index 7c2ac42254..8a6ad3deb7 100644
--- a/docs/InterfaceTemplateRfRole.md
+++ b/docs/InterfaceTemplateRfRole.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `ap` - Access point * `station` - Station | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**InterfaceRfRoleValue**](InterfaceRfRoleValue.md) | | [optional]
+**Label** | Pointer to [**InterfaceRfRoleLabel**](InterfaceRfRoleLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *InterfaceTemplateRfRole) GetValue() string`
+`func (o *InterfaceTemplateRfRole) GetValue() InterfaceRfRoleValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *InterfaceTemplateRfRole) GetValueOk() (*string, bool)`
+`func (o *InterfaceTemplateRfRole) GetValueOk() (*InterfaceRfRoleValue, bool)`
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValue
-`func (o *InterfaceTemplateRfRole) SetValue(v string)`
+`func (o *InterfaceTemplateRfRole) SetValue(v InterfaceRfRoleValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *InterfaceTemplateRfRole) GetLabel() string`
+`func (o *InterfaceTemplateRfRole) GetLabel() InterfaceRfRoleLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *InterfaceTemplateRfRole) GetLabelOk() (*string, bool)`
+`func (o *InterfaceTemplateRfRole) GetLabelOk() (*InterfaceRfRoleLabel, bool)`
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLabel
-`func (o *InterfaceTemplateRfRole) SetLabel(v string)`
+`func (o *InterfaceTemplateRfRole) SetLabel(v InterfaceRfRoleLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/InterfaceType.md b/docs/InterfaceType.md
index 8dea9e6c00..a47e8df1a2 100644
--- a/docs/InterfaceType.md
+++ b/docs/InterfaceType.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional]
+**Label** | Pointer to [**InterfaceTypeLabel**](InterfaceTypeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *InterfaceType) GetValue() string`
+`func (o *InterfaceType) GetValue() InterfaceTypeValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *InterfaceType) GetValueOk() (*string, bool)`
+`func (o *InterfaceType) GetValueOk() (*InterfaceTypeValue, 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 *InterfaceType) SetValue(v string)`
+`func (o *InterfaceType) SetValue(v InterfaceTypeValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *InterfaceType) GetLabel() string`
+`func (o *InterfaceType) GetLabel() InterfaceTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *InterfaceType) GetLabelOk() (*string, bool)`
+`func (o *InterfaceType) GetLabelOk() (*InterfaceTypeLabel, 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 *InterfaceType) SetLabel(v string)`
+`func (o *InterfaceType) SetLabel(v InterfaceTypeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/InterfaceTypeLabel.md b/docs/InterfaceTypeLabel.md
new file mode 100644
index 0000000000..fff95189b9
--- /dev/null
+++ b/docs/InterfaceTypeLabel.md
@@ -0,0 +1,239 @@
+# InterfaceTypeLabel
+
+## Enum
+
+
+* `VIRTUAL` (value: `"Virtual"`)
+
+* `BRIDGE` (value: `"Bridge"`)
+
+* `LINK_AGGREGATION_GROUP__LAG` (value: `"Link Aggregation Group (LAG)"`)
+
+* `_100_BASE_FX__10_100_ME_FIBER` (value: `"100BASE-FX (10/100ME FIBER)"`)
+
+* `_100_BASE_LFX__10_100_ME_FIBER` (value: `"100BASE-LFX (10/100ME FIBER)"`)
+
+* `_100_BASE_TX__10_100_ME` (value: `"100BASE-TX (10/100ME)"`)
+
+* `_100_BASE_T1__10_100_ME_SINGLE_PAIR` (value: `"100BASE-T1 (10/100ME Single Pair)"`)
+
+* `_1000_BASE_T__1_GE` (value: `"1000BASE-T (1GE)"`)
+
+* `_2_5_GBASE_T__2_5_GE` (value: `"2.5GBASE-T (2.5GE)"`)
+
+* `_5_GBASE_T__5_GE` (value: `"5GBASE-T (5GE)"`)
+
+* `_10_GBASE_T__10_GE` (value: `"10GBASE-T (10GE)"`)
+
+* `_10_GBASE_CX4__10_GE` (value: `"10GBASE-CX4 (10GE)"`)
+
+* `GBIC__1_GE` (value: `"GBIC (1GE)"`)
+
+* `SFP__1_GE` (value: `"SFP (1GE)"`)
+
+* `SFP__10_GE` (value: `"SFP+ (10GE)"`)
+
+* `XFP__10_GE` (value: `"XFP (10GE)"`)
+
+* `XENPAK__10_GE` (value: `"XENPAK (10GE)"`)
+
+* `X2__10_GE` (value: `"X2 (10GE)"`)
+
+* `SFP28__25_GE` (value: `"SFP28 (25GE)"`)
+
+* `SFP56__50_GE` (value: `"SFP56 (50GE)"`)
+
+* `QSFP__40_GE` (value: `"QSFP+ (40GE)"`)
+
+* `QSFP28__50_GE` (value: `"QSFP28 (50GE)"`)
+
+* `CFP__100_GE` (value: `"CFP (100GE)"`)
+
+* `CFP2__100_GE` (value: `"CFP2 (100GE)"`)
+
+* `CFP2__200_GE` (value: `"CFP2 (200GE)"`)
+
+* `CFP2__400_GE` (value: `"CFP2 (400GE)"`)
+
+* `CFP4__100_GE` (value: `"CFP4 (100GE)"`)
+
+* `CXP__100_GE` (value: `"CXP (100GE)"`)
+
+* `CISCO_CPAK__100_GE` (value: `"Cisco CPAK (100GE)"`)
+
+* `DSFP__100_GE` (value: `"DSFP (100GE)"`)
+
+* `SFP_DD__100_GE` (value: `"SFP-DD (100GE)"`)
+
+* `QSFP28__100_GE` (value: `"QSFP28 (100GE)"`)
+
+* `QSFP_DD__100_GE` (value: `"QSFP-DD (100GE)"`)
+
+* `QSFP56__200_GE` (value: `"QSFP56 (200GE)"`)
+
+* `QSFP_DD__200_GE` (value: `"QSFP-DD (200GE)"`)
+
+* `QSFP112__400_GE` (value: `"QSFP112 (400GE)"`)
+
+* `QSFP_DD__400_GE` (value: `"QSFP-DD (400GE)"`)
+
+* `OSFP__400_GE` (value: `"OSFP (400GE)"`)
+
+* `OSFP_RHS__400_GE` (value: `"OSFP-RHS (400GE)"`)
+
+* `CDFP__400_GE` (value: `"CDFP (400GE)"`)
+
+* `CPF8__400_GE` (value: `"CPF8 (400GE)"`)
+
+* `QSFP_DD__800_GE` (value: `"QSFP-DD (800GE)"`)
+
+* `OSFP__800_GE` (value: `"OSFP (800GE)"`)
+
+* `_1000_BASE_KX__1_GE` (value: `"1000BASE-KX (1GE)"`)
+
+* `_10_GBASE_KR__10_GE` (value: `"10GBASE-KR (10GE)"`)
+
+* `_10_GBASE_KX4__10_GE` (value: `"10GBASE-KX4 (10GE)"`)
+
+* `_25_GBASE_KR__25_GE` (value: `"25GBASE-KR (25GE)"`)
+
+* `_40_GBASE_KR4__40_GE` (value: `"40GBASE-KR4 (40GE)"`)
+
+* `_50_GBASE_KR__50_GE` (value: `"50GBASE-KR (50GE)"`)
+
+* `_100_GBASE_KP4__100_GE` (value: `"100GBASE-KP4 (100GE)"`)
+
+* `_100_GBASE_KR2__100_GE` (value: `"100GBASE-KR2 (100GE)"`)
+
+* `_100_GBASE_KR4__100_GE` (value: `"100GBASE-KR4 (100GE)"`)
+
+* `IEEE_802_11A` (value: `"IEEE 802.11a"`)
+
+* `IEEE_802_11B_G` (value: `"IEEE 802.11b/g"`)
+
+* `IEEE_802_11N` (value: `"IEEE 802.11n"`)
+
+* `IEEE_802_11AC` (value: `"IEEE 802.11ac"`)
+
+* `IEEE_802_11AD` (value: `"IEEE 802.11ad"`)
+
+* `IEEE_802_11AX` (value: `"IEEE 802.11ax"`)
+
+* `IEEE_802_11AY` (value: `"IEEE 802.11ay"`)
+
+* `IEEE_802_15_1__BLUETOOTH` (value: `"IEEE 802.15.1 (Bluetooth)"`)
+
+* `OTHER__WIRELESS` (value: `"Other (Wireless)"`)
+
+* `GSM` (value: `"GSM"`)
+
+* `CDMA` (value: `"CDMA"`)
+
+* `LTE` (value: `"LTE"`)
+
+* `OC_3_STM_1` (value: `"OC-3/STM-1"`)
+
+* `OC_12_STM_4` (value: `"OC-12/STM-4"`)
+
+* `OC_48_STM_16` (value: `"OC-48/STM-16"`)
+
+* `OC_192_STM_64` (value: `"OC-192/STM-64"`)
+
+* `OC_768_STM_256` (value: `"OC-768/STM-256"`)
+
+* `OC_1920_STM_640` (value: `"OC-1920/STM-640"`)
+
+* `OC_3840_STM_1234` (value: `"OC-3840/STM-1234"`)
+
+* `SFP__1_GFC` (value: `"SFP (1GFC)"`)
+
+* `SFP__2_GFC` (value: `"SFP (2GFC)"`)
+
+* `SFP__4_GFC` (value: `"SFP (4GFC)"`)
+
+* `SFP__8_GFC` (value: `"SFP+ (8GFC)"`)
+
+* `SFP__16_GFC` (value: `"SFP+ (16GFC)"`)
+
+* `SFP28__32_GFC` (value: `"SFP28 (32GFC)"`)
+
+* `QSFP__64_GFC` (value: `"QSFP+ (64GFC)"`)
+
+* `QSFP28__128_GFC` (value: `"QSFP28 (128GFC)"`)
+
+* `SDR__2_GBPS` (value: `"SDR (2 Gbps)"`)
+
+* `DDR__4_GBPS` (value: `"DDR (4 Gbps)"`)
+
+* `QDR__8_GBPS` (value: `"QDR (8 Gbps)"`)
+
+* `FDR10__10_GBPS` (value: `"FDR10 (10 Gbps)"`)
+
+* `FDR__13_5_GBPS` (value: `"FDR (13.5 Gbps)"`)
+
+* `EDR__25_GBPS` (value: `"EDR (25 Gbps)"`)
+
+* `HDR__50_GBPS` (value: `"HDR (50 Gbps)"`)
+
+* `NDR__100_GBPS` (value: `"NDR (100 Gbps)"`)
+
+* `XDR__250_GBPS` (value: `"XDR (250 Gbps)"`)
+
+* `T1__1_544_MBPS` (value: `"T1 (1.544 Mbps)"`)
+
+* `E1__2_048_MBPS` (value: `"E1 (2.048 Mbps)"`)
+
+* `T3__45_MBPS` (value: `"T3 (45 Mbps)"`)
+
+* `E3__34_MBPS` (value: `"E3 (34 Mbps)"`)
+
+* `X_DSL` (value: `"xDSL"`)
+
+* `DOCSIS` (value: `"DOCSIS"`)
+
+* `GPON__2_5_GBPS___1_25_GPS` (value: `"GPON (2.5 Gbps / 1.25 Gps)"`)
+
+* `XG_PON__10_GBPS___2_5_GBPS` (value: `"XG-PON (10 Gbps / 2.5 Gbps)"`)
+
+* `XGS_PON__10_GBPS` (value: `"XGS-PON (10 Gbps)"`)
+
+* `NG_PON2__TWDM_PON__4X10_GBPS` (value: `"NG-PON2 (TWDM-PON) (4x10 Gbps)"`)
+
+* `EPON__1_GBPS` (value: `"EPON (1 Gbps)"`)
+
+* `_10_G_EPON__10_GBPS` (value: `"10G-EPON (10 Gbps)"`)
+
+* `CISCO_STACK_WISE` (value: `"Cisco StackWise"`)
+
+* `CISCO_STACK_WISE_PLUS` (value: `"Cisco StackWise Plus"`)
+
+* `CISCO_FLEX_STACK` (value: `"Cisco FlexStack"`)
+
+* `CISCO_FLEX_STACK_PLUS` (value: `"Cisco FlexStack Plus"`)
+
+* `CISCO_STACK_WISE_80` (value: `"Cisco StackWise-80"`)
+
+* `CISCO_STACK_WISE_160` (value: `"Cisco StackWise-160"`)
+
+* `CISCO_STACK_WISE_320` (value: `"Cisco StackWise-320"`)
+
+* `CISCO_STACK_WISE_480` (value: `"Cisco StackWise-480"`)
+
+* `CISCO_STACK_WISE_1_T` (value: `"Cisco StackWise-1T"`)
+
+* `JUNIPER_VCP` (value: `"Juniper VCP"`)
+
+* `EXTREME_SUMMIT_STACK` (value: `"Extreme SummitStack"`)
+
+* `EXTREME_SUMMIT_STACK_128` (value: `"Extreme SummitStack-128"`)
+
+* `EXTREME_SUMMIT_STACK_256` (value: `"Extreme SummitStack-256"`)
+
+* `EXTREME_SUMMIT_STACK_512` (value: `"Extreme SummitStack-512"`)
+
+* `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/InterfaceTypeValue.md b/docs/InterfaceTypeValue.md
new file mode 100644
index 0000000000..d64c06cee4
--- /dev/null
+++ b/docs/InterfaceTypeValue.md
@@ -0,0 +1,239 @@
+# InterfaceTypeValue
+
+## Enum
+
+
+* `VIRTUAL` (value: `"virtual"`)
+
+* `BRIDGE` (value: `"bridge"`)
+
+* `LAG` (value: `"lag"`)
+
+* `_100BASE_FX` (value: `"100base-fx"`)
+
+* `_100BASE_LFX` (value: `"100base-lfx"`)
+
+* `_100BASE_TX` (value: `"100base-tx"`)
+
+* `_100BASE_T1` (value: `"100base-t1"`)
+
+* `_1000BASE_T` (value: `"1000base-t"`)
+
+* `_2_5GBASE_T` (value: `"2.5gbase-t"`)
+
+* `_5GBASE_T` (value: `"5gbase-t"`)
+
+* `_10GBASE_T` (value: `"10gbase-t"`)
+
+* `_10GBASE_CX4` (value: `"10gbase-cx4"`)
+
+* `_1000BASE_X_GBIC` (value: `"1000base-x-gbic"`)
+
+* `_1000BASE_X_SFP` (value: `"1000base-x-sfp"`)
+
+* `_10GBASE_X_SFPP` (value: `"10gbase-x-sfpp"`)
+
+* `_10GBASE_X_XFP` (value: `"10gbase-x-xfp"`)
+
+* `_10GBASE_X_XENPAK` (value: `"10gbase-x-xenpak"`)
+
+* `_10GBASE_X_X2` (value: `"10gbase-x-x2"`)
+
+* `_25GBASE_X_SFP28` (value: `"25gbase-x-sfp28"`)
+
+* `_50GBASE_X_SFP56` (value: `"50gbase-x-sfp56"`)
+
+* `_40GBASE_X_QSFPP` (value: `"40gbase-x-qsfpp"`)
+
+* `_50GBASE_X_SFP28` (value: `"50gbase-x-sfp28"`)
+
+* `_100GBASE_X_CFP` (value: `"100gbase-x-cfp"`)
+
+* `_100GBASE_X_CFP2` (value: `"100gbase-x-cfp2"`)
+
+* `_200GBASE_X_CFP2` (value: `"200gbase-x-cfp2"`)
+
+* `_400GBASE_X_CFP2` (value: `"400gbase-x-cfp2"`)
+
+* `_100GBASE_X_CFP4` (value: `"100gbase-x-cfp4"`)
+
+* `_100GBASE_X_CXP` (value: `"100gbase-x-cxp"`)
+
+* `_100GBASE_X_CPAK` (value: `"100gbase-x-cpak"`)
+
+* `_100GBASE_X_DSFP` (value: `"100gbase-x-dsfp"`)
+
+* `_100GBASE_X_SFPDD` (value: `"100gbase-x-sfpdd"`)
+
+* `_100GBASE_X_QSFP28` (value: `"100gbase-x-qsfp28"`)
+
+* `_100GBASE_X_QSFPDD` (value: `"100gbase-x-qsfpdd"`)
+
+* `_200GBASE_X_QSFP56` (value: `"200gbase-x-qsfp56"`)
+
+* `_200GBASE_X_QSFPDD` (value: `"200gbase-x-qsfpdd"`)
+
+* `_400GBASE_X_QSFP112` (value: `"400gbase-x-qsfp112"`)
+
+* `_400GBASE_X_QSFPDD` (value: `"400gbase-x-qsfpdd"`)
+
+* `_400GBASE_X_OSFP` (value: `"400gbase-x-osfp"`)
+
+* `_400GBASE_X_OSFP_RHS` (value: `"400gbase-x-osfp-rhs"`)
+
+* `_400GBASE_X_CDFP` (value: `"400gbase-x-cdfp"`)
+
+* `_400GBASE_X_CFP8` (value: `"400gbase-x-cfp8"`)
+
+* `_800GBASE_X_QSFPDD` (value: `"800gbase-x-qsfpdd"`)
+
+* `_800GBASE_X_OSFP` (value: `"800gbase-x-osfp"`)
+
+* `_1000BASE_KX` (value: `"1000base-kx"`)
+
+* `_10GBASE_KR` (value: `"10gbase-kr"`)
+
+* `_10GBASE_KX4` (value: `"10gbase-kx4"`)
+
+* `_25GBASE_KR` (value: `"25gbase-kr"`)
+
+* `_40GBASE_KR4` (value: `"40gbase-kr4"`)
+
+* `_50GBASE_KR` (value: `"50gbase-kr"`)
+
+* `_100GBASE_KP4` (value: `"100gbase-kp4"`)
+
+* `_100GBASE_KR2` (value: `"100gbase-kr2"`)
+
+* `_100GBASE_KR4` (value: `"100gbase-kr4"`)
+
+* `IEEE802_11A` (value: `"ieee802.11a"`)
+
+* `IEEE802_11G` (value: `"ieee802.11g"`)
+
+* `IEEE802_11N` (value: `"ieee802.11n"`)
+
+* `IEEE802_11AC` (value: `"ieee802.11ac"`)
+
+* `IEEE802_11AD` (value: `"ieee802.11ad"`)
+
+* `IEEE802_11AX` (value: `"ieee802.11ax"`)
+
+* `IEEE802_11AY` (value: `"ieee802.11ay"`)
+
+* `IEEE802_15_1` (value: `"ieee802.15.1"`)
+
+* `OTHER_WIRELESS` (value: `"other-wireless"`)
+
+* `GSM` (value: `"gsm"`)
+
+* `CDMA` (value: `"cdma"`)
+
+* `LTE` (value: `"lte"`)
+
+* `SONET_OC3` (value: `"sonet-oc3"`)
+
+* `SONET_OC12` (value: `"sonet-oc12"`)
+
+* `SONET_OC48` (value: `"sonet-oc48"`)
+
+* `SONET_OC192` (value: `"sonet-oc192"`)
+
+* `SONET_OC768` (value: `"sonet-oc768"`)
+
+* `SONET_OC1920` (value: `"sonet-oc1920"`)
+
+* `SONET_OC3840` (value: `"sonet-oc3840"`)
+
+* `_1GFC_SFP` (value: `"1gfc-sfp"`)
+
+* `_2GFC_SFP` (value: `"2gfc-sfp"`)
+
+* `_4GFC_SFP` (value: `"4gfc-sfp"`)
+
+* `_8GFC_SFPP` (value: `"8gfc-sfpp"`)
+
+* `_16GFC_SFPP` (value: `"16gfc-sfpp"`)
+
+* `_32GFC_SFP28` (value: `"32gfc-sfp28"`)
+
+* `_64GFC_QSFPP` (value: `"64gfc-qsfpp"`)
+
+* `_128GFC_QSFP28` (value: `"128gfc-qsfp28"`)
+
+* `INFINIBAND_SDR` (value: `"infiniband-sdr"`)
+
+* `INFINIBAND_DDR` (value: `"infiniband-ddr"`)
+
+* `INFINIBAND_QDR` (value: `"infiniband-qdr"`)
+
+* `INFINIBAND_FDR10` (value: `"infiniband-fdr10"`)
+
+* `INFINIBAND_FDR` (value: `"infiniband-fdr"`)
+
+* `INFINIBAND_EDR` (value: `"infiniband-edr"`)
+
+* `INFINIBAND_HDR` (value: `"infiniband-hdr"`)
+
+* `INFINIBAND_NDR` (value: `"infiniband-ndr"`)
+
+* `INFINIBAND_XDR` (value: `"infiniband-xdr"`)
+
+* `T1` (value: `"t1"`)
+
+* `E1` (value: `"e1"`)
+
+* `T3` (value: `"t3"`)
+
+* `E3` (value: `"e3"`)
+
+* `XDSL` (value: `"xdsl"`)
+
+* `DOCSIS` (value: `"docsis"`)
+
+* `GPON` (value: `"gpon"`)
+
+* `XG_PON` (value: `"xg-pon"`)
+
+* `XGS_PON` (value: `"xgs-pon"`)
+
+* `NG_PON2` (value: `"ng-pon2"`)
+
+* `EPON` (value: `"epon"`)
+
+* `_10G_EPON` (value: `"10g-epon"`)
+
+* `CISCO_STACKWISE` (value: `"cisco-stackwise"`)
+
+* `CISCO_STACKWISE_PLUS` (value: `"cisco-stackwise-plus"`)
+
+* `CISCO_FLEXSTACK` (value: `"cisco-flexstack"`)
+
+* `CISCO_FLEXSTACK_PLUS` (value: `"cisco-flexstack-plus"`)
+
+* `CISCO_STACKWISE_80` (value: `"cisco-stackwise-80"`)
+
+* `CISCO_STACKWISE_160` (value: `"cisco-stackwise-160"`)
+
+* `CISCO_STACKWISE_320` (value: `"cisco-stackwise-320"`)
+
+* `CISCO_STACKWISE_480` (value: `"cisco-stackwise-480"`)
+
+* `CISCO_STACKWISE_1T` (value: `"cisco-stackwise-1t"`)
+
+* `JUNIPER_VCP` (value: `"juniper-vcp"`)
+
+* `EXTREME_SUMMITSTACK` (value: `"extreme-summitstack"`)
+
+* `EXTREME_SUMMITSTACK_128` (value: `"extreme-summitstack-128"`)
+
+* `EXTREME_SUMMITSTACK_256` (value: `"extreme-summitstack-256"`)
+
+* `EXTREME_SUMMITSTACK_512` (value: `"extreme-summitstack-512"`)
+
+* `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/InventoryItem.md b/docs/InventoryItem.md
index d2c3f2bfe2..e2a8f52a76 100644
--- a/docs/InventoryItem.md
+++ b/docs/InventoryItem.md
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**ComponentType** | Pointer to **NullableString** | | [optional]
**ComponentId** | Pointer to **NullableInt64** | | [optional]
-**Component** | **map[string]interface{}** | | [readonly]
+**Component** | **interface{}** | | [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
### NewInventoryItem
-`func NewInventoryItem(id int32, url string, display string, device NestedDevice, name string, component map[string]interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItem`
+`func NewInventoryItem(id int32, url string, display string, device NestedDevice, 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,
@@ -483,20 +483,20 @@ HasComponentId returns a boolean if a field has been set.
UnsetComponentId ensures that no value is present for ComponentId, not even an explicit nil
### GetComponent
-`func (o *InventoryItem) GetComponent() map[string]interface{}`
+`func (o *InventoryItem) GetComponent() interface{}`
GetComponent returns the Component field if non-nil, zero value otherwise.
### GetComponentOk
-`func (o *InventoryItem) GetComponentOk() (*map[string]interface{}, bool)`
+`func (o *InventoryItem) GetComponentOk() (*interface{}, bool)`
GetComponentOk returns a tuple with the Component field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetComponent
-`func (o *InventoryItem) SetComponent(v map[string]interface{})`
+`func (o *InventoryItem) SetComponent(v interface{})`
SetComponent sets Component field to given value.
diff --git a/docs/InventoryItemTemplate.md b/docs/InventoryItemTemplate.md
index 628ce1fe53..cfffd42d6e 100644
--- a/docs/InventoryItemTemplate.md
+++ b/docs/InventoryItemTemplate.md
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**ComponentType** | Pointer to **NullableString** | | [optional]
**ComponentId** | Pointer to **NullableInt64** | | [optional]
-**Component** | **map[string]interface{}** | | [readonly]
+**Component** | **interface{}** | | [readonly]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
**Depth** | **int32** | | [readonly]
@@ -26,7 +26,7 @@ Name | Type | Description | Notes
### NewInventoryItemTemplate
-`func NewInventoryItemTemplate(id int32, url string, display string, deviceType NestedDeviceType, name string, component map[string]interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItemTemplate`
+`func NewInventoryItemTemplate(id int32, url string, display string, deviceType NestedDeviceType, 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,
@@ -393,20 +393,20 @@ HasComponentId returns a boolean if a field has been set.
UnsetComponentId ensures that no value is present for ComponentId, not even an explicit nil
### GetComponent
-`func (o *InventoryItemTemplate) GetComponent() map[string]interface{}`
+`func (o *InventoryItemTemplate) GetComponent() interface{}`
GetComponent returns the Component field if non-nil, zero value otherwise.
### GetComponentOk
-`func (o *InventoryItemTemplate) GetComponentOk() (*map[string]interface{}, bool)`
+`func (o *InventoryItemTemplate) GetComponentOk() (*interface{}, bool)`
GetComponentOk returns a tuple with the Component field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetComponent
-`func (o *InventoryItemTemplate) SetComponent(v map[string]interface{})`
+`func (o *InventoryItemTemplate) SetComponent(v interface{})`
SetComponent sets Component field to given value.
diff --git a/docs/IpamAPI.md b/docs/IpamAPI.md
new file mode 100644
index 0000000000..ed006445ec
--- /dev/null
+++ b/docs/IpamAPI.md
@@ -0,0 +1,12970 @@
+# \IpamAPI
+
+All URIs are relative to *http://localhost*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**IpamAggregatesBulkDestroy**](IpamAPI.md#IpamAggregatesBulkDestroy) | **Delete** /api/ipam/aggregates/ |
+[**IpamAggregatesBulkPartialUpdate**](IpamAPI.md#IpamAggregatesBulkPartialUpdate) | **Patch** /api/ipam/aggregates/ |
+[**IpamAggregatesBulkUpdate**](IpamAPI.md#IpamAggregatesBulkUpdate) | **Put** /api/ipam/aggregates/ |
+[**IpamAggregatesCreate**](IpamAPI.md#IpamAggregatesCreate) | **Post** /api/ipam/aggregates/ |
+[**IpamAggregatesDestroy**](IpamAPI.md#IpamAggregatesDestroy) | **Delete** /api/ipam/aggregates/{id}/ |
+[**IpamAggregatesList**](IpamAPI.md#IpamAggregatesList) | **Get** /api/ipam/aggregates/ |
+[**IpamAggregatesPartialUpdate**](IpamAPI.md#IpamAggregatesPartialUpdate) | **Patch** /api/ipam/aggregates/{id}/ |
+[**IpamAggregatesRetrieve**](IpamAPI.md#IpamAggregatesRetrieve) | **Get** /api/ipam/aggregates/{id}/ |
+[**IpamAggregatesUpdate**](IpamAPI.md#IpamAggregatesUpdate) | **Put** /api/ipam/aggregates/{id}/ |
+[**IpamAsnRangesAvailableAsnsCreate**](IpamAPI.md#IpamAsnRangesAvailableAsnsCreate) | **Post** /api/ipam/asn-ranges/{id}/available-asns/ |
+[**IpamAsnRangesAvailableAsnsList**](IpamAPI.md#IpamAsnRangesAvailableAsnsList) | **Get** /api/ipam/asn-ranges/{id}/available-asns/ |
+[**IpamAsnRangesBulkDestroy**](IpamAPI.md#IpamAsnRangesBulkDestroy) | **Delete** /api/ipam/asn-ranges/ |
+[**IpamAsnRangesBulkPartialUpdate**](IpamAPI.md#IpamAsnRangesBulkPartialUpdate) | **Patch** /api/ipam/asn-ranges/ |
+[**IpamAsnRangesBulkUpdate**](IpamAPI.md#IpamAsnRangesBulkUpdate) | **Put** /api/ipam/asn-ranges/ |
+[**IpamAsnRangesCreate**](IpamAPI.md#IpamAsnRangesCreate) | **Post** /api/ipam/asn-ranges/ |
+[**IpamAsnRangesDestroy**](IpamAPI.md#IpamAsnRangesDestroy) | **Delete** /api/ipam/asn-ranges/{id}/ |
+[**IpamAsnRangesList**](IpamAPI.md#IpamAsnRangesList) | **Get** /api/ipam/asn-ranges/ |
+[**IpamAsnRangesPartialUpdate**](IpamAPI.md#IpamAsnRangesPartialUpdate) | **Patch** /api/ipam/asn-ranges/{id}/ |
+[**IpamAsnRangesRetrieve**](IpamAPI.md#IpamAsnRangesRetrieve) | **Get** /api/ipam/asn-ranges/{id}/ |
+[**IpamAsnRangesUpdate**](IpamAPI.md#IpamAsnRangesUpdate) | **Put** /api/ipam/asn-ranges/{id}/ |
+[**IpamAsnsBulkDestroy**](IpamAPI.md#IpamAsnsBulkDestroy) | **Delete** /api/ipam/asns/ |
+[**IpamAsnsBulkPartialUpdate**](IpamAPI.md#IpamAsnsBulkPartialUpdate) | **Patch** /api/ipam/asns/ |
+[**IpamAsnsBulkUpdate**](IpamAPI.md#IpamAsnsBulkUpdate) | **Put** /api/ipam/asns/ |
+[**IpamAsnsCreate**](IpamAPI.md#IpamAsnsCreate) | **Post** /api/ipam/asns/ |
+[**IpamAsnsDestroy**](IpamAPI.md#IpamAsnsDestroy) | **Delete** /api/ipam/asns/{id}/ |
+[**IpamAsnsList**](IpamAPI.md#IpamAsnsList) | **Get** /api/ipam/asns/ |
+[**IpamAsnsPartialUpdate**](IpamAPI.md#IpamAsnsPartialUpdate) | **Patch** /api/ipam/asns/{id}/ |
+[**IpamAsnsRetrieve**](IpamAPI.md#IpamAsnsRetrieve) | **Get** /api/ipam/asns/{id}/ |
+[**IpamAsnsUpdate**](IpamAPI.md#IpamAsnsUpdate) | **Put** /api/ipam/asns/{id}/ |
+[**IpamFhrpGroupAssignmentsBulkDestroy**](IpamAPI.md#IpamFhrpGroupAssignmentsBulkDestroy) | **Delete** /api/ipam/fhrp-group-assignments/ |
+[**IpamFhrpGroupAssignmentsBulkPartialUpdate**](IpamAPI.md#IpamFhrpGroupAssignmentsBulkPartialUpdate) | **Patch** /api/ipam/fhrp-group-assignments/ |
+[**IpamFhrpGroupAssignmentsBulkUpdate**](IpamAPI.md#IpamFhrpGroupAssignmentsBulkUpdate) | **Put** /api/ipam/fhrp-group-assignments/ |
+[**IpamFhrpGroupAssignmentsCreate**](IpamAPI.md#IpamFhrpGroupAssignmentsCreate) | **Post** /api/ipam/fhrp-group-assignments/ |
+[**IpamFhrpGroupAssignmentsDestroy**](IpamAPI.md#IpamFhrpGroupAssignmentsDestroy) | **Delete** /api/ipam/fhrp-group-assignments/{id}/ |
+[**IpamFhrpGroupAssignmentsList**](IpamAPI.md#IpamFhrpGroupAssignmentsList) | **Get** /api/ipam/fhrp-group-assignments/ |
+[**IpamFhrpGroupAssignmentsPartialUpdate**](IpamAPI.md#IpamFhrpGroupAssignmentsPartialUpdate) | **Patch** /api/ipam/fhrp-group-assignments/{id}/ |
+[**IpamFhrpGroupAssignmentsRetrieve**](IpamAPI.md#IpamFhrpGroupAssignmentsRetrieve) | **Get** /api/ipam/fhrp-group-assignments/{id}/ |
+[**IpamFhrpGroupAssignmentsUpdate**](IpamAPI.md#IpamFhrpGroupAssignmentsUpdate) | **Put** /api/ipam/fhrp-group-assignments/{id}/ |
+[**IpamFhrpGroupsBulkDestroy**](IpamAPI.md#IpamFhrpGroupsBulkDestroy) | **Delete** /api/ipam/fhrp-groups/ |
+[**IpamFhrpGroupsBulkPartialUpdate**](IpamAPI.md#IpamFhrpGroupsBulkPartialUpdate) | **Patch** /api/ipam/fhrp-groups/ |
+[**IpamFhrpGroupsBulkUpdate**](IpamAPI.md#IpamFhrpGroupsBulkUpdate) | **Put** /api/ipam/fhrp-groups/ |
+[**IpamFhrpGroupsCreate**](IpamAPI.md#IpamFhrpGroupsCreate) | **Post** /api/ipam/fhrp-groups/ |
+[**IpamFhrpGroupsDestroy**](IpamAPI.md#IpamFhrpGroupsDestroy) | **Delete** /api/ipam/fhrp-groups/{id}/ |
+[**IpamFhrpGroupsList**](IpamAPI.md#IpamFhrpGroupsList) | **Get** /api/ipam/fhrp-groups/ |
+[**IpamFhrpGroupsPartialUpdate**](IpamAPI.md#IpamFhrpGroupsPartialUpdate) | **Patch** /api/ipam/fhrp-groups/{id}/ |
+[**IpamFhrpGroupsRetrieve**](IpamAPI.md#IpamFhrpGroupsRetrieve) | **Get** /api/ipam/fhrp-groups/{id}/ |
+[**IpamFhrpGroupsUpdate**](IpamAPI.md#IpamFhrpGroupsUpdate) | **Put** /api/ipam/fhrp-groups/{id}/ |
+[**IpamIpAddressesBulkDestroy**](IpamAPI.md#IpamIpAddressesBulkDestroy) | **Delete** /api/ipam/ip-addresses/ |
+[**IpamIpAddressesBulkPartialUpdate**](IpamAPI.md#IpamIpAddressesBulkPartialUpdate) | **Patch** /api/ipam/ip-addresses/ |
+[**IpamIpAddressesBulkUpdate**](IpamAPI.md#IpamIpAddressesBulkUpdate) | **Put** /api/ipam/ip-addresses/ |
+[**IpamIpAddressesCreate**](IpamAPI.md#IpamIpAddressesCreate) | **Post** /api/ipam/ip-addresses/ |
+[**IpamIpAddressesDestroy**](IpamAPI.md#IpamIpAddressesDestroy) | **Delete** /api/ipam/ip-addresses/{id}/ |
+[**IpamIpAddressesList**](IpamAPI.md#IpamIpAddressesList) | **Get** /api/ipam/ip-addresses/ |
+[**IpamIpAddressesPartialUpdate**](IpamAPI.md#IpamIpAddressesPartialUpdate) | **Patch** /api/ipam/ip-addresses/{id}/ |
+[**IpamIpAddressesRetrieve**](IpamAPI.md#IpamIpAddressesRetrieve) | **Get** /api/ipam/ip-addresses/{id}/ |
+[**IpamIpAddressesUpdate**](IpamAPI.md#IpamIpAddressesUpdate) | **Put** /api/ipam/ip-addresses/{id}/ |
+[**IpamIpRangesAvailableIpsCreate**](IpamAPI.md#IpamIpRangesAvailableIpsCreate) | **Post** /api/ipam/ip-ranges/{id}/available-ips/ |
+[**IpamIpRangesAvailableIpsList**](IpamAPI.md#IpamIpRangesAvailableIpsList) | **Get** /api/ipam/ip-ranges/{id}/available-ips/ |
+[**IpamIpRangesBulkDestroy**](IpamAPI.md#IpamIpRangesBulkDestroy) | **Delete** /api/ipam/ip-ranges/ |
+[**IpamIpRangesBulkPartialUpdate**](IpamAPI.md#IpamIpRangesBulkPartialUpdate) | **Patch** /api/ipam/ip-ranges/ |
+[**IpamIpRangesBulkUpdate**](IpamAPI.md#IpamIpRangesBulkUpdate) | **Put** /api/ipam/ip-ranges/ |
+[**IpamIpRangesCreate**](IpamAPI.md#IpamIpRangesCreate) | **Post** /api/ipam/ip-ranges/ |
+[**IpamIpRangesDestroy**](IpamAPI.md#IpamIpRangesDestroy) | **Delete** /api/ipam/ip-ranges/{id}/ |
+[**IpamIpRangesList**](IpamAPI.md#IpamIpRangesList) | **Get** /api/ipam/ip-ranges/ |
+[**IpamIpRangesPartialUpdate**](IpamAPI.md#IpamIpRangesPartialUpdate) | **Patch** /api/ipam/ip-ranges/{id}/ |
+[**IpamIpRangesRetrieve**](IpamAPI.md#IpamIpRangesRetrieve) | **Get** /api/ipam/ip-ranges/{id}/ |
+[**IpamIpRangesUpdate**](IpamAPI.md#IpamIpRangesUpdate) | **Put** /api/ipam/ip-ranges/{id}/ |
+[**IpamPrefixesAvailableIpsCreate**](IpamAPI.md#IpamPrefixesAvailableIpsCreate) | **Post** /api/ipam/prefixes/{id}/available-ips/ |
+[**IpamPrefixesAvailableIpsList**](IpamAPI.md#IpamPrefixesAvailableIpsList) | **Get** /api/ipam/prefixes/{id}/available-ips/ |
+[**IpamPrefixesAvailablePrefixesCreate**](IpamAPI.md#IpamPrefixesAvailablePrefixesCreate) | **Post** /api/ipam/prefixes/{id}/available-prefixes/ |
+[**IpamPrefixesAvailablePrefixesList**](IpamAPI.md#IpamPrefixesAvailablePrefixesList) | **Get** /api/ipam/prefixes/{id}/available-prefixes/ |
+[**IpamPrefixesBulkDestroy**](IpamAPI.md#IpamPrefixesBulkDestroy) | **Delete** /api/ipam/prefixes/ |
+[**IpamPrefixesBulkPartialUpdate**](IpamAPI.md#IpamPrefixesBulkPartialUpdate) | **Patch** /api/ipam/prefixes/ |
+[**IpamPrefixesBulkUpdate**](IpamAPI.md#IpamPrefixesBulkUpdate) | **Put** /api/ipam/prefixes/ |
+[**IpamPrefixesCreate**](IpamAPI.md#IpamPrefixesCreate) | **Post** /api/ipam/prefixes/ |
+[**IpamPrefixesDestroy**](IpamAPI.md#IpamPrefixesDestroy) | **Delete** /api/ipam/prefixes/{id}/ |
+[**IpamPrefixesList**](IpamAPI.md#IpamPrefixesList) | **Get** /api/ipam/prefixes/ |
+[**IpamPrefixesPartialUpdate**](IpamAPI.md#IpamPrefixesPartialUpdate) | **Patch** /api/ipam/prefixes/{id}/ |
+[**IpamPrefixesRetrieve**](IpamAPI.md#IpamPrefixesRetrieve) | **Get** /api/ipam/prefixes/{id}/ |
+[**IpamPrefixesUpdate**](IpamAPI.md#IpamPrefixesUpdate) | **Put** /api/ipam/prefixes/{id}/ |
+[**IpamRirsBulkDestroy**](IpamAPI.md#IpamRirsBulkDestroy) | **Delete** /api/ipam/rirs/ |
+[**IpamRirsBulkPartialUpdate**](IpamAPI.md#IpamRirsBulkPartialUpdate) | **Patch** /api/ipam/rirs/ |
+[**IpamRirsBulkUpdate**](IpamAPI.md#IpamRirsBulkUpdate) | **Put** /api/ipam/rirs/ |
+[**IpamRirsCreate**](IpamAPI.md#IpamRirsCreate) | **Post** /api/ipam/rirs/ |
+[**IpamRirsDestroy**](IpamAPI.md#IpamRirsDestroy) | **Delete** /api/ipam/rirs/{id}/ |
+[**IpamRirsList**](IpamAPI.md#IpamRirsList) | **Get** /api/ipam/rirs/ |
+[**IpamRirsPartialUpdate**](IpamAPI.md#IpamRirsPartialUpdate) | **Patch** /api/ipam/rirs/{id}/ |
+[**IpamRirsRetrieve**](IpamAPI.md#IpamRirsRetrieve) | **Get** /api/ipam/rirs/{id}/ |
+[**IpamRirsUpdate**](IpamAPI.md#IpamRirsUpdate) | **Put** /api/ipam/rirs/{id}/ |
+[**IpamRolesBulkDestroy**](IpamAPI.md#IpamRolesBulkDestroy) | **Delete** /api/ipam/roles/ |
+[**IpamRolesBulkPartialUpdate**](IpamAPI.md#IpamRolesBulkPartialUpdate) | **Patch** /api/ipam/roles/ |
+[**IpamRolesBulkUpdate**](IpamAPI.md#IpamRolesBulkUpdate) | **Put** /api/ipam/roles/ |
+[**IpamRolesCreate**](IpamAPI.md#IpamRolesCreate) | **Post** /api/ipam/roles/ |
+[**IpamRolesDestroy**](IpamAPI.md#IpamRolesDestroy) | **Delete** /api/ipam/roles/{id}/ |
+[**IpamRolesList**](IpamAPI.md#IpamRolesList) | **Get** /api/ipam/roles/ |
+[**IpamRolesPartialUpdate**](IpamAPI.md#IpamRolesPartialUpdate) | **Patch** /api/ipam/roles/{id}/ |
+[**IpamRolesRetrieve**](IpamAPI.md#IpamRolesRetrieve) | **Get** /api/ipam/roles/{id}/ |
+[**IpamRolesUpdate**](IpamAPI.md#IpamRolesUpdate) | **Put** /api/ipam/roles/{id}/ |
+[**IpamRouteTargetsBulkDestroy**](IpamAPI.md#IpamRouteTargetsBulkDestroy) | **Delete** /api/ipam/route-targets/ |
+[**IpamRouteTargetsBulkPartialUpdate**](IpamAPI.md#IpamRouteTargetsBulkPartialUpdate) | **Patch** /api/ipam/route-targets/ |
+[**IpamRouteTargetsBulkUpdate**](IpamAPI.md#IpamRouteTargetsBulkUpdate) | **Put** /api/ipam/route-targets/ |
+[**IpamRouteTargetsCreate**](IpamAPI.md#IpamRouteTargetsCreate) | **Post** /api/ipam/route-targets/ |
+[**IpamRouteTargetsDestroy**](IpamAPI.md#IpamRouteTargetsDestroy) | **Delete** /api/ipam/route-targets/{id}/ |
+[**IpamRouteTargetsList**](IpamAPI.md#IpamRouteTargetsList) | **Get** /api/ipam/route-targets/ |
+[**IpamRouteTargetsPartialUpdate**](IpamAPI.md#IpamRouteTargetsPartialUpdate) | **Patch** /api/ipam/route-targets/{id}/ |
+[**IpamRouteTargetsRetrieve**](IpamAPI.md#IpamRouteTargetsRetrieve) | **Get** /api/ipam/route-targets/{id}/ |
+[**IpamRouteTargetsUpdate**](IpamAPI.md#IpamRouteTargetsUpdate) | **Put** /api/ipam/route-targets/{id}/ |
+[**IpamServiceTemplatesBulkDestroy**](IpamAPI.md#IpamServiceTemplatesBulkDestroy) | **Delete** /api/ipam/service-templates/ |
+[**IpamServiceTemplatesBulkPartialUpdate**](IpamAPI.md#IpamServiceTemplatesBulkPartialUpdate) | **Patch** /api/ipam/service-templates/ |
+[**IpamServiceTemplatesBulkUpdate**](IpamAPI.md#IpamServiceTemplatesBulkUpdate) | **Put** /api/ipam/service-templates/ |
+[**IpamServiceTemplatesCreate**](IpamAPI.md#IpamServiceTemplatesCreate) | **Post** /api/ipam/service-templates/ |
+[**IpamServiceTemplatesDestroy**](IpamAPI.md#IpamServiceTemplatesDestroy) | **Delete** /api/ipam/service-templates/{id}/ |
+[**IpamServiceTemplatesList**](IpamAPI.md#IpamServiceTemplatesList) | **Get** /api/ipam/service-templates/ |
+[**IpamServiceTemplatesPartialUpdate**](IpamAPI.md#IpamServiceTemplatesPartialUpdate) | **Patch** /api/ipam/service-templates/{id}/ |
+[**IpamServiceTemplatesRetrieve**](IpamAPI.md#IpamServiceTemplatesRetrieve) | **Get** /api/ipam/service-templates/{id}/ |
+[**IpamServiceTemplatesUpdate**](IpamAPI.md#IpamServiceTemplatesUpdate) | **Put** /api/ipam/service-templates/{id}/ |
+[**IpamServicesBulkDestroy**](IpamAPI.md#IpamServicesBulkDestroy) | **Delete** /api/ipam/services/ |
+[**IpamServicesBulkPartialUpdate**](IpamAPI.md#IpamServicesBulkPartialUpdate) | **Patch** /api/ipam/services/ |
+[**IpamServicesBulkUpdate**](IpamAPI.md#IpamServicesBulkUpdate) | **Put** /api/ipam/services/ |
+[**IpamServicesCreate**](IpamAPI.md#IpamServicesCreate) | **Post** /api/ipam/services/ |
+[**IpamServicesDestroy**](IpamAPI.md#IpamServicesDestroy) | **Delete** /api/ipam/services/{id}/ |
+[**IpamServicesList**](IpamAPI.md#IpamServicesList) | **Get** /api/ipam/services/ |
+[**IpamServicesPartialUpdate**](IpamAPI.md#IpamServicesPartialUpdate) | **Patch** /api/ipam/services/{id}/ |
+[**IpamServicesRetrieve**](IpamAPI.md#IpamServicesRetrieve) | **Get** /api/ipam/services/{id}/ |
+[**IpamServicesUpdate**](IpamAPI.md#IpamServicesUpdate) | **Put** /api/ipam/services/{id}/ |
+[**IpamVlanGroupsAvailableVlansCreate**](IpamAPI.md#IpamVlanGroupsAvailableVlansCreate) | **Post** /api/ipam/vlan-groups/{id}/available-vlans/ |
+[**IpamVlanGroupsAvailableVlansList**](IpamAPI.md#IpamVlanGroupsAvailableVlansList) | **Get** /api/ipam/vlan-groups/{id}/available-vlans/ |
+[**IpamVlanGroupsBulkDestroy**](IpamAPI.md#IpamVlanGroupsBulkDestroy) | **Delete** /api/ipam/vlan-groups/ |
+[**IpamVlanGroupsBulkPartialUpdate**](IpamAPI.md#IpamVlanGroupsBulkPartialUpdate) | **Patch** /api/ipam/vlan-groups/ |
+[**IpamVlanGroupsBulkUpdate**](IpamAPI.md#IpamVlanGroupsBulkUpdate) | **Put** /api/ipam/vlan-groups/ |
+[**IpamVlanGroupsCreate**](IpamAPI.md#IpamVlanGroupsCreate) | **Post** /api/ipam/vlan-groups/ |
+[**IpamVlanGroupsDestroy**](IpamAPI.md#IpamVlanGroupsDestroy) | **Delete** /api/ipam/vlan-groups/{id}/ |
+[**IpamVlanGroupsList**](IpamAPI.md#IpamVlanGroupsList) | **Get** /api/ipam/vlan-groups/ |
+[**IpamVlanGroupsPartialUpdate**](IpamAPI.md#IpamVlanGroupsPartialUpdate) | **Patch** /api/ipam/vlan-groups/{id}/ |
+[**IpamVlanGroupsRetrieve**](IpamAPI.md#IpamVlanGroupsRetrieve) | **Get** /api/ipam/vlan-groups/{id}/ |
+[**IpamVlanGroupsUpdate**](IpamAPI.md#IpamVlanGroupsUpdate) | **Put** /api/ipam/vlan-groups/{id}/ |
+[**IpamVlansBulkDestroy**](IpamAPI.md#IpamVlansBulkDestroy) | **Delete** /api/ipam/vlans/ |
+[**IpamVlansBulkPartialUpdate**](IpamAPI.md#IpamVlansBulkPartialUpdate) | **Patch** /api/ipam/vlans/ |
+[**IpamVlansBulkUpdate**](IpamAPI.md#IpamVlansBulkUpdate) | **Put** /api/ipam/vlans/ |
+[**IpamVlansCreate**](IpamAPI.md#IpamVlansCreate) | **Post** /api/ipam/vlans/ |
+[**IpamVlansDestroy**](IpamAPI.md#IpamVlansDestroy) | **Delete** /api/ipam/vlans/{id}/ |
+[**IpamVlansList**](IpamAPI.md#IpamVlansList) | **Get** /api/ipam/vlans/ |
+[**IpamVlansPartialUpdate**](IpamAPI.md#IpamVlansPartialUpdate) | **Patch** /api/ipam/vlans/{id}/ |
+[**IpamVlansRetrieve**](IpamAPI.md#IpamVlansRetrieve) | **Get** /api/ipam/vlans/{id}/ |
+[**IpamVlansUpdate**](IpamAPI.md#IpamVlansUpdate) | **Put** /api/ipam/vlans/{id}/ |
+[**IpamVrfsBulkDestroy**](IpamAPI.md#IpamVrfsBulkDestroy) | **Delete** /api/ipam/vrfs/ |
+[**IpamVrfsBulkPartialUpdate**](IpamAPI.md#IpamVrfsBulkPartialUpdate) | **Patch** /api/ipam/vrfs/ |
+[**IpamVrfsBulkUpdate**](IpamAPI.md#IpamVrfsBulkUpdate) | **Put** /api/ipam/vrfs/ |
+[**IpamVrfsCreate**](IpamAPI.md#IpamVrfsCreate) | **Post** /api/ipam/vrfs/ |
+[**IpamVrfsDestroy**](IpamAPI.md#IpamVrfsDestroy) | **Delete** /api/ipam/vrfs/{id}/ |
+[**IpamVrfsList**](IpamAPI.md#IpamVrfsList) | **Get** /api/ipam/vrfs/ |
+[**IpamVrfsPartialUpdate**](IpamAPI.md#IpamVrfsPartialUpdate) | **Patch** /api/ipam/vrfs/{id}/ |
+[**IpamVrfsRetrieve**](IpamAPI.md#IpamVrfsRetrieve) | **Get** /api/ipam/vrfs/{id}/ |
+[**IpamVrfsUpdate**](IpamAPI.md#IpamVrfsUpdate) | **Put** /api/ipam/vrfs/{id}/ |
+
+
+
+## IpamAggregatesBulkDestroy
+
+> IpamAggregatesBulkDestroy(ctx).AggregateRequest(aggregateRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamAggregatesBulkDestroy(context.Background()).AggregateRequest(aggregateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAggregatesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **aggregateRequest** | [**[]AggregateRequest**](AggregateRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamAggregatesBulkPartialUpdate
+
+> []Aggregate IpamAggregatesBulkPartialUpdate(ctx).AggregateRequest(aggregateRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAggregatesBulkPartialUpdate(context.Background()).AggregateRequest(aggregateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAggregatesBulkPartialUpdate`: []Aggregate
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAggregatesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **aggregateRequest** | [**[]AggregateRequest**](AggregateRequest.md) | |
+
+### Return type
+
+[**[]Aggregate**](Aggregate.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)
+
+
+## IpamAggregatesBulkUpdate
+
+> []Aggregate IpamAggregatesBulkUpdate(ctx).AggregateRequest(aggregateRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAggregatesBulkUpdate(context.Background()).AggregateRequest(aggregateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAggregatesBulkUpdate`: []Aggregate
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAggregatesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **aggregateRequest** | [**[]AggregateRequest**](AggregateRequest.md) | |
+
+### Return type
+
+[**[]Aggregate**](Aggregate.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)
+
+
+## IpamAggregatesCreate
+
+> Aggregate IpamAggregatesCreate(ctx).WritableAggregateRequest(writableAggregateRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", int32(123)) // WritableAggregateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAggregatesCreate(context.Background()).WritableAggregateRequest(writableAggregateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAggregatesCreate`: Aggregate
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAggregatesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableAggregateRequest** | [**WritableAggregateRequest**](WritableAggregateRequest.md) | |
+
+### Return type
+
+[**Aggregate**](Aggregate.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)
+
+
+## IpamAggregatesDestroy
+
+> IpamAggregatesDestroy(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 aggregate.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamAggregatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 aggregate. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAggregatesDestroyRequest 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)
+
+
+## IpamAggregatesList
+
+> PaginatedAggregateList IpamAggregatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DateAdded(dateAdded).DateAddedEmpty(dateAddedEmpty).DateAddedGt(dateAddedGt).DateAddedGte(dateAddedGte).DateAddedLt(dateAddedLt).DateAddedLte(dateAddedLte).DateAddedN(dateAddedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ dateAdded := []string{time.Now()} // []string | (optional)
+ dateAddedEmpty := true // bool | (optional)
+ dateAddedGt := []string{time.Now()} // []string | (optional)
+ dateAddedGte := []string{time.Now()} // []string | (optional)
+ dateAddedLt := []string{time.Now()} // []string | (optional)
+ dateAddedLte := []string{time.Now()} // []string | (optional)
+ dateAddedN := []string{time.Now()} // []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)
+ family := float32(8.14) // float32 | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ prefix := "prefix_example" // string | Prefix (optional)
+ q := "q_example" // string | Search (optional)
+ rir := []string{"Inner_example"} // []string | RIR (slug) (optional)
+ rirN := []string{"Inner_example"} // []string | RIR (slug) (optional)
+ rirId := []int32{int32(123)} // []int32 | RIR (ID) (optional)
+ rirIdN := []int32{int32(123)} // []int32 | RIR (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAggregatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DateAdded(dateAdded).DateAddedEmpty(dateAddedEmpty).DateAddedGt(dateAddedGt).DateAddedGte(dateAddedGte).DateAddedLt(dateAddedLt).DateAddedLte(dateAddedLte).DateAddedN(dateAddedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAggregatesList`: PaginatedAggregateList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAggregatesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **dateAdded** | **[]string** | |
+ **dateAddedEmpty** | **bool** | |
+ **dateAddedGt** | **[]string** | |
+ **dateAddedGte** | **[]string** | |
+ **dateAddedLt** | **[]string** | |
+ **dateAddedLte** | **[]string** | |
+ **dateAddedN** | **[]string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **family** | **float32** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **prefix** | **string** | Prefix |
+ **q** | **string** | Search |
+ **rir** | **[]string** | RIR (slug) |
+ **rirN** | **[]string** | RIR (slug) |
+ **rirId** | **[]int32** | RIR (ID) |
+ **rirIdN** | **[]int32** | RIR (ID) |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **tenant** | **[]string** | Tenant (slug) |
+ **tenantN** | **[]string** | Tenant (slug) |
+ **tenantGroup** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupN** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupId** | **[]int32** | Tenant Group (ID) |
+ **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
+ **tenantId** | **[]int32** | Tenant (ID) |
+ **tenantIdN** | **[]int32** | Tenant (ID) |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedAggregateList**](PaginatedAggregateList.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)
+
+
+## IpamAggregatesPartialUpdate
+
+> Aggregate IpamAggregatesPartialUpdate(ctx, id).PatchedWritableAggregateRequest(patchedWritableAggregateRequest).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 aggregate.
+ patchedWritableAggregateRequest := *openapiclient.NewPatchedWritableAggregateRequest() // PatchedWritableAggregateRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAggregatesPartialUpdate(context.Background(), id).PatchedWritableAggregateRequest(patchedWritableAggregateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAggregatesPartialUpdate`: Aggregate
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesPartialUpdate`: %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 aggregate. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAggregatesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableAggregateRequest** | [**PatchedWritableAggregateRequest**](PatchedWritableAggregateRequest.md) | |
+
+### Return type
+
+[**Aggregate**](Aggregate.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)
+
+
+## IpamAggregatesRetrieve
+
+> Aggregate IpamAggregatesRetrieve(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 aggregate.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAggregatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAggregatesRetrieve`: Aggregate
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesRetrieve`: %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 aggregate. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAggregatesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**Aggregate**](Aggregate.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)
+
+
+## IpamAggregatesUpdate
+
+> Aggregate IpamAggregatesUpdate(ctx, id).WritableAggregateRequest(writableAggregateRequest).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 aggregate.
+ writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", int32(123)) // WritableAggregateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAggregatesUpdate(context.Background(), id).WritableAggregateRequest(writableAggregateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAggregatesUpdate`: Aggregate
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesUpdate`: %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 aggregate. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAggregatesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableAggregateRequest** | [**WritableAggregateRequest**](WritableAggregateRequest.md) | |
+
+### Return type
+
+[**Aggregate**](Aggregate.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)
+
+
+## IpamAsnRangesAvailableAsnsCreate
+
+> []ASN IpamAsnRangesAvailableAsnsCreate(ctx, id).ASNRequest(aSNRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ id := int32(56) // int32 |
+ aSNRequest := []openapiclient.ASNRequest{*openapiclient.NewASNRequest(int64(123))} // []ASNRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnRangesAvailableAsnsCreate(context.Background(), id).ASNRequest(aSNRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesAvailableAsnsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnRangesAvailableAsnsCreate`: []ASN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesAvailableAsnsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnRangesAvailableAsnsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **aSNRequest** | [**[]ASNRequest**](ASNRequest.md) | |
+
+### Return type
+
+[**[]ASN**](ASN.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)
+
+
+## IpamAsnRangesAvailableAsnsList
+
+> []AvailableASN IpamAsnRangesAvailableAsnsList(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 |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnRangesAvailableAsnsList(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesAvailableAsnsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnRangesAvailableAsnsList`: []AvailableASN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesAvailableAsnsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnRangesAvailableAsnsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**[]AvailableASN**](AvailableASN.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)
+
+
+## IpamAsnRangesBulkDestroy
+
+> IpamAsnRangesBulkDestroy(ctx).ASNRangeRequest(aSNRangeRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamAsnRangesBulkDestroy(context.Background()).ASNRangeRequest(aSNRangeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnRangesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **aSNRangeRequest** | [**[]ASNRangeRequest**](ASNRangeRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamAsnRangesBulkPartialUpdate
+
+> []ASNRange IpamAsnRangesBulkPartialUpdate(ctx).ASNRangeRequest(aSNRangeRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnRangesBulkPartialUpdate(context.Background()).ASNRangeRequest(aSNRangeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnRangesBulkPartialUpdate`: []ASNRange
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnRangesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **aSNRangeRequest** | [**[]ASNRangeRequest**](ASNRangeRequest.md) | |
+
+### Return type
+
+[**[]ASNRange**](ASNRange.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)
+
+
+## IpamAsnRangesBulkUpdate
+
+> []ASNRange IpamAsnRangesBulkUpdate(ctx).ASNRangeRequest(aSNRangeRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnRangesBulkUpdate(context.Background()).ASNRangeRequest(aSNRangeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnRangesBulkUpdate`: []ASNRange
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnRangesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **aSNRangeRequest** | [**[]ASNRangeRequest**](ASNRangeRequest.md) | |
+
+### Return type
+
+[**[]ASNRange**](ASNRange.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)
+
+
+## IpamAsnRangesCreate
+
+> ASNRange IpamAsnRangesCreate(ctx).WritableASNRangeRequest(writableASNRangeRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableASNRangeRequest := *openapiclient.NewWritableASNRangeRequest("Name_example", "Slug_example", int32(123), int64(123), int64(123)) // WritableASNRangeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnRangesCreate(context.Background()).WritableASNRangeRequest(writableASNRangeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnRangesCreate`: ASNRange
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnRangesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableASNRangeRequest** | [**WritableASNRangeRequest**](WritableASNRangeRequest.md) | |
+
+### Return type
+
+[**ASNRange**](ASNRange.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)
+
+
+## IpamAsnRangesDestroy
+
+> IpamAsnRangesDestroy(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 ASN range.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamAsnRangesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 ASN range. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnRangesDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ end := []int32{int32(123)} // []int32 | (optional)
+ endEmpty := true // bool | (optional)
+ endGt := []int32{int32(123)} // []int32 | (optional)
+ endGte := []int32{int32(123)} // []int32 | (optional)
+ endLt := []int32{int32(123)} // []int32 | (optional)
+ endLte := []int32{int32(123)} // []int32 | (optional)
+ endN := []int32{int32(123)} // []int32 | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ 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)
+ rir := []string{"Inner_example"} // []string | RIR (slug) (optional)
+ rirN := []string{"Inner_example"} // []string | RIR (slug) (optional)
+ rirId := []int32{int32(123)} // []int32 | RIR (ID) (optional)
+ rirIdN := []int32{int32(123)} // []int32 | RIR (ID) (optional)
+ start := []int32{int32(123)} // []int32 | (optional)
+ startEmpty := true // bool | (optional)
+ startGt := []int32{int32(123)} // []int32 | (optional)
+ startGte := []int32{int32(123)} // []int32 | (optional)
+ startLt := []int32{int32(123)} // []int32 | (optional)
+ startLte := []int32{int32(123)} // []int32 | (optional)
+ startN := []int32{int32(123)} // []int32 | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ 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()
+ 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)
+ }
+ // response from `IpamAsnRangesList`: PaginatedASNRangeList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnRangesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **end** | **[]int32** | |
+ **endEmpty** | **bool** | |
+ **endGt** | **[]int32** | |
+ **endGte** | **[]int32** | |
+ **endLt** | **[]int32** | |
+ **endLte** | **[]int32** | |
+ **endN** | **[]int32** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **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 |
+ **rir** | **[]string** | RIR (slug) |
+ **rirN** | **[]string** | RIR (slug) |
+ **rirId** | **[]int32** | RIR (ID) |
+ **rirIdN** | **[]int32** | RIR (ID) |
+ **start** | **[]int32** | |
+ **startEmpty** | **bool** | |
+ **startGt** | **[]int32** | |
+ **startGte** | **[]int32** | |
+ **startLt** | **[]int32** | |
+ **startLte** | **[]int32** | |
+ **startN** | **[]int32** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **tenant** | **[]string** | Tenant (slug) |
+ **tenantN** | **[]string** | Tenant (slug) |
+ **tenantGroup** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupN** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupId** | **[]int32** | Tenant Group (ID) |
+ **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
+ **tenantId** | **[]int32** | Tenant (ID) |
+ **tenantIdN** | **[]int32** | Tenant (ID) |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedASNRangeList**](PaginatedASNRangeList.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)
+
+
+## IpamAsnRangesPartialUpdate
+
+> ASNRange IpamAsnRangesPartialUpdate(ctx, id).PatchedWritableASNRangeRequest(patchedWritableASNRangeRequest).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 ASN range.
+ patchedWritableASNRangeRequest := *openapiclient.NewPatchedWritableASNRangeRequest() // PatchedWritableASNRangeRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnRangesPartialUpdate(context.Background(), id).PatchedWritableASNRangeRequest(patchedWritableASNRangeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnRangesPartialUpdate`: ASNRange
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesPartialUpdate`: %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 ASN range. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnRangesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableASNRangeRequest** | [**PatchedWritableASNRangeRequest**](PatchedWritableASNRangeRequest.md) | |
+
+### Return type
+
+[**ASNRange**](ASNRange.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)
+
+
+## IpamAsnRangesRetrieve
+
+> ASNRange IpamAsnRangesRetrieve(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 ASN range.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnRangesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnRangesRetrieve`: ASNRange
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesRetrieve`: %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 ASN range. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnRangesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**ASNRange**](ASNRange.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)
+
+
+## IpamAsnRangesUpdate
+
+> ASNRange IpamAsnRangesUpdate(ctx, id).WritableASNRangeRequest(writableASNRangeRequest).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 ASN range.
+ writableASNRangeRequest := *openapiclient.NewWritableASNRangeRequest("Name_example", "Slug_example", int32(123), int64(123), int64(123)) // WritableASNRangeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnRangesUpdate(context.Background(), id).WritableASNRangeRequest(writableASNRangeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnRangesUpdate`: ASNRange
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesUpdate`: %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 ASN range. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnRangesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableASNRangeRequest** | [**WritableASNRangeRequest**](WritableASNRangeRequest.md) | |
+
+### Return type
+
+[**ASNRange**](ASNRange.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)
+
+
+## IpamAsnsBulkDestroy
+
+> IpamAsnsBulkDestroy(ctx).ASNRequest(aSNRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ aSNRequest := []openapiclient.ASNRequest{*openapiclient.NewASNRequest(int64(123))} // []ASNRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamAsnsBulkDestroy(context.Background()).ASNRequest(aSNRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **aSNRequest** | [**[]ASNRequest**](ASNRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamAsnsBulkPartialUpdate
+
+> []ASN IpamAsnsBulkPartialUpdate(ctx).ASNRequest(aSNRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ aSNRequest := []openapiclient.ASNRequest{*openapiclient.NewASNRequest(int64(123))} // []ASNRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnsBulkPartialUpdate(context.Background()).ASNRequest(aSNRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnsBulkPartialUpdate`: []ASN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **aSNRequest** | [**[]ASNRequest**](ASNRequest.md) | |
+
+### Return type
+
+[**[]ASN**](ASN.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)
+
+
+## IpamAsnsBulkUpdate
+
+> []ASN IpamAsnsBulkUpdate(ctx).ASNRequest(aSNRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ aSNRequest := []openapiclient.ASNRequest{*openapiclient.NewASNRequest(int64(123))} // []ASNRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnsBulkUpdate(context.Background()).ASNRequest(aSNRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnsBulkUpdate`: []ASN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **aSNRequest** | [**[]ASNRequest**](ASNRequest.md) | |
+
+### Return type
+
+[**[]ASN**](ASN.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)
+
+
+## IpamAsnsCreate
+
+> ASN IpamAsnsCreate(ctx).WritableASNRequest(writableASNRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableASNRequest := *openapiclient.NewWritableASNRequest(int64(123), int32(123)) // WritableASNRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnsCreate(context.Background()).WritableASNRequest(writableASNRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnsCreate`: ASN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableASNRequest** | [**WritableASNRequest**](WritableASNRequest.md) | |
+
+### Return type
+
+[**ASN**](ASN.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)
+
+
+## IpamAsnsDestroy
+
+> IpamAsnsDestroy(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 ASN.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamAsnsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 ASN. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnsDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ asn := []int32{int32(123)} // []int32 | (optional)
+ asnEmpty := true // bool | (optional)
+ asnGt := []int32{int32(123)} // []int32 | (optional)
+ asnGte := []int32{int32(123)} // []int32 | (optional)
+ asnLt := []int32{int32(123)} // []int32 | (optional)
+ asnLte := []int32{int32(123)} // []int32 | (optional)
+ asnN := []int32{int32(123)} // []int32 | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ 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)
+ rir := []string{"Inner_example"} // []string | RIR (slug) (optional)
+ rirN := []string{"Inner_example"} // []string | RIR (slug) (optional)
+ rirId := []int32{int32(123)} // []int32 | RIR (ID) (optional)
+ rirIdN := []int32{int32(123)} // []int32 | RIR (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ 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()
+ 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)
+ }
+ // response from `IpamAsnsList`: PaginatedASNList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **asn** | **[]int32** | |
+ **asnEmpty** | **bool** | |
+ **asnGt** | **[]int32** | |
+ **asnGte** | **[]int32** | |
+ **asnLt** | **[]int32** | |
+ **asnLte** | **[]int32** | |
+ **asnN** | **[]int32** | |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+ **rir** | **[]string** | RIR (slug) |
+ **rirN** | **[]string** | RIR (slug) |
+ **rirId** | **[]int32** | RIR (ID) |
+ **rirIdN** | **[]int32** | RIR (ID) |
+ **site** | **[]string** | Site (slug) |
+ **siteN** | **[]string** | Site (slug) |
+ **siteId** | **[]int32** | Site (ID) |
+ **siteIdN** | **[]int32** | Site (ID) |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **tenant** | **[]string** | Tenant (slug) |
+ **tenantN** | **[]string** | Tenant (slug) |
+ **tenantGroup** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupN** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupId** | **[]int32** | Tenant Group (ID) |
+ **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
+ **tenantId** | **[]int32** | Tenant (ID) |
+ **tenantIdN** | **[]int32** | Tenant (ID) |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedASNList**](PaginatedASNList.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)
+
+
+## IpamAsnsPartialUpdate
+
+> ASN IpamAsnsPartialUpdate(ctx, id).PatchedWritableASNRequest(patchedWritableASNRequest).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 ASN.
+ patchedWritableASNRequest := *openapiclient.NewPatchedWritableASNRequest() // PatchedWritableASNRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnsPartialUpdate(context.Background(), id).PatchedWritableASNRequest(patchedWritableASNRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnsPartialUpdate`: ASN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsPartialUpdate`: %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 ASN. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableASNRequest** | [**PatchedWritableASNRequest**](PatchedWritableASNRequest.md) | |
+
+### Return type
+
+[**ASN**](ASN.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)
+
+
+## IpamAsnsRetrieve
+
+> ASN IpamAsnsRetrieve(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 ASN.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnsRetrieve`: ASN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsRetrieve`: %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 ASN. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**ASN**](ASN.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)
+
+
+## IpamAsnsUpdate
+
+> ASN IpamAsnsUpdate(ctx, id).WritableASNRequest(writableASNRequest).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 ASN.
+ writableASNRequest := *openapiclient.NewWritableASNRequest(int64(123), int32(123)) // WritableASNRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamAsnsUpdate(context.Background(), id).WritableASNRequest(writableASNRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamAsnsUpdate`: ASN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsUpdate`: %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 ASN. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamAsnsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableASNRequest** | [**WritableASNRequest**](WritableASNRequest.md) | |
+
+### Return type
+
+[**ASN**](ASN.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)
+
+
+## IpamFhrpGroupAssignmentsBulkDestroy
+
+> IpamFhrpGroupAssignmentsBulkDestroy(ctx).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewNestedFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkDestroy(context.Background()).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **fHRPGroupAssignmentRequest** | [**[]FHRPGroupAssignmentRequest**](FHRPGroupAssignmentRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamFhrpGroupAssignmentsBulkPartialUpdate
+
+> []FHRPGroupAssignment IpamFhrpGroupAssignmentsBulkPartialUpdate(ctx).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewNestedFHRPGroupRequest(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.IpamFhrpGroupAssignmentsBulkPartialUpdate(context.Background()).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupAssignmentsBulkPartialUpdate`: []FHRPGroupAssignment
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **fHRPGroupAssignmentRequest** | [**[]FHRPGroupAssignmentRequest**](FHRPGroupAssignmentRequest.md) | |
+
+### Return type
+
+[**[]FHRPGroupAssignment**](FHRPGroupAssignment.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)
+
+
+## IpamFhrpGroupAssignmentsBulkUpdate
+
+> []FHRPGroupAssignment IpamFhrpGroupAssignmentsBulkUpdate(ctx).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewNestedFHRPGroupRequest(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.IpamFhrpGroupAssignmentsBulkUpdate(context.Background()).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupAssignmentsBulkUpdate`: []FHRPGroupAssignment
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **fHRPGroupAssignmentRequest** | [**[]FHRPGroupAssignmentRequest**](FHRPGroupAssignmentRequest.md) | |
+
+### Return type
+
+[**[]FHRPGroupAssignment**](FHRPGroupAssignment.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)
+
+
+## IpamFhrpGroupAssignmentsCreate
+
+> FHRPGroupAssignment IpamFhrpGroupAssignmentsCreate(ctx).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableFHRPGroupAssignmentRequest := *openapiclient.NewWritableFHRPGroupAssignmentRequest(int32(123), "InterfaceType_example", int64(123), int32(123)) // WritableFHRPGroupAssignmentRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsCreate(context.Background()).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupAssignmentsCreate`: FHRPGroupAssignment
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableFHRPGroupAssignmentRequest** | [**WritableFHRPGroupAssignmentRequest**](WritableFHRPGroupAssignmentRequest.md) | |
+
+### Return type
+
+[**FHRPGroupAssignment**](FHRPGroupAssignment.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)
+
+
+## IpamFhrpGroupAssignmentsDestroy
+
+> IpamFhrpGroupAssignmentsDestroy(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 FHRP group assignment.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 FHRP group assignment. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsDestroyRequest 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)
+
+
+## IpamFhrpGroupAssignmentsList
+
+> PaginatedFHRPGroupAssignmentList IpamFhrpGroupAssignmentsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).InterfaceIdEmpty(interfaceIdEmpty).InterfaceIdGt(interfaceIdGt).InterfaceIdGte(interfaceIdGte).InterfaceIdLt(interfaceIdLt).InterfaceIdLte(interfaceIdLte).InterfaceIdN(interfaceIdN).InterfaceType(interfaceType).InterfaceTypeN(interfaceTypeN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).PriorityEmpty(priorityEmpty).PriorityGt(priorityGt).PriorityGte(priorityGte).PriorityLt(priorityLt).PriorityLte(priorityLte).PriorityN(priorityN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ device := []string{"Inner_example"} // []string | (optional)
+ deviceId := []int32{int32(123)} // []int32 | (optional)
+ groupId := []int32{int32(123)} // []int32 | Group (ID) (optional)
+ groupIdN := []int32{int32(123)} // []int32 | Group (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ interfaceId := []int32{int32(123)} // []int32 | (optional)
+ interfaceIdEmpty := true // bool | (optional)
+ interfaceIdGt := []int32{int32(123)} // []int32 | (optional)
+ interfaceIdGte := []int32{int32(123)} // []int32 | (optional)
+ interfaceIdLt := []int32{int32(123)} // []int32 | (optional)
+ interfaceIdLte := []int32{int32(123)} // []int32 | (optional)
+ interfaceIdN := []int32{int32(123)} // []int32 | (optional)
+ interfaceType := "interfaceType_example" // string | (optional)
+ interfaceTypeN := "interfaceTypeN_example" // string | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ priority := []int32{int32(123)} // []int32 | (optional)
+ priorityEmpty := true // bool | (optional)
+ priorityGt := []int32{int32(123)} // []int32 | (optional)
+ priorityGte := []int32{int32(123)} // []int32 | (optional)
+ priorityLt := []int32{int32(123)} // []int32 | (optional)
+ priorityLte := []int32{int32(123)} // []int32 | (optional)
+ priorityN := []int32{int32(123)} // []int32 | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualMachine := []string{"Inner_example"} // []string | (optional)
+ virtualMachineId := []int32{int32(123)} // []int32 | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).InterfaceIdEmpty(interfaceIdEmpty).InterfaceIdGt(interfaceIdGt).InterfaceIdGte(interfaceIdGte).InterfaceIdLt(interfaceIdLt).InterfaceIdLte(interfaceIdLte).InterfaceIdN(interfaceIdN).InterfaceType(interfaceType).InterfaceTypeN(interfaceTypeN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).PriorityEmpty(priorityEmpty).PriorityGt(priorityGt).PriorityGte(priorityGte).PriorityLt(priorityLt).PriorityLte(priorityLte).PriorityN(priorityN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupAssignmentsList`: PaginatedFHRPGroupAssignmentList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **device** | **[]string** | |
+ **deviceId** | **[]int32** | |
+ **groupId** | **[]int32** | Group (ID) |
+ **groupIdN** | **[]int32** | Group (ID) |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **interfaceId** | **[]int32** | |
+ **interfaceIdEmpty** | **bool** | |
+ **interfaceIdGt** | **[]int32** | |
+ **interfaceIdGte** | **[]int32** | |
+ **interfaceIdLt** | **[]int32** | |
+ **interfaceIdLte** | **[]int32** | |
+ **interfaceIdN** | **[]int32** | |
+ **interfaceType** | **string** | |
+ **interfaceTypeN** | **string** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **priority** | **[]int32** | |
+ **priorityEmpty** | **bool** | |
+ **priorityGt** | **[]int32** | |
+ **priorityGte** | **[]int32** | |
+ **priorityLt** | **[]int32** | |
+ **priorityLte** | **[]int32** | |
+ **priorityN** | **[]int32** | |
+ **updatedByRequest** | **string** | |
+ **virtualMachine** | **[]string** | |
+ **virtualMachineId** | **[]int32** | |
+
+### Return type
+
+[**PaginatedFHRPGroupAssignmentList**](PaginatedFHRPGroupAssignmentList.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)
+
+
+## IpamFhrpGroupAssignmentsPartialUpdate
+
+> FHRPGroupAssignment IpamFhrpGroupAssignmentsPartialUpdate(ctx, id).PatchedWritableFHRPGroupAssignmentRequest(patchedWritableFHRPGroupAssignmentRequest).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 FHRP group assignment.
+ patchedWritableFHRPGroupAssignmentRequest := *openapiclient.NewPatchedWritableFHRPGroupAssignmentRequest() // PatchedWritableFHRPGroupAssignmentRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate(context.Background(), id).PatchedWritableFHRPGroupAssignmentRequest(patchedWritableFHRPGroupAssignmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupAssignmentsPartialUpdate`: FHRPGroupAssignment
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate`: %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 FHRP group assignment. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableFHRPGroupAssignmentRequest** | [**PatchedWritableFHRPGroupAssignmentRequest**](PatchedWritableFHRPGroupAssignmentRequest.md) | |
+
+### Return type
+
+[**FHRPGroupAssignment**](FHRPGroupAssignment.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)
+
+
+## IpamFhrpGroupAssignmentsRetrieve
+
+> FHRPGroupAssignment IpamFhrpGroupAssignmentsRetrieve(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 FHRP group assignment.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupAssignmentsRetrieve`: FHRPGroupAssignment
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsRetrieve`: %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 FHRP group assignment. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**FHRPGroupAssignment**](FHRPGroupAssignment.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)
+
+
+## IpamFhrpGroupAssignmentsUpdate
+
+> FHRPGroupAssignment IpamFhrpGroupAssignmentsUpdate(ctx, id).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).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 FHRP group assignment.
+ writableFHRPGroupAssignmentRequest := *openapiclient.NewWritableFHRPGroupAssignmentRequest(int32(123), "InterfaceType_example", int64(123), int32(123)) // WritableFHRPGroupAssignmentRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsUpdate(context.Background(), id).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupAssignmentsUpdate`: FHRPGroupAssignment
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsUpdate`: %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 FHRP group assignment. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableFHRPGroupAssignmentRequest** | [**WritableFHRPGroupAssignmentRequest**](WritableFHRPGroupAssignmentRequest.md) | |
+
+### Return type
+
+[**FHRPGroupAssignment**](FHRPGroupAssignment.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)
+
+
+## IpamFhrpGroupsBulkDestroy
+
+> IpamFhrpGroupsBulkDestroy(ctx).FHRPGroupRequest(fHRPGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamFhrpGroupsBulkDestroy(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **fHRPGroupRequest** | [**[]FHRPGroupRequest**](FHRPGroupRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamFhrpGroupsBulkPartialUpdate
+
+> []FHRPGroup IpamFhrpGroupsBulkPartialUpdate(ctx).FHRPGroupRequest(fHRPGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsBulkPartialUpdate(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupsBulkPartialUpdate`: []FHRPGroup
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **fHRPGroupRequest** | [**[]FHRPGroupRequest**](FHRPGroupRequest.md) | |
+
+### Return type
+
+[**[]FHRPGroup**](FHRPGroup.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)
+
+
+## IpamFhrpGroupsBulkUpdate
+
+> []FHRPGroup IpamFhrpGroupsBulkUpdate(ctx).FHRPGroupRequest(fHRPGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsBulkUpdate(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupsBulkUpdate`: []FHRPGroup
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **fHRPGroupRequest** | [**[]FHRPGroupRequest**](FHRPGroupRequest.md) | |
+
+### Return type
+
+[**[]FHRPGroup**](FHRPGroup.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)
+
+
+## IpamFhrpGroupsCreate
+
+> FHRPGroup IpamFhrpGroupsCreate(ctx).FHRPGroupRequest(fHRPGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsCreate(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupsCreate`: FHRPGroup
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **fHRPGroupRequest** | [**FHRPGroupRequest**](FHRPGroupRequest.md) | |
+
+### Return type
+
+[**FHRPGroup**](FHRPGroup.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)
+
+
+## IpamFhrpGroupsDestroy
+
+> IpamFhrpGroupsDestroy(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 FHRP group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamFhrpGroupsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 FHRP group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupsDestroyRequest 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)
+
+
+## IpamFhrpGroupsList
+
+> PaginatedFHRPGroupList IpamFhrpGroupsList(ctx).AuthKey(authKey).AuthKeyEmpty(authKeyEmpty).AuthKeyIc(authKeyIc).AuthKeyIe(authKeyIe).AuthKeyIew(authKeyIew).AuthKeyIsw(authKeyIsw).AuthKeyN(authKeyN).AuthKeyNic(authKeyNic).AuthKeyNie(authKeyNie).AuthKeyNiew(authKeyNiew).AuthKeyNisw(authKeyNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).GroupId(groupId).GroupIdEmpty(groupIdEmpty).GroupIdGt(groupIdGt).GroupIdGte(groupIdGte).GroupIdLt(groupIdLt).GroupIdLte(groupIdLte).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Protocol(protocol).ProtocolN(protocolN).Q(q).RelatedIp(relatedIp).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ authKey := []string{"Inner_example"} // []string | (optional)
+ authKeyEmpty := true // bool | (optional)
+ authKeyIc := []string{"Inner_example"} // []string | (optional)
+ authKeyIe := []string{"Inner_example"} // []string | (optional)
+ authKeyIew := []string{"Inner_example"} // []string | (optional)
+ authKeyIsw := []string{"Inner_example"} // []string | (optional)
+ authKeyN := []string{"Inner_example"} // []string | (optional)
+ authKeyNic := []string{"Inner_example"} // []string | (optional)
+ authKeyNie := []string{"Inner_example"} // []string | (optional)
+ authKeyNiew := []string{"Inner_example"} // []string | (optional)
+ authKeyNisw := []string{"Inner_example"} // []string | (optional)
+ authType := []string{"Inner_example"} // []string | (optional)
+ authTypeN := []string{"Inner_example"} // []string | (optional)
+ 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)
+ groupId := []int32{int32(123)} // []int32 | (optional)
+ groupIdEmpty := true // bool | (optional)
+ groupIdGt := []int32{int32(123)} // []int32 | (optional)
+ groupIdGte := []int32{int32(123)} // []int32 | (optional)
+ groupIdLt := []int32{int32(123)} // []int32 | (optional)
+ groupIdLte := []int32{int32(123)} // []int32 | (optional)
+ groupIdN := []int32{int32(123)} // []int32 | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ 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)
+ protocol := []string{"Inner_example"} // []string | (optional)
+ protocolN := []string{"Inner_example"} // []string | (optional)
+ q := "q_example" // string | Search (optional)
+ relatedIp := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsList(context.Background()).AuthKey(authKey).AuthKeyEmpty(authKeyEmpty).AuthKeyIc(authKeyIc).AuthKeyIe(authKeyIe).AuthKeyIew(authKeyIew).AuthKeyIsw(authKeyIsw).AuthKeyN(authKeyN).AuthKeyNic(authKeyNic).AuthKeyNie(authKeyNie).AuthKeyNiew(authKeyNiew).AuthKeyNisw(authKeyNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).GroupId(groupId).GroupIdEmpty(groupIdEmpty).GroupIdGt(groupIdGt).GroupIdGte(groupIdGte).GroupIdLt(groupIdLt).GroupIdLte(groupIdLte).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Protocol(protocol).ProtocolN(protocolN).Q(q).RelatedIp(relatedIp).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupsList`: PaginatedFHRPGroupList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **authKey** | **[]string** | |
+ **authKeyEmpty** | **bool** | |
+ **authKeyIc** | **[]string** | |
+ **authKeyIe** | **[]string** | |
+ **authKeyIew** | **[]string** | |
+ **authKeyIsw** | **[]string** | |
+ **authKeyN** | **[]string** | |
+ **authKeyNic** | **[]string** | |
+ **authKeyNie** | **[]string** | |
+ **authKeyNiew** | **[]string** | |
+ **authKeyNisw** | **[]string** | |
+ **authType** | **[]string** | |
+ **authTypeN** | **[]string** | |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **groupId** | **[]int32** | |
+ **groupIdEmpty** | **bool** | |
+ **groupIdGt** | **[]int32** | |
+ **groupIdGte** | **[]int32** | |
+ **groupIdLt** | **[]int32** | |
+ **groupIdLte** | **[]int32** | |
+ **groupIdN** | **[]int32** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **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. |
+ **protocol** | **[]string** | |
+ **protocolN** | **[]string** | |
+ **q** | **string** | Search |
+ **relatedIp** | **[]string** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedFHRPGroupList**](PaginatedFHRPGroupList.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)
+
+
+## IpamFhrpGroupsPartialUpdate
+
+> FHRPGroup IpamFhrpGroupsPartialUpdate(ctx, id).PatchedFHRPGroupRequest(patchedFHRPGroupRequest).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 FHRP group.
+ patchedFHRPGroupRequest := *openapiclient.NewPatchedFHRPGroupRequest() // PatchedFHRPGroupRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsPartialUpdate(context.Background(), id).PatchedFHRPGroupRequest(patchedFHRPGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupsPartialUpdate`: FHRPGroup
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsPartialUpdate`: %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 FHRP group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedFHRPGroupRequest** | [**PatchedFHRPGroupRequest**](PatchedFHRPGroupRequest.md) | |
+
+### Return type
+
+[**FHRPGroup**](FHRPGroup.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)
+
+
+## IpamFhrpGroupsRetrieve
+
+> FHRPGroup IpamFhrpGroupsRetrieve(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 FHRP group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupsRetrieve`: FHRPGroup
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsRetrieve`: %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 FHRP group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**FHRPGroup**](FHRPGroup.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)
+
+
+## IpamFhrpGroupsUpdate
+
+> FHRPGroup IpamFhrpGroupsUpdate(ctx, id).FHRPGroupRequest(fHRPGroupRequest).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 FHRP group.
+ fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsUpdate(context.Background(), id).FHRPGroupRequest(fHRPGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamFhrpGroupsUpdate`: FHRPGroup
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsUpdate`: %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 FHRP group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamFhrpGroupsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **fHRPGroupRequest** | [**FHRPGroupRequest**](FHRPGroupRequest.md) | |
+
+### Return type
+
+[**FHRPGroup**](FHRPGroup.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)
+
+
+## IpamIpAddressesBulkDestroy
+
+> IpamIpAddressesBulkDestroy(ctx).IPAddressRequest(iPAddressRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPAddressRequest := []openapiclient.IPAddressRequest{*openapiclient.NewIPAddressRequest("Address_example")} // []IPAddressRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamIpAddressesBulkDestroy(context.Background()).IPAddressRequest(iPAddressRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpAddressesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPAddressRequest** | [**[]IPAddressRequest**](IPAddressRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamIpAddressesBulkPartialUpdate
+
+> []IPAddress IpamIpAddressesBulkPartialUpdate(ctx).IPAddressRequest(iPAddressRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPAddressRequest := []openapiclient.IPAddressRequest{*openapiclient.NewIPAddressRequest("Address_example")} // []IPAddressRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpAddressesBulkPartialUpdate(context.Background()).IPAddressRequest(iPAddressRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpAddressesBulkPartialUpdate`: []IPAddress
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpAddressesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPAddressRequest** | [**[]IPAddressRequest**](IPAddressRequest.md) | |
+
+### Return type
+
+[**[]IPAddress**](IPAddress.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)
+
+
+## IpamIpAddressesBulkUpdate
+
+> []IPAddress IpamIpAddressesBulkUpdate(ctx).IPAddressRequest(iPAddressRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPAddressRequest := []openapiclient.IPAddressRequest{*openapiclient.NewIPAddressRequest("Address_example")} // []IPAddressRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpAddressesBulkUpdate(context.Background()).IPAddressRequest(iPAddressRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpAddressesBulkUpdate`: []IPAddress
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpAddressesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPAddressRequest** | [**[]IPAddressRequest**](IPAddressRequest.md) | |
+
+### Return type
+
+[**[]IPAddress**](IPAddress.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)
+
+
+## IpamIpAddressesCreate
+
+> IPAddress IpamIpAddressesCreate(ctx).WritableIPAddressRequest(writableIPAddressRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableIPAddressRequest := *openapiclient.NewWritableIPAddressRequest("Address_example") // WritableIPAddressRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpAddressesCreate(context.Background()).WritableIPAddressRequest(writableIPAddressRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpAddressesCreate`: IPAddress
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpAddressesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableIPAddressRequest** | [**WritableIPAddressRequest**](WritableIPAddressRequest.md) | |
+
+### Return type
+
+[**IPAddress**](IPAddress.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)
+
+
+## IpamIpAddressesDestroy
+
+> IpamIpAddressesDestroy(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 IP address.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamIpAddressesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 IP address. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpAddressesDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ address := []string{"Inner_example"} // []string | (optional)
+ assigned := true // bool | Is assigned (optional)
+ assignedToInterface := true // bool | Is assigned to an interface (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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 | (optional)
+ deviceId := []int32{int32(123)} // []int32 | (optional)
+ dnsName := []string{"Inner_example"} // []string | (optional)
+ dnsNameEmpty := true // bool | (optional)
+ dnsNameIc := []string{"Inner_example"} // []string | (optional)
+ dnsNameIe := []string{"Inner_example"} // []string | (optional)
+ dnsNameIew := []string{"Inner_example"} // []string | (optional)
+ dnsNameIsw := []string{"Inner_example"} // []string | (optional)
+ dnsNameN := []string{"Inner_example"} // []string | (optional)
+ dnsNameNic := []string{"Inner_example"} // []string | (optional)
+ dnsNameNie := []string{"Inner_example"} // []string | (optional)
+ dnsNameNiew := []string{"Inner_example"} // []string | (optional)
+ dnsNameNisw := []string{"Inner_example"} // []string | (optional)
+ family := float32(8.14) // float32 | (optional)
+ fhrpgroupId := []int32{int32(123)} // []int32 | FHRP group (ID) (optional)
+ fhrpgroupIdN := []int32{int32(123)} // []int32 | FHRP group (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ interface_ := []string{"Inner_example"} // []string | Interface (name) (optional)
+ interfaceN := []string{"Inner_example"} // []string | Interface (name) (optional)
+ interfaceId := []int32{int32(123)} // []int32 | Interface (ID) (optional)
+ interfaceIdN := []int32{int32(123)} // []int32 | Interface (ID) (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ maskLength := []int32{int32(123)} // []int32 | (optional)
+ maskLengthGte := float32(8.14) // float32 | (optional)
+ maskLengthLte := float32(8.14) // float32 | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ parent := []string{"Inner_example"} // []string | (optional)
+ presentInVrf := "presentInVrf_example" // string | (optional)
+ presentInVrfId := "presentInVrfId_example" // string | (optional)
+ q := "q_example" // string | Search (optional)
+ role := []string{"Inner_example"} // []string | The functional role of this IP (optional)
+ roleN := []string{"Inner_example"} // []string | The functional role of this IP (optional)
+ 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)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualMachine := []string{"Inner_example"} // []string | (optional)
+ virtualMachineId := []int32{int32(123)} // []int32 | (optional)
+ vminterface := []string{"Inner_example"} // []string | VM interface (name) (optional)
+ vminterfaceN := []string{"Inner_example"} // []string | VM interface (name) (optional)
+ vminterfaceId := []int32{int32(123)} // []int32 | VM interface (ID) (optional)
+ vminterfaceIdN := []int32{int32(123)} // []int32 | VM interface (ID) (optional)
+ vrf := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
+ vrfN := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
+ vrfId := []*int32{int32(123)} // []*int32 | VRF (optional)
+ vrfIdN := []*int32{int32(123)} // []*int32 | VRF (optional)
+
+ 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()
+ 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)
+ }
+ // response from `IpamIpAddressesList`: PaginatedIPAddressList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpAddressesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **address** | **[]string** | |
+ **assigned** | **bool** | Is assigned |
+ **assignedToInterface** | **bool** | Is assigned to an interface |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **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** | |
+ **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** | FHRP group (ID) |
+ **fhrpgroupIdN** | **[]int32** | FHRP group (ID) |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **interface_** | **[]string** | Interface (name) |
+ **interfaceN** | **[]string** | Interface (name) |
+ **interfaceId** | **[]int32** | Interface (ID) |
+ **interfaceIdN** | **[]int32** | Interface (ID) |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **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. |
+ **maskLength** | **[]int32** | |
+ **maskLengthGte** | **float32** | |
+ **maskLengthLte** | **float32** | |
+ **modifiedByRequest** | **string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **parent** | **[]string** | |
+ **presentInVrf** | **string** | |
+ **presentInVrfId** | **string** | |
+ **q** | **string** | Search |
+ **role** | **[]string** | The functional role of this IP |
+ **roleN** | **[]string** | The functional role of this IP |
+ **status** | **[]string** | The operational status of this IP |
+ **statusN** | **[]string** | The operational status of this IP |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **tenant** | **[]string** | Tenant (slug) |
+ **tenantN** | **[]string** | Tenant (slug) |
+ **tenantGroup** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupN** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupId** | **[]int32** | Tenant Group (ID) |
+ **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
+ **tenantId** | **[]int32** | Tenant (ID) |
+ **tenantIdN** | **[]int32** | Tenant (ID) |
+ **updatedByRequest** | **string** | |
+ **virtualMachine** | **[]string** | |
+ **virtualMachineId** | **[]int32** | |
+ **vminterface** | **[]string** | VM interface (name) |
+ **vminterfaceN** | **[]string** | VM interface (name) |
+ **vminterfaceId** | **[]int32** | VM interface (ID) |
+ **vminterfaceIdN** | **[]int32** | VM interface (ID) |
+ **vrf** | **[]string** | VRF (RD) |
+ **vrfN** | **[]string** | VRF (RD) |
+ **vrfId** | **[]int32** | VRF |
+ **vrfIdN** | **[]int32** | VRF |
+
+### Return type
+
+[**PaginatedIPAddressList**](PaginatedIPAddressList.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)
+
+
+## IpamIpAddressesPartialUpdate
+
+> IPAddress IpamIpAddressesPartialUpdate(ctx, id).PatchedWritableIPAddressRequest(patchedWritableIPAddressRequest).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 IP address.
+ patchedWritableIPAddressRequest := *openapiclient.NewPatchedWritableIPAddressRequest() // PatchedWritableIPAddressRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpAddressesPartialUpdate(context.Background(), id).PatchedWritableIPAddressRequest(patchedWritableIPAddressRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpAddressesPartialUpdate`: IPAddress
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesPartialUpdate`: %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 IP address. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpAddressesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableIPAddressRequest** | [**PatchedWritableIPAddressRequest**](PatchedWritableIPAddressRequest.md) | |
+
+### Return type
+
+[**IPAddress**](IPAddress.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)
+
+
+## IpamIpAddressesRetrieve
+
+> IPAddress IpamIpAddressesRetrieve(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 IP address.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpAddressesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpAddressesRetrieve`: IPAddress
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesRetrieve`: %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 IP address. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpAddressesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**IPAddress**](IPAddress.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)
+
+
+## IpamIpAddressesUpdate
+
+> IPAddress IpamIpAddressesUpdate(ctx, id).WritableIPAddressRequest(writableIPAddressRequest).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 IP address.
+ writableIPAddressRequest := *openapiclient.NewWritableIPAddressRequest("Address_example") // WritableIPAddressRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpAddressesUpdate(context.Background(), id).WritableIPAddressRequest(writableIPAddressRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpAddressesUpdate`: IPAddress
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesUpdate`: %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 IP address. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpAddressesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableIPAddressRequest** | [**WritableIPAddressRequest**](WritableIPAddressRequest.md) | |
+
+### Return type
+
+[**IPAddress**](IPAddress.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)
+
+
+## IpamIpRangesAvailableIpsCreate
+
+> []IPAddress IpamIpRangesAvailableIpsCreate(ctx, id).IPAddressRequest(iPAddressRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ id := int32(56) // int32 |
+ iPAddressRequest := []openapiclient.IPAddressRequest{*openapiclient.NewIPAddressRequest("Address_example")} // []IPAddressRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpRangesAvailableIpsCreate(context.Background(), id).IPAddressRequest(iPAddressRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesAvailableIpsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpRangesAvailableIpsCreate`: []IPAddress
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesAvailableIpsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpRangesAvailableIpsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **iPAddressRequest** | [**[]IPAddressRequest**](IPAddressRequest.md) | |
+
+### Return type
+
+[**[]IPAddress**](IPAddress.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)
+
+
+## IpamIpRangesAvailableIpsList
+
+> []AvailableIP IpamIpRangesAvailableIpsList(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 |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpRangesAvailableIpsList(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesAvailableIpsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpRangesAvailableIpsList`: []AvailableIP
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesAvailableIpsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpRangesAvailableIpsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**[]AvailableIP**](AvailableIP.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)
+
+
+## IpamIpRangesBulkDestroy
+
+> IpamIpRangesBulkDestroy(ctx).IPRangeRequest(iPRangeRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPRangeRequest := []openapiclient.IPRangeRequest{*openapiclient.NewIPRangeRequest("StartAddress_example", "EndAddress_example")} // []IPRangeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamIpRangesBulkDestroy(context.Background()).IPRangeRequest(iPRangeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpRangesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPRangeRequest** | [**[]IPRangeRequest**](IPRangeRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamIpRangesBulkPartialUpdate
+
+> []IPRange IpamIpRangesBulkPartialUpdate(ctx).IPRangeRequest(iPRangeRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPRangeRequest := []openapiclient.IPRangeRequest{*openapiclient.NewIPRangeRequest("StartAddress_example", "EndAddress_example")} // []IPRangeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpRangesBulkPartialUpdate(context.Background()).IPRangeRequest(iPRangeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpRangesBulkPartialUpdate`: []IPRange
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpRangesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPRangeRequest** | [**[]IPRangeRequest**](IPRangeRequest.md) | |
+
+### Return type
+
+[**[]IPRange**](IPRange.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)
+
+
+## IpamIpRangesBulkUpdate
+
+> []IPRange IpamIpRangesBulkUpdate(ctx).IPRangeRequest(iPRangeRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPRangeRequest := []openapiclient.IPRangeRequest{*openapiclient.NewIPRangeRequest("StartAddress_example", "EndAddress_example")} // []IPRangeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpRangesBulkUpdate(context.Background()).IPRangeRequest(iPRangeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpRangesBulkUpdate`: []IPRange
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpRangesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPRangeRequest** | [**[]IPRangeRequest**](IPRangeRequest.md) | |
+
+### Return type
+
+[**[]IPRange**](IPRange.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)
+
+
+## IpamIpRangesCreate
+
+> IPRange IpamIpRangesCreate(ctx).WritableIPRangeRequest(writableIPRangeRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableIPRangeRequest := *openapiclient.NewWritableIPRangeRequest("StartAddress_example", "EndAddress_example") // WritableIPRangeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpRangesCreate(context.Background()).WritableIPRangeRequest(writableIPRangeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpRangesCreate`: IPRange
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpRangesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableIPRangeRequest** | [**WritableIPRangeRequest**](WritableIPRangeRequest.md) | |
+
+### Return type
+
+[**IPRange**](IPRange.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)
+
+
+## IpamIpRangesDestroy
+
+> IpamIpRangesDestroy(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 IP range.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamIpRangesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 IP range. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpRangesDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ contains := "contains_example" // string | Ranges which contain this prefix or IP (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ endAddress := []string{"Inner_example"} // []string | (optional)
+ family := float32(8.14) // float32 | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ markUtilized := true // bool | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ parent := []string{"Inner_example"} // []string | (optional)
+ q := "q_example" // string | Search (optional)
+ role := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
+ roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (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)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ vrf := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
+ vrfN := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
+ vrfId := []*int32{int32(123)} // []*int32 | VRF (optional)
+ vrfIdN := []*int32{int32(123)} // []*int32 | VRF (optional)
+
+ 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()
+ 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)
+ }
+ // response from `IpamIpRangesList`: PaginatedIPRangeList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpRangesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **contains** | **string** | Ranges which contain this prefix or IP |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **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** | |
+ **endAddress** | **[]string** | |
+ **family** | **float32** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **markUtilized** | **bool** | |
+ **modifiedByRequest** | **string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **parent** | **[]string** | |
+ **q** | **string** | Search |
+ **role** | **[]string** | Role (slug) |
+ **roleN** | **[]string** | Role (slug) |
+ **roleId** | **[]int32** | Role (ID) |
+ **roleIdN** | **[]int32** | Role (ID) |
+ **startAddress** | **[]string** | |
+ **status** | **[]string** | Operational status of this range |
+ **statusN** | **[]string** | Operational status of this range |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **tenant** | **[]string** | Tenant (slug) |
+ **tenantN** | **[]string** | Tenant (slug) |
+ **tenantGroup** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupN** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupId** | **[]int32** | Tenant Group (ID) |
+ **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
+ **tenantId** | **[]int32** | Tenant (ID) |
+ **tenantIdN** | **[]int32** | Tenant (ID) |
+ **updatedByRequest** | **string** | |
+ **vrf** | **[]string** | VRF (RD) |
+ **vrfN** | **[]string** | VRF (RD) |
+ **vrfId** | **[]int32** | VRF |
+ **vrfIdN** | **[]int32** | VRF |
+
+### Return type
+
+[**PaginatedIPRangeList**](PaginatedIPRangeList.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)
+
+
+## IpamIpRangesPartialUpdate
+
+> IPRange IpamIpRangesPartialUpdate(ctx, id).PatchedWritableIPRangeRequest(patchedWritableIPRangeRequest).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 IP range.
+ patchedWritableIPRangeRequest := *openapiclient.NewPatchedWritableIPRangeRequest() // PatchedWritableIPRangeRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpRangesPartialUpdate(context.Background(), id).PatchedWritableIPRangeRequest(patchedWritableIPRangeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpRangesPartialUpdate`: IPRange
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesPartialUpdate`: %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 IP range. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpRangesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableIPRangeRequest** | [**PatchedWritableIPRangeRequest**](PatchedWritableIPRangeRequest.md) | |
+
+### Return type
+
+[**IPRange**](IPRange.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)
+
+
+## IpamIpRangesRetrieve
+
+> IPRange IpamIpRangesRetrieve(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 IP range.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpRangesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpRangesRetrieve`: IPRange
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesRetrieve`: %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 IP range. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpRangesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**IPRange**](IPRange.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)
+
+
+## IpamIpRangesUpdate
+
+> IPRange IpamIpRangesUpdate(ctx, id).WritableIPRangeRequest(writableIPRangeRequest).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 IP range.
+ writableIPRangeRequest := *openapiclient.NewWritableIPRangeRequest("StartAddress_example", "EndAddress_example") // WritableIPRangeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamIpRangesUpdate(context.Background(), id).WritableIPRangeRequest(writableIPRangeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamIpRangesUpdate`: IPRange
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesUpdate`: %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 IP range. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamIpRangesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableIPRangeRequest** | [**WritableIPRangeRequest**](WritableIPRangeRequest.md) | |
+
+### Return type
+
+[**IPRange**](IPRange.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)
+
+
+## IpamPrefixesAvailableIpsCreate
+
+> []IPAddress IpamPrefixesAvailableIpsCreate(ctx, id).IPAddressRequest(iPAddressRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ id := int32(56) // int32 |
+ iPAddressRequest := []openapiclient.IPAddressRequest{*openapiclient.NewIPAddressRequest("Address_example")} // []IPAddressRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamPrefixesAvailableIpsCreate(context.Background(), id).IPAddressRequest(iPAddressRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesAvailableIpsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamPrefixesAvailableIpsCreate`: []IPAddress
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesAvailableIpsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamPrefixesAvailableIpsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **iPAddressRequest** | [**[]IPAddressRequest**](IPAddressRequest.md) | |
+
+### Return type
+
+[**[]IPAddress**](IPAddress.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)
+
+
+## IpamPrefixesAvailableIpsList
+
+> []AvailableIP IpamPrefixesAvailableIpsList(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 |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamPrefixesAvailableIpsList(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesAvailableIpsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamPrefixesAvailableIpsList`: []AvailableIP
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesAvailableIpsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamPrefixesAvailableIpsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**[]AvailableIP**](AvailableIP.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)
+
+
+## IpamPrefixesAvailablePrefixesCreate
+
+> []Prefix IpamPrefixesAvailablePrefixesCreate(ctx, id).PrefixRequest(prefixRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ id := int32(56) // int32 |
+ prefixRequest := []openapiclient.PrefixRequest{*openapiclient.NewPrefixRequest("Prefix_example")} // []PrefixRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamPrefixesAvailablePrefixesCreate(context.Background(), id).PrefixRequest(prefixRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesAvailablePrefixesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamPrefixesAvailablePrefixesCreate`: []Prefix
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesAvailablePrefixesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamPrefixesAvailablePrefixesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **prefixRequest** | [**[]PrefixRequest**](PrefixRequest.md) | |
+
+### Return type
+
+[**[]Prefix**](Prefix.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)
+
+
+## IpamPrefixesAvailablePrefixesList
+
+> []AvailablePrefix IpamPrefixesAvailablePrefixesList(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 |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamPrefixesAvailablePrefixesList(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesAvailablePrefixesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamPrefixesAvailablePrefixesList`: []AvailablePrefix
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesAvailablePrefixesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamPrefixesAvailablePrefixesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**[]AvailablePrefix**](AvailablePrefix.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)
+
+
+## IpamPrefixesBulkDestroy
+
+> IpamPrefixesBulkDestroy(ctx).PrefixRequest(prefixRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ prefixRequest := []openapiclient.PrefixRequest{*openapiclient.NewPrefixRequest("Prefix_example")} // []PrefixRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamPrefixesBulkDestroy(context.Background()).PrefixRequest(prefixRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamPrefixesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **prefixRequest** | [**[]PrefixRequest**](PrefixRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamPrefixesBulkPartialUpdate
+
+> []Prefix IpamPrefixesBulkPartialUpdate(ctx).PrefixRequest(prefixRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ prefixRequest := []openapiclient.PrefixRequest{*openapiclient.NewPrefixRequest("Prefix_example")} // []PrefixRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamPrefixesBulkPartialUpdate(context.Background()).PrefixRequest(prefixRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamPrefixesBulkPartialUpdate`: []Prefix
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamPrefixesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **prefixRequest** | [**[]PrefixRequest**](PrefixRequest.md) | |
+
+### Return type
+
+[**[]Prefix**](Prefix.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)
+
+
+## IpamPrefixesBulkUpdate
+
+> []Prefix IpamPrefixesBulkUpdate(ctx).PrefixRequest(prefixRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ prefixRequest := []openapiclient.PrefixRequest{*openapiclient.NewPrefixRequest("Prefix_example")} // []PrefixRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamPrefixesBulkUpdate(context.Background()).PrefixRequest(prefixRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamPrefixesBulkUpdate`: []Prefix
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamPrefixesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **prefixRequest** | [**[]PrefixRequest**](PrefixRequest.md) | |
+
+### Return type
+
+[**[]Prefix**](Prefix.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)
+
+
+## IpamPrefixesCreate
+
+> Prefix IpamPrefixesCreate(ctx).WritablePrefixRequest(writablePrefixRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writablePrefixRequest := *openapiclient.NewWritablePrefixRequest("Prefix_example") // WritablePrefixRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamPrefixesCreate(context.Background()).WritablePrefixRequest(writablePrefixRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamPrefixesCreate`: Prefix
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamPrefixesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writablePrefixRequest** | [**WritablePrefixRequest**](WritablePrefixRequest.md) | |
+
+### Return type
+
+[**Prefix**](Prefix.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)
+
+
+## IpamPrefixesDestroy
+
+> IpamPrefixesDestroy(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 prefix.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamPrefixesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 prefix. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamPrefixesDestroyRequest 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)
+
+
+## IpamPrefixesList
+
+> PaginatedPrefixList IpamPrefixesList(ctx).Children(children).ChildrenEmpty(childrenEmpty).ChildrenGt(childrenGt).ChildrenGte(childrenGte).ChildrenLt(childrenLt).ChildrenLte(childrenLte).ChildrenN(childrenN).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Depth(depth).DepthEmpty(depthEmpty).DepthGt(depthGt).DepthGte(depthGte).DepthLt(depthLt).DepthLte(depthLte).DepthN(depthN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPool(isPool).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Within(within).WithinInclude(withinInclude).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ children := []int32{int32(123)} // []int32 | (optional)
+ childrenEmpty := []int32{int32(123)} // []int32 | (optional)
+ childrenGt := []int32{int32(123)} // []int32 | (optional)
+ childrenGte := []int32{int32(123)} // []int32 | (optional)
+ childrenLt := []int32{int32(123)} // []int32 | (optional)
+ childrenLte := []int32{int32(123)} // []int32 | (optional)
+ childrenN := []int32{int32(123)} // []int32 | (optional)
+ contains := "contains_example" // string | Prefixes which contain this prefix or IP (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ depth := []int32{int32(123)} // []int32 | (optional)
+ depthEmpty := []int32{int32(123)} // []int32 | (optional)
+ depthGt := []int32{int32(123)} // []int32 | (optional)
+ depthGte := []int32{int32(123)} // []int32 | (optional)
+ depthLt := []int32{int32(123)} // []int32 | (optional)
+ depthLte := []int32{int32(123)} // []int32 | (optional)
+ depthN := []int32{int32(123)} // []int32 | (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)
+ family := float32(8.14) // float32 | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ isPool := true // bool | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ markUtilized := true // bool | (optional)
+ maskLength := []int32{int32(123)} // []int32 | (optional)
+ maskLengthGte := float32(8.14) // float32 | (optional)
+ maskLengthLte := float32(8.14) // float32 | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ prefix := []string{"Inner_example"} // []string | (optional)
+ presentInVrf := "presentInVrf_example" // string | (optional)
+ presentInVrfId := "presentInVrfId_example" // string | (optional)
+ q := "q_example" // string | Search (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
+ roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
+ siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
+ status := []string{"Inner_example"} // []string | Operational status of this prefix (optional)
+ statusN := []string{"Inner_example"} // []string | Operational status of this prefix (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ vlanId := []*int32{int32(123)} // []*int32 | VLAN (ID) (optional)
+ vlanIdN := []*int32{int32(123)} // []*int32 | VLAN (ID) (optional)
+ vlanVid := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vlanVidEmpty := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vlanVidGt := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vlanVidGte := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vlanVidLt := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vlanVidLte := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vlanVidN := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vrf := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
+ vrfN := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
+ vrfId := []*int32{int32(123)} // []*int32 | VRF (optional)
+ vrfIdN := []*int32{int32(123)} // []*int32 | VRF (optional)
+ within := "within_example" // string | Within prefix (optional)
+ withinInclude := "withinInclude_example" // string | Within and including prefix (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamPrefixesList(context.Background()).Children(children).ChildrenEmpty(childrenEmpty).ChildrenGt(childrenGt).ChildrenGte(childrenGte).ChildrenLt(childrenLt).ChildrenLte(childrenLte).ChildrenN(childrenN).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Depth(depth).DepthEmpty(depthEmpty).DepthGt(depthGt).DepthGte(depthGte).DepthLt(depthLt).DepthLte(depthLte).DepthN(depthN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPool(isPool).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Within(within).WithinInclude(withinInclude).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamPrefixesList`: PaginatedPrefixList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamPrefixesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **children** | **[]int32** | |
+ **childrenEmpty** | **[]int32** | |
+ **childrenGt** | **[]int32** | |
+ **childrenGte** | **[]int32** | |
+ **childrenLt** | **[]int32** | |
+ **childrenLte** | **[]int32** | |
+ **childrenN** | **[]int32** | |
+ **contains** | **string** | Prefixes which contain this prefix or IP |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **depth** | **[]int32** | |
+ **depthEmpty** | **[]int32** | |
+ **depthGt** | **[]int32** | |
+ **depthGte** | **[]int32** | |
+ **depthLt** | **[]int32** | |
+ **depthLte** | **[]int32** | |
+ **depthN** | **[]int32** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **family** | **float32** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **isPool** | **bool** | |
+ **lastUpdated** | [**[]time.Time**](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. |
+ **markUtilized** | **bool** | |
+ **maskLength** | **[]int32** | |
+ **maskLengthGte** | **float32** | |
+ **maskLengthLte** | **float32** | |
+ **modifiedByRequest** | **string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **prefix** | **[]string** | |
+ **presentInVrf** | **string** | |
+ **presentInVrfId** | **string** | |
+ **q** | **string** | Search |
+ **region** | **[]int32** | Region (slug) |
+ **regionN** | **[]int32** | Region (slug) |
+ **regionId** | **[]int32** | Region (ID) |
+ **regionIdN** | **[]int32** | Region (ID) |
+ **role** | **[]string** | Role (slug) |
+ **roleN** | **[]string** | Role (slug) |
+ **roleId** | **[]int32** | Role (ID) |
+ **roleIdN** | **[]int32** | Role (ID) |
+ **site** | **[]string** | Site (slug) |
+ **siteN** | **[]string** | Site (slug) |
+ **siteGroup** | **[]int32** | Site group (slug) |
+ **siteGroupN** | **[]int32** | Site group (slug) |
+ **siteGroupId** | **[]int32** | Site group (ID) |
+ **siteGroupIdN** | **[]int32** | Site group (ID) |
+ **siteId** | **[]int32** | Site (ID) |
+ **siteIdN** | **[]int32** | Site (ID) |
+ **status** | **[]string** | Operational status of this prefix |
+ **statusN** | **[]string** | Operational status of this prefix |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **tenant** | **[]string** | Tenant (slug) |
+ **tenantN** | **[]string** | Tenant (slug) |
+ **tenantGroup** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupN** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupId** | **[]int32** | Tenant Group (ID) |
+ **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
+ **tenantId** | **[]int32** | Tenant (ID) |
+ **tenantIdN** | **[]int32** | Tenant (ID) |
+ **updatedByRequest** | **string** | |
+ **vlanId** | **[]int32** | VLAN (ID) |
+ **vlanIdN** | **[]int32** | VLAN (ID) |
+ **vlanVid** | **int32** | VLAN number (1-4094) |
+ **vlanVidEmpty** | **int32** | VLAN number (1-4094) |
+ **vlanVidGt** | **int32** | VLAN number (1-4094) |
+ **vlanVidGte** | **int32** | VLAN number (1-4094) |
+ **vlanVidLt** | **int32** | VLAN number (1-4094) |
+ **vlanVidLte** | **int32** | VLAN number (1-4094) |
+ **vlanVidN** | **int32** | VLAN number (1-4094) |
+ **vrf** | **[]string** | VRF (RD) |
+ **vrfN** | **[]string** | VRF (RD) |
+ **vrfId** | **[]int32** | VRF |
+ **vrfIdN** | **[]int32** | VRF |
+ **within** | **string** | Within prefix |
+ **withinInclude** | **string** | Within and including prefix |
+
+### Return type
+
+[**PaginatedPrefixList**](PaginatedPrefixList.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)
+
+
+## IpamPrefixesPartialUpdate
+
+> Prefix IpamPrefixesPartialUpdate(ctx, id).PatchedWritablePrefixRequest(patchedWritablePrefixRequest).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 prefix.
+ patchedWritablePrefixRequest := *openapiclient.NewPatchedWritablePrefixRequest() // PatchedWritablePrefixRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamPrefixesPartialUpdate(context.Background(), id).PatchedWritablePrefixRequest(patchedWritablePrefixRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamPrefixesPartialUpdate`: Prefix
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesPartialUpdate`: %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 prefix. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamPrefixesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritablePrefixRequest** | [**PatchedWritablePrefixRequest**](PatchedWritablePrefixRequest.md) | |
+
+### Return type
+
+[**Prefix**](Prefix.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)
+
+
+## IpamPrefixesRetrieve
+
+> Prefix IpamPrefixesRetrieve(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 prefix.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamPrefixesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamPrefixesRetrieve`: Prefix
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesRetrieve`: %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 prefix. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamPrefixesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**Prefix**](Prefix.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)
+
+
+## IpamPrefixesUpdate
+
+> Prefix IpamPrefixesUpdate(ctx, id).WritablePrefixRequest(writablePrefixRequest).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 prefix.
+ writablePrefixRequest := *openapiclient.NewWritablePrefixRequest("Prefix_example") // WritablePrefixRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamPrefixesUpdate(context.Background(), id).WritablePrefixRequest(writablePrefixRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamPrefixesUpdate`: Prefix
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesUpdate`: %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 prefix. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamPrefixesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writablePrefixRequest** | [**WritablePrefixRequest**](WritablePrefixRequest.md) | |
+
+### Return type
+
+[**Prefix**](Prefix.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)
+
+
+## IpamRirsBulkDestroy
+
+> IpamRirsBulkDestroy(ctx).RIRRequest(rIRRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ rIRRequest := []openapiclient.RIRRequest{*openapiclient.NewRIRRequest("Name_example", "Slug_example")} // []RIRRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamRirsBulkDestroy(context.Background()).RIRRequest(rIRRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRirsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **rIRRequest** | [**[]RIRRequest**](RIRRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamRirsBulkPartialUpdate
+
+> []RIR IpamRirsBulkPartialUpdate(ctx).RIRRequest(rIRRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ rIRRequest := []openapiclient.RIRRequest{*openapiclient.NewRIRRequest("Name_example", "Slug_example")} // []RIRRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRirsBulkPartialUpdate(context.Background()).RIRRequest(rIRRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRirsBulkPartialUpdate`: []RIR
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRirsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **rIRRequest** | [**[]RIRRequest**](RIRRequest.md) | |
+
+### Return type
+
+[**[]RIR**](RIR.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)
+
+
+## IpamRirsBulkUpdate
+
+> []RIR IpamRirsBulkUpdate(ctx).RIRRequest(rIRRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ rIRRequest := []openapiclient.RIRRequest{*openapiclient.NewRIRRequest("Name_example", "Slug_example")} // []RIRRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRirsBulkUpdate(context.Background()).RIRRequest(rIRRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRirsBulkUpdate`: []RIR
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRirsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **rIRRequest** | [**[]RIRRequest**](RIRRequest.md) | |
+
+### Return type
+
+[**[]RIR**](RIR.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)
+
+
+## IpamRirsCreate
+
+> RIR IpamRirsCreate(ctx).RIRRequest(rIRRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ rIRRequest := *openapiclient.NewRIRRequest("Name_example", "Slug_example") // RIRRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRirsCreate(context.Background()).RIRRequest(rIRRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRirsCreate`: RIR
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRirsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **rIRRequest** | [**RIRRequest**](RIRRequest.md) | |
+
+### Return type
+
+[**RIR**](RIR.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)
+
+
+## IpamRirsDestroy
+
+> IpamRirsDestroy(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 RIR.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamRirsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 RIR. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRirsDestroyRequest 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)
+
+
+## IpamRirsList
+
+> PaginatedRIRList IpamRirsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPrivate(isPrivate).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ isPrivate := true // bool | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRirsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPrivate(isPrivate).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRirsList`: PaginatedRIRList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRirsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **isPrivate** | **bool** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+ **slug** | **[]string** | |
+ **slugEmpty** | **bool** | |
+ **slugIc** | **[]string** | |
+ **slugIe** | **[]string** | |
+ **slugIew** | **[]string** | |
+ **slugIsw** | **[]string** | |
+ **slugN** | **[]string** | |
+ **slugNic** | **[]string** | |
+ **slugNie** | **[]string** | |
+ **slugNiew** | **[]string** | |
+ **slugNisw** | **[]string** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedRIRList**](PaginatedRIRList.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)
+
+
+## IpamRirsPartialUpdate
+
+> RIR IpamRirsPartialUpdate(ctx, id).PatchedRIRRequest(patchedRIRRequest).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 RIR.
+ patchedRIRRequest := *openapiclient.NewPatchedRIRRequest() // PatchedRIRRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRirsPartialUpdate(context.Background(), id).PatchedRIRRequest(patchedRIRRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRirsPartialUpdate`: RIR
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsPartialUpdate`: %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 RIR. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRirsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedRIRRequest** | [**PatchedRIRRequest**](PatchedRIRRequest.md) | |
+
+### Return type
+
+[**RIR**](RIR.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)
+
+
+## IpamRirsRetrieve
+
+> RIR IpamRirsRetrieve(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 RIR.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRirsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRirsRetrieve`: RIR
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsRetrieve`: %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 RIR. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRirsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**RIR**](RIR.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)
+
+
+## IpamRirsUpdate
+
+> RIR IpamRirsUpdate(ctx, id).RIRRequest(rIRRequest).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 RIR.
+ rIRRequest := *openapiclient.NewRIRRequest("Name_example", "Slug_example") // RIRRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRirsUpdate(context.Background(), id).RIRRequest(rIRRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRirsUpdate`: RIR
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsUpdate`: %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 RIR. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRirsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **rIRRequest** | [**RIRRequest**](RIRRequest.md) | |
+
+### Return type
+
+[**RIR**](RIR.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)
+
+
+## IpamRolesBulkDestroy
+
+> IpamRolesBulkDestroy(ctx).RoleRequest(roleRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ roleRequest := []openapiclient.RoleRequest{*openapiclient.NewRoleRequest("Name_example", "Slug_example")} // []RoleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamRolesBulkDestroy(context.Background()).RoleRequest(roleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRolesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **roleRequest** | [**[]RoleRequest**](RoleRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamRolesBulkPartialUpdate
+
+> []Role IpamRolesBulkPartialUpdate(ctx).RoleRequest(roleRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ roleRequest := []openapiclient.RoleRequest{*openapiclient.NewRoleRequest("Name_example", "Slug_example")} // []RoleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRolesBulkPartialUpdate(context.Background()).RoleRequest(roleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRolesBulkPartialUpdate`: []Role
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRolesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **roleRequest** | [**[]RoleRequest**](RoleRequest.md) | |
+
+### Return type
+
+[**[]Role**](Role.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)
+
+
+## IpamRolesBulkUpdate
+
+> []Role IpamRolesBulkUpdate(ctx).RoleRequest(roleRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ roleRequest := []openapiclient.RoleRequest{*openapiclient.NewRoleRequest("Name_example", "Slug_example")} // []RoleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRolesBulkUpdate(context.Background()).RoleRequest(roleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRolesBulkUpdate`: []Role
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRolesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **roleRequest** | [**[]RoleRequest**](RoleRequest.md) | |
+
+### Return type
+
+[**[]Role**](Role.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)
+
+
+## IpamRolesCreate
+
+> Role IpamRolesCreate(ctx).RoleRequest(roleRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ roleRequest := *openapiclient.NewRoleRequest("Name_example", "Slug_example") // RoleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRolesCreate(context.Background()).RoleRequest(roleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRolesCreate`: Role
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRolesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **roleRequest** | [**RoleRequest**](RoleRequest.md) | |
+
+### Return type
+
+[**Role**](Role.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)
+
+
+## IpamRolesDestroy
+
+> IpamRolesDestroy(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 role.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamRolesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 role. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRolesDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRolesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRolesList`: PaginatedRoleList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRolesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+ **slug** | **[]string** | |
+ **slugEmpty** | **bool** | |
+ **slugIc** | **[]string** | |
+ **slugIe** | **[]string** | |
+ **slugIew** | **[]string** | |
+ **slugIsw** | **[]string** | |
+ **slugN** | **[]string** | |
+ **slugNic** | **[]string** | |
+ **slugNie** | **[]string** | |
+ **slugNiew** | **[]string** | |
+ **slugNisw** | **[]string** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedRoleList**](PaginatedRoleList.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)
+
+
+## IpamRolesPartialUpdate
+
+> Role IpamRolesPartialUpdate(ctx, id).PatchedRoleRequest(patchedRoleRequest).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 role.
+ patchedRoleRequest := *openapiclient.NewPatchedRoleRequest() // PatchedRoleRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRolesPartialUpdate(context.Background(), id).PatchedRoleRequest(patchedRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRolesPartialUpdate`: Role
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesPartialUpdate`: %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 role. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRolesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedRoleRequest** | [**PatchedRoleRequest**](PatchedRoleRequest.md) | |
+
+### Return type
+
+[**Role**](Role.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)
+
+
+## IpamRolesRetrieve
+
+> Role IpamRolesRetrieve(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 role.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRolesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRolesRetrieve`: Role
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesRetrieve`: %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 role. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRolesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**Role**](Role.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)
+
+
+## IpamRolesUpdate
+
+> Role IpamRolesUpdate(ctx, id).RoleRequest(roleRequest).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 role.
+ roleRequest := *openapiclient.NewRoleRequest("Name_example", "Slug_example") // RoleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRolesUpdate(context.Background(), id).RoleRequest(roleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRolesUpdate`: Role
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesUpdate`: %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 role. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRolesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **roleRequest** | [**RoleRequest**](RoleRequest.md) | |
+
+### Return type
+
+[**Role**](Role.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)
+
+
+## IpamRouteTargetsBulkDestroy
+
+> IpamRouteTargetsBulkDestroy(ctx).RouteTargetRequest(routeTargetRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ routeTargetRequest := []openapiclient.RouteTargetRequest{*openapiclient.NewRouteTargetRequest("Name_example")} // []RouteTargetRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamRouteTargetsBulkDestroy(context.Background()).RouteTargetRequest(routeTargetRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRouteTargetsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **routeTargetRequest** | [**[]RouteTargetRequest**](RouteTargetRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamRouteTargetsBulkPartialUpdate
+
+> []RouteTarget IpamRouteTargetsBulkPartialUpdate(ctx).RouteTargetRequest(routeTargetRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ routeTargetRequest := []openapiclient.RouteTargetRequest{*openapiclient.NewRouteTargetRequest("Name_example")} // []RouteTargetRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRouteTargetsBulkPartialUpdate(context.Background()).RouteTargetRequest(routeTargetRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRouteTargetsBulkPartialUpdate`: []RouteTarget
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRouteTargetsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **routeTargetRequest** | [**[]RouteTargetRequest**](RouteTargetRequest.md) | |
+
+### Return type
+
+[**[]RouteTarget**](RouteTarget.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)
+
+
+## IpamRouteTargetsBulkUpdate
+
+> []RouteTarget IpamRouteTargetsBulkUpdate(ctx).RouteTargetRequest(routeTargetRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ routeTargetRequest := []openapiclient.RouteTargetRequest{*openapiclient.NewRouteTargetRequest("Name_example")} // []RouteTargetRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRouteTargetsBulkUpdate(context.Background()).RouteTargetRequest(routeTargetRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRouteTargetsBulkUpdate`: []RouteTarget
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRouteTargetsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **routeTargetRequest** | [**[]RouteTargetRequest**](RouteTargetRequest.md) | |
+
+### Return type
+
+[**[]RouteTarget**](RouteTarget.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)
+
+
+## IpamRouteTargetsCreate
+
+> RouteTarget IpamRouteTargetsCreate(ctx).WritableRouteTargetRequest(writableRouteTargetRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableRouteTargetRequest := *openapiclient.NewWritableRouteTargetRequest("Name_example") // WritableRouteTargetRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRouteTargetsCreate(context.Background()).WritableRouteTargetRequest(writableRouteTargetRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRouteTargetsCreate`: RouteTarget
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRouteTargetsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableRouteTargetRequest** | [**WritableRouteTargetRequest**](WritableRouteTargetRequest.md) | |
+
+### Return type
+
+[**RouteTarget**](RouteTarget.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)
+
+
+## IpamRouteTargetsDestroy
+
+> IpamRouteTargetsDestroy(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 route target.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamRouteTargetsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 route target. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRouteTargetsDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ 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)
+ exportingVrfIdN := []int32{int32(123)} // []int32 | Exporting VRF (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (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)
+ importingVrfIdN := []int32{int32(123)} // []int32 | Importing VRF (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ 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()
+ 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)
+ }
+ // response from `IpamRouteTargetsList`: PaginatedRouteTargetList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRouteTargetsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **exportingVrf** | **[]string** | Export VRF (RD) |
+ **exportingVrfN** | **[]string** | Export VRF (RD) |
+ **exportingVrfId** | **[]int32** | Exporting VRF |
+ **exportingVrfIdN** | **[]int32** | Exporting VRF |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **importingVrf** | **[]string** | Import VRF (RD) |
+ **importingVrfN** | **[]string** | Import VRF (RD) |
+ **importingVrfId** | **[]int32** | Importing VRF |
+ **importingVrfIdN** | **[]int32** | Importing VRF |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **tenant** | **[]string** | Tenant (slug) |
+ **tenantN** | **[]string** | Tenant (slug) |
+ **tenantGroup** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupN** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupId** | **[]int32** | Tenant Group (ID) |
+ **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
+ **tenantId** | **[]int32** | Tenant (ID) |
+ **tenantIdN** | **[]int32** | Tenant (ID) |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedRouteTargetList**](PaginatedRouteTargetList.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)
+
+
+## IpamRouteTargetsPartialUpdate
+
+> RouteTarget IpamRouteTargetsPartialUpdate(ctx, id).PatchedWritableRouteTargetRequest(patchedWritableRouteTargetRequest).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 route target.
+ patchedWritableRouteTargetRequest := *openapiclient.NewPatchedWritableRouteTargetRequest() // PatchedWritableRouteTargetRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRouteTargetsPartialUpdate(context.Background(), id).PatchedWritableRouteTargetRequest(patchedWritableRouteTargetRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRouteTargetsPartialUpdate`: RouteTarget
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsPartialUpdate`: %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 route target. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRouteTargetsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableRouteTargetRequest** | [**PatchedWritableRouteTargetRequest**](PatchedWritableRouteTargetRequest.md) | |
+
+### Return type
+
+[**RouteTarget**](RouteTarget.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)
+
+
+## IpamRouteTargetsRetrieve
+
+> RouteTarget IpamRouteTargetsRetrieve(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 route target.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRouteTargetsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRouteTargetsRetrieve`: RouteTarget
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsRetrieve`: %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 route target. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRouteTargetsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**RouteTarget**](RouteTarget.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)
+
+
+## IpamRouteTargetsUpdate
+
+> RouteTarget IpamRouteTargetsUpdate(ctx, id).WritableRouteTargetRequest(writableRouteTargetRequest).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 route target.
+ writableRouteTargetRequest := *openapiclient.NewWritableRouteTargetRequest("Name_example") // WritableRouteTargetRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamRouteTargetsUpdate(context.Background(), id).WritableRouteTargetRequest(writableRouteTargetRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamRouteTargetsUpdate`: RouteTarget
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsUpdate`: %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 route target. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamRouteTargetsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableRouteTargetRequest** | [**WritableRouteTargetRequest**](WritableRouteTargetRequest.md) | |
+
+### Return type
+
+[**RouteTarget**](RouteTarget.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)
+
+
+## IpamServiceTemplatesBulkDestroy
+
+> IpamServiceTemplatesBulkDestroy(ctx).ServiceTemplateRequest(serviceTemplateRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ serviceTemplateRequest := []openapiclient.ServiceTemplateRequest{*openapiclient.NewServiceTemplateRequest("Name_example", []int32{int32(123)})} // []ServiceTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamServiceTemplatesBulkDestroy(context.Background()).ServiceTemplateRequest(serviceTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServiceTemplatesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **serviceTemplateRequest** | [**[]ServiceTemplateRequest**](ServiceTemplateRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamServiceTemplatesBulkPartialUpdate
+
+> []ServiceTemplate IpamServiceTemplatesBulkPartialUpdate(ctx).ServiceTemplateRequest(serviceTemplateRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ serviceTemplateRequest := []openapiclient.ServiceTemplateRequest{*openapiclient.NewServiceTemplateRequest("Name_example", []int32{int32(123)})} // []ServiceTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesBulkPartialUpdate(context.Background()).ServiceTemplateRequest(serviceTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamServiceTemplatesBulkPartialUpdate`: []ServiceTemplate
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServiceTemplatesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **serviceTemplateRequest** | [**[]ServiceTemplateRequest**](ServiceTemplateRequest.md) | |
+
+### Return type
+
+[**[]ServiceTemplate**](ServiceTemplate.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)
+
+
+## IpamServiceTemplatesBulkUpdate
+
+> []ServiceTemplate IpamServiceTemplatesBulkUpdate(ctx).ServiceTemplateRequest(serviceTemplateRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ serviceTemplateRequest := []openapiclient.ServiceTemplateRequest{*openapiclient.NewServiceTemplateRequest("Name_example", []int32{int32(123)})} // []ServiceTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesBulkUpdate(context.Background()).ServiceTemplateRequest(serviceTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamServiceTemplatesBulkUpdate`: []ServiceTemplate
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServiceTemplatesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **serviceTemplateRequest** | [**[]ServiceTemplateRequest**](ServiceTemplateRequest.md) | |
+
+### Return type
+
+[**[]ServiceTemplate**](ServiceTemplate.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)
+
+
+## IpamServiceTemplatesCreate
+
+> ServiceTemplate IpamServiceTemplatesCreate(ctx).WritableServiceTemplateRequest(writableServiceTemplateRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableServiceTemplateRequest := *openapiclient.NewWritableServiceTemplateRequest("Name_example", []int32{int32(123)}, openapiclient.PatchedWritableServiceRequest_protocol("tcp")) // WritableServiceTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesCreate(context.Background()).WritableServiceTemplateRequest(writableServiceTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamServiceTemplatesCreate`: ServiceTemplate
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServiceTemplatesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableServiceTemplateRequest** | [**WritableServiceTemplateRequest**](WritableServiceTemplateRequest.md) | |
+
+### Return type
+
+[**ServiceTemplate**](ServiceTemplate.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)
+
+
+## IpamServiceTemplatesDestroy
+
+> IpamServiceTemplatesDestroy(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 service template.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamServiceTemplatesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 service template. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServiceTemplatesDestroyRequest 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)
+
+
+## IpamServiceTemplatesList
+
+> PaginatedServiceTemplateList IpamServiceTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ port := float32(8.14) // float32 | (optional)
+ protocol := "protocol_example" // string | (optional)
+ protocolN := "protocolN_example" // string | (optional)
+ q := "q_example" // string | Search (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamServiceTemplatesList`: PaginatedServiceTemplateList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServiceTemplatesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **port** | **float32** | |
+ **protocol** | **string** | |
+ **protocolN** | **string** | |
+ **q** | **string** | Search |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedServiceTemplateList**](PaginatedServiceTemplateList.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)
+
+
+## IpamServiceTemplatesPartialUpdate
+
+> ServiceTemplate IpamServiceTemplatesPartialUpdate(ctx, id).PatchedWritableServiceTemplateRequest(patchedWritableServiceTemplateRequest).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 service template.
+ patchedWritableServiceTemplateRequest := *openapiclient.NewPatchedWritableServiceTemplateRequest() // PatchedWritableServiceTemplateRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesPartialUpdate(context.Background(), id).PatchedWritableServiceTemplateRequest(patchedWritableServiceTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamServiceTemplatesPartialUpdate`: ServiceTemplate
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesPartialUpdate`: %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 service template. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServiceTemplatesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableServiceTemplateRequest** | [**PatchedWritableServiceTemplateRequest**](PatchedWritableServiceTemplateRequest.md) | |
+
+### Return type
+
+[**ServiceTemplate**](ServiceTemplate.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)
+
+
+## IpamServiceTemplatesRetrieve
+
+> ServiceTemplate IpamServiceTemplatesRetrieve(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 service template.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamServiceTemplatesRetrieve`: ServiceTemplate
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesRetrieve`: %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 service template. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServiceTemplatesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**ServiceTemplate**](ServiceTemplate.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)
+
+
+## IpamServiceTemplatesUpdate
+
+> ServiceTemplate IpamServiceTemplatesUpdate(ctx, id).WritableServiceTemplateRequest(writableServiceTemplateRequest).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 service template.
+ writableServiceTemplateRequest := *openapiclient.NewWritableServiceTemplateRequest("Name_example", []int32{int32(123)}, openapiclient.PatchedWritableServiceRequest_protocol("tcp")) // WritableServiceTemplateRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesUpdate(context.Background(), id).WritableServiceTemplateRequest(writableServiceTemplateRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamServiceTemplatesUpdate`: ServiceTemplate
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesUpdate`: %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 service template. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServiceTemplatesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableServiceTemplateRequest** | [**WritableServiceTemplateRequest**](WritableServiceTemplateRequest.md) | |
+
+### Return type
+
+[**ServiceTemplate**](ServiceTemplate.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)
+
+
+## IpamServicesBulkDestroy
+
+> IpamServicesBulkDestroy(ctx).ServiceRequest(serviceRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ serviceRequest := []openapiclient.ServiceRequest{*openapiclient.NewServiceRequest("Name_example", []int32{int32(123)})} // []ServiceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamServicesBulkDestroy(context.Background()).ServiceRequest(serviceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServicesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **serviceRequest** | [**[]ServiceRequest**](ServiceRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamServicesBulkPartialUpdate
+
+> []Service IpamServicesBulkPartialUpdate(ctx).ServiceRequest(serviceRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ serviceRequest := []openapiclient.ServiceRequest{*openapiclient.NewServiceRequest("Name_example", []int32{int32(123)})} // []ServiceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamServicesBulkPartialUpdate(context.Background()).ServiceRequest(serviceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamServicesBulkPartialUpdate`: []Service
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServicesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **serviceRequest** | [**[]ServiceRequest**](ServiceRequest.md) | |
+
+### Return type
+
+[**[]Service**](Service.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)
+
+
+## IpamServicesBulkUpdate
+
+> []Service IpamServicesBulkUpdate(ctx).ServiceRequest(serviceRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ serviceRequest := []openapiclient.ServiceRequest{*openapiclient.NewServiceRequest("Name_example", []int32{int32(123)})} // []ServiceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamServicesBulkUpdate(context.Background()).ServiceRequest(serviceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamServicesBulkUpdate`: []Service
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServicesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **serviceRequest** | [**[]ServiceRequest**](ServiceRequest.md) | |
+
+### Return type
+
+[**[]Service**](Service.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)
+
+
+## IpamServicesCreate
+
+> Service IpamServicesCreate(ctx).WritableServiceRequest(writableServiceRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableServiceRequest := *openapiclient.NewWritableServiceRequest("Name_example", []int32{int32(123)}, openapiclient.PatchedWritableServiceRequest_protocol("tcp")) // WritableServiceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamServicesCreate(context.Background()).WritableServiceRequest(writableServiceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamServicesCreate`: Service
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServicesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableServiceRequest** | [**WritableServiceRequest**](WritableServiceRequest.md) | |
+
+### Return type
+
+[**Service**](Service.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)
+
+
+## IpamServicesDestroy
+
+> IpamServicesDestroy(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 service.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamServicesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 service. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServicesDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ 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)
+ 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)
+ ipaddress := []string{"Inner_example"} // []string | IP address (optional)
+ ipaddressN := []string{"Inner_example"} // []string | IP address (optional)
+ ipaddressId := []int32{int32(123)} // []int32 | IP address (ID) (optional)
+ ipaddressIdN := []int32{int32(123)} // []int32 | IP address (ID) (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ port := float32(8.14) // float32 | (optional)
+ protocol := "protocol_example" // string | (optional)
+ protocolN := "protocolN_example" // string | (optional)
+ q := "q_example" // string | Search (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualMachine := []string{"Inner_example"} // []string | Virtual machine (name) (optional)
+ virtualMachineN := []string{"Inner_example"} // []string | Virtual machine (name) (optional)
+ virtualMachineId := []*int32{int32(123)} // []*int32 | Virtual machine (ID) (optional)
+ virtualMachineIdN := []*int32{int32(123)} // []*int32 | Virtual machine (ID) (optional)
+
+ 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()
+ 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)
+ }
+ // response from `IpamServicesList`: PaginatedServiceList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServicesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **device** | **[]string** | Device (name) |
+ **deviceN** | **[]string** | Device (name) |
+ **deviceId** | **[]int32** | Device (ID) |
+ **deviceIdN** | **[]int32** | Device (ID) |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **ipaddress** | **[]string** | IP address |
+ **ipaddressN** | **[]string** | IP address |
+ **ipaddressId** | **[]int32** | IP address (ID) |
+ **ipaddressIdN** | **[]int32** | IP address (ID) |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **port** | **float32** | |
+ **protocol** | **string** | |
+ **protocolN** | **string** | |
+ **q** | **string** | Search |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+ **virtualMachine** | **[]string** | Virtual machine (name) |
+ **virtualMachineN** | **[]string** | Virtual machine (name) |
+ **virtualMachineId** | **[]int32** | Virtual machine (ID) |
+ **virtualMachineIdN** | **[]int32** | Virtual machine (ID) |
+
+### Return type
+
+[**PaginatedServiceList**](PaginatedServiceList.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)
+
+
+## IpamServicesPartialUpdate
+
+> Service IpamServicesPartialUpdate(ctx, id).PatchedWritableServiceRequest(patchedWritableServiceRequest).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 service.
+ patchedWritableServiceRequest := *openapiclient.NewPatchedWritableServiceRequest() // PatchedWritableServiceRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamServicesPartialUpdate(context.Background(), id).PatchedWritableServiceRequest(patchedWritableServiceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamServicesPartialUpdate`: Service
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesPartialUpdate`: %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 service. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServicesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableServiceRequest** | [**PatchedWritableServiceRequest**](PatchedWritableServiceRequest.md) | |
+
+### Return type
+
+[**Service**](Service.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)
+
+
+## IpamServicesRetrieve
+
+> Service IpamServicesRetrieve(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 service.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamServicesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamServicesRetrieve`: Service
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesRetrieve`: %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 service. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServicesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**Service**](Service.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)
+
+
+## IpamServicesUpdate
+
+> Service IpamServicesUpdate(ctx, id).WritableServiceRequest(writableServiceRequest).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 service.
+ writableServiceRequest := *openapiclient.NewWritableServiceRequest("Name_example", []int32{int32(123)}, openapiclient.PatchedWritableServiceRequest_protocol("tcp")) // WritableServiceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamServicesUpdate(context.Background(), id).WritableServiceRequest(writableServiceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamServicesUpdate`: Service
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesUpdate`: %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 service. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamServicesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableServiceRequest** | [**WritableServiceRequest**](WritableServiceRequest.md) | |
+
+### Return type
+
+[**Service**](Service.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)
+
+
+## IpamVlanGroupsAvailableVlansCreate
+
+> []VLAN IpamVlanGroupsAvailableVlansCreate(ctx, id).VLANRequest(vLANRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ id := int32(56) // int32 |
+ vLANRequest := []openapiclient.VLANRequest{*openapiclient.NewVLANRequest(int32(123), "Name_example")} // []VLANRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlanGroupsAvailableVlansCreate(context.Background(), id).VLANRequest(vLANRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsAvailableVlansCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlanGroupsAvailableVlansCreate`: []VLAN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsAvailableVlansCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlanGroupsAvailableVlansCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **vLANRequest** | [**[]VLANRequest**](VLANRequest.md) | |
+
+### Return type
+
+[**[]VLAN**](VLAN.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)
+
+
+## IpamVlanGroupsAvailableVlansList
+
+> []AvailableVLAN IpamVlanGroupsAvailableVlansList(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 |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlanGroupsAvailableVlansList(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsAvailableVlansList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlanGroupsAvailableVlansList`: []AvailableVLAN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsAvailableVlansList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlanGroupsAvailableVlansListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**[]AvailableVLAN**](AvailableVLAN.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)
+
+
+## IpamVlanGroupsBulkDestroy
+
+> IpamVlanGroupsBulkDestroy(ctx).VLANGroupRequest(vLANGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ vLANGroupRequest := []openapiclient.VLANGroupRequest{*openapiclient.NewVLANGroupRequest("Name_example", "Slug_example")} // []VLANGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamVlanGroupsBulkDestroy(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlanGroupsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vLANGroupRequest** | [**[]VLANGroupRequest**](VLANGroupRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamVlanGroupsBulkPartialUpdate
+
+> []VLANGroup IpamVlanGroupsBulkPartialUpdate(ctx).VLANGroupRequest(vLANGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ vLANGroupRequest := []openapiclient.VLANGroupRequest{*openapiclient.NewVLANGroupRequest("Name_example", "Slug_example")} // []VLANGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlanGroupsBulkPartialUpdate(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlanGroupsBulkPartialUpdate`: []VLANGroup
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlanGroupsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vLANGroupRequest** | [**[]VLANGroupRequest**](VLANGroupRequest.md) | |
+
+### Return type
+
+[**[]VLANGroup**](VLANGroup.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)
+
+
+## IpamVlanGroupsBulkUpdate
+
+> []VLANGroup IpamVlanGroupsBulkUpdate(ctx).VLANGroupRequest(vLANGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ vLANGroupRequest := []openapiclient.VLANGroupRequest{*openapiclient.NewVLANGroupRequest("Name_example", "Slug_example")} // []VLANGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlanGroupsBulkUpdate(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlanGroupsBulkUpdate`: []VLANGroup
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlanGroupsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vLANGroupRequest** | [**[]VLANGroupRequest**](VLANGroupRequest.md) | |
+
+### Return type
+
+[**[]VLANGroup**](VLANGroup.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)
+
+
+## IpamVlanGroupsCreate
+
+> VLANGroup IpamVlanGroupsCreate(ctx).VLANGroupRequest(vLANGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ vLANGroupRequest := *openapiclient.NewVLANGroupRequest("Name_example", "Slug_example") // VLANGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlanGroupsCreate(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlanGroupsCreate`: VLANGroup
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlanGroupsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vLANGroupRequest** | [**VLANGroupRequest**](VLANGroupRequest.md) | |
+
+### Return type
+
+[**VLANGroup**](VLANGroup.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)
+
+
+## IpamVlanGroupsDestroy
+
+> IpamVlanGroupsDestroy(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 VLAN group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamVlanGroupsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this VLAN group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlanGroupsDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ cluster := int32(56) // int32 | (optional)
+ clustergroup := float32(8.14) // float32 | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ location := int32(56) // int32 | (optional)
+ maxVid := []int32{int32(123)} // []int32 | (optional)
+ maxVidEmpty := true // bool | (optional)
+ maxVidGt := []int32{int32(123)} // []int32 | (optional)
+ maxVidGte := []int32{int32(123)} // []int32 | (optional)
+ maxVidLt := []int32{int32(123)} // []int32 | (optional)
+ maxVidLte := []int32{int32(123)} // []int32 | (optional)
+ maxVidN := []int32{int32(123)} // []int32 | (optional)
+ minVid := []int32{int32(123)} // []int32 | (optional)
+ minVidEmpty := true // bool | (optional)
+ minVidGt := []int32{int32(123)} // []int32 | (optional)
+ minVidGte := []int32{int32(123)} // []int32 | (optional)
+ minVidLt := []int32{int32(123)} // []int32 | (optional)
+ minVidLte := []int32{int32(123)} // []int32 | (optional)
+ minVidN := []int32{int32(123)} // []int32 | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ 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)
+ rack := int32(56) // int32 | (optional)
+ region := int32(56) // int32 | (optional)
+ scopeId := []int32{int32(123)} // []int32 | (optional)
+ scopeIdEmpty := true // bool | (optional)
+ scopeIdGt := []int32{int32(123)} // []int32 | (optional)
+ scopeIdGte := []int32{int32(123)} // []int32 | (optional)
+ scopeIdLt := []int32{int32(123)} // []int32 | (optional)
+ scopeIdLte := []int32{int32(123)} // []int32 | (optional)
+ scopeIdN := []int32{int32(123)} // []int32 | (optional)
+ scopeType := "scopeType_example" // string | (optional)
+ scopeTypeN := "scopeTypeN_example" // string | (optional)
+ site := int32(56) // int32 | (optional)
+ sitegroup := float32(8.14) // float32 | (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Cluster(cluster).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlanGroupsList`: PaginatedVLANGroupList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlanGroupsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **cluster** | **int32** | |
+ **clustergroup** | **float32** | |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **location** | **int32** | |
+ **maxVid** | **[]int32** | |
+ **maxVidEmpty** | **bool** | |
+ **maxVidGt** | **[]int32** | |
+ **maxVidGte** | **[]int32** | |
+ **maxVidLt** | **[]int32** | |
+ **maxVidLte** | **[]int32** | |
+ **maxVidN** | **[]int32** | |
+ **minVid** | **[]int32** | |
+ **minVidEmpty** | **bool** | |
+ **minVidGt** | **[]int32** | |
+ **minVidGte** | **[]int32** | |
+ **minVidLt** | **[]int32** | |
+ **minVidLte** | **[]int32** | |
+ **minVidN** | **[]int32** | |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+ **rack** | **int32** | |
+ **region** | **int32** | |
+ **scopeId** | **[]int32** | |
+ **scopeIdEmpty** | **bool** | |
+ **scopeIdGt** | **[]int32** | |
+ **scopeIdGte** | **[]int32** | |
+ **scopeIdLt** | **[]int32** | |
+ **scopeIdLte** | **[]int32** | |
+ **scopeIdN** | **[]int32** | |
+ **scopeType** | **string** | |
+ **scopeTypeN** | **string** | |
+ **site** | **int32** | |
+ **sitegroup** | **float32** | |
+ **slug** | **[]string** | |
+ **slugEmpty** | **bool** | |
+ **slugIc** | **[]string** | |
+ **slugIe** | **[]string** | |
+ **slugIew** | **[]string** | |
+ **slugIsw** | **[]string** | |
+ **slugN** | **[]string** | |
+ **slugNic** | **[]string** | |
+ **slugNie** | **[]string** | |
+ **slugNiew** | **[]string** | |
+ **slugNisw** | **[]string** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedVLANGroupList**](PaginatedVLANGroupList.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)
+
+
+## IpamVlanGroupsPartialUpdate
+
+> VLANGroup IpamVlanGroupsPartialUpdate(ctx, id).PatchedVLANGroupRequest(patchedVLANGroupRequest).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 VLAN group.
+ patchedVLANGroupRequest := *openapiclient.NewPatchedVLANGroupRequest() // PatchedVLANGroupRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlanGroupsPartialUpdate(context.Background(), id).PatchedVLANGroupRequest(patchedVLANGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlanGroupsPartialUpdate`: VLANGroup
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this VLAN group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlanGroupsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedVLANGroupRequest** | [**PatchedVLANGroupRequest**](PatchedVLANGroupRequest.md) | |
+
+### Return type
+
+[**VLANGroup**](VLANGroup.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)
+
+
+## IpamVlanGroupsRetrieve
+
+> VLANGroup IpamVlanGroupsRetrieve(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 VLAN group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlanGroupsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlanGroupsRetrieve`: VLANGroup
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsRetrieve`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this VLAN group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlanGroupsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**VLANGroup**](VLANGroup.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)
+
+
+## IpamVlanGroupsUpdate
+
+> VLANGroup IpamVlanGroupsUpdate(ctx, id).VLANGroupRequest(vLANGroupRequest).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 VLAN group.
+ vLANGroupRequest := *openapiclient.NewVLANGroupRequest("Name_example", "Slug_example") // VLANGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlanGroupsUpdate(context.Background(), id).VLANGroupRequest(vLANGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlanGroupsUpdate`: VLANGroup
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this VLAN group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlanGroupsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **vLANGroupRequest** | [**VLANGroupRequest**](VLANGroupRequest.md) | |
+
+### Return type
+
+[**VLANGroup**](VLANGroup.md)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamVlansBulkDestroy
+
+> IpamVlansBulkDestroy(ctx).VLANRequest(vLANRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ vLANRequest := []openapiclient.VLANRequest{*openapiclient.NewVLANRequest(int32(123), "Name_example")} // []VLANRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamVlansBulkDestroy(context.Background()).VLANRequest(vLANRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlansBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vLANRequest** | [**[]VLANRequest**](VLANRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamVlansBulkPartialUpdate
+
+> []VLAN IpamVlansBulkPartialUpdate(ctx).VLANRequest(vLANRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ vLANRequest := []openapiclient.VLANRequest{*openapiclient.NewVLANRequest(int32(123), "Name_example")} // []VLANRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlansBulkPartialUpdate(context.Background()).VLANRequest(vLANRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlansBulkPartialUpdate`: []VLAN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlansBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vLANRequest** | [**[]VLANRequest**](VLANRequest.md) | |
+
+### Return type
+
+[**[]VLAN**](VLAN.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)
+
+
+## IpamVlansBulkUpdate
+
+> []VLAN IpamVlansBulkUpdate(ctx).VLANRequest(vLANRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ vLANRequest := []openapiclient.VLANRequest{*openapiclient.NewVLANRequest(int32(123), "Name_example")} // []VLANRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlansBulkUpdate(context.Background()).VLANRequest(vLANRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlansBulkUpdate`: []VLAN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlansBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vLANRequest** | [**[]VLANRequest**](VLANRequest.md) | |
+
+### Return type
+
+[**[]VLAN**](VLAN.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)
+
+
+## IpamVlansCreate
+
+> VLAN IpamVlansCreate(ctx).WritableVLANRequest(writableVLANRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableVLANRequest := *openapiclient.NewWritableVLANRequest(int32(123), "Name_example") // WritableVLANRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlansCreate(context.Background()).WritableVLANRequest(writableVLANRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlansCreate`: VLAN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlansCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableVLANRequest** | [**WritableVLANRequest**](WritableVLANRequest.md) | |
+
+### Return type
+
+[**VLAN**](VLAN.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)
+
+
+## IpamVlansDestroy
+
+> IpamVlansDestroy(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 VLAN.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamVlansDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this VLAN. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlansDestroyRequest 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)
+
+
+## IpamVlansList
+
+> PaginatedVLANList IpamVlansList(ctx).AvailableAtSite(availableAtSite).AvailableOnDevice(availableOnDevice).AvailableOnVirtualmachine(availableOnVirtualmachine).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vid(vid).VidEmpty(vidEmpty).VidGt(vidGt).VidGte(vidGte).VidLt(vidLt).VidLte(vidLte).VidN(vidN).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ availableAtSite := "availableAtSite_example" // string | (optional)
+ availableOnDevice := "availableOnDevice_example" // string | (optional)
+ availableOnVirtualmachine := "availableOnVirtualmachine_example" // string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ group := []string{"Inner_example"} // []string | Group (optional)
+ groupN := []string{"Inner_example"} // []string | Group (optional)
+ groupId := []*int32{int32(123)} // []*int32 | Group (ID) (optional)
+ groupIdN := []*int32{int32(123)} // []*int32 | Group (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ l2vpn := []*int64{int64(123)} // []*int64 | L2VPN (optional)
+ l2vpnN := []*int64{int64(123)} // []*int64 | L2VPN (optional)
+ l2vpnId := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
+ l2vpnIdN := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
+ roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
+ siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
+ status := []string{"Inner_example"} // []string | Operational status of this VLAN (optional)
+ statusN := []string{"Inner_example"} // []string | Operational status of this VLAN (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ vid := []int32{int32(123)} // []int32 | (optional)
+ vidEmpty := true // bool | (optional)
+ vidGt := []int32{int32(123)} // []int32 | (optional)
+ vidGte := []int32{int32(123)} // []int32 | (optional)
+ vidLt := []int32{int32(123)} // []int32 | (optional)
+ vidLte := []int32{int32(123)} // []int32 | (optional)
+ vidN := []int32{int32(123)} // []int32 | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlansList(context.Background()).AvailableAtSite(availableAtSite).AvailableOnDevice(availableOnDevice).AvailableOnVirtualmachine(availableOnVirtualmachine).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vid(vid).VidEmpty(vidEmpty).VidGt(vidGt).VidGte(vidGte).VidLt(vidLt).VidLte(vidLte).VidN(vidN).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlansList`: PaginatedVLANList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlansListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **availableAtSite** | **string** | |
+ **availableOnDevice** | **string** | |
+ **availableOnVirtualmachine** | **string** | |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **group** | **[]string** | Group |
+ **groupN** | **[]string** | Group |
+ **groupId** | **[]int32** | Group (ID) |
+ **groupIdN** | **[]int32** | Group (ID) |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **l2vpn** | **[]int64** | L2VPN |
+ **l2vpnN** | **[]int64** | L2VPN |
+ **l2vpnId** | **[]int32** | L2VPN (ID) |
+ **l2vpnIdN** | **[]int32** | L2VPN (ID) |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **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 |
+ **region** | **[]int32** | Region (slug) |
+ **regionN** | **[]int32** | Region (slug) |
+ **regionId** | **[]int32** | Region (ID) |
+ **regionIdN** | **[]int32** | Region (ID) |
+ **role** | **[]string** | Role (slug) |
+ **roleN** | **[]string** | Role (slug) |
+ **roleId** | **[]int32** | Role (ID) |
+ **roleIdN** | **[]int32** | Role (ID) |
+ **site** | **[]string** | Site (slug) |
+ **siteN** | **[]string** | Site (slug) |
+ **siteGroup** | **[]int32** | Site group (slug) |
+ **siteGroupN** | **[]int32** | Site group (slug) |
+ **siteGroupId** | **[]int32** | Site group (ID) |
+ **siteGroupIdN** | **[]int32** | Site group (ID) |
+ **siteId** | **[]int32** | Site (ID) |
+ **siteIdN** | **[]int32** | Site (ID) |
+ **status** | **[]string** | Operational status of this VLAN |
+ **statusN** | **[]string** | Operational status of this VLAN |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **tenant** | **[]string** | Tenant (slug) |
+ **tenantN** | **[]string** | Tenant (slug) |
+ **tenantGroup** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupN** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupId** | **[]int32** | Tenant Group (ID) |
+ **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
+ **tenantId** | **[]int32** | Tenant (ID) |
+ **tenantIdN** | **[]int32** | Tenant (ID) |
+ **updatedByRequest** | **string** | |
+ **vid** | **[]int32** | |
+ **vidEmpty** | **bool** | |
+ **vidGt** | **[]int32** | |
+ **vidGte** | **[]int32** | |
+ **vidLt** | **[]int32** | |
+ **vidLte** | **[]int32** | |
+ **vidN** | **[]int32** | |
+
+### Return type
+
+[**PaginatedVLANList**](PaginatedVLANList.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)
+
+
+## IpamVlansPartialUpdate
+
+> VLAN IpamVlansPartialUpdate(ctx, id).PatchedWritableVLANRequest(patchedWritableVLANRequest).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 VLAN.
+ patchedWritableVLANRequest := *openapiclient.NewPatchedWritableVLANRequest() // PatchedWritableVLANRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlansPartialUpdate(context.Background(), id).PatchedWritableVLANRequest(patchedWritableVLANRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlansPartialUpdate`: VLAN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this VLAN. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlansPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableVLANRequest** | [**PatchedWritableVLANRequest**](PatchedWritableVLANRequest.md) | |
+
+### Return type
+
+[**VLAN**](VLAN.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)
+
+
+## IpamVlansRetrieve
+
+> VLAN IpamVlansRetrieve(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 VLAN.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlansRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlansRetrieve`: VLAN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansRetrieve`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this VLAN. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlansRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**VLAN**](VLAN.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)
+
+
+## IpamVlansUpdate
+
+> VLAN IpamVlansUpdate(ctx, id).WritableVLANRequest(writableVLANRequest).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 VLAN.
+ writableVLANRequest := *openapiclient.NewWritableVLANRequest(int32(123), "Name_example") // WritableVLANRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVlansUpdate(context.Background(), id).WritableVLANRequest(writableVLANRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVlansUpdate`: VLAN
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this VLAN. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVlansUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableVLANRequest** | [**WritableVLANRequest**](WritableVLANRequest.md) | |
+
+### Return type
+
+[**VLAN**](VLAN.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)
+
+
+## IpamVrfsBulkDestroy
+
+> IpamVrfsBulkDestroy(ctx).VRFRequest(vRFRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ vRFRequest := []openapiclient.VRFRequest{*openapiclient.NewVRFRequest("Name_example")} // []VRFRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamVrfsBulkDestroy(context.Background()).VRFRequest(vRFRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVrfsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vRFRequest** | [**[]VRFRequest**](VRFRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## IpamVrfsBulkPartialUpdate
+
+> []VRF IpamVrfsBulkPartialUpdate(ctx).VRFRequest(vRFRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ vRFRequest := []openapiclient.VRFRequest{*openapiclient.NewVRFRequest("Name_example")} // []VRFRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVrfsBulkPartialUpdate(context.Background()).VRFRequest(vRFRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVrfsBulkPartialUpdate`: []VRF
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVrfsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vRFRequest** | [**[]VRFRequest**](VRFRequest.md) | |
+
+### Return type
+
+[**[]VRF**](VRF.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)
+
+
+## IpamVrfsBulkUpdate
+
+> []VRF IpamVrfsBulkUpdate(ctx).VRFRequest(vRFRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ vRFRequest := []openapiclient.VRFRequest{*openapiclient.NewVRFRequest("Name_example")} // []VRFRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVrfsBulkUpdate(context.Background()).VRFRequest(vRFRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVrfsBulkUpdate`: []VRF
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVrfsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vRFRequest** | [**[]VRFRequest**](VRFRequest.md) | |
+
+### Return type
+
+[**[]VRF**](VRF.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)
+
+
+## IpamVrfsCreate
+
+> VRF IpamVrfsCreate(ctx).WritableVRFRequest(writableVRFRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableVRFRequest := *openapiclient.NewWritableVRFRequest("Name_example") // WritableVRFRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVrfsCreate(context.Background()).WritableVRFRequest(writableVRFRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVrfsCreate`: VRF
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVrfsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableVRFRequest** | [**WritableVRFRequest**](WritableVRFRequest.md) | |
+
+### Return type
+
+[**VRF**](VRF.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)
+
+
+## IpamVrfsDestroy
+
+> IpamVrfsDestroy(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 VRF.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IpamAPI.IpamVrfsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 VRF. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVrfsDestroyRequest 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)
+
+
+## IpamVrfsList
+
+> PaginatedVRFList IpamVrfsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EnforceUnique(enforceUnique).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rd(rd).RdEmpty(rdEmpty).RdIc(rdIc).RdIe(rdIe).RdIew(rdIew).RdIsw(rdIsw).RdN(rdN).RdNic(rdNic).RdNie(rdNie).RdNiew(rdNiew).RdNisw(rdNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ enforceUnique := true // bool | (optional)
+ exportTarget := []string{"Inner_example"} // []string | Export target (name) (optional)
+ exportTargetN := []string{"Inner_example"} // []string | Export target (name) (optional)
+ exportTargetId := []int32{int32(123)} // []int32 | Export target (optional)
+ exportTargetIdN := []int32{int32(123)} // []int32 | Export target (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ importTarget := []string{"Inner_example"} // []string | Import target (name) (optional)
+ importTargetN := []string{"Inner_example"} // []string | Import target (name) (optional)
+ importTargetId := []int32{int32(123)} // []int32 | Import target (optional)
+ importTargetIdN := []int32{int32(123)} // []int32 | Import target (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ 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)
+ rd := []string{"Inner_example"} // []string | (optional)
+ rdEmpty := true // bool | (optional)
+ rdIc := []string{"Inner_example"} // []string | (optional)
+ rdIe := []string{"Inner_example"} // []string | (optional)
+ rdIew := []string{"Inner_example"} // []string | (optional)
+ rdIsw := []string{"Inner_example"} // []string | (optional)
+ rdN := []string{"Inner_example"} // []string | (optional)
+ rdNic := []string{"Inner_example"} // []string | (optional)
+ rdNie := []string{"Inner_example"} // []string | (optional)
+ rdNiew := []string{"Inner_example"} // []string | (optional)
+ rdNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVrfsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EnforceUnique(enforceUnique).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rd(rd).RdEmpty(rdEmpty).RdIc(rdIc).RdIe(rdIe).RdIew(rdIew).RdIsw(rdIsw).RdN(rdN).RdNic(rdNic).RdNie(rdNie).RdNiew(rdNiew).RdNisw(rdNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVrfsList`: PaginatedVRFList
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVrfsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **enforceUnique** | **bool** | |
+ **exportTarget** | **[]string** | Export target (name) |
+ **exportTargetN** | **[]string** | Export target (name) |
+ **exportTargetId** | **[]int32** | Export target |
+ **exportTargetIdN** | **[]int32** | Export target |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **importTarget** | **[]string** | Import target (name) |
+ **importTargetN** | **[]string** | Import target (name) |
+ **importTargetId** | **[]int32** | Import target |
+ **importTargetIdN** | **[]int32** | Import target |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **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 |
+ **rd** | **[]string** | |
+ **rdEmpty** | **bool** | |
+ **rdIc** | **[]string** | |
+ **rdIe** | **[]string** | |
+ **rdIew** | **[]string** | |
+ **rdIsw** | **[]string** | |
+ **rdN** | **[]string** | |
+ **rdNic** | **[]string** | |
+ **rdNie** | **[]string** | |
+ **rdNiew** | **[]string** | |
+ **rdNisw** | **[]string** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **tenant** | **[]string** | Tenant (slug) |
+ **tenantN** | **[]string** | Tenant (slug) |
+ **tenantGroup** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupN** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupId** | **[]int32** | Tenant Group (ID) |
+ **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
+ **tenantId** | **[]int32** | Tenant (ID) |
+ **tenantIdN** | **[]int32** | Tenant (ID) |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedVRFList**](PaginatedVRFList.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)
+
+
+## IpamVrfsPartialUpdate
+
+> VRF IpamVrfsPartialUpdate(ctx, id).PatchedWritableVRFRequest(patchedWritableVRFRequest).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 VRF.
+ patchedWritableVRFRequest := *openapiclient.NewPatchedWritableVRFRequest() // PatchedWritableVRFRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVrfsPartialUpdate(context.Background(), id).PatchedWritableVRFRequest(patchedWritableVRFRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVrfsPartialUpdate`: VRF
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsPartialUpdate`: %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 VRF. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVrfsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableVRFRequest** | [**PatchedWritableVRFRequest**](PatchedWritableVRFRequest.md) | |
+
+### Return type
+
+[**VRF**](VRF.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)
+
+
+## IpamVrfsRetrieve
+
+> VRF IpamVrfsRetrieve(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 VRF.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVrfsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVrfsRetrieve`: VRF
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsRetrieve`: %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 VRF. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVrfsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**VRF**](VRF.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)
+
+
+## IpamVrfsUpdate
+
+> VRF IpamVrfsUpdate(ctx, id).WritableVRFRequest(writableVRFRequest).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 VRF.
+ writableVRFRequest := *openapiclient.NewWritableVRFRequest("Name_example") // WritableVRFRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IpamAPI.IpamVrfsUpdate(context.Background(), id).WritableVRFRequest(writableVRFRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `IpamVrfsUpdate`: VRF
+ fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsUpdate`: %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 VRF. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiIpamVrfsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableVRFRequest** | [**WritableVRFRequest**](WritableVRFRequest.md) | |
+
+### Return type
+
+[**VRF**](VRF.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)
+
diff --git a/docs/IpamApi.md b/docs/IpamApi.md
deleted file mode 100644
index 96dbda4322..0000000000
--- a/docs/IpamApi.md
+++ /dev/null
@@ -1,14470 +0,0 @@
-# \IpamAPI
-
-All URIs are relative to *http://localhost*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**IpamAggregatesBulkDestroy**](IpamAPI.md#IpamAggregatesBulkDestroy) | **Delete** /api/ipam/aggregates/ |
-[**IpamAggregatesBulkPartialUpdate**](IpamAPI.md#IpamAggregatesBulkPartialUpdate) | **Patch** /api/ipam/aggregates/ |
-[**IpamAggregatesBulkUpdate**](IpamAPI.md#IpamAggregatesBulkUpdate) | **Put** /api/ipam/aggregates/ |
-[**IpamAggregatesCreate**](IpamAPI.md#IpamAggregatesCreate) | **Post** /api/ipam/aggregates/ |
-[**IpamAggregatesDestroy**](IpamAPI.md#IpamAggregatesDestroy) | **Delete** /api/ipam/aggregates/{id}/ |
-[**IpamAggregatesList**](IpamAPI.md#IpamAggregatesList) | **Get** /api/ipam/aggregates/ |
-[**IpamAggregatesPartialUpdate**](IpamAPI.md#IpamAggregatesPartialUpdate) | **Patch** /api/ipam/aggregates/{id}/ |
-[**IpamAggregatesRetrieve**](IpamAPI.md#IpamAggregatesRetrieve) | **Get** /api/ipam/aggregates/{id}/ |
-[**IpamAggregatesUpdate**](IpamAPI.md#IpamAggregatesUpdate) | **Put** /api/ipam/aggregates/{id}/ |
-[**IpamAsnRangesAvailableAsnsCreate**](IpamAPI.md#IpamAsnRangesAvailableAsnsCreate) | **Post** /api/ipam/asn-ranges/{id}/available-asns/ |
-[**IpamAsnRangesAvailableAsnsList**](IpamAPI.md#IpamAsnRangesAvailableAsnsList) | **Get** /api/ipam/asn-ranges/{id}/available-asns/ |
-[**IpamAsnRangesBulkDestroy**](IpamAPI.md#IpamAsnRangesBulkDestroy) | **Delete** /api/ipam/asn-ranges/ |
-[**IpamAsnRangesBulkPartialUpdate**](IpamAPI.md#IpamAsnRangesBulkPartialUpdate) | **Patch** /api/ipam/asn-ranges/ |
-[**IpamAsnRangesBulkUpdate**](IpamAPI.md#IpamAsnRangesBulkUpdate) | **Put** /api/ipam/asn-ranges/ |
-[**IpamAsnRangesCreate**](IpamAPI.md#IpamAsnRangesCreate) | **Post** /api/ipam/asn-ranges/ |
-[**IpamAsnRangesDestroy**](IpamAPI.md#IpamAsnRangesDestroy) | **Delete** /api/ipam/asn-ranges/{id}/ |
-[**IpamAsnRangesList**](IpamAPI.md#IpamAsnRangesList) | **Get** /api/ipam/asn-ranges/ |
-[**IpamAsnRangesPartialUpdate**](IpamAPI.md#IpamAsnRangesPartialUpdate) | **Patch** /api/ipam/asn-ranges/{id}/ |
-[**IpamAsnRangesRetrieve**](IpamAPI.md#IpamAsnRangesRetrieve) | **Get** /api/ipam/asn-ranges/{id}/ |
-[**IpamAsnRangesUpdate**](IpamAPI.md#IpamAsnRangesUpdate) | **Put** /api/ipam/asn-ranges/{id}/ |
-[**IpamAsnsBulkDestroy**](IpamAPI.md#IpamAsnsBulkDestroy) | **Delete** /api/ipam/asns/ |
-[**IpamAsnsBulkPartialUpdate**](IpamAPI.md#IpamAsnsBulkPartialUpdate) | **Patch** /api/ipam/asns/ |
-[**IpamAsnsBulkUpdate**](IpamAPI.md#IpamAsnsBulkUpdate) | **Put** /api/ipam/asns/ |
-[**IpamAsnsCreate**](IpamAPI.md#IpamAsnsCreate) | **Post** /api/ipam/asns/ |
-[**IpamAsnsDestroy**](IpamAPI.md#IpamAsnsDestroy) | **Delete** /api/ipam/asns/{id}/ |
-[**IpamAsnsList**](IpamAPI.md#IpamAsnsList) | **Get** /api/ipam/asns/ |
-[**IpamAsnsPartialUpdate**](IpamAPI.md#IpamAsnsPartialUpdate) | **Patch** /api/ipam/asns/{id}/ |
-[**IpamAsnsRetrieve**](IpamAPI.md#IpamAsnsRetrieve) | **Get** /api/ipam/asns/{id}/ |
-[**IpamAsnsUpdate**](IpamAPI.md#IpamAsnsUpdate) | **Put** /api/ipam/asns/{id}/ |
-[**IpamFhrpGroupAssignmentsBulkDestroy**](IpamAPI.md#IpamFhrpGroupAssignmentsBulkDestroy) | **Delete** /api/ipam/fhrp-group-assignments/ |
-[**IpamFhrpGroupAssignmentsBulkPartialUpdate**](IpamAPI.md#IpamFhrpGroupAssignmentsBulkPartialUpdate) | **Patch** /api/ipam/fhrp-group-assignments/ |
-[**IpamFhrpGroupAssignmentsBulkUpdate**](IpamAPI.md#IpamFhrpGroupAssignmentsBulkUpdate) | **Put** /api/ipam/fhrp-group-assignments/ |
-[**IpamFhrpGroupAssignmentsCreate**](IpamAPI.md#IpamFhrpGroupAssignmentsCreate) | **Post** /api/ipam/fhrp-group-assignments/ |
-[**IpamFhrpGroupAssignmentsDestroy**](IpamAPI.md#IpamFhrpGroupAssignmentsDestroy) | **Delete** /api/ipam/fhrp-group-assignments/{id}/ |
-[**IpamFhrpGroupAssignmentsList**](IpamAPI.md#IpamFhrpGroupAssignmentsList) | **Get** /api/ipam/fhrp-group-assignments/ |
-[**IpamFhrpGroupAssignmentsPartialUpdate**](IpamAPI.md#IpamFhrpGroupAssignmentsPartialUpdate) | **Patch** /api/ipam/fhrp-group-assignments/{id}/ |
-[**IpamFhrpGroupAssignmentsRetrieve**](IpamAPI.md#IpamFhrpGroupAssignmentsRetrieve) | **Get** /api/ipam/fhrp-group-assignments/{id}/ |
-[**IpamFhrpGroupAssignmentsUpdate**](IpamAPI.md#IpamFhrpGroupAssignmentsUpdate) | **Put** /api/ipam/fhrp-group-assignments/{id}/ |
-[**IpamFhrpGroupsBulkDestroy**](IpamAPI.md#IpamFhrpGroupsBulkDestroy) | **Delete** /api/ipam/fhrp-groups/ |
-[**IpamFhrpGroupsBulkPartialUpdate**](IpamAPI.md#IpamFhrpGroupsBulkPartialUpdate) | **Patch** /api/ipam/fhrp-groups/ |
-[**IpamFhrpGroupsBulkUpdate**](IpamAPI.md#IpamFhrpGroupsBulkUpdate) | **Put** /api/ipam/fhrp-groups/ |
-[**IpamFhrpGroupsCreate**](IpamAPI.md#IpamFhrpGroupsCreate) | **Post** /api/ipam/fhrp-groups/ |
-[**IpamFhrpGroupsDestroy**](IpamAPI.md#IpamFhrpGroupsDestroy) | **Delete** /api/ipam/fhrp-groups/{id}/ |
-[**IpamFhrpGroupsList**](IpamAPI.md#IpamFhrpGroupsList) | **Get** /api/ipam/fhrp-groups/ |
-[**IpamFhrpGroupsPartialUpdate**](IpamAPI.md#IpamFhrpGroupsPartialUpdate) | **Patch** /api/ipam/fhrp-groups/{id}/ |
-[**IpamFhrpGroupsRetrieve**](IpamAPI.md#IpamFhrpGroupsRetrieve) | **Get** /api/ipam/fhrp-groups/{id}/ |
-[**IpamFhrpGroupsUpdate**](IpamAPI.md#IpamFhrpGroupsUpdate) | **Put** /api/ipam/fhrp-groups/{id}/ |
-[**IpamIpAddressesBulkDestroy**](IpamAPI.md#IpamIpAddressesBulkDestroy) | **Delete** /api/ipam/ip-addresses/ |
-[**IpamIpAddressesBulkPartialUpdate**](IpamAPI.md#IpamIpAddressesBulkPartialUpdate) | **Patch** /api/ipam/ip-addresses/ |
-[**IpamIpAddressesBulkUpdate**](IpamAPI.md#IpamIpAddressesBulkUpdate) | **Put** /api/ipam/ip-addresses/ |
-[**IpamIpAddressesCreate**](IpamAPI.md#IpamIpAddressesCreate) | **Post** /api/ipam/ip-addresses/ |
-[**IpamIpAddressesDestroy**](IpamAPI.md#IpamIpAddressesDestroy) | **Delete** /api/ipam/ip-addresses/{id}/ |
-[**IpamIpAddressesList**](IpamAPI.md#IpamIpAddressesList) | **Get** /api/ipam/ip-addresses/ |
-[**IpamIpAddressesPartialUpdate**](IpamAPI.md#IpamIpAddressesPartialUpdate) | **Patch** /api/ipam/ip-addresses/{id}/ |
-[**IpamIpAddressesRetrieve**](IpamAPI.md#IpamIpAddressesRetrieve) | **Get** /api/ipam/ip-addresses/{id}/ |
-[**IpamIpAddressesUpdate**](IpamAPI.md#IpamIpAddressesUpdate) | **Put** /api/ipam/ip-addresses/{id}/ |
-[**IpamIpRangesAvailableIpsCreate**](IpamAPI.md#IpamIpRangesAvailableIpsCreate) | **Post** /api/ipam/ip-ranges/{id}/available-ips/ |
-[**IpamIpRangesAvailableIpsList**](IpamAPI.md#IpamIpRangesAvailableIpsList) | **Get** /api/ipam/ip-ranges/{id}/available-ips/ |
-[**IpamIpRangesBulkDestroy**](IpamAPI.md#IpamIpRangesBulkDestroy) | **Delete** /api/ipam/ip-ranges/ |
-[**IpamIpRangesBulkPartialUpdate**](IpamAPI.md#IpamIpRangesBulkPartialUpdate) | **Patch** /api/ipam/ip-ranges/ |
-[**IpamIpRangesBulkUpdate**](IpamAPI.md#IpamIpRangesBulkUpdate) | **Put** /api/ipam/ip-ranges/ |
-[**IpamIpRangesCreate**](IpamAPI.md#IpamIpRangesCreate) | **Post** /api/ipam/ip-ranges/ |
-[**IpamIpRangesDestroy**](IpamAPI.md#IpamIpRangesDestroy) | **Delete** /api/ipam/ip-ranges/{id}/ |
-[**IpamIpRangesList**](IpamAPI.md#IpamIpRangesList) | **Get** /api/ipam/ip-ranges/ |
-[**IpamIpRangesPartialUpdate**](IpamAPI.md#IpamIpRangesPartialUpdate) | **Patch** /api/ipam/ip-ranges/{id}/ |
-[**IpamIpRangesRetrieve**](IpamAPI.md#IpamIpRangesRetrieve) | **Get** /api/ipam/ip-ranges/{id}/ |
-[**IpamIpRangesUpdate**](IpamAPI.md#IpamIpRangesUpdate) | **Put** /api/ipam/ip-ranges/{id}/ |
-[**IpamL2vpnTerminationsBulkDestroy**](IpamAPI.md#IpamL2vpnTerminationsBulkDestroy) | **Delete** /api/ipam/l2vpn-terminations/ |
-[**IpamL2vpnTerminationsBulkPartialUpdate**](IpamAPI.md#IpamL2vpnTerminationsBulkPartialUpdate) | **Patch** /api/ipam/l2vpn-terminations/ |
-[**IpamL2vpnTerminationsBulkUpdate**](IpamAPI.md#IpamL2vpnTerminationsBulkUpdate) | **Put** /api/ipam/l2vpn-terminations/ |
-[**IpamL2vpnTerminationsCreate**](IpamAPI.md#IpamL2vpnTerminationsCreate) | **Post** /api/ipam/l2vpn-terminations/ |
-[**IpamL2vpnTerminationsDestroy**](IpamAPI.md#IpamL2vpnTerminationsDestroy) | **Delete** /api/ipam/l2vpn-terminations/{id}/ |
-[**IpamL2vpnTerminationsList**](IpamAPI.md#IpamL2vpnTerminationsList) | **Get** /api/ipam/l2vpn-terminations/ |
-[**IpamL2vpnTerminationsPartialUpdate**](IpamAPI.md#IpamL2vpnTerminationsPartialUpdate) | **Patch** /api/ipam/l2vpn-terminations/{id}/ |
-[**IpamL2vpnTerminationsRetrieve**](IpamAPI.md#IpamL2vpnTerminationsRetrieve) | **Get** /api/ipam/l2vpn-terminations/{id}/ |
-[**IpamL2vpnTerminationsUpdate**](IpamAPI.md#IpamL2vpnTerminationsUpdate) | **Put** /api/ipam/l2vpn-terminations/{id}/ |
-[**IpamL2vpnsBulkDestroy**](IpamAPI.md#IpamL2vpnsBulkDestroy) | **Delete** /api/ipam/l2vpns/ |
-[**IpamL2vpnsBulkPartialUpdate**](IpamAPI.md#IpamL2vpnsBulkPartialUpdate) | **Patch** /api/ipam/l2vpns/ |
-[**IpamL2vpnsBulkUpdate**](IpamAPI.md#IpamL2vpnsBulkUpdate) | **Put** /api/ipam/l2vpns/ |
-[**IpamL2vpnsCreate**](IpamAPI.md#IpamL2vpnsCreate) | **Post** /api/ipam/l2vpns/ |
-[**IpamL2vpnsDestroy**](IpamAPI.md#IpamL2vpnsDestroy) | **Delete** /api/ipam/l2vpns/{id}/ |
-[**IpamL2vpnsList**](IpamAPI.md#IpamL2vpnsList) | **Get** /api/ipam/l2vpns/ |
-[**IpamL2vpnsPartialUpdate**](IpamAPI.md#IpamL2vpnsPartialUpdate) | **Patch** /api/ipam/l2vpns/{id}/ |
-[**IpamL2vpnsRetrieve**](IpamAPI.md#IpamL2vpnsRetrieve) | **Get** /api/ipam/l2vpns/{id}/ |
-[**IpamL2vpnsUpdate**](IpamAPI.md#IpamL2vpnsUpdate) | **Put** /api/ipam/l2vpns/{id}/ |
-[**IpamPrefixesAvailableIpsCreate**](IpamAPI.md#IpamPrefixesAvailableIpsCreate) | **Post** /api/ipam/prefixes/{id}/available-ips/ |
-[**IpamPrefixesAvailableIpsList**](IpamAPI.md#IpamPrefixesAvailableIpsList) | **Get** /api/ipam/prefixes/{id}/available-ips/ |
-[**IpamPrefixesAvailablePrefixesCreate**](IpamAPI.md#IpamPrefixesAvailablePrefixesCreate) | **Post** /api/ipam/prefixes/{id}/available-prefixes/ |
-[**IpamPrefixesAvailablePrefixesList**](IpamAPI.md#IpamPrefixesAvailablePrefixesList) | **Get** /api/ipam/prefixes/{id}/available-prefixes/ |
-[**IpamPrefixesBulkDestroy**](IpamAPI.md#IpamPrefixesBulkDestroy) | **Delete** /api/ipam/prefixes/ |
-[**IpamPrefixesBulkPartialUpdate**](IpamAPI.md#IpamPrefixesBulkPartialUpdate) | **Patch** /api/ipam/prefixes/ |
-[**IpamPrefixesBulkUpdate**](IpamAPI.md#IpamPrefixesBulkUpdate) | **Put** /api/ipam/prefixes/ |
-[**IpamPrefixesCreate**](IpamAPI.md#IpamPrefixesCreate) | **Post** /api/ipam/prefixes/ |
-[**IpamPrefixesDestroy**](IpamAPI.md#IpamPrefixesDestroy) | **Delete** /api/ipam/prefixes/{id}/ |
-[**IpamPrefixesList**](IpamAPI.md#IpamPrefixesList) | **Get** /api/ipam/prefixes/ |
-[**IpamPrefixesPartialUpdate**](IpamAPI.md#IpamPrefixesPartialUpdate) | **Patch** /api/ipam/prefixes/{id}/ |
-[**IpamPrefixesRetrieve**](IpamAPI.md#IpamPrefixesRetrieve) | **Get** /api/ipam/prefixes/{id}/ |
-[**IpamPrefixesUpdate**](IpamAPI.md#IpamPrefixesUpdate) | **Put** /api/ipam/prefixes/{id}/ |
-[**IpamRirsBulkDestroy**](IpamAPI.md#IpamRirsBulkDestroy) | **Delete** /api/ipam/rirs/ |
-[**IpamRirsBulkPartialUpdate**](IpamAPI.md#IpamRirsBulkPartialUpdate) | **Patch** /api/ipam/rirs/ |
-[**IpamRirsBulkUpdate**](IpamAPI.md#IpamRirsBulkUpdate) | **Put** /api/ipam/rirs/ |
-[**IpamRirsCreate**](IpamAPI.md#IpamRirsCreate) | **Post** /api/ipam/rirs/ |
-[**IpamRirsDestroy**](IpamAPI.md#IpamRirsDestroy) | **Delete** /api/ipam/rirs/{id}/ |
-[**IpamRirsList**](IpamAPI.md#IpamRirsList) | **Get** /api/ipam/rirs/ |
-[**IpamRirsPartialUpdate**](IpamAPI.md#IpamRirsPartialUpdate) | **Patch** /api/ipam/rirs/{id}/ |
-[**IpamRirsRetrieve**](IpamAPI.md#IpamRirsRetrieve) | **Get** /api/ipam/rirs/{id}/ |
-[**IpamRirsUpdate**](IpamAPI.md#IpamRirsUpdate) | **Put** /api/ipam/rirs/{id}/ |
-[**IpamRolesBulkDestroy**](IpamAPI.md#IpamRolesBulkDestroy) | **Delete** /api/ipam/roles/ |
-[**IpamRolesBulkPartialUpdate**](IpamAPI.md#IpamRolesBulkPartialUpdate) | **Patch** /api/ipam/roles/ |
-[**IpamRolesBulkUpdate**](IpamAPI.md#IpamRolesBulkUpdate) | **Put** /api/ipam/roles/ |
-[**IpamRolesCreate**](IpamAPI.md#IpamRolesCreate) | **Post** /api/ipam/roles/ |
-[**IpamRolesDestroy**](IpamAPI.md#IpamRolesDestroy) | **Delete** /api/ipam/roles/{id}/ |
-[**IpamRolesList**](IpamAPI.md#IpamRolesList) | **Get** /api/ipam/roles/ |
-[**IpamRolesPartialUpdate**](IpamAPI.md#IpamRolesPartialUpdate) | **Patch** /api/ipam/roles/{id}/ |
-[**IpamRolesRetrieve**](IpamAPI.md#IpamRolesRetrieve) | **Get** /api/ipam/roles/{id}/ |
-[**IpamRolesUpdate**](IpamAPI.md#IpamRolesUpdate) | **Put** /api/ipam/roles/{id}/ |
-[**IpamRouteTargetsBulkDestroy**](IpamAPI.md#IpamRouteTargetsBulkDestroy) | **Delete** /api/ipam/route-targets/ |
-[**IpamRouteTargetsBulkPartialUpdate**](IpamAPI.md#IpamRouteTargetsBulkPartialUpdate) | **Patch** /api/ipam/route-targets/ |
-[**IpamRouteTargetsBulkUpdate**](IpamAPI.md#IpamRouteTargetsBulkUpdate) | **Put** /api/ipam/route-targets/ |
-[**IpamRouteTargetsCreate**](IpamAPI.md#IpamRouteTargetsCreate) | **Post** /api/ipam/route-targets/ |
-[**IpamRouteTargetsDestroy**](IpamAPI.md#IpamRouteTargetsDestroy) | **Delete** /api/ipam/route-targets/{id}/ |
-[**IpamRouteTargetsList**](IpamAPI.md#IpamRouteTargetsList) | **Get** /api/ipam/route-targets/ |
-[**IpamRouteTargetsPartialUpdate**](IpamAPI.md#IpamRouteTargetsPartialUpdate) | **Patch** /api/ipam/route-targets/{id}/ |
-[**IpamRouteTargetsRetrieve**](IpamAPI.md#IpamRouteTargetsRetrieve) | **Get** /api/ipam/route-targets/{id}/ |
-[**IpamRouteTargetsUpdate**](IpamAPI.md#IpamRouteTargetsUpdate) | **Put** /api/ipam/route-targets/{id}/ |
-[**IpamServiceTemplatesBulkDestroy**](IpamAPI.md#IpamServiceTemplatesBulkDestroy) | **Delete** /api/ipam/service-templates/ |
-[**IpamServiceTemplatesBulkPartialUpdate**](IpamAPI.md#IpamServiceTemplatesBulkPartialUpdate) | **Patch** /api/ipam/service-templates/ |
-[**IpamServiceTemplatesBulkUpdate**](IpamAPI.md#IpamServiceTemplatesBulkUpdate) | **Put** /api/ipam/service-templates/ |
-[**IpamServiceTemplatesCreate**](IpamAPI.md#IpamServiceTemplatesCreate) | **Post** /api/ipam/service-templates/ |
-[**IpamServiceTemplatesDestroy**](IpamAPI.md#IpamServiceTemplatesDestroy) | **Delete** /api/ipam/service-templates/{id}/ |
-[**IpamServiceTemplatesList**](IpamAPI.md#IpamServiceTemplatesList) | **Get** /api/ipam/service-templates/ |
-[**IpamServiceTemplatesPartialUpdate**](IpamAPI.md#IpamServiceTemplatesPartialUpdate) | **Patch** /api/ipam/service-templates/{id}/ |
-[**IpamServiceTemplatesRetrieve**](IpamAPI.md#IpamServiceTemplatesRetrieve) | **Get** /api/ipam/service-templates/{id}/ |
-[**IpamServiceTemplatesUpdate**](IpamAPI.md#IpamServiceTemplatesUpdate) | **Put** /api/ipam/service-templates/{id}/ |
-[**IpamServicesBulkDestroy**](IpamAPI.md#IpamServicesBulkDestroy) | **Delete** /api/ipam/services/ |
-[**IpamServicesBulkPartialUpdate**](IpamAPI.md#IpamServicesBulkPartialUpdate) | **Patch** /api/ipam/services/ |
-[**IpamServicesBulkUpdate**](IpamAPI.md#IpamServicesBulkUpdate) | **Put** /api/ipam/services/ |
-[**IpamServicesCreate**](IpamAPI.md#IpamServicesCreate) | **Post** /api/ipam/services/ |
-[**IpamServicesDestroy**](IpamAPI.md#IpamServicesDestroy) | **Delete** /api/ipam/services/{id}/ |
-[**IpamServicesList**](IpamAPI.md#IpamServicesList) | **Get** /api/ipam/services/ |
-[**IpamServicesPartialUpdate**](IpamAPI.md#IpamServicesPartialUpdate) | **Patch** /api/ipam/services/{id}/ |
-[**IpamServicesRetrieve**](IpamAPI.md#IpamServicesRetrieve) | **Get** /api/ipam/services/{id}/ |
-[**IpamServicesUpdate**](IpamAPI.md#IpamServicesUpdate) | **Put** /api/ipam/services/{id}/ |
-[**IpamVlanGroupsAvailableVlansCreate**](IpamAPI.md#IpamVlanGroupsAvailableVlansCreate) | **Post** /api/ipam/vlan-groups/{id}/available-vlans/ |
-[**IpamVlanGroupsAvailableVlansList**](IpamAPI.md#IpamVlanGroupsAvailableVlansList) | **Get** /api/ipam/vlan-groups/{id}/available-vlans/ |
-[**IpamVlanGroupsBulkDestroy**](IpamAPI.md#IpamVlanGroupsBulkDestroy) | **Delete** /api/ipam/vlan-groups/ |
-[**IpamVlanGroupsBulkPartialUpdate**](IpamAPI.md#IpamVlanGroupsBulkPartialUpdate) | **Patch** /api/ipam/vlan-groups/ |
-[**IpamVlanGroupsBulkUpdate**](IpamAPI.md#IpamVlanGroupsBulkUpdate) | **Put** /api/ipam/vlan-groups/ |
-[**IpamVlanGroupsCreate**](IpamAPI.md#IpamVlanGroupsCreate) | **Post** /api/ipam/vlan-groups/ |
-[**IpamVlanGroupsDestroy**](IpamAPI.md#IpamVlanGroupsDestroy) | **Delete** /api/ipam/vlan-groups/{id}/ |
-[**IpamVlanGroupsList**](IpamAPI.md#IpamVlanGroupsList) | **Get** /api/ipam/vlan-groups/ |
-[**IpamVlanGroupsPartialUpdate**](IpamAPI.md#IpamVlanGroupsPartialUpdate) | **Patch** /api/ipam/vlan-groups/{id}/ |
-[**IpamVlanGroupsRetrieve**](IpamAPI.md#IpamVlanGroupsRetrieve) | **Get** /api/ipam/vlan-groups/{id}/ |
-[**IpamVlanGroupsUpdate**](IpamAPI.md#IpamVlanGroupsUpdate) | **Put** /api/ipam/vlan-groups/{id}/ |
-[**IpamVlansBulkDestroy**](IpamAPI.md#IpamVlansBulkDestroy) | **Delete** /api/ipam/vlans/ |
-[**IpamVlansBulkPartialUpdate**](IpamAPI.md#IpamVlansBulkPartialUpdate) | **Patch** /api/ipam/vlans/ |
-[**IpamVlansBulkUpdate**](IpamAPI.md#IpamVlansBulkUpdate) | **Put** /api/ipam/vlans/ |
-[**IpamVlansCreate**](IpamAPI.md#IpamVlansCreate) | **Post** /api/ipam/vlans/ |
-[**IpamVlansDestroy**](IpamAPI.md#IpamVlansDestroy) | **Delete** /api/ipam/vlans/{id}/ |
-[**IpamVlansList**](IpamAPI.md#IpamVlansList) | **Get** /api/ipam/vlans/ |
-[**IpamVlansPartialUpdate**](IpamAPI.md#IpamVlansPartialUpdate) | **Patch** /api/ipam/vlans/{id}/ |
-[**IpamVlansRetrieve**](IpamAPI.md#IpamVlansRetrieve) | **Get** /api/ipam/vlans/{id}/ |
-[**IpamVlansUpdate**](IpamAPI.md#IpamVlansUpdate) | **Put** /api/ipam/vlans/{id}/ |
-[**IpamVrfsBulkDestroy**](IpamAPI.md#IpamVrfsBulkDestroy) | **Delete** /api/ipam/vrfs/ |
-[**IpamVrfsBulkPartialUpdate**](IpamAPI.md#IpamVrfsBulkPartialUpdate) | **Patch** /api/ipam/vrfs/ |
-[**IpamVrfsBulkUpdate**](IpamAPI.md#IpamVrfsBulkUpdate) | **Put** /api/ipam/vrfs/ |
-[**IpamVrfsCreate**](IpamAPI.md#IpamVrfsCreate) | **Post** /api/ipam/vrfs/ |
-[**IpamVrfsDestroy**](IpamAPI.md#IpamVrfsDestroy) | **Delete** /api/ipam/vrfs/{id}/ |
-[**IpamVrfsList**](IpamAPI.md#IpamVrfsList) | **Get** /api/ipam/vrfs/ |
-[**IpamVrfsPartialUpdate**](IpamAPI.md#IpamVrfsPartialUpdate) | **Patch** /api/ipam/vrfs/{id}/ |
-[**IpamVrfsRetrieve**](IpamAPI.md#IpamVrfsRetrieve) | **Get** /api/ipam/vrfs/{id}/ |
-[**IpamVrfsUpdate**](IpamAPI.md#IpamVrfsUpdate) | **Put** /api/ipam/vrfs/{id}/ |
-
-
-
-## IpamAggregatesBulkDestroy
-
-> IpamAggregatesBulkDestroy(ctx).AggregateRequest(aggregateRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamAggregatesBulkDestroy(context.Background()).AggregateRequest(aggregateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAggregatesBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **aggregateRequest** | [**[]AggregateRequest**](AggregateRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamAggregatesBulkPartialUpdate
-
-> []Aggregate IpamAggregatesBulkPartialUpdate(ctx).AggregateRequest(aggregateRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAggregatesBulkPartialUpdate(context.Background()).AggregateRequest(aggregateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAggregatesBulkPartialUpdate`: []Aggregate
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAggregatesBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **aggregateRequest** | [**[]AggregateRequest**](AggregateRequest.md) | |
-
-### Return type
-
-[**[]Aggregate**](Aggregate.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)
-
-
-## IpamAggregatesBulkUpdate
-
-> []Aggregate IpamAggregatesBulkUpdate(ctx).AggregateRequest(aggregateRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAggregatesBulkUpdate(context.Background()).AggregateRequest(aggregateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAggregatesBulkUpdate`: []Aggregate
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAggregatesBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **aggregateRequest** | [**[]AggregateRequest**](AggregateRequest.md) | |
-
-### Return type
-
-[**[]Aggregate**](Aggregate.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)
-
-
-## IpamAggregatesCreate
-
-> Aggregate IpamAggregatesCreate(ctx).WritableAggregateRequest(writableAggregateRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", int32(123)) // WritableAggregateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAggregatesCreate(context.Background()).WritableAggregateRequest(writableAggregateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAggregatesCreate`: Aggregate
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAggregatesCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableAggregateRequest** | [**WritableAggregateRequest**](WritableAggregateRequest.md) | |
-
-### Return type
-
-[**Aggregate**](Aggregate.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)
-
-
-## IpamAggregatesDestroy
-
-> IpamAggregatesDestroy(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 aggregate.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamAggregatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 aggregate. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAggregatesDestroyRequest 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)
-
-
-## IpamAggregatesList
-
-> PaginatedAggregateList IpamAggregatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DateAdded(dateAdded).DateAddedEmpty(dateAddedEmpty).DateAddedGt(dateAddedGt).DateAddedGte(dateAddedGte).DateAddedLt(dateAddedLt).DateAddedLte(dateAddedLte).DateAddedN(dateAddedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- dateAdded := []string{time.Now()} // []string | (optional)
- dateAddedEmpty := true // bool | (optional)
- dateAddedGt := []string{time.Now()} // []string | (optional)
- dateAddedGte := []string{time.Now()} // []string | (optional)
- dateAddedLt := []string{time.Now()} // []string | (optional)
- dateAddedLte := []string{time.Now()} // []string | (optional)
- dateAddedN := []string{time.Now()} // []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)
- family := float32(8.14) // float32 | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- prefix := "prefix_example" // string | Prefix (optional)
- q := "q_example" // string | Search (optional)
- rir := []string{"Inner_example"} // []string | RIR (slug) (optional)
- rirN := []string{"Inner_example"} // []string | RIR (slug) (optional)
- rirId := []int32{int32(123)} // []int32 | RIR (ID) (optional)
- rirIdN := []int32{int32(123)} // []int32 | RIR (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAggregatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DateAdded(dateAdded).DateAddedEmpty(dateAddedEmpty).DateAddedGt(dateAddedGt).DateAddedGte(dateAddedGte).DateAddedLt(dateAddedLt).DateAddedLte(dateAddedLte).DateAddedN(dateAddedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAggregatesList`: PaginatedAggregateList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAggregatesListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **dateAdded** | **[]string** | |
- **dateAddedEmpty** | **bool** | |
- **dateAddedGt** | **[]string** | |
- **dateAddedGte** | **[]string** | |
- **dateAddedLt** | **[]string** | |
- **dateAddedLte** | **[]string** | |
- **dateAddedN** | **[]string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **family** | **float32** | |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **prefix** | **string** | Prefix |
- **q** | **string** | Search |
- **rir** | **[]string** | RIR (slug) |
- **rirN** | **[]string** | RIR (slug) |
- **rirId** | **[]int32** | RIR (ID) |
- **rirIdN** | **[]int32** | RIR (ID) |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **tenant** | **[]string** | Tenant (slug) |
- **tenantN** | **[]string** | Tenant (slug) |
- **tenantGroup** | **[]int32** | Tenant Group (slug) |
- **tenantGroupN** | **[]int32** | Tenant Group (slug) |
- **tenantGroupId** | **[]int32** | Tenant Group (ID) |
- **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
- **tenantId** | **[]int32** | Tenant (ID) |
- **tenantIdN** | **[]int32** | Tenant (ID) |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedAggregateList**](PaginatedAggregateList.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)
-
-
-## IpamAggregatesPartialUpdate
-
-> Aggregate IpamAggregatesPartialUpdate(ctx, id).PatchedWritableAggregateRequest(patchedWritableAggregateRequest).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 aggregate.
- patchedWritableAggregateRequest := *openapiclient.NewPatchedWritableAggregateRequest() // PatchedWritableAggregateRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAggregatesPartialUpdate(context.Background(), id).PatchedWritableAggregateRequest(patchedWritableAggregateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAggregatesPartialUpdate`: Aggregate
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesPartialUpdate`: %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 aggregate. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAggregatesPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableAggregateRequest** | [**PatchedWritableAggregateRequest**](PatchedWritableAggregateRequest.md) | |
-
-### Return type
-
-[**Aggregate**](Aggregate.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)
-
-
-## IpamAggregatesRetrieve
-
-> Aggregate IpamAggregatesRetrieve(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 aggregate.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAggregatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAggregatesRetrieve`: Aggregate
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesRetrieve`: %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 aggregate. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAggregatesRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**Aggregate**](Aggregate.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)
-
-
-## IpamAggregatesUpdate
-
-> Aggregate IpamAggregatesUpdate(ctx, id).WritableAggregateRequest(writableAggregateRequest).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 aggregate.
- writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", int32(123)) // WritableAggregateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAggregatesUpdate(context.Background(), id).WritableAggregateRequest(writableAggregateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAggregatesUpdate`: Aggregate
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesUpdate`: %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 aggregate. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAggregatesUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableAggregateRequest** | [**WritableAggregateRequest**](WritableAggregateRequest.md) | |
-
-### Return type
-
-[**Aggregate**](Aggregate.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)
-
-
-## IpamAsnRangesAvailableAsnsCreate
-
-> []ASN IpamAsnRangesAvailableAsnsCreate(ctx, id).ASNRequest(aSNRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- id := int32(56) // int32 |
- aSNRequest := []openapiclient.ASNRequest{*openapiclient.NewASNRequest(int64(123))} // []ASNRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnRangesAvailableAsnsCreate(context.Background(), id).ASNRequest(aSNRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesAvailableAsnsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnRangesAvailableAsnsCreate`: []ASN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesAvailableAsnsCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnRangesAvailableAsnsCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **aSNRequest** | [**[]ASNRequest**](ASNRequest.md) | |
-
-### Return type
-
-[**[]ASN**](ASN.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)
-
-
-## IpamAsnRangesAvailableAsnsList
-
-> []AvailableASN IpamAsnRangesAvailableAsnsList(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 |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnRangesAvailableAsnsList(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesAvailableAsnsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnRangesAvailableAsnsList`: []AvailableASN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesAvailableAsnsList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnRangesAvailableAsnsListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**[]AvailableASN**](AvailableASN.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)
-
-
-## IpamAsnRangesBulkDestroy
-
-> IpamAsnRangesBulkDestroy(ctx).ASNRangeRequest(aSNRangeRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamAsnRangesBulkDestroy(context.Background()).ASNRangeRequest(aSNRangeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnRangesBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **aSNRangeRequest** | [**[]ASNRangeRequest**](ASNRangeRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamAsnRangesBulkPartialUpdate
-
-> []ASNRange IpamAsnRangesBulkPartialUpdate(ctx).ASNRangeRequest(aSNRangeRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnRangesBulkPartialUpdate(context.Background()).ASNRangeRequest(aSNRangeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnRangesBulkPartialUpdate`: []ASNRange
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnRangesBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **aSNRangeRequest** | [**[]ASNRangeRequest**](ASNRangeRequest.md) | |
-
-### Return type
-
-[**[]ASNRange**](ASNRange.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)
-
-
-## IpamAsnRangesBulkUpdate
-
-> []ASNRange IpamAsnRangesBulkUpdate(ctx).ASNRangeRequest(aSNRangeRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnRangesBulkUpdate(context.Background()).ASNRangeRequest(aSNRangeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnRangesBulkUpdate`: []ASNRange
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnRangesBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **aSNRangeRequest** | [**[]ASNRangeRequest**](ASNRangeRequest.md) | |
-
-### Return type
-
-[**[]ASNRange**](ASNRange.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)
-
-
-## IpamAsnRangesCreate
-
-> ASNRange IpamAsnRangesCreate(ctx).WritableASNRangeRequest(writableASNRangeRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableASNRangeRequest := *openapiclient.NewWritableASNRangeRequest("Name_example", "Slug_example", int32(123), int64(123), int64(123)) // WritableASNRangeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnRangesCreate(context.Background()).WritableASNRangeRequest(writableASNRangeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnRangesCreate`: ASNRange
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnRangesCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableASNRangeRequest** | [**WritableASNRangeRequest**](WritableASNRangeRequest.md) | |
-
-### Return type
-
-[**ASNRange**](ASNRange.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)
-
-
-## IpamAsnRangesDestroy
-
-> IpamAsnRangesDestroy(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 ASN range.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamAsnRangesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 ASN range. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnRangesDestroyRequest 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)
-
-
-## 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()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- end := []int32{int32(123)} // []int32 | (optional)
- endEmpty := true // bool | (optional)
- endGt := []int32{int32(123)} // []int32 | (optional)
- endGte := []int32{int32(123)} // []int32 | (optional)
- endLt := []int32{int32(123)} // []int32 | (optional)
- endLte := []int32{int32(123)} // []int32 | (optional)
- endN := []int32{int32(123)} // []int32 | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- 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)
- rir := []string{"Inner_example"} // []string | RIR (slug) (optional)
- rirN := []string{"Inner_example"} // []string | RIR (slug) (optional)
- rirId := []int32{int32(123)} // []int32 | RIR (ID) (optional)
- rirIdN := []int32{int32(123)} // []int32 | RIR (ID) (optional)
- start := []int32{int32(123)} // []int32 | (optional)
- startEmpty := true // bool | (optional)
- startGt := []int32{int32(123)} // []int32 | (optional)
- startGte := []int32{int32(123)} // []int32 | (optional)
- startLt := []int32{int32(123)} // []int32 | (optional)
- startLte := []int32{int32(123)} // []int32 | (optional)
- startN := []int32{int32(123)} // []int32 | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- 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()
- 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)
- }
- // response from `IpamAsnRangesList`: PaginatedASNRangeList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnRangesListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **end** | **[]int32** | |
- **endEmpty** | **bool** | |
- **endGt** | **[]int32** | |
- **endGte** | **[]int32** | |
- **endLt** | **[]int32** | |
- **endLte** | **[]int32** | |
- **endN** | **[]int32** | |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **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 |
- **rir** | **[]string** | RIR (slug) |
- **rirN** | **[]string** | RIR (slug) |
- **rirId** | **[]int32** | RIR (ID) |
- **rirIdN** | **[]int32** | RIR (ID) |
- **start** | **[]int32** | |
- **startEmpty** | **bool** | |
- **startGt** | **[]int32** | |
- **startGte** | **[]int32** | |
- **startLt** | **[]int32** | |
- **startLte** | **[]int32** | |
- **startN** | **[]int32** | |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **tenant** | **[]string** | Tenant (slug) |
- **tenantN** | **[]string** | Tenant (slug) |
- **tenantGroup** | **[]int32** | Tenant Group (slug) |
- **tenantGroupN** | **[]int32** | Tenant Group (slug) |
- **tenantGroupId** | **[]int32** | Tenant Group (ID) |
- **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
- **tenantId** | **[]int32** | Tenant (ID) |
- **tenantIdN** | **[]int32** | Tenant (ID) |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedASNRangeList**](PaginatedASNRangeList.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)
-
-
-## IpamAsnRangesPartialUpdate
-
-> ASNRange IpamAsnRangesPartialUpdate(ctx, id).PatchedWritableASNRangeRequest(patchedWritableASNRangeRequest).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 ASN range.
- patchedWritableASNRangeRequest := *openapiclient.NewPatchedWritableASNRangeRequest() // PatchedWritableASNRangeRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnRangesPartialUpdate(context.Background(), id).PatchedWritableASNRangeRequest(patchedWritableASNRangeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnRangesPartialUpdate`: ASNRange
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesPartialUpdate`: %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 ASN range. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnRangesPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableASNRangeRequest** | [**PatchedWritableASNRangeRequest**](PatchedWritableASNRangeRequest.md) | |
-
-### Return type
-
-[**ASNRange**](ASNRange.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)
-
-
-## IpamAsnRangesRetrieve
-
-> ASNRange IpamAsnRangesRetrieve(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 ASN range.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnRangesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnRangesRetrieve`: ASNRange
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesRetrieve`: %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 ASN range. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnRangesRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**ASNRange**](ASNRange.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)
-
-
-## IpamAsnRangesUpdate
-
-> ASNRange IpamAsnRangesUpdate(ctx, id).WritableASNRangeRequest(writableASNRangeRequest).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 ASN range.
- writableASNRangeRequest := *openapiclient.NewWritableASNRangeRequest("Name_example", "Slug_example", int32(123), int64(123), int64(123)) // WritableASNRangeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnRangesUpdate(context.Background(), id).WritableASNRangeRequest(writableASNRangeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnRangesUpdate`: ASNRange
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesUpdate`: %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 ASN range. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnRangesUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableASNRangeRequest** | [**WritableASNRangeRequest**](WritableASNRangeRequest.md) | |
-
-### Return type
-
-[**ASNRange**](ASNRange.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)
-
-
-## IpamAsnsBulkDestroy
-
-> IpamAsnsBulkDestroy(ctx).ASNRequest(aSNRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- aSNRequest := []openapiclient.ASNRequest{*openapiclient.NewASNRequest(int64(123))} // []ASNRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamAsnsBulkDestroy(context.Background()).ASNRequest(aSNRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnsBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **aSNRequest** | [**[]ASNRequest**](ASNRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamAsnsBulkPartialUpdate
-
-> []ASN IpamAsnsBulkPartialUpdate(ctx).ASNRequest(aSNRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- aSNRequest := []openapiclient.ASNRequest{*openapiclient.NewASNRequest(int64(123))} // []ASNRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnsBulkPartialUpdate(context.Background()).ASNRequest(aSNRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnsBulkPartialUpdate`: []ASN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnsBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **aSNRequest** | [**[]ASNRequest**](ASNRequest.md) | |
-
-### Return type
-
-[**[]ASN**](ASN.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)
-
-
-## IpamAsnsBulkUpdate
-
-> []ASN IpamAsnsBulkUpdate(ctx).ASNRequest(aSNRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- aSNRequest := []openapiclient.ASNRequest{*openapiclient.NewASNRequest(int64(123))} // []ASNRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnsBulkUpdate(context.Background()).ASNRequest(aSNRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnsBulkUpdate`: []ASN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnsBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **aSNRequest** | [**[]ASNRequest**](ASNRequest.md) | |
-
-### Return type
-
-[**[]ASN**](ASN.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)
-
-
-## IpamAsnsCreate
-
-> ASN IpamAsnsCreate(ctx).WritableASNRequest(writableASNRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableASNRequest := *openapiclient.NewWritableASNRequest(int64(123), int32(123)) // WritableASNRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnsCreate(context.Background()).WritableASNRequest(writableASNRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnsCreate`: ASN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnsCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableASNRequest** | [**WritableASNRequest**](WritableASNRequest.md) | |
-
-### Return type
-
-[**ASN**](ASN.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)
-
-
-## IpamAsnsDestroy
-
-> IpamAsnsDestroy(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 ASN.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamAsnsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 ASN. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnsDestroyRequest 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)
-
-
-## 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()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- asn := []int32{int32(123)} // []int32 | (optional)
- asnEmpty := true // bool | (optional)
- asnGt := []int32{int32(123)} // []int32 | (optional)
- asnGte := []int32{int32(123)} // []int32 | (optional)
- asnLt := []int32{int32(123)} // []int32 | (optional)
- asnLte := []int32{int32(123)} // []int32 | (optional)
- asnN := []int32{int32(123)} // []int32 | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- 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)
- rir := []string{"Inner_example"} // []string | RIR (slug) (optional)
- rirN := []string{"Inner_example"} // []string | RIR (slug) (optional)
- rirId := []int32{int32(123)} // []int32 | RIR (ID) (optional)
- rirIdN := []int32{int32(123)} // []int32 | RIR (ID) (optional)
- site := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
- siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- 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()
- 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)
- }
- // response from `IpamAsnsList`: PaginatedASNList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnsListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **asn** | **[]int32** | |
- **asnEmpty** | **bool** | |
- **asnGt** | **[]int32** | |
- **asnGte** | **[]int32** | |
- **asnLt** | **[]int32** | |
- **asnLte** | **[]int32** | |
- **asnN** | **[]int32** | |
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **q** | **string** | Search |
- **rir** | **[]string** | RIR (slug) |
- **rirN** | **[]string** | RIR (slug) |
- **rirId** | **[]int32** | RIR (ID) |
- **rirIdN** | **[]int32** | RIR (ID) |
- **site** | **[]string** | Site (slug) |
- **siteN** | **[]string** | Site (slug) |
- **siteId** | **[]int32** | Site (ID) |
- **siteIdN** | **[]int32** | Site (ID) |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **tenant** | **[]string** | Tenant (slug) |
- **tenantN** | **[]string** | Tenant (slug) |
- **tenantGroup** | **[]int32** | Tenant Group (slug) |
- **tenantGroupN** | **[]int32** | Tenant Group (slug) |
- **tenantGroupId** | **[]int32** | Tenant Group (ID) |
- **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
- **tenantId** | **[]int32** | Tenant (ID) |
- **tenantIdN** | **[]int32** | Tenant (ID) |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedASNList**](PaginatedASNList.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)
-
-
-## IpamAsnsPartialUpdate
-
-> ASN IpamAsnsPartialUpdate(ctx, id).PatchedWritableASNRequest(patchedWritableASNRequest).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 ASN.
- patchedWritableASNRequest := *openapiclient.NewPatchedWritableASNRequest() // PatchedWritableASNRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnsPartialUpdate(context.Background(), id).PatchedWritableASNRequest(patchedWritableASNRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnsPartialUpdate`: ASN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsPartialUpdate`: %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 ASN. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnsPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableASNRequest** | [**PatchedWritableASNRequest**](PatchedWritableASNRequest.md) | |
-
-### Return type
-
-[**ASN**](ASN.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)
-
-
-## IpamAsnsRetrieve
-
-> ASN IpamAsnsRetrieve(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 ASN.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnsRetrieve`: ASN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsRetrieve`: %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 ASN. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnsRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**ASN**](ASN.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)
-
-
-## IpamAsnsUpdate
-
-> ASN IpamAsnsUpdate(ctx, id).WritableASNRequest(writableASNRequest).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 ASN.
- writableASNRequest := *openapiclient.NewWritableASNRequest(int64(123), int32(123)) // WritableASNRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnsUpdate(context.Background(), id).WritableASNRequest(writableASNRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamAsnsUpdate`: ASN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsUpdate`: %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 ASN. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamAsnsUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableASNRequest** | [**WritableASNRequest**](WritableASNRequest.md) | |
-
-### Return type
-
-[**ASN**](ASN.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)
-
-
-## IpamFhrpGroupAssignmentsBulkDestroy
-
-> IpamFhrpGroupAssignmentsBulkDestroy(ctx).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewNestedFHRPGroupRequest("Protocol_example", int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkDestroy(context.Background()).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **fHRPGroupAssignmentRequest** | [**[]FHRPGroupAssignmentRequest**](FHRPGroupAssignmentRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamFhrpGroupAssignmentsBulkPartialUpdate
-
-> []FHRPGroupAssignment IpamFhrpGroupAssignmentsBulkPartialUpdate(ctx).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewNestedFHRPGroupRequest("Protocol_example", int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkPartialUpdate(context.Background()).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupAssignmentsBulkPartialUpdate`: []FHRPGroupAssignment
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **fHRPGroupAssignmentRequest** | [**[]FHRPGroupAssignmentRequest**](FHRPGroupAssignmentRequest.md) | |
-
-### Return type
-
-[**[]FHRPGroupAssignment**](FHRPGroupAssignment.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)
-
-
-## IpamFhrpGroupAssignmentsBulkUpdate
-
-> []FHRPGroupAssignment IpamFhrpGroupAssignmentsBulkUpdate(ctx).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewNestedFHRPGroupRequest("Protocol_example", int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkUpdate(context.Background()).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupAssignmentsBulkUpdate`: []FHRPGroupAssignment
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **fHRPGroupAssignmentRequest** | [**[]FHRPGroupAssignmentRequest**](FHRPGroupAssignmentRequest.md) | |
-
-### Return type
-
-[**[]FHRPGroupAssignment**](FHRPGroupAssignment.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)
-
-
-## IpamFhrpGroupAssignmentsCreate
-
-> FHRPGroupAssignment IpamFhrpGroupAssignmentsCreate(ctx).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableFHRPGroupAssignmentRequest := *openapiclient.NewWritableFHRPGroupAssignmentRequest(int32(123), "InterfaceType_example", int64(123), int32(123)) // WritableFHRPGroupAssignmentRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsCreate(context.Background()).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupAssignmentsCreate`: FHRPGroupAssignment
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableFHRPGroupAssignmentRequest** | [**WritableFHRPGroupAssignmentRequest**](WritableFHRPGroupAssignmentRequest.md) | |
-
-### Return type
-
-[**FHRPGroupAssignment**](FHRPGroupAssignment.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)
-
-
-## IpamFhrpGroupAssignmentsDestroy
-
-> IpamFhrpGroupAssignmentsDestroy(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 FHRP group assignment.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 FHRP group assignment. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsDestroyRequest 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)
-
-
-## IpamFhrpGroupAssignmentsList
-
-> PaginatedFHRPGroupAssignmentList IpamFhrpGroupAssignmentsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).InterfaceIdEmpty(interfaceIdEmpty).InterfaceIdGt(interfaceIdGt).InterfaceIdGte(interfaceIdGte).InterfaceIdLt(interfaceIdLt).InterfaceIdLte(interfaceIdLte).InterfaceIdN(interfaceIdN).InterfaceType(interfaceType).InterfaceTypeN(interfaceTypeN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).PriorityEmpty(priorityEmpty).PriorityGt(priorityGt).PriorityGte(priorityGte).PriorityLt(priorityLt).PriorityLte(priorityLte).PriorityN(priorityN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- device := []string{"Inner_example"} // []string | (optional)
- deviceId := []int32{int32(123)} // []int32 | (optional)
- groupId := []int32{int32(123)} // []int32 | Group (ID) (optional)
- groupIdN := []int32{int32(123)} // []int32 | Group (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- interfaceId := []int32{int32(123)} // []int32 | (optional)
- interfaceIdEmpty := true // bool | (optional)
- interfaceIdGt := []int32{int32(123)} // []int32 | (optional)
- interfaceIdGte := []int32{int32(123)} // []int32 | (optional)
- interfaceIdLt := []int32{int32(123)} // []int32 | (optional)
- interfaceIdLte := []int32{int32(123)} // []int32 | (optional)
- interfaceIdN := []int32{int32(123)} // []int32 | (optional)
- interfaceType := "interfaceType_example" // string | (optional)
- interfaceTypeN := "interfaceTypeN_example" // string | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- priority := []int32{int32(123)} // []int32 | (optional)
- priorityEmpty := true // bool | (optional)
- priorityGt := []int32{int32(123)} // []int32 | (optional)
- priorityGte := []int32{int32(123)} // []int32 | (optional)
- priorityLt := []int32{int32(123)} // []int32 | (optional)
- priorityLte := []int32{int32(123)} // []int32 | (optional)
- priorityN := []int32{int32(123)} // []int32 | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualMachine := []string{"Inner_example"} // []string | (optional)
- virtualMachineId := []int32{int32(123)} // []int32 | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).InterfaceIdEmpty(interfaceIdEmpty).InterfaceIdGt(interfaceIdGt).InterfaceIdGte(interfaceIdGte).InterfaceIdLt(interfaceIdLt).InterfaceIdLte(interfaceIdLte).InterfaceIdN(interfaceIdN).InterfaceType(interfaceType).InterfaceTypeN(interfaceTypeN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).PriorityEmpty(priorityEmpty).PriorityGt(priorityGt).PriorityGte(priorityGte).PriorityLt(priorityLt).PriorityLte(priorityLte).PriorityN(priorityN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupAssignmentsList`: PaginatedFHRPGroupAssignmentList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **device** | **[]string** | |
- **deviceId** | **[]int32** | |
- **groupId** | **[]int32** | Group (ID) |
- **groupIdN** | **[]int32** | Group (ID) |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **interfaceId** | **[]int32** | |
- **interfaceIdEmpty** | **bool** | |
- **interfaceIdGt** | **[]int32** | |
- **interfaceIdGte** | **[]int32** | |
- **interfaceIdLt** | **[]int32** | |
- **interfaceIdLte** | **[]int32** | |
- **interfaceIdN** | **[]int32** | |
- **interfaceType** | **string** | |
- **interfaceTypeN** | **string** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **priority** | **[]int32** | |
- **priorityEmpty** | **bool** | |
- **priorityGt** | **[]int32** | |
- **priorityGte** | **[]int32** | |
- **priorityLt** | **[]int32** | |
- **priorityLte** | **[]int32** | |
- **priorityN** | **[]int32** | |
- **updatedByRequest** | **string** | |
- **virtualMachine** | **[]string** | |
- **virtualMachineId** | **[]int32** | |
-
-### Return type
-
-[**PaginatedFHRPGroupAssignmentList**](PaginatedFHRPGroupAssignmentList.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)
-
-
-## IpamFhrpGroupAssignmentsPartialUpdate
-
-> FHRPGroupAssignment IpamFhrpGroupAssignmentsPartialUpdate(ctx, id).PatchedWritableFHRPGroupAssignmentRequest(patchedWritableFHRPGroupAssignmentRequest).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 FHRP group assignment.
- patchedWritableFHRPGroupAssignmentRequest := *openapiclient.NewPatchedWritableFHRPGroupAssignmentRequest() // PatchedWritableFHRPGroupAssignmentRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate(context.Background(), id).PatchedWritableFHRPGroupAssignmentRequest(patchedWritableFHRPGroupAssignmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupAssignmentsPartialUpdate`: FHRPGroupAssignment
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate`: %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 FHRP group assignment. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableFHRPGroupAssignmentRequest** | [**PatchedWritableFHRPGroupAssignmentRequest**](PatchedWritableFHRPGroupAssignmentRequest.md) | |
-
-### Return type
-
-[**FHRPGroupAssignment**](FHRPGroupAssignment.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)
-
-
-## IpamFhrpGroupAssignmentsRetrieve
-
-> FHRPGroupAssignment IpamFhrpGroupAssignmentsRetrieve(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 FHRP group assignment.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupAssignmentsRetrieve`: FHRPGroupAssignment
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsRetrieve`: %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 FHRP group assignment. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**FHRPGroupAssignment**](FHRPGroupAssignment.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)
-
-
-## IpamFhrpGroupAssignmentsUpdate
-
-> FHRPGroupAssignment IpamFhrpGroupAssignmentsUpdate(ctx, id).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).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 FHRP group assignment.
- writableFHRPGroupAssignmentRequest := *openapiclient.NewWritableFHRPGroupAssignmentRequest(int32(123), "InterfaceType_example", int64(123), int32(123)) // WritableFHRPGroupAssignmentRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsUpdate(context.Background(), id).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupAssignmentsUpdate`: FHRPGroupAssignment
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsUpdate`: %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 FHRP group assignment. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableFHRPGroupAssignmentRequest** | [**WritableFHRPGroupAssignmentRequest**](WritableFHRPGroupAssignmentRequest.md) | |
-
-### Return type
-
-[**FHRPGroupAssignment**](FHRPGroupAssignment.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)
-
-
-## IpamFhrpGroupsBulkDestroy
-
-> IpamFhrpGroupsBulkDestroy(ctx).FHRPGroupRequest(fHRPGroupRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest("Protocol_example", int32(123))} // []FHRPGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamFhrpGroupsBulkDestroy(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupsBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **fHRPGroupRequest** | [**[]FHRPGroupRequest**](FHRPGroupRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamFhrpGroupsBulkPartialUpdate
-
-> []FHRPGroup IpamFhrpGroupsBulkPartialUpdate(ctx).FHRPGroupRequest(fHRPGroupRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest("Protocol_example", int32(123))} // []FHRPGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsBulkPartialUpdate(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupsBulkPartialUpdate`: []FHRPGroup
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupsBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **fHRPGroupRequest** | [**[]FHRPGroupRequest**](FHRPGroupRequest.md) | |
-
-### Return type
-
-[**[]FHRPGroup**](FHRPGroup.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)
-
-
-## IpamFhrpGroupsBulkUpdate
-
-> []FHRPGroup IpamFhrpGroupsBulkUpdate(ctx).FHRPGroupRequest(fHRPGroupRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest("Protocol_example", int32(123))} // []FHRPGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsBulkUpdate(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupsBulkUpdate`: []FHRPGroup
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupsBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **fHRPGroupRequest** | [**[]FHRPGroupRequest**](FHRPGroupRequest.md) | |
-
-### Return type
-
-[**[]FHRPGroup**](FHRPGroup.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)
-
-
-## IpamFhrpGroupsCreate
-
-> FHRPGroup IpamFhrpGroupsCreate(ctx).FHRPGroupRequest(fHRPGroupRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest("Protocol_example", int32(123)) // FHRPGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsCreate(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupsCreate`: FHRPGroup
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupsCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **fHRPGroupRequest** | [**FHRPGroupRequest**](FHRPGroupRequest.md) | |
-
-### Return type
-
-[**FHRPGroup**](FHRPGroup.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)
-
-
-## IpamFhrpGroupsDestroy
-
-> IpamFhrpGroupsDestroy(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 FHRP group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamFhrpGroupsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 FHRP group. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupsDestroyRequest 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)
-
-
-## IpamFhrpGroupsList
-
-> PaginatedFHRPGroupList IpamFhrpGroupsList(ctx).AuthKey(authKey).AuthKeyEmpty(authKeyEmpty).AuthKeyIc(authKeyIc).AuthKeyIe(authKeyIe).AuthKeyIew(authKeyIew).AuthKeyIsw(authKeyIsw).AuthKeyN(authKeyN).AuthKeyNic(authKeyNic).AuthKeyNie(authKeyNie).AuthKeyNiew(authKeyNiew).AuthKeyNisw(authKeyNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).GroupId(groupId).GroupIdEmpty(groupIdEmpty).GroupIdGt(groupIdGt).GroupIdGte(groupIdGte).GroupIdLt(groupIdLt).GroupIdLte(groupIdLte).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Protocol(protocol).ProtocolN(protocolN).Q(q).RelatedIp(relatedIp).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- authKey := []string{"Inner_example"} // []string | (optional)
- authKeyEmpty := true // bool | (optional)
- authKeyIc := []string{"Inner_example"} // []string | (optional)
- authKeyIe := []string{"Inner_example"} // []string | (optional)
- authKeyIew := []string{"Inner_example"} // []string | (optional)
- authKeyIsw := []string{"Inner_example"} // []string | (optional)
- authKeyN := []string{"Inner_example"} // []string | (optional)
- authKeyNic := []string{"Inner_example"} // []string | (optional)
- authKeyNie := []string{"Inner_example"} // []string | (optional)
- authKeyNiew := []string{"Inner_example"} // []string | (optional)
- authKeyNisw := []string{"Inner_example"} // []string | (optional)
- authType := []string{"Inner_example"} // []string | (optional)
- authTypeN := []string{"Inner_example"} // []string | (optional)
- 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)
- groupId := []int32{int32(123)} // []int32 | (optional)
- groupIdEmpty := true // bool | (optional)
- groupIdGt := []int32{int32(123)} // []int32 | (optional)
- groupIdGte := []int32{int32(123)} // []int32 | (optional)
- groupIdLt := []int32{int32(123)} // []int32 | (optional)
- groupIdLte := []int32{int32(123)} // []int32 | (optional)
- groupIdN := []int32{int32(123)} // []int32 | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- 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)
- protocol := []string{"Inner_example"} // []string | (optional)
- protocolN := []string{"Inner_example"} // []string | (optional)
- q := "q_example" // string | Search (optional)
- relatedIp := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsList(context.Background()).AuthKey(authKey).AuthKeyEmpty(authKeyEmpty).AuthKeyIc(authKeyIc).AuthKeyIe(authKeyIe).AuthKeyIew(authKeyIew).AuthKeyIsw(authKeyIsw).AuthKeyN(authKeyN).AuthKeyNic(authKeyNic).AuthKeyNie(authKeyNie).AuthKeyNiew(authKeyNiew).AuthKeyNisw(authKeyNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).GroupId(groupId).GroupIdEmpty(groupIdEmpty).GroupIdGt(groupIdGt).GroupIdGte(groupIdGte).GroupIdLt(groupIdLt).GroupIdLte(groupIdLte).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Protocol(protocol).ProtocolN(protocolN).Q(q).RelatedIp(relatedIp).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupsList`: PaginatedFHRPGroupList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupsListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **authKey** | **[]string** | |
- **authKeyEmpty** | **bool** | |
- **authKeyIc** | **[]string** | |
- **authKeyIe** | **[]string** | |
- **authKeyIew** | **[]string** | |
- **authKeyIsw** | **[]string** | |
- **authKeyN** | **[]string** | |
- **authKeyNic** | **[]string** | |
- **authKeyNie** | **[]string** | |
- **authKeyNiew** | **[]string** | |
- **authKeyNisw** | **[]string** | |
- **authType** | **[]string** | |
- **authTypeN** | **[]string** | |
- **created** | [**[]time.Time**](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** | |
- **groupId** | **[]int32** | |
- **groupIdEmpty** | **bool** | |
- **groupIdGt** | **[]int32** | |
- **groupIdGte** | **[]int32** | |
- **groupIdLt** | **[]int32** | |
- **groupIdLte** | **[]int32** | |
- **groupIdN** | **[]int32** | |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **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. |
- **protocol** | **[]string** | |
- **protocolN** | **[]string** | |
- **q** | **string** | Search |
- **relatedIp** | **[]string** | |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedFHRPGroupList**](PaginatedFHRPGroupList.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)
-
-
-## IpamFhrpGroupsPartialUpdate
-
-> FHRPGroup IpamFhrpGroupsPartialUpdate(ctx, id).PatchedFHRPGroupRequest(patchedFHRPGroupRequest).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 FHRP group.
- patchedFHRPGroupRequest := *openapiclient.NewPatchedFHRPGroupRequest() // PatchedFHRPGroupRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsPartialUpdate(context.Background(), id).PatchedFHRPGroupRequest(patchedFHRPGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupsPartialUpdate`: FHRPGroup
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsPartialUpdate`: %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 FHRP group. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupsPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedFHRPGroupRequest** | [**PatchedFHRPGroupRequest**](PatchedFHRPGroupRequest.md) | |
-
-### Return type
-
-[**FHRPGroup**](FHRPGroup.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)
-
-
-## IpamFhrpGroupsRetrieve
-
-> FHRPGroup IpamFhrpGroupsRetrieve(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 FHRP group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupsRetrieve`: FHRPGroup
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsRetrieve`: %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 FHRP group. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupsRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**FHRPGroup**](FHRPGroup.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)
-
-
-## IpamFhrpGroupsUpdate
-
-> FHRPGroup IpamFhrpGroupsUpdate(ctx, id).FHRPGroupRequest(fHRPGroupRequest).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 FHRP group.
- fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest("Protocol_example", int32(123)) // FHRPGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsUpdate(context.Background(), id).FHRPGroupRequest(fHRPGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamFhrpGroupsUpdate`: FHRPGroup
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsUpdate`: %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 FHRP group. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamFhrpGroupsUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **fHRPGroupRequest** | [**FHRPGroupRequest**](FHRPGroupRequest.md) | |
-
-### Return type
-
-[**FHRPGroup**](FHRPGroup.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)
-
-
-## IpamIpAddressesBulkDestroy
-
-> IpamIpAddressesBulkDestroy(ctx).IPAddressRequest(iPAddressRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- iPAddressRequest := []openapiclient.IPAddressRequest{*openapiclient.NewIPAddressRequest("Address_example")} // []IPAddressRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamIpAddressesBulkDestroy(context.Background()).IPAddressRequest(iPAddressRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpAddressesBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **iPAddressRequest** | [**[]IPAddressRequest**](IPAddressRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamIpAddressesBulkPartialUpdate
-
-> []IPAddress IpamIpAddressesBulkPartialUpdate(ctx).IPAddressRequest(iPAddressRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- iPAddressRequest := []openapiclient.IPAddressRequest{*openapiclient.NewIPAddressRequest("Address_example")} // []IPAddressRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpAddressesBulkPartialUpdate(context.Background()).IPAddressRequest(iPAddressRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpAddressesBulkPartialUpdate`: []IPAddress
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpAddressesBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **iPAddressRequest** | [**[]IPAddressRequest**](IPAddressRequest.md) | |
-
-### Return type
-
-[**[]IPAddress**](IPAddress.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)
-
-
-## IpamIpAddressesBulkUpdate
-
-> []IPAddress IpamIpAddressesBulkUpdate(ctx).IPAddressRequest(iPAddressRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- iPAddressRequest := []openapiclient.IPAddressRequest{*openapiclient.NewIPAddressRequest("Address_example")} // []IPAddressRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpAddressesBulkUpdate(context.Background()).IPAddressRequest(iPAddressRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpAddressesBulkUpdate`: []IPAddress
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpAddressesBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **iPAddressRequest** | [**[]IPAddressRequest**](IPAddressRequest.md) | |
-
-### Return type
-
-[**[]IPAddress**](IPAddress.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)
-
-
-## IpamIpAddressesCreate
-
-> IPAddress IpamIpAddressesCreate(ctx).WritableIPAddressRequest(writableIPAddressRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableIPAddressRequest := *openapiclient.NewWritableIPAddressRequest("Address_example") // WritableIPAddressRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpAddressesCreate(context.Background()).WritableIPAddressRequest(writableIPAddressRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpAddressesCreate`: IPAddress
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpAddressesCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableIPAddressRequest** | [**WritableIPAddressRequest**](WritableIPAddressRequest.md) | |
-
-### Return type
-
-[**IPAddress**](IPAddress.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)
-
-
-## IpamIpAddressesDestroy
-
-> IpamIpAddressesDestroy(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 IP address.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamIpAddressesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 IP address. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpAddressesDestroyRequest 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)
-
-
-## 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).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()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- address := []string{"Inner_example"} // []string | (optional)
- assigned := true // bool | Is assigned (optional)
- assignedToInterface := true // bool | Is assigned to an interface (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- 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 | (optional)
- deviceId := []int32{int32(123)} // []int32 | (optional)
- dnsName := []string{"Inner_example"} // []string | (optional)
- dnsNameEmpty := true // bool | (optional)
- dnsNameIc := []string{"Inner_example"} // []string | (optional)
- dnsNameIe := []string{"Inner_example"} // []string | (optional)
- dnsNameIew := []string{"Inner_example"} // []string | (optional)
- dnsNameIsw := []string{"Inner_example"} // []string | (optional)
- dnsNameN := []string{"Inner_example"} // []string | (optional)
- dnsNameNic := []string{"Inner_example"} // []string | (optional)
- dnsNameNie := []string{"Inner_example"} // []string | (optional)
- dnsNameNiew := []string{"Inner_example"} // []string | (optional)
- dnsNameNisw := []string{"Inner_example"} // []string | (optional)
- family := float32(8.14) // float32 | (optional)
- fhrpgroupId := []int32{int32(123)} // []int32 | FHRP group (ID) (optional)
- fhrpgroupIdN := []int32{int32(123)} // []int32 | FHRP group (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- interface_ := []string{"Inner_example"} // []string | Interface (name) (optional)
- interfaceN := []string{"Inner_example"} // []string | Interface (name) (optional)
- interfaceId := []int32{int32(123)} // []int32 | Interface (ID) (optional)
- interfaceIdN := []int32{int32(123)} // []int32 | Interface (ID) (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- 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)
- maskLength := float32(8.14) // float32 | Mask length (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- parent := []string{"Inner_example"} // []string | (optional)
- presentInVrf := "presentInVrf_example" // string | (optional)
- presentInVrfId := "presentInVrfId_example" // string | (optional)
- q := "q_example" // string | Search (optional)
- role := []string{"Inner_example"} // []string | The functional role of this IP (optional)
- roleN := []string{"Inner_example"} // []string | The functional role of this IP (optional)
- 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)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualMachine := []string{"Inner_example"} // []string | (optional)
- virtualMachineId := []int32{int32(123)} // []int32 | (optional)
- vminterface := []string{"Inner_example"} // []string | VM interface (name) (optional)
- vminterfaceN := []string{"Inner_example"} // []string | VM interface (name) (optional)
- vminterfaceId := []int32{int32(123)} // []int32 | VM interface (ID) (optional)
- vminterfaceIdN := []int32{int32(123)} // []int32 | VM interface (ID) (optional)
- vrf := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
- vrfN := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
- vrfId := []*int32{int32(123)} // []*int32 | VRF (optional)
- vrfIdN := []*int32{int32(123)} // []*int32 | VRF (optional)
-
- 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).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleN(roleN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpAddressesList`: PaginatedIPAddressList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpAddressesListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **address** | **[]string** | |
- **assigned** | **bool** | Is assigned |
- **assignedToInterface** | **bool** | Is assigned to an interface |
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **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** | |
- **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** | FHRP group (ID) |
- **fhrpgroupIdN** | **[]int32** | FHRP group (ID) |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **interface_** | **[]string** | Interface (name) |
- **interfaceN** | **[]string** | Interface (name) |
- **interfaceId** | **[]int32** | Interface (ID) |
- **interfaceIdN** | **[]int32** | Interface (ID) |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **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. |
- **maskLength** | **float32** | Mask length |
- **modifiedByRequest** | **string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **parent** | **[]string** | |
- **presentInVrf** | **string** | |
- **presentInVrfId** | **string** | |
- **q** | **string** | Search |
- **role** | **[]string** | The functional role of this IP |
- **roleN** | **[]string** | The functional role of this IP |
- **status** | **[]string** | The operational status of this IP |
- **statusN** | **[]string** | The operational status of this IP |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **tenant** | **[]string** | Tenant (slug) |
- **tenantN** | **[]string** | Tenant (slug) |
- **tenantGroup** | **[]int32** | Tenant Group (slug) |
- **tenantGroupN** | **[]int32** | Tenant Group (slug) |
- **tenantGroupId** | **[]int32** | Tenant Group (ID) |
- **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
- **tenantId** | **[]int32** | Tenant (ID) |
- **tenantIdN** | **[]int32** | Tenant (ID) |
- **updatedByRequest** | **string** | |
- **virtualMachine** | **[]string** | |
- **virtualMachineId** | **[]int32** | |
- **vminterface** | **[]string** | VM interface (name) |
- **vminterfaceN** | **[]string** | VM interface (name) |
- **vminterfaceId** | **[]int32** | VM interface (ID) |
- **vminterfaceIdN** | **[]int32** | VM interface (ID) |
- **vrf** | **[]string** | VRF (RD) |
- **vrfN** | **[]string** | VRF (RD) |
- **vrfId** | **[]int32** | VRF |
- **vrfIdN** | **[]int32** | VRF |
-
-### Return type
-
-[**PaginatedIPAddressList**](PaginatedIPAddressList.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)
-
-
-## IpamIpAddressesPartialUpdate
-
-> IPAddress IpamIpAddressesPartialUpdate(ctx, id).PatchedWritableIPAddressRequest(patchedWritableIPAddressRequest).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 IP address.
- patchedWritableIPAddressRequest := *openapiclient.NewPatchedWritableIPAddressRequest() // PatchedWritableIPAddressRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpAddressesPartialUpdate(context.Background(), id).PatchedWritableIPAddressRequest(patchedWritableIPAddressRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpAddressesPartialUpdate`: IPAddress
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesPartialUpdate`: %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 IP address. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpAddressesPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableIPAddressRequest** | [**PatchedWritableIPAddressRequest**](PatchedWritableIPAddressRequest.md) | |
-
-### Return type
-
-[**IPAddress**](IPAddress.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)
-
-
-## IpamIpAddressesRetrieve
-
-> IPAddress IpamIpAddressesRetrieve(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 IP address.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpAddressesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpAddressesRetrieve`: IPAddress
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesRetrieve`: %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 IP address. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpAddressesRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**IPAddress**](IPAddress.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)
-
-
-## IpamIpAddressesUpdate
-
-> IPAddress IpamIpAddressesUpdate(ctx, id).WritableIPAddressRequest(writableIPAddressRequest).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 IP address.
- writableIPAddressRequest := *openapiclient.NewWritableIPAddressRequest("Address_example") // WritableIPAddressRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpAddressesUpdate(context.Background(), id).WritableIPAddressRequest(writableIPAddressRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpAddressesUpdate`: IPAddress
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesUpdate`: %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 IP address. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpAddressesUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableIPAddressRequest** | [**WritableIPAddressRequest**](WritableIPAddressRequest.md) | |
-
-### Return type
-
-[**IPAddress**](IPAddress.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)
-
-
-## IpamIpRangesAvailableIpsCreate
-
-> []IPAddress IpamIpRangesAvailableIpsCreate(ctx, id).IPAddressRequest(iPAddressRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- id := int32(56) // int32 |
- iPAddressRequest := []openapiclient.IPAddressRequest{*openapiclient.NewIPAddressRequest("Address_example")} // []IPAddressRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpRangesAvailableIpsCreate(context.Background(), id).IPAddressRequest(iPAddressRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesAvailableIpsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpRangesAvailableIpsCreate`: []IPAddress
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesAvailableIpsCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpRangesAvailableIpsCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **iPAddressRequest** | [**[]IPAddressRequest**](IPAddressRequest.md) | |
-
-### Return type
-
-[**[]IPAddress**](IPAddress.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)
-
-
-## IpamIpRangesAvailableIpsList
-
-> []AvailableIP IpamIpRangesAvailableIpsList(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 |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpRangesAvailableIpsList(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesAvailableIpsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpRangesAvailableIpsList`: []AvailableIP
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesAvailableIpsList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpRangesAvailableIpsListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**[]AvailableIP**](AvailableIP.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)
-
-
-## IpamIpRangesBulkDestroy
-
-> IpamIpRangesBulkDestroy(ctx).IPRangeRequest(iPRangeRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- iPRangeRequest := []openapiclient.IPRangeRequest{*openapiclient.NewIPRangeRequest("StartAddress_example", "EndAddress_example")} // []IPRangeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamIpRangesBulkDestroy(context.Background()).IPRangeRequest(iPRangeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpRangesBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **iPRangeRequest** | [**[]IPRangeRequest**](IPRangeRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamIpRangesBulkPartialUpdate
-
-> []IPRange IpamIpRangesBulkPartialUpdate(ctx).IPRangeRequest(iPRangeRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- iPRangeRequest := []openapiclient.IPRangeRequest{*openapiclient.NewIPRangeRequest("StartAddress_example", "EndAddress_example")} // []IPRangeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpRangesBulkPartialUpdate(context.Background()).IPRangeRequest(iPRangeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpRangesBulkPartialUpdate`: []IPRange
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpRangesBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **iPRangeRequest** | [**[]IPRangeRequest**](IPRangeRequest.md) | |
-
-### Return type
-
-[**[]IPRange**](IPRange.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)
-
-
-## IpamIpRangesBulkUpdate
-
-> []IPRange IpamIpRangesBulkUpdate(ctx).IPRangeRequest(iPRangeRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- iPRangeRequest := []openapiclient.IPRangeRequest{*openapiclient.NewIPRangeRequest("StartAddress_example", "EndAddress_example")} // []IPRangeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpRangesBulkUpdate(context.Background()).IPRangeRequest(iPRangeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpRangesBulkUpdate`: []IPRange
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpRangesBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **iPRangeRequest** | [**[]IPRangeRequest**](IPRangeRequest.md) | |
-
-### Return type
-
-[**[]IPRange**](IPRange.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)
-
-
-## IpamIpRangesCreate
-
-> IPRange IpamIpRangesCreate(ctx).WritableIPRangeRequest(writableIPRangeRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableIPRangeRequest := *openapiclient.NewWritableIPRangeRequest("StartAddress_example", "EndAddress_example") // WritableIPRangeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpRangesCreate(context.Background()).WritableIPRangeRequest(writableIPRangeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpRangesCreate`: IPRange
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpRangesCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableIPRangeRequest** | [**WritableIPRangeRequest**](WritableIPRangeRequest.md) | |
-
-### Return type
-
-[**IPRange**](IPRange.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)
-
-
-## IpamIpRangesDestroy
-
-> IpamIpRangesDestroy(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 IP range.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamIpRangesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 IP range. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpRangesDestroyRequest 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)
-
-
-## 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()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- contains := "contains_example" // string | Ranges which contain this prefix or IP (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- 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)
- endAddress := []string{"Inner_example"} // []string | (optional)
- family := float32(8.14) // float32 | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- 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)
- markUtilized := true // bool | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- parent := []string{"Inner_example"} // []string | (optional)
- q := "q_example" // string | Search (optional)
- role := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
- roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (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)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- vrf := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
- vrfN := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
- vrfId := []*int32{int32(123)} // []*int32 | VRF (optional)
- vrfIdN := []*int32{int32(123)} // []*int32 | VRF (optional)
-
- 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()
- 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)
- }
- // response from `IpamIpRangesList`: PaginatedIPRangeList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpRangesListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **contains** | **string** | Ranges which contain this prefix or IP |
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **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** | |
- **endAddress** | **[]string** | |
- **family** | **float32** | |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **markUtilized** | **bool** | |
- **modifiedByRequest** | **string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **parent** | **[]string** | |
- **q** | **string** | Search |
- **role** | **[]string** | Role (slug) |
- **roleN** | **[]string** | Role (slug) |
- **roleId** | **[]int32** | Role (ID) |
- **roleIdN** | **[]int32** | Role (ID) |
- **startAddress** | **[]string** | |
- **status** | **[]string** | Operational status of this range |
- **statusN** | **[]string** | Operational status of this range |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **tenant** | **[]string** | Tenant (slug) |
- **tenantN** | **[]string** | Tenant (slug) |
- **tenantGroup** | **[]int32** | Tenant Group (slug) |
- **tenantGroupN** | **[]int32** | Tenant Group (slug) |
- **tenantGroupId** | **[]int32** | Tenant Group (ID) |
- **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
- **tenantId** | **[]int32** | Tenant (ID) |
- **tenantIdN** | **[]int32** | Tenant (ID) |
- **updatedByRequest** | **string** | |
- **vrf** | **[]string** | VRF (RD) |
- **vrfN** | **[]string** | VRF (RD) |
- **vrfId** | **[]int32** | VRF |
- **vrfIdN** | **[]int32** | VRF |
-
-### Return type
-
-[**PaginatedIPRangeList**](PaginatedIPRangeList.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)
-
-
-## IpamIpRangesPartialUpdate
-
-> IPRange IpamIpRangesPartialUpdate(ctx, id).PatchedWritableIPRangeRequest(patchedWritableIPRangeRequest).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 IP range.
- patchedWritableIPRangeRequest := *openapiclient.NewPatchedWritableIPRangeRequest() // PatchedWritableIPRangeRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpRangesPartialUpdate(context.Background(), id).PatchedWritableIPRangeRequest(patchedWritableIPRangeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpRangesPartialUpdate`: IPRange
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesPartialUpdate`: %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 IP range. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpRangesPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableIPRangeRequest** | [**PatchedWritableIPRangeRequest**](PatchedWritableIPRangeRequest.md) | |
-
-### Return type
-
-[**IPRange**](IPRange.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)
-
-
-## IpamIpRangesRetrieve
-
-> IPRange IpamIpRangesRetrieve(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 IP range.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpRangesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpRangesRetrieve`: IPRange
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesRetrieve`: %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 IP range. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpRangesRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**IPRange**](IPRange.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)
-
-
-## IpamIpRangesUpdate
-
-> IPRange IpamIpRangesUpdate(ctx, id).WritableIPRangeRequest(writableIPRangeRequest).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 IP range.
- writableIPRangeRequest := *openapiclient.NewWritableIPRangeRequest("StartAddress_example", "EndAddress_example") // WritableIPRangeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpRangesUpdate(context.Background(), id).WritableIPRangeRequest(writableIPRangeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamIpRangesUpdate`: IPRange
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesUpdate`: %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 IP range. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamIpRangesUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableIPRangeRequest** | [**WritableIPRangeRequest**](WritableIPRangeRequest.md) | |
-
-### Return type
-
-[**IPRange**](IPRange.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)
-
-
-## IpamL2vpnTerminationsBulkDestroy
-
-> IpamL2vpnTerminationsBulkDestroy(ctx).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewNestedL2VPNRequest("Name_example", "Slug_example", "Type_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamL2vpnTerminationsBulkDestroy(context.Background()).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnTerminationsBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **l2VPNTerminationRequest** | [**[]L2VPNTerminationRequest**](L2VPNTerminationRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamL2vpnTerminationsBulkPartialUpdate
-
-> []L2VPNTermination IpamL2vpnTerminationsBulkPartialUpdate(ctx).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewNestedL2VPNRequest("Name_example", "Slug_example", "Type_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsBulkPartialUpdate(context.Background()).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnTerminationsBulkPartialUpdate`: []L2VPNTermination
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnTerminationsBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **l2VPNTerminationRequest** | [**[]L2VPNTerminationRequest**](L2VPNTerminationRequest.md) | |
-
-### Return type
-
-[**[]L2VPNTermination**](L2VPNTermination.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)
-
-
-## IpamL2vpnTerminationsBulkUpdate
-
-> []L2VPNTermination IpamL2vpnTerminationsBulkUpdate(ctx).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewNestedL2VPNRequest("Name_example", "Slug_example", "Type_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsBulkUpdate(context.Background()).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnTerminationsBulkUpdate`: []L2VPNTermination
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnTerminationsBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **l2VPNTerminationRequest** | [**[]L2VPNTerminationRequest**](L2VPNTerminationRequest.md) | |
-
-### Return type
-
-[**[]L2VPNTermination**](L2VPNTermination.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)
-
-
-## IpamL2vpnTerminationsCreate
-
-> L2VPNTermination IpamL2vpnTerminationsCreate(ctx).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableL2VPNTerminationRequest := *openapiclient.NewWritableL2VPNTerminationRequest(int32(123), "AssignedObjectType_example", int64(123)) // WritableL2VPNTerminationRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsCreate(context.Background()).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnTerminationsCreate`: L2VPNTermination
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnTerminationsCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableL2VPNTerminationRequest** | [**WritableL2VPNTerminationRequest**](WritableL2VPNTerminationRequest.md) | |
-
-### Return type
-
-[**L2VPNTermination**](L2VPNTermination.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)
-
-
-## IpamL2vpnTerminationsDestroy
-
-> IpamL2vpnTerminationsDestroy(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 L2VPN termination.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamL2vpnTerminationsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 L2VPN termination. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnTerminationsDestroyRequest 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)
-
-
-## IpamL2vpnTerminationsList
-
-> PaginatedL2VPNTerminationList IpamL2vpnTerminationsList(ctx).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionId(regionId).Site(site).SiteId(siteId).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanN(vlanN).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- 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)
- 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)
- 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)
- 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)
- interface_ := []string{"Inner_example"} // []string | Interface (name) (optional)
- interfaceN := []string{"Inner_example"} // []string | Interface (name) (optional)
- interfaceId := []int32{int32(123)} // []int32 | Interface (ID) (optional)
- interfaceIdN := []int32{int32(123)} // []int32 | Interface (ID) (optional)
- l2vpn := []string{"Inner_example"} // []string | L2VPN (slug) (optional)
- l2vpnN := []string{"Inner_example"} // []string | L2VPN (slug) (optional)
- l2vpnId := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
- l2vpnIdN := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- region := []string{"Inner_example"} // []string | (optional)
- regionId := []int32{int32(123)} // []int32 | (optional)
- site := []string{"Inner_example"} // []string | (optional)
- siteId := []int32{int32(123)} // []int32 | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualMachine := []string{"Inner_example"} // []string | Virtual machine (name) (optional)
- virtualMachineN := []string{"Inner_example"} // []string | Virtual machine (name) (optional)
- virtualMachineId := []int32{int32(123)} // []int32 | Virtual machine (ID) (optional)
- virtualMachineIdN := []int32{int32(123)} // []int32 | Virtual machine (ID) (optional)
- vlan := []string{"Inner_example"} // []string | VLAN (name) (optional)
- vlanN := []string{"Inner_example"} // []string | VLAN (name) (optional)
- vlanId := []int32{int32(123)} // []int32 | VLAN (ID) (optional)
- vlanIdN := []int32{int32(123)} // []int32 | VLAN (ID) (optional)
- vlanVid := int32(56) // int32 | VLAN number (1-4094) (optional)
- vlanVidEmpty := int32(56) // int32 | VLAN number (1-4094) (optional)
- vlanVidGt := int32(56) // int32 | VLAN number (1-4094) (optional)
- vlanVidGte := int32(56) // int32 | VLAN number (1-4094) (optional)
- vlanVidLt := int32(56) // int32 | VLAN number (1-4094) (optional)
- vlanVidLte := int32(56) // int32 | VLAN number (1-4094) (optional)
- vlanVidN := int32(56) // int32 | VLAN number (1-4094) (optional)
- vminterface := []string{"Inner_example"} // []string | VM interface (name) (optional)
- vminterfaceN := []string{"Inner_example"} // []string | VM interface (name) (optional)
- vminterfaceId := []int32{int32(123)} // []int32 | VM Interface (ID) (optional)
- vminterfaceIdN := []int32{int32(123)} // []int32 | VM Interface (ID) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsList(context.Background()).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionId(regionId).Site(site).SiteId(siteId).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanN(vlanN).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnTerminationsList`: PaginatedL2VPNTerminationList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnTerminationsListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **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) | |
- **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** | |
- **device** | **[]string** | Device (name) |
- **deviceN** | **[]string** | Device (name) |
- **deviceId** | **[]int32** | Device (ID) |
- **deviceIdN** | **[]int32** | Device (ID) |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **interface_** | **[]string** | Interface (name) |
- **interfaceN** | **[]string** | Interface (name) |
- **interfaceId** | **[]int32** | Interface (ID) |
- **interfaceIdN** | **[]int32** | Interface (ID) |
- **l2vpn** | **[]string** | L2VPN (slug) |
- **l2vpnN** | **[]string** | L2VPN (slug) |
- **l2vpnId** | **[]int32** | L2VPN (ID) |
- **l2vpnIdN** | **[]int32** | L2VPN (ID) |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **q** | **string** | Search |
- **region** | **[]string** | |
- **regionId** | **[]int32** | |
- **site** | **[]string** | |
- **siteId** | **[]int32** | |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **updatedByRequest** | **string** | |
- **virtualMachine** | **[]string** | Virtual machine (name) |
- **virtualMachineN** | **[]string** | Virtual machine (name) |
- **virtualMachineId** | **[]int32** | Virtual machine (ID) |
- **virtualMachineIdN** | **[]int32** | Virtual machine (ID) |
- **vlan** | **[]string** | VLAN (name) |
- **vlanN** | **[]string** | VLAN (name) |
- **vlanId** | **[]int32** | VLAN (ID) |
- **vlanIdN** | **[]int32** | VLAN (ID) |
- **vlanVid** | **int32** | VLAN number (1-4094) |
- **vlanVidEmpty** | **int32** | VLAN number (1-4094) |
- **vlanVidGt** | **int32** | VLAN number (1-4094) |
- **vlanVidGte** | **int32** | VLAN number (1-4094) |
- **vlanVidLt** | **int32** | VLAN number (1-4094) |
- **vlanVidLte** | **int32** | VLAN number (1-4094) |
- **vlanVidN** | **int32** | VLAN number (1-4094) |
- **vminterface** | **[]string** | VM interface (name) |
- **vminterfaceN** | **[]string** | VM interface (name) |
- **vminterfaceId** | **[]int32** | VM Interface (ID) |
- **vminterfaceIdN** | **[]int32** | VM Interface (ID) |
-
-### Return type
-
-[**PaginatedL2VPNTerminationList**](PaginatedL2VPNTerminationList.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)
-
-
-## IpamL2vpnTerminationsPartialUpdate
-
-> L2VPNTermination IpamL2vpnTerminationsPartialUpdate(ctx, id).PatchedWritableL2VPNTerminationRequest(patchedWritableL2VPNTerminationRequest).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 L2VPN termination.
- patchedWritableL2VPNTerminationRequest := *openapiclient.NewPatchedWritableL2VPNTerminationRequest() // PatchedWritableL2VPNTerminationRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsPartialUpdate(context.Background(), id).PatchedWritableL2VPNTerminationRequest(patchedWritableL2VPNTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnTerminationsPartialUpdate`: L2VPNTermination
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsPartialUpdate`: %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 L2VPN termination. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnTerminationsPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableL2VPNTerminationRequest** | [**PatchedWritableL2VPNTerminationRequest**](PatchedWritableL2VPNTerminationRequest.md) | |
-
-### Return type
-
-[**L2VPNTermination**](L2VPNTermination.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)
-
-
-## IpamL2vpnTerminationsRetrieve
-
-> L2VPNTermination IpamL2vpnTerminationsRetrieve(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 L2VPN termination.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnTerminationsRetrieve`: L2VPNTermination
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsRetrieve`: %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 L2VPN termination. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnTerminationsRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**L2VPNTermination**](L2VPNTermination.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)
-
-
-## IpamL2vpnTerminationsUpdate
-
-> L2VPNTermination IpamL2vpnTerminationsUpdate(ctx, id).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).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 L2VPN termination.
- writableL2VPNTerminationRequest := *openapiclient.NewWritableL2VPNTerminationRequest(int32(123), "AssignedObjectType_example", int64(123)) // WritableL2VPNTerminationRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsUpdate(context.Background(), id).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnTerminationsUpdate`: L2VPNTermination
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsUpdate`: %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 L2VPN termination. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnTerminationsUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableL2VPNTerminationRequest** | [**WritableL2VPNTerminationRequest**](WritableL2VPNTerminationRequest.md) | |
-
-### Return type
-
-[**L2VPNTermination**](L2VPNTermination.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)
-
-
-## IpamL2vpnsBulkDestroy
-
-> IpamL2vpnsBulkDestroy(ctx).L2VPNRequest(l2VPNRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- l2VPNRequest := []openapiclient.L2VPNRequest{*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")} // []L2VPNRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamL2vpnsBulkDestroy(context.Background()).L2VPNRequest(l2VPNRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnsBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **l2VPNRequest** | [**[]L2VPNRequest**](L2VPNRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamL2vpnsBulkPartialUpdate
-
-> []L2VPN IpamL2vpnsBulkPartialUpdate(ctx).L2VPNRequest(l2VPNRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- l2VPNRequest := []openapiclient.L2VPNRequest{*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")} // []L2VPNRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamL2vpnsBulkPartialUpdate(context.Background()).L2VPNRequest(l2VPNRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnsBulkPartialUpdate`: []L2VPN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnsBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **l2VPNRequest** | [**[]L2VPNRequest**](L2VPNRequest.md) | |
-
-### Return type
-
-[**[]L2VPN**](L2VPN.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)
-
-
-## IpamL2vpnsBulkUpdate
-
-> []L2VPN IpamL2vpnsBulkUpdate(ctx).L2VPNRequest(l2VPNRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- l2VPNRequest := []openapiclient.L2VPNRequest{*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")} // []L2VPNRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamL2vpnsBulkUpdate(context.Background()).L2VPNRequest(l2VPNRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnsBulkUpdate`: []L2VPN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnsBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **l2VPNRequest** | [**[]L2VPNRequest**](L2VPNRequest.md) | |
-
-### Return type
-
-[**[]L2VPN**](L2VPN.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)
-
-
-## IpamL2vpnsCreate
-
-> L2VPN IpamL2vpnsCreate(ctx).WritableL2VPNRequest(writableL2VPNRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", "Type_example") // WritableL2VPNRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamL2vpnsCreate(context.Background()).WritableL2VPNRequest(writableL2VPNRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnsCreate`: L2VPN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnsCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableL2VPNRequest** | [**WritableL2VPNRequest**](WritableL2VPNRequest.md) | |
-
-### Return type
-
-[**L2VPN**](L2VPN.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)
-
-
-## IpamL2vpnsDestroy
-
-> IpamL2vpnsDestroy(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 L2VPN.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamL2vpnsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 L2VPN. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnsDestroyRequest 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)
-
-
-## IpamL2vpnsList
-
-> PaginatedL2VPNList IpamL2vpnsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- exportTarget := []string{"Inner_example"} // []string | Export target (name) (optional)
- exportTargetN := []string{"Inner_example"} // []string | Export target (name) (optional)
- exportTargetId := []int32{int32(123)} // []int32 | Export target (optional)
- exportTargetIdN := []int32{int32(123)} // []int32 | Export target (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- identifier := []int32{int32(123)} // []int32 | (optional)
- identifierEmpty := true // bool | (optional)
- identifierGt := []int32{int32(123)} // []int32 | (optional)
- identifierGte := []int32{int32(123)} // []int32 | (optional)
- identifierLt := []int32{int32(123)} // []int32 | (optional)
- identifierLte := []int32{int32(123)} // []int32 | (optional)
- identifierN := []int32{int32(123)} // []int32 | (optional)
- importTarget := []string{"Inner_example"} // []string | Import target (name) (optional)
- importTargetN := []string{"Inner_example"} // []string | Import target (name) (optional)
- importTargetId := []int32{int32(123)} // []int32 | Import target (optional)
- importTargetIdN := []int32{int32(123)} // []int32 | Import target (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- type_ := []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.IpamAPI.IpamL2vpnsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnsList`: PaginatedL2VPNList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnsListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **exportTarget** | **[]string** | Export target (name) |
- **exportTargetN** | **[]string** | Export target (name) |
- **exportTargetId** | **[]int32** | Export target |
- **exportTargetIdN** | **[]int32** | Export target |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **identifier** | **[]int32** | |
- **identifierEmpty** | **bool** | |
- **identifierGt** | **[]int32** | |
- **identifierGte** | **[]int32** | |
- **identifierLt** | **[]int32** | |
- **identifierLte** | **[]int32** | |
- **identifierN** | **[]int32** | |
- **importTarget** | **[]string** | Import target (name) |
- **importTargetN** | **[]string** | Import target (name) |
- **importTargetId** | **[]int32** | Import target |
- **importTargetIdN** | **[]int32** | Import target |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **nameIe** | **[]string** | |
- **nameIew** | **[]string** | |
- **nameIsw** | **[]string** | |
- **nameN** | **[]string** | |
- **nameNic** | **[]string** | |
- **nameNie** | **[]string** | |
- **nameNiew** | **[]string** | |
- **nameNisw** | **[]string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **q** | **string** | Search |
- **slug** | **[]string** | |
- **slugEmpty** | **bool** | |
- **slugIc** | **[]string** | |
- **slugIe** | **[]string** | |
- **slugIew** | **[]string** | |
- **slugIsw** | **[]string** | |
- **slugN** | **[]string** | |
- **slugNic** | **[]string** | |
- **slugNie** | **[]string** | |
- **slugNiew** | **[]string** | |
- **slugNisw** | **[]string** | |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **tenant** | **[]string** | Tenant (slug) |
- **tenantN** | **[]string** | Tenant (slug) |
- **tenantGroup** | **[]int32** | Tenant Group (slug) |
- **tenantGroupN** | **[]int32** | Tenant Group (slug) |
- **tenantGroupId** | **[]int32** | Tenant Group (ID) |
- **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
- **tenantId** | **[]int32** | Tenant (ID) |
- **tenantIdN** | **[]int32** | Tenant (ID) |
- **type_** | **[]string** | |
- **typeN** | **[]string** | |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedL2VPNList**](PaginatedL2VPNList.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)
-
-
-## IpamL2vpnsPartialUpdate
-
-> L2VPN IpamL2vpnsPartialUpdate(ctx, id).PatchedWritableL2VPNRequest(patchedWritableL2VPNRequest).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 L2VPN.
- patchedWritableL2VPNRequest := *openapiclient.NewPatchedWritableL2VPNRequest() // PatchedWritableL2VPNRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamL2vpnsPartialUpdate(context.Background(), id).PatchedWritableL2VPNRequest(patchedWritableL2VPNRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnsPartialUpdate`: L2VPN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsPartialUpdate`: %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 L2VPN. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnsPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableL2VPNRequest** | [**PatchedWritableL2VPNRequest**](PatchedWritableL2VPNRequest.md) | |
-
-### Return type
-
-[**L2VPN**](L2VPN.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)
-
-
-## IpamL2vpnsRetrieve
-
-> L2VPN IpamL2vpnsRetrieve(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 L2VPN.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamL2vpnsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnsRetrieve`: L2VPN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsRetrieve`: %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 L2VPN. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnsRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**L2VPN**](L2VPN.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)
-
-
-## IpamL2vpnsUpdate
-
-> L2VPN IpamL2vpnsUpdate(ctx, id).WritableL2VPNRequest(writableL2VPNRequest).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 L2VPN.
- writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", "Type_example") // WritableL2VPNRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamL2vpnsUpdate(context.Background(), id).WritableL2VPNRequest(writableL2VPNRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamL2vpnsUpdate`: L2VPN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsUpdate`: %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 L2VPN. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamL2vpnsUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableL2VPNRequest** | [**WritableL2VPNRequest**](WritableL2VPNRequest.md) | |
-
-### Return type
-
-[**L2VPN**](L2VPN.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)
-
-
-## IpamPrefixesAvailableIpsCreate
-
-> []IPAddress IpamPrefixesAvailableIpsCreate(ctx, id).IPAddressRequest(iPAddressRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- id := int32(56) // int32 |
- iPAddressRequest := []openapiclient.IPAddressRequest{*openapiclient.NewIPAddressRequest("Address_example")} // []IPAddressRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamPrefixesAvailableIpsCreate(context.Background(), id).IPAddressRequest(iPAddressRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesAvailableIpsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamPrefixesAvailableIpsCreate`: []IPAddress
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesAvailableIpsCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamPrefixesAvailableIpsCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **iPAddressRequest** | [**[]IPAddressRequest**](IPAddressRequest.md) | |
-
-### Return type
-
-[**[]IPAddress**](IPAddress.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)
-
-
-## IpamPrefixesAvailableIpsList
-
-> []AvailableIP IpamPrefixesAvailableIpsList(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 |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamPrefixesAvailableIpsList(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesAvailableIpsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamPrefixesAvailableIpsList`: []AvailableIP
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesAvailableIpsList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamPrefixesAvailableIpsListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**[]AvailableIP**](AvailableIP.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)
-
-
-## IpamPrefixesAvailablePrefixesCreate
-
-> []Prefix IpamPrefixesAvailablePrefixesCreate(ctx, id).PrefixRequest(prefixRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- id := int32(56) // int32 |
- prefixRequest := []openapiclient.PrefixRequest{*openapiclient.NewPrefixRequest("Prefix_example")} // []PrefixRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamPrefixesAvailablePrefixesCreate(context.Background(), id).PrefixRequest(prefixRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesAvailablePrefixesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamPrefixesAvailablePrefixesCreate`: []Prefix
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesAvailablePrefixesCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamPrefixesAvailablePrefixesCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **prefixRequest** | [**[]PrefixRequest**](PrefixRequest.md) | |
-
-### Return type
-
-[**[]Prefix**](Prefix.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)
-
-
-## IpamPrefixesAvailablePrefixesList
-
-> []AvailablePrefix IpamPrefixesAvailablePrefixesList(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 |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamPrefixesAvailablePrefixesList(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesAvailablePrefixesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamPrefixesAvailablePrefixesList`: []AvailablePrefix
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesAvailablePrefixesList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamPrefixesAvailablePrefixesListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**[]AvailablePrefix**](AvailablePrefix.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)
-
-
-## IpamPrefixesBulkDestroy
-
-> IpamPrefixesBulkDestroy(ctx).PrefixRequest(prefixRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- prefixRequest := []openapiclient.PrefixRequest{*openapiclient.NewPrefixRequest("Prefix_example")} // []PrefixRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamPrefixesBulkDestroy(context.Background()).PrefixRequest(prefixRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamPrefixesBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **prefixRequest** | [**[]PrefixRequest**](PrefixRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamPrefixesBulkPartialUpdate
-
-> []Prefix IpamPrefixesBulkPartialUpdate(ctx).PrefixRequest(prefixRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- prefixRequest := []openapiclient.PrefixRequest{*openapiclient.NewPrefixRequest("Prefix_example")} // []PrefixRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamPrefixesBulkPartialUpdate(context.Background()).PrefixRequest(prefixRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamPrefixesBulkPartialUpdate`: []Prefix
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamPrefixesBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **prefixRequest** | [**[]PrefixRequest**](PrefixRequest.md) | |
-
-### Return type
-
-[**[]Prefix**](Prefix.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)
-
-
-## IpamPrefixesBulkUpdate
-
-> []Prefix IpamPrefixesBulkUpdate(ctx).PrefixRequest(prefixRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- prefixRequest := []openapiclient.PrefixRequest{*openapiclient.NewPrefixRequest("Prefix_example")} // []PrefixRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamPrefixesBulkUpdate(context.Background()).PrefixRequest(prefixRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamPrefixesBulkUpdate`: []Prefix
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamPrefixesBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **prefixRequest** | [**[]PrefixRequest**](PrefixRequest.md) | |
-
-### Return type
-
-[**[]Prefix**](Prefix.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)
-
-
-## IpamPrefixesCreate
-
-> Prefix IpamPrefixesCreate(ctx).WritablePrefixRequest(writablePrefixRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writablePrefixRequest := *openapiclient.NewWritablePrefixRequest("Prefix_example") // WritablePrefixRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamPrefixesCreate(context.Background()).WritablePrefixRequest(writablePrefixRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamPrefixesCreate`: Prefix
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamPrefixesCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writablePrefixRequest** | [**WritablePrefixRequest**](WritablePrefixRequest.md) | |
-
-### Return type
-
-[**Prefix**](Prefix.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)
-
-
-## IpamPrefixesDestroy
-
-> IpamPrefixesDestroy(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 prefix.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamPrefixesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 prefix. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamPrefixesDestroyRequest 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)
-
-
-## IpamPrefixesList
-
-> PaginatedPrefixList IpamPrefixesList(ctx).Children(children).ChildrenEmpty(childrenEmpty).ChildrenGt(childrenGt).ChildrenGte(childrenGte).ChildrenLt(childrenLt).ChildrenLte(childrenLte).ChildrenN(childrenN).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Depth(depth).DepthEmpty(depthEmpty).DepthGt(depthGt).DepthGte(depthGte).DepthLt(depthLt).DepthLte(depthLte).DepthN(depthN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPool(isPool).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Within(within).WithinInclude(withinInclude).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- children := []int32{int32(123)} // []int32 | (optional)
- childrenEmpty := []int32{int32(123)} // []int32 | (optional)
- childrenGt := []int32{int32(123)} // []int32 | (optional)
- childrenGte := []int32{int32(123)} // []int32 | (optional)
- childrenLt := []int32{int32(123)} // []int32 | (optional)
- childrenLte := []int32{int32(123)} // []int32 | (optional)
- childrenN := []int32{int32(123)} // []int32 | (optional)
- contains := "contains_example" // string | Prefixes which contain this prefix or IP (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- depth := []int32{int32(123)} // []int32 | (optional)
- depthEmpty := []int32{int32(123)} // []int32 | (optional)
- depthGt := []int32{int32(123)} // []int32 | (optional)
- depthGte := []int32{int32(123)} // []int32 | (optional)
- depthLt := []int32{int32(123)} // []int32 | (optional)
- depthLte := []int32{int32(123)} // []int32 | (optional)
- depthN := []int32{int32(123)} // []int32 | (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)
- family := float32(8.14) // float32 | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- isPool := true // bool | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- 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)
- markUtilized := true // bool | (optional)
- maskLength := []int32{int32(123)} // []int32 | (optional)
- maskLengthGte := float32(8.14) // float32 | (optional)
- maskLengthLte := float32(8.14) // float32 | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- prefix := []string{"Inner_example"} // []string | (optional)
- presentInVrf := "presentInVrf_example" // string | (optional)
- presentInVrfId := "presentInVrfId_example" // string | (optional)
- q := "q_example" // string | Search (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
- roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
- site := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
- siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
- status := []string{"Inner_example"} // []string | Operational status of this prefix (optional)
- statusN := []string{"Inner_example"} // []string | Operational status of this prefix (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- vlanId := []*int32{int32(123)} // []*int32 | VLAN (ID) (optional)
- vlanIdN := []*int32{int32(123)} // []*int32 | VLAN (ID) (optional)
- vlanVid := int32(56) // int32 | VLAN number (1-4094) (optional)
- vlanVidEmpty := int32(56) // int32 | VLAN number (1-4094) (optional)
- vlanVidGt := int32(56) // int32 | VLAN number (1-4094) (optional)
- vlanVidGte := int32(56) // int32 | VLAN number (1-4094) (optional)
- vlanVidLt := int32(56) // int32 | VLAN number (1-4094) (optional)
- vlanVidLte := int32(56) // int32 | VLAN number (1-4094) (optional)
- vlanVidN := int32(56) // int32 | VLAN number (1-4094) (optional)
- vrf := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
- vrfN := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
- vrfId := []*int32{int32(123)} // []*int32 | VRF (optional)
- vrfIdN := []*int32{int32(123)} // []*int32 | VRF (optional)
- within := "within_example" // string | Within prefix (optional)
- withinInclude := "withinInclude_example" // string | Within and including prefix (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamPrefixesList(context.Background()).Children(children).ChildrenEmpty(childrenEmpty).ChildrenGt(childrenGt).ChildrenGte(childrenGte).ChildrenLt(childrenLt).ChildrenLte(childrenLte).ChildrenN(childrenN).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Depth(depth).DepthEmpty(depthEmpty).DepthGt(depthGt).DepthGte(depthGte).DepthLt(depthLt).DepthLte(depthLte).DepthN(depthN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPool(isPool).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Within(within).WithinInclude(withinInclude).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamPrefixesList`: PaginatedPrefixList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamPrefixesListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **children** | **[]int32** | |
- **childrenEmpty** | **[]int32** | |
- **childrenGt** | **[]int32** | |
- **childrenGte** | **[]int32** | |
- **childrenLt** | **[]int32** | |
- **childrenLte** | **[]int32** | |
- **childrenN** | **[]int32** | |
- **contains** | **string** | Prefixes which contain this prefix or IP |
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **depth** | **[]int32** | |
- **depthEmpty** | **[]int32** | |
- **depthGt** | **[]int32** | |
- **depthGte** | **[]int32** | |
- **depthLt** | **[]int32** | |
- **depthLte** | **[]int32** | |
- **depthN** | **[]int32** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **family** | **float32** | |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **isPool** | **bool** | |
- **lastUpdated** | [**[]time.Time**](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. |
- **markUtilized** | **bool** | |
- **maskLength** | **[]int32** | |
- **maskLengthGte** | **float32** | |
- **maskLengthLte** | **float32** | |
- **modifiedByRequest** | **string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **prefix** | **[]string** | |
- **presentInVrf** | **string** | |
- **presentInVrfId** | **string** | |
- **q** | **string** | Search |
- **region** | **[]int32** | Region (slug) |
- **regionN** | **[]int32** | Region (slug) |
- **regionId** | **[]int32** | Region (ID) |
- **regionIdN** | **[]int32** | Region (ID) |
- **role** | **[]string** | Role (slug) |
- **roleN** | **[]string** | Role (slug) |
- **roleId** | **[]int32** | Role (ID) |
- **roleIdN** | **[]int32** | Role (ID) |
- **site** | **[]string** | Site (slug) |
- **siteN** | **[]string** | Site (slug) |
- **siteGroup** | **[]int32** | Site group (slug) |
- **siteGroupN** | **[]int32** | Site group (slug) |
- **siteGroupId** | **[]int32** | Site group (ID) |
- **siteGroupIdN** | **[]int32** | Site group (ID) |
- **siteId** | **[]int32** | Site (ID) |
- **siteIdN** | **[]int32** | Site (ID) |
- **status** | **[]string** | Operational status of this prefix |
- **statusN** | **[]string** | Operational status of this prefix |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **tenant** | **[]string** | Tenant (slug) |
- **tenantN** | **[]string** | Tenant (slug) |
- **tenantGroup** | **[]int32** | Tenant Group (slug) |
- **tenantGroupN** | **[]int32** | Tenant Group (slug) |
- **tenantGroupId** | **[]int32** | Tenant Group (ID) |
- **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
- **tenantId** | **[]int32** | Tenant (ID) |
- **tenantIdN** | **[]int32** | Tenant (ID) |
- **updatedByRequest** | **string** | |
- **vlanId** | **[]int32** | VLAN (ID) |
- **vlanIdN** | **[]int32** | VLAN (ID) |
- **vlanVid** | **int32** | VLAN number (1-4094) |
- **vlanVidEmpty** | **int32** | VLAN number (1-4094) |
- **vlanVidGt** | **int32** | VLAN number (1-4094) |
- **vlanVidGte** | **int32** | VLAN number (1-4094) |
- **vlanVidLt** | **int32** | VLAN number (1-4094) |
- **vlanVidLte** | **int32** | VLAN number (1-4094) |
- **vlanVidN** | **int32** | VLAN number (1-4094) |
- **vrf** | **[]string** | VRF (RD) |
- **vrfN** | **[]string** | VRF (RD) |
- **vrfId** | **[]int32** | VRF |
- **vrfIdN** | **[]int32** | VRF |
- **within** | **string** | Within prefix |
- **withinInclude** | **string** | Within and including prefix |
-
-### Return type
-
-[**PaginatedPrefixList**](PaginatedPrefixList.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)
-
-
-## IpamPrefixesPartialUpdate
-
-> Prefix IpamPrefixesPartialUpdate(ctx, id).PatchedWritablePrefixRequest(patchedWritablePrefixRequest).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 prefix.
- patchedWritablePrefixRequest := *openapiclient.NewPatchedWritablePrefixRequest() // PatchedWritablePrefixRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamPrefixesPartialUpdate(context.Background(), id).PatchedWritablePrefixRequest(patchedWritablePrefixRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamPrefixesPartialUpdate`: Prefix
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesPartialUpdate`: %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 prefix. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamPrefixesPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritablePrefixRequest** | [**PatchedWritablePrefixRequest**](PatchedWritablePrefixRequest.md) | |
-
-### Return type
-
-[**Prefix**](Prefix.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)
-
-
-## IpamPrefixesRetrieve
-
-> Prefix IpamPrefixesRetrieve(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 prefix.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamPrefixesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamPrefixesRetrieve`: Prefix
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesRetrieve`: %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 prefix. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamPrefixesRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**Prefix**](Prefix.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)
-
-
-## IpamPrefixesUpdate
-
-> Prefix IpamPrefixesUpdate(ctx, id).WritablePrefixRequest(writablePrefixRequest).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 prefix.
- writablePrefixRequest := *openapiclient.NewWritablePrefixRequest("Prefix_example") // WritablePrefixRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamPrefixesUpdate(context.Background(), id).WritablePrefixRequest(writablePrefixRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamPrefixesUpdate`: Prefix
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesUpdate`: %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 prefix. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamPrefixesUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writablePrefixRequest** | [**WritablePrefixRequest**](WritablePrefixRequest.md) | |
-
-### Return type
-
-[**Prefix**](Prefix.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)
-
-
-## IpamRirsBulkDestroy
-
-> IpamRirsBulkDestroy(ctx).RIRRequest(rIRRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- rIRRequest := []openapiclient.RIRRequest{*openapiclient.NewRIRRequest("Name_example", "Slug_example")} // []RIRRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamRirsBulkDestroy(context.Background()).RIRRequest(rIRRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRirsBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **rIRRequest** | [**[]RIRRequest**](RIRRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamRirsBulkPartialUpdate
-
-> []RIR IpamRirsBulkPartialUpdate(ctx).RIRRequest(rIRRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- rIRRequest := []openapiclient.RIRRequest{*openapiclient.NewRIRRequest("Name_example", "Slug_example")} // []RIRRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRirsBulkPartialUpdate(context.Background()).RIRRequest(rIRRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRirsBulkPartialUpdate`: []RIR
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRirsBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **rIRRequest** | [**[]RIRRequest**](RIRRequest.md) | |
-
-### Return type
-
-[**[]RIR**](RIR.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)
-
-
-## IpamRirsBulkUpdate
-
-> []RIR IpamRirsBulkUpdate(ctx).RIRRequest(rIRRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- rIRRequest := []openapiclient.RIRRequest{*openapiclient.NewRIRRequest("Name_example", "Slug_example")} // []RIRRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRirsBulkUpdate(context.Background()).RIRRequest(rIRRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRirsBulkUpdate`: []RIR
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRirsBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **rIRRequest** | [**[]RIRRequest**](RIRRequest.md) | |
-
-### Return type
-
-[**[]RIR**](RIR.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)
-
-
-## IpamRirsCreate
-
-> RIR IpamRirsCreate(ctx).RIRRequest(rIRRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- rIRRequest := *openapiclient.NewRIRRequest("Name_example", "Slug_example") // RIRRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRirsCreate(context.Background()).RIRRequest(rIRRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRirsCreate`: RIR
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRirsCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **rIRRequest** | [**RIRRequest**](RIRRequest.md) | |
-
-### Return type
-
-[**RIR**](RIR.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)
-
-
-## IpamRirsDestroy
-
-> IpamRirsDestroy(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 RIR.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamRirsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 RIR. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRirsDestroyRequest 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)
-
-
-## IpamRirsList
-
-> PaginatedRIRList IpamRirsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPrivate(isPrivate).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- isPrivate := true // bool | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRirsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPrivate(isPrivate).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRirsList`: PaginatedRIRList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRirsListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **isPrivate** | **bool** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **nameIe** | **[]string** | |
- **nameIew** | **[]string** | |
- **nameIsw** | **[]string** | |
- **nameN** | **[]string** | |
- **nameNic** | **[]string** | |
- **nameNie** | **[]string** | |
- **nameNiew** | **[]string** | |
- **nameNisw** | **[]string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **q** | **string** | Search |
- **slug** | **[]string** | |
- **slugEmpty** | **bool** | |
- **slugIc** | **[]string** | |
- **slugIe** | **[]string** | |
- **slugIew** | **[]string** | |
- **slugIsw** | **[]string** | |
- **slugN** | **[]string** | |
- **slugNic** | **[]string** | |
- **slugNie** | **[]string** | |
- **slugNiew** | **[]string** | |
- **slugNisw** | **[]string** | |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedRIRList**](PaginatedRIRList.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)
-
-
-## IpamRirsPartialUpdate
-
-> RIR IpamRirsPartialUpdate(ctx, id).PatchedRIRRequest(patchedRIRRequest).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 RIR.
- patchedRIRRequest := *openapiclient.NewPatchedRIRRequest() // PatchedRIRRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRirsPartialUpdate(context.Background(), id).PatchedRIRRequest(patchedRIRRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRirsPartialUpdate`: RIR
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsPartialUpdate`: %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 RIR. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRirsPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedRIRRequest** | [**PatchedRIRRequest**](PatchedRIRRequest.md) | |
-
-### Return type
-
-[**RIR**](RIR.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)
-
-
-## IpamRirsRetrieve
-
-> RIR IpamRirsRetrieve(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 RIR.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRirsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRirsRetrieve`: RIR
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsRetrieve`: %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 RIR. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRirsRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**RIR**](RIR.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)
-
-
-## IpamRirsUpdate
-
-> RIR IpamRirsUpdate(ctx, id).RIRRequest(rIRRequest).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 RIR.
- rIRRequest := *openapiclient.NewRIRRequest("Name_example", "Slug_example") // RIRRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRirsUpdate(context.Background(), id).RIRRequest(rIRRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRirsUpdate`: RIR
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsUpdate`: %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 RIR. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRirsUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **rIRRequest** | [**RIRRequest**](RIRRequest.md) | |
-
-### Return type
-
-[**RIR**](RIR.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)
-
-
-## IpamRolesBulkDestroy
-
-> IpamRolesBulkDestroy(ctx).RoleRequest(roleRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- roleRequest := []openapiclient.RoleRequest{*openapiclient.NewRoleRequest("Name_example", "Slug_example")} // []RoleRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamRolesBulkDestroy(context.Background()).RoleRequest(roleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRolesBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **roleRequest** | [**[]RoleRequest**](RoleRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamRolesBulkPartialUpdate
-
-> []Role IpamRolesBulkPartialUpdate(ctx).RoleRequest(roleRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- roleRequest := []openapiclient.RoleRequest{*openapiclient.NewRoleRequest("Name_example", "Slug_example")} // []RoleRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRolesBulkPartialUpdate(context.Background()).RoleRequest(roleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRolesBulkPartialUpdate`: []Role
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRolesBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **roleRequest** | [**[]RoleRequest**](RoleRequest.md) | |
-
-### Return type
-
-[**[]Role**](Role.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)
-
-
-## IpamRolesBulkUpdate
-
-> []Role IpamRolesBulkUpdate(ctx).RoleRequest(roleRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- roleRequest := []openapiclient.RoleRequest{*openapiclient.NewRoleRequest("Name_example", "Slug_example")} // []RoleRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRolesBulkUpdate(context.Background()).RoleRequest(roleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRolesBulkUpdate`: []Role
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRolesBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **roleRequest** | [**[]RoleRequest**](RoleRequest.md) | |
-
-### Return type
-
-[**[]Role**](Role.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)
-
-
-## IpamRolesCreate
-
-> Role IpamRolesCreate(ctx).RoleRequest(roleRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- roleRequest := *openapiclient.NewRoleRequest("Name_example", "Slug_example") // RoleRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRolesCreate(context.Background()).RoleRequest(roleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRolesCreate`: Role
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRolesCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **roleRequest** | [**RoleRequest**](RoleRequest.md) | |
-
-### Return type
-
-[**Role**](Role.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)
-
-
-## IpamRolesDestroy
-
-> IpamRolesDestroy(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 role.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamRolesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 role. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRolesDestroyRequest 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)
-
-
-## 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()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRolesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRolesList`: PaginatedRoleList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRolesListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **nameIe** | **[]string** | |
- **nameIew** | **[]string** | |
- **nameIsw** | **[]string** | |
- **nameN** | **[]string** | |
- **nameNic** | **[]string** | |
- **nameNie** | **[]string** | |
- **nameNiew** | **[]string** | |
- **nameNisw** | **[]string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **q** | **string** | Search |
- **slug** | **[]string** | |
- **slugEmpty** | **bool** | |
- **slugIc** | **[]string** | |
- **slugIe** | **[]string** | |
- **slugIew** | **[]string** | |
- **slugIsw** | **[]string** | |
- **slugN** | **[]string** | |
- **slugNic** | **[]string** | |
- **slugNie** | **[]string** | |
- **slugNiew** | **[]string** | |
- **slugNisw** | **[]string** | |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedRoleList**](PaginatedRoleList.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)
-
-
-## IpamRolesPartialUpdate
-
-> Role IpamRolesPartialUpdate(ctx, id).PatchedRoleRequest(patchedRoleRequest).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 role.
- patchedRoleRequest := *openapiclient.NewPatchedRoleRequest() // PatchedRoleRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRolesPartialUpdate(context.Background(), id).PatchedRoleRequest(patchedRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRolesPartialUpdate`: Role
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesPartialUpdate`: %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 role. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRolesPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedRoleRequest** | [**PatchedRoleRequest**](PatchedRoleRequest.md) | |
-
-### Return type
-
-[**Role**](Role.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)
-
-
-## IpamRolesRetrieve
-
-> Role IpamRolesRetrieve(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 role.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRolesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRolesRetrieve`: Role
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesRetrieve`: %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 role. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRolesRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**Role**](Role.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)
-
-
-## IpamRolesUpdate
-
-> Role IpamRolesUpdate(ctx, id).RoleRequest(roleRequest).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 role.
- roleRequest := *openapiclient.NewRoleRequest("Name_example", "Slug_example") // RoleRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRolesUpdate(context.Background(), id).RoleRequest(roleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRolesUpdate`: Role
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesUpdate`: %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 role. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRolesUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **roleRequest** | [**RoleRequest**](RoleRequest.md) | |
-
-### Return type
-
-[**Role**](Role.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)
-
-
-## IpamRouteTargetsBulkDestroy
-
-> IpamRouteTargetsBulkDestroy(ctx).RouteTargetRequest(routeTargetRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- routeTargetRequest := []openapiclient.RouteTargetRequest{*openapiclient.NewRouteTargetRequest("Name_example")} // []RouteTargetRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamRouteTargetsBulkDestroy(context.Background()).RouteTargetRequest(routeTargetRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRouteTargetsBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **routeTargetRequest** | [**[]RouteTargetRequest**](RouteTargetRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamRouteTargetsBulkPartialUpdate
-
-> []RouteTarget IpamRouteTargetsBulkPartialUpdate(ctx).RouteTargetRequest(routeTargetRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- routeTargetRequest := []openapiclient.RouteTargetRequest{*openapiclient.NewRouteTargetRequest("Name_example")} // []RouteTargetRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRouteTargetsBulkPartialUpdate(context.Background()).RouteTargetRequest(routeTargetRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRouteTargetsBulkPartialUpdate`: []RouteTarget
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRouteTargetsBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **routeTargetRequest** | [**[]RouteTargetRequest**](RouteTargetRequest.md) | |
-
-### Return type
-
-[**[]RouteTarget**](RouteTarget.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)
-
-
-## IpamRouteTargetsBulkUpdate
-
-> []RouteTarget IpamRouteTargetsBulkUpdate(ctx).RouteTargetRequest(routeTargetRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- routeTargetRequest := []openapiclient.RouteTargetRequest{*openapiclient.NewRouteTargetRequest("Name_example")} // []RouteTargetRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRouteTargetsBulkUpdate(context.Background()).RouteTargetRequest(routeTargetRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRouteTargetsBulkUpdate`: []RouteTarget
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRouteTargetsBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **routeTargetRequest** | [**[]RouteTargetRequest**](RouteTargetRequest.md) | |
-
-### Return type
-
-[**[]RouteTarget**](RouteTarget.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)
-
-
-## IpamRouteTargetsCreate
-
-> RouteTarget IpamRouteTargetsCreate(ctx).WritableRouteTargetRequest(writableRouteTargetRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableRouteTargetRequest := *openapiclient.NewWritableRouteTargetRequest("Name_example") // WritableRouteTargetRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRouteTargetsCreate(context.Background()).WritableRouteTargetRequest(writableRouteTargetRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRouteTargetsCreate`: RouteTarget
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRouteTargetsCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableRouteTargetRequest** | [**WritableRouteTargetRequest**](WritableRouteTargetRequest.md) | |
-
-### Return type
-
-[**RouteTarget**](RouteTarget.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)
-
-
-## IpamRouteTargetsDestroy
-
-> IpamRouteTargetsDestroy(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 route target.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamRouteTargetsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 route target. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRouteTargetsDestroyRequest 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)
-
-
-## 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()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- 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)
- exportingVrfIdN := []int32{int32(123)} // []int32 | Exporting VRF (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (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)
- importingVrfIdN := []int32{int32(123)} // []int32 | Importing VRF (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- 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()
- 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)
- }
- // response from `IpamRouteTargetsList`: PaginatedRouteTargetList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRouteTargetsListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **exportingVrf** | **[]string** | Export VRF (RD) |
- **exportingVrfN** | **[]string** | Export VRF (RD) |
- **exportingVrfId** | **[]int32** | Exporting VRF |
- **exportingVrfIdN** | **[]int32** | Exporting VRF |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **importingVrf** | **[]string** | Import VRF (RD) |
- **importingVrfN** | **[]string** | Import VRF (RD) |
- **importingVrfId** | **[]int32** | Importing VRF |
- **importingVrfIdN** | **[]int32** | Importing VRF |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **nameIe** | **[]string** | |
- **nameIew** | **[]string** | |
- **nameIsw** | **[]string** | |
- **nameN** | **[]string** | |
- **nameNic** | **[]string** | |
- **nameNie** | **[]string** | |
- **nameNiew** | **[]string** | |
- **nameNisw** | **[]string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **q** | **string** | Search |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **tenant** | **[]string** | Tenant (slug) |
- **tenantN** | **[]string** | Tenant (slug) |
- **tenantGroup** | **[]int32** | Tenant Group (slug) |
- **tenantGroupN** | **[]int32** | Tenant Group (slug) |
- **tenantGroupId** | **[]int32** | Tenant Group (ID) |
- **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
- **tenantId** | **[]int32** | Tenant (ID) |
- **tenantIdN** | **[]int32** | Tenant (ID) |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedRouteTargetList**](PaginatedRouteTargetList.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)
-
-
-## IpamRouteTargetsPartialUpdate
-
-> RouteTarget IpamRouteTargetsPartialUpdate(ctx, id).PatchedWritableRouteTargetRequest(patchedWritableRouteTargetRequest).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 route target.
- patchedWritableRouteTargetRequest := *openapiclient.NewPatchedWritableRouteTargetRequest() // PatchedWritableRouteTargetRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRouteTargetsPartialUpdate(context.Background(), id).PatchedWritableRouteTargetRequest(patchedWritableRouteTargetRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRouteTargetsPartialUpdate`: RouteTarget
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsPartialUpdate`: %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 route target. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRouteTargetsPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableRouteTargetRequest** | [**PatchedWritableRouteTargetRequest**](PatchedWritableRouteTargetRequest.md) | |
-
-### Return type
-
-[**RouteTarget**](RouteTarget.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)
-
-
-## IpamRouteTargetsRetrieve
-
-> RouteTarget IpamRouteTargetsRetrieve(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 route target.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRouteTargetsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRouteTargetsRetrieve`: RouteTarget
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsRetrieve`: %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 route target. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRouteTargetsRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**RouteTarget**](RouteTarget.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)
-
-
-## IpamRouteTargetsUpdate
-
-> RouteTarget IpamRouteTargetsUpdate(ctx, id).WritableRouteTargetRequest(writableRouteTargetRequest).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 route target.
- writableRouteTargetRequest := *openapiclient.NewWritableRouteTargetRequest("Name_example") // WritableRouteTargetRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRouteTargetsUpdate(context.Background(), id).WritableRouteTargetRequest(writableRouteTargetRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamRouteTargetsUpdate`: RouteTarget
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsUpdate`: %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 route target. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamRouteTargetsUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableRouteTargetRequest** | [**WritableRouteTargetRequest**](WritableRouteTargetRequest.md) | |
-
-### Return type
-
-[**RouteTarget**](RouteTarget.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)
-
-
-## IpamServiceTemplatesBulkDestroy
-
-> IpamServiceTemplatesBulkDestroy(ctx).ServiceTemplateRequest(serviceTemplateRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- serviceTemplateRequest := []openapiclient.ServiceTemplateRequest{*openapiclient.NewServiceTemplateRequest("Name_example", []int32{int32(123)})} // []ServiceTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamServiceTemplatesBulkDestroy(context.Background()).ServiceTemplateRequest(serviceTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServiceTemplatesBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceTemplateRequest** | [**[]ServiceTemplateRequest**](ServiceTemplateRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamServiceTemplatesBulkPartialUpdate
-
-> []ServiceTemplate IpamServiceTemplatesBulkPartialUpdate(ctx).ServiceTemplateRequest(serviceTemplateRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- serviceTemplateRequest := []openapiclient.ServiceTemplateRequest{*openapiclient.NewServiceTemplateRequest("Name_example", []int32{int32(123)})} // []ServiceTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesBulkPartialUpdate(context.Background()).ServiceTemplateRequest(serviceTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamServiceTemplatesBulkPartialUpdate`: []ServiceTemplate
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServiceTemplatesBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceTemplateRequest** | [**[]ServiceTemplateRequest**](ServiceTemplateRequest.md) | |
-
-### Return type
-
-[**[]ServiceTemplate**](ServiceTemplate.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)
-
-
-## IpamServiceTemplatesBulkUpdate
-
-> []ServiceTemplate IpamServiceTemplatesBulkUpdate(ctx).ServiceTemplateRequest(serviceTemplateRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- serviceTemplateRequest := []openapiclient.ServiceTemplateRequest{*openapiclient.NewServiceTemplateRequest("Name_example", []int32{int32(123)})} // []ServiceTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesBulkUpdate(context.Background()).ServiceTemplateRequest(serviceTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamServiceTemplatesBulkUpdate`: []ServiceTemplate
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServiceTemplatesBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceTemplateRequest** | [**[]ServiceTemplateRequest**](ServiceTemplateRequest.md) | |
-
-### Return type
-
-[**[]ServiceTemplate**](ServiceTemplate.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)
-
-
-## IpamServiceTemplatesCreate
-
-> ServiceTemplate IpamServiceTemplatesCreate(ctx).WritableServiceTemplateRequest(writableServiceTemplateRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableServiceTemplateRequest := *openapiclient.NewWritableServiceTemplateRequest("Name_example", []int32{int32(123)}, "Protocol_example") // WritableServiceTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesCreate(context.Background()).WritableServiceTemplateRequest(writableServiceTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamServiceTemplatesCreate`: ServiceTemplate
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServiceTemplatesCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableServiceTemplateRequest** | [**WritableServiceTemplateRequest**](WritableServiceTemplateRequest.md) | |
-
-### Return type
-
-[**ServiceTemplate**](ServiceTemplate.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)
-
-
-## IpamServiceTemplatesDestroy
-
-> IpamServiceTemplatesDestroy(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 service template.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamServiceTemplatesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 service template. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServiceTemplatesDestroyRequest 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)
-
-
-## IpamServiceTemplatesList
-
-> PaginatedServiceTemplateList IpamServiceTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- port := float32(8.14) // float32 | (optional)
- protocol := "protocol_example" // string | (optional)
- protocolN := "protocolN_example" // string | (optional)
- q := "q_example" // string | Search (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamServiceTemplatesList`: PaginatedServiceTemplateList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServiceTemplatesListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **nameIe** | **[]string** | |
- **nameIew** | **[]string** | |
- **nameIsw** | **[]string** | |
- **nameN** | **[]string** | |
- **nameNic** | **[]string** | |
- **nameNie** | **[]string** | |
- **nameNiew** | **[]string** | |
- **nameNisw** | **[]string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **port** | **float32** | |
- **protocol** | **string** | |
- **protocolN** | **string** | |
- **q** | **string** | Search |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedServiceTemplateList**](PaginatedServiceTemplateList.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)
-
-
-## IpamServiceTemplatesPartialUpdate
-
-> ServiceTemplate IpamServiceTemplatesPartialUpdate(ctx, id).PatchedWritableServiceTemplateRequest(patchedWritableServiceTemplateRequest).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 service template.
- patchedWritableServiceTemplateRequest := *openapiclient.NewPatchedWritableServiceTemplateRequest() // PatchedWritableServiceTemplateRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesPartialUpdate(context.Background(), id).PatchedWritableServiceTemplateRequest(patchedWritableServiceTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamServiceTemplatesPartialUpdate`: ServiceTemplate
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesPartialUpdate`: %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 service template. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServiceTemplatesPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableServiceTemplateRequest** | [**PatchedWritableServiceTemplateRequest**](PatchedWritableServiceTemplateRequest.md) | |
-
-### Return type
-
-[**ServiceTemplate**](ServiceTemplate.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)
-
-
-## IpamServiceTemplatesRetrieve
-
-> ServiceTemplate IpamServiceTemplatesRetrieve(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 service template.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamServiceTemplatesRetrieve`: ServiceTemplate
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesRetrieve`: %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 service template. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServiceTemplatesRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**ServiceTemplate**](ServiceTemplate.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)
-
-
-## IpamServiceTemplatesUpdate
-
-> ServiceTemplate IpamServiceTemplatesUpdate(ctx, id).WritableServiceTemplateRequest(writableServiceTemplateRequest).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 service template.
- writableServiceTemplateRequest := *openapiclient.NewWritableServiceTemplateRequest("Name_example", []int32{int32(123)}, "Protocol_example") // WritableServiceTemplateRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesUpdate(context.Background(), id).WritableServiceTemplateRequest(writableServiceTemplateRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamServiceTemplatesUpdate`: ServiceTemplate
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesUpdate`: %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 service template. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServiceTemplatesUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableServiceTemplateRequest** | [**WritableServiceTemplateRequest**](WritableServiceTemplateRequest.md) | |
-
-### Return type
-
-[**ServiceTemplate**](ServiceTemplate.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)
-
-
-## IpamServicesBulkDestroy
-
-> IpamServicesBulkDestroy(ctx).ServiceRequest(serviceRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- serviceRequest := []openapiclient.ServiceRequest{*openapiclient.NewServiceRequest("Name_example", []int32{int32(123)})} // []ServiceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamServicesBulkDestroy(context.Background()).ServiceRequest(serviceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServicesBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceRequest** | [**[]ServiceRequest**](ServiceRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamServicesBulkPartialUpdate
-
-> []Service IpamServicesBulkPartialUpdate(ctx).ServiceRequest(serviceRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- serviceRequest := []openapiclient.ServiceRequest{*openapiclient.NewServiceRequest("Name_example", []int32{int32(123)})} // []ServiceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamServicesBulkPartialUpdate(context.Background()).ServiceRequest(serviceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamServicesBulkPartialUpdate`: []Service
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServicesBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceRequest** | [**[]ServiceRequest**](ServiceRequest.md) | |
-
-### Return type
-
-[**[]Service**](Service.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)
-
-
-## IpamServicesBulkUpdate
-
-> []Service IpamServicesBulkUpdate(ctx).ServiceRequest(serviceRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- serviceRequest := []openapiclient.ServiceRequest{*openapiclient.NewServiceRequest("Name_example", []int32{int32(123)})} // []ServiceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamServicesBulkUpdate(context.Background()).ServiceRequest(serviceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamServicesBulkUpdate`: []Service
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServicesBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceRequest** | [**[]ServiceRequest**](ServiceRequest.md) | |
-
-### Return type
-
-[**[]Service**](Service.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)
-
-
-## IpamServicesCreate
-
-> Service IpamServicesCreate(ctx).WritableServiceRequest(writableServiceRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableServiceRequest := *openapiclient.NewWritableServiceRequest("Name_example", []int32{int32(123)}, "Protocol_example") // WritableServiceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamServicesCreate(context.Background()).WritableServiceRequest(writableServiceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamServicesCreate`: Service
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServicesCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableServiceRequest** | [**WritableServiceRequest**](WritableServiceRequest.md) | |
-
-### Return type
-
-[**Service**](Service.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)
-
-
-## IpamServicesDestroy
-
-> IpamServicesDestroy(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 service.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamServicesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 service. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServicesDestroyRequest 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)
-
-
-## 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()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- 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)
- 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)
- ipaddress := []string{"Inner_example"} // []string | IP address (optional)
- ipaddressN := []string{"Inner_example"} // []string | IP address (optional)
- ipaddressId := []int32{int32(123)} // []int32 | IP address (ID) (optional)
- ipaddressIdN := []int32{int32(123)} // []int32 | IP address (ID) (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- port := float32(8.14) // float32 | (optional)
- protocol := "protocol_example" // string | (optional)
- protocolN := "protocolN_example" // string | (optional)
- q := "q_example" // string | Search (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualMachine := []string{"Inner_example"} // []string | Virtual machine (name) (optional)
- virtualMachineN := []string{"Inner_example"} // []string | Virtual machine (name) (optional)
- virtualMachineId := []*int32{int32(123)} // []*int32 | Virtual machine (ID) (optional)
- virtualMachineIdN := []*int32{int32(123)} // []*int32 | Virtual machine (ID) (optional)
-
- 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()
- 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)
- }
- // response from `IpamServicesList`: PaginatedServiceList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServicesListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **device** | **[]string** | Device (name) |
- **deviceN** | **[]string** | Device (name) |
- **deviceId** | **[]int32** | Device (ID) |
- **deviceIdN** | **[]int32** | Device (ID) |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **ipaddress** | **[]string** | IP address |
- **ipaddressN** | **[]string** | IP address |
- **ipaddressId** | **[]int32** | IP address (ID) |
- **ipaddressIdN** | **[]int32** | IP address (ID) |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **nameIe** | **[]string** | |
- **nameIew** | **[]string** | |
- **nameIsw** | **[]string** | |
- **nameN** | **[]string** | |
- **nameNic** | **[]string** | |
- **nameNie** | **[]string** | |
- **nameNiew** | **[]string** | |
- **nameNisw** | **[]string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **port** | **float32** | |
- **protocol** | **string** | |
- **protocolN** | **string** | |
- **q** | **string** | Search |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **updatedByRequest** | **string** | |
- **virtualMachine** | **[]string** | Virtual machine (name) |
- **virtualMachineN** | **[]string** | Virtual machine (name) |
- **virtualMachineId** | **[]int32** | Virtual machine (ID) |
- **virtualMachineIdN** | **[]int32** | Virtual machine (ID) |
-
-### Return type
-
-[**PaginatedServiceList**](PaginatedServiceList.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)
-
-
-## IpamServicesPartialUpdate
-
-> Service IpamServicesPartialUpdate(ctx, id).PatchedWritableServiceRequest(patchedWritableServiceRequest).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 service.
- patchedWritableServiceRequest := *openapiclient.NewPatchedWritableServiceRequest() // PatchedWritableServiceRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamServicesPartialUpdate(context.Background(), id).PatchedWritableServiceRequest(patchedWritableServiceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamServicesPartialUpdate`: Service
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesPartialUpdate`: %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 service. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServicesPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableServiceRequest** | [**PatchedWritableServiceRequest**](PatchedWritableServiceRequest.md) | |
-
-### Return type
-
-[**Service**](Service.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)
-
-
-## IpamServicesRetrieve
-
-> Service IpamServicesRetrieve(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 service.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamServicesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamServicesRetrieve`: Service
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesRetrieve`: %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 service. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServicesRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**Service**](Service.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)
-
-
-## IpamServicesUpdate
-
-> Service IpamServicesUpdate(ctx, id).WritableServiceRequest(writableServiceRequest).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 service.
- writableServiceRequest := *openapiclient.NewWritableServiceRequest("Name_example", []int32{int32(123)}, "Protocol_example") // WritableServiceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamServicesUpdate(context.Background(), id).WritableServiceRequest(writableServiceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamServicesUpdate`: Service
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesUpdate`: %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 service. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamServicesUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableServiceRequest** | [**WritableServiceRequest**](WritableServiceRequest.md) | |
-
-### Return type
-
-[**Service**](Service.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)
-
-
-## IpamVlanGroupsAvailableVlansCreate
-
-> []VLAN IpamVlanGroupsAvailableVlansCreate(ctx, id).VLANRequest(vLANRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- id := int32(56) // int32 |
- vLANRequest := []openapiclient.VLANRequest{*openapiclient.NewVLANRequest(int32(123), "Name_example")} // []VLANRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlanGroupsAvailableVlansCreate(context.Background(), id).VLANRequest(vLANRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsAvailableVlansCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlanGroupsAvailableVlansCreate`: []VLAN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsAvailableVlansCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlanGroupsAvailableVlansCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **vLANRequest** | [**[]VLANRequest**](VLANRequest.md) | |
-
-### Return type
-
-[**[]VLAN**](VLAN.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)
-
-
-## IpamVlanGroupsAvailableVlansList
-
-> []AvailableVLAN IpamVlanGroupsAvailableVlansList(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 |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlanGroupsAvailableVlansList(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsAvailableVlansList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlanGroupsAvailableVlansList`: []AvailableVLAN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsAvailableVlansList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlanGroupsAvailableVlansListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**[]AvailableVLAN**](AvailableVLAN.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)
-
-
-## IpamVlanGroupsBulkDestroy
-
-> IpamVlanGroupsBulkDestroy(ctx).VLANGroupRequest(vLANGroupRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- vLANGroupRequest := []openapiclient.VLANGroupRequest{*openapiclient.NewVLANGroupRequest("Name_example", "Slug_example")} // []VLANGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamVlanGroupsBulkDestroy(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlanGroupsBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **vLANGroupRequest** | [**[]VLANGroupRequest**](VLANGroupRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamVlanGroupsBulkPartialUpdate
-
-> []VLANGroup IpamVlanGroupsBulkPartialUpdate(ctx).VLANGroupRequest(vLANGroupRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- vLANGroupRequest := []openapiclient.VLANGroupRequest{*openapiclient.NewVLANGroupRequest("Name_example", "Slug_example")} // []VLANGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlanGroupsBulkPartialUpdate(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlanGroupsBulkPartialUpdate`: []VLANGroup
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlanGroupsBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **vLANGroupRequest** | [**[]VLANGroupRequest**](VLANGroupRequest.md) | |
-
-### Return type
-
-[**[]VLANGroup**](VLANGroup.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)
-
-
-## IpamVlanGroupsBulkUpdate
-
-> []VLANGroup IpamVlanGroupsBulkUpdate(ctx).VLANGroupRequest(vLANGroupRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- vLANGroupRequest := []openapiclient.VLANGroupRequest{*openapiclient.NewVLANGroupRequest("Name_example", "Slug_example")} // []VLANGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlanGroupsBulkUpdate(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlanGroupsBulkUpdate`: []VLANGroup
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlanGroupsBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **vLANGroupRequest** | [**[]VLANGroupRequest**](VLANGroupRequest.md) | |
-
-### Return type
-
-[**[]VLANGroup**](VLANGroup.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)
-
-
-## IpamVlanGroupsCreate
-
-> VLANGroup IpamVlanGroupsCreate(ctx).VLANGroupRequest(vLANGroupRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- vLANGroupRequest := *openapiclient.NewVLANGroupRequest("Name_example", "Slug_example") // VLANGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlanGroupsCreate(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlanGroupsCreate`: VLANGroup
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlanGroupsCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **vLANGroupRequest** | [**VLANGroupRequest**](VLANGroupRequest.md) | |
-
-### Return type
-
-[**VLANGroup**](VLANGroup.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)
-
-
-## IpamVlanGroupsDestroy
-
-> IpamVlanGroupsDestroy(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 VLAN group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamVlanGroupsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this VLAN group. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlanGroupsDestroyRequest 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)
-
-
-## 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()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- cluster := int32(56) // int32 | (optional)
- clustergroup := float32(8.14) // float32 | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- location := int32(56) // int32 | (optional)
- maxVid := []int32{int32(123)} // []int32 | (optional)
- maxVidEmpty := true // bool | (optional)
- maxVidGt := []int32{int32(123)} // []int32 | (optional)
- maxVidGte := []int32{int32(123)} // []int32 | (optional)
- maxVidLt := []int32{int32(123)} // []int32 | (optional)
- maxVidLte := []int32{int32(123)} // []int32 | (optional)
- maxVidN := []int32{int32(123)} // []int32 | (optional)
- minVid := []int32{int32(123)} // []int32 | (optional)
- minVidEmpty := true // bool | (optional)
- minVidGt := []int32{int32(123)} // []int32 | (optional)
- minVidGte := []int32{int32(123)} // []int32 | (optional)
- minVidLt := []int32{int32(123)} // []int32 | (optional)
- minVidLte := []int32{int32(123)} // []int32 | (optional)
- minVidN := []int32{int32(123)} // []int32 | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- 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)
- rack := int32(56) // int32 | (optional)
- region := int32(56) // int32 | (optional)
- scopeId := []int32{int32(123)} // []int32 | (optional)
- scopeIdEmpty := true // bool | (optional)
- scopeIdGt := []int32{int32(123)} // []int32 | (optional)
- scopeIdGte := []int32{int32(123)} // []int32 | (optional)
- scopeIdLt := []int32{int32(123)} // []int32 | (optional)
- scopeIdLte := []int32{int32(123)} // []int32 | (optional)
- scopeIdN := []int32{int32(123)} // []int32 | (optional)
- scopeType := "scopeType_example" // string | (optional)
- scopeTypeN := "scopeTypeN_example" // string | (optional)
- site := int32(56) // int32 | (optional)
- sitegroup := float32(8.14) // float32 | (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Cluster(cluster).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlanGroupsList`: PaginatedVLANGroupList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlanGroupsListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **cluster** | **int32** | |
- **clustergroup** | **float32** | |
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **location** | **int32** | |
- **maxVid** | **[]int32** | |
- **maxVidEmpty** | **bool** | |
- **maxVidGt** | **[]int32** | |
- **maxVidGte** | **[]int32** | |
- **maxVidLt** | **[]int32** | |
- **maxVidLte** | **[]int32** | |
- **maxVidN** | **[]int32** | |
- **minVid** | **[]int32** | |
- **minVidEmpty** | **bool** | |
- **minVidGt** | **[]int32** | |
- **minVidGte** | **[]int32** | |
- **minVidLt** | **[]int32** | |
- **minVidLte** | **[]int32** | |
- **minVidN** | **[]int32** | |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **nameIe** | **[]string** | |
- **nameIew** | **[]string** | |
- **nameIsw** | **[]string** | |
- **nameN** | **[]string** | |
- **nameNic** | **[]string** | |
- **nameNie** | **[]string** | |
- **nameNiew** | **[]string** | |
- **nameNisw** | **[]string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **q** | **string** | Search |
- **rack** | **int32** | |
- **region** | **int32** | |
- **scopeId** | **[]int32** | |
- **scopeIdEmpty** | **bool** | |
- **scopeIdGt** | **[]int32** | |
- **scopeIdGte** | **[]int32** | |
- **scopeIdLt** | **[]int32** | |
- **scopeIdLte** | **[]int32** | |
- **scopeIdN** | **[]int32** | |
- **scopeType** | **string** | |
- **scopeTypeN** | **string** | |
- **site** | **int32** | |
- **sitegroup** | **float32** | |
- **slug** | **[]string** | |
- **slugEmpty** | **bool** | |
- **slugIc** | **[]string** | |
- **slugIe** | **[]string** | |
- **slugIew** | **[]string** | |
- **slugIsw** | **[]string** | |
- **slugN** | **[]string** | |
- **slugNic** | **[]string** | |
- **slugNie** | **[]string** | |
- **slugNiew** | **[]string** | |
- **slugNisw** | **[]string** | |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedVLANGroupList**](PaginatedVLANGroupList.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)
-
-
-## IpamVlanGroupsPartialUpdate
-
-> VLANGroup IpamVlanGroupsPartialUpdate(ctx, id).PatchedVLANGroupRequest(patchedVLANGroupRequest).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 VLAN group.
- patchedVLANGroupRequest := *openapiclient.NewPatchedVLANGroupRequest() // PatchedVLANGroupRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlanGroupsPartialUpdate(context.Background(), id).PatchedVLANGroupRequest(patchedVLANGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlanGroupsPartialUpdate`: VLANGroup
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this VLAN group. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlanGroupsPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedVLANGroupRequest** | [**PatchedVLANGroupRequest**](PatchedVLANGroupRequest.md) | |
-
-### Return type
-
-[**VLANGroup**](VLANGroup.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)
-
-
-## IpamVlanGroupsRetrieve
-
-> VLANGroup IpamVlanGroupsRetrieve(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 VLAN group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlanGroupsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlanGroupsRetrieve`: VLANGroup
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsRetrieve`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this VLAN group. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlanGroupsRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**VLANGroup**](VLANGroup.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)
-
-
-## IpamVlanGroupsUpdate
-
-> VLANGroup IpamVlanGroupsUpdate(ctx, id).VLANGroupRequest(vLANGroupRequest).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 VLAN group.
- vLANGroupRequest := *openapiclient.NewVLANGroupRequest("Name_example", "Slug_example") // VLANGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlanGroupsUpdate(context.Background(), id).VLANGroupRequest(vLANGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlanGroupsUpdate`: VLANGroup
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this VLAN group. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlanGroupsUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **vLANGroupRequest** | [**VLANGroupRequest**](VLANGroupRequest.md) | |
-
-### Return type
-
-[**VLANGroup**](VLANGroup.md)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: application/json
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamVlansBulkDestroy
-
-> IpamVlansBulkDestroy(ctx).VLANRequest(vLANRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- vLANRequest := []openapiclient.VLANRequest{*openapiclient.NewVLANRequest(int32(123), "Name_example")} // []VLANRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamVlansBulkDestroy(context.Background()).VLANRequest(vLANRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlansBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **vLANRequest** | [**[]VLANRequest**](VLANRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamVlansBulkPartialUpdate
-
-> []VLAN IpamVlansBulkPartialUpdate(ctx).VLANRequest(vLANRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- vLANRequest := []openapiclient.VLANRequest{*openapiclient.NewVLANRequest(int32(123), "Name_example")} // []VLANRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlansBulkPartialUpdate(context.Background()).VLANRequest(vLANRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlansBulkPartialUpdate`: []VLAN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlansBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **vLANRequest** | [**[]VLANRequest**](VLANRequest.md) | |
-
-### Return type
-
-[**[]VLAN**](VLAN.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)
-
-
-## IpamVlansBulkUpdate
-
-> []VLAN IpamVlansBulkUpdate(ctx).VLANRequest(vLANRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- vLANRequest := []openapiclient.VLANRequest{*openapiclient.NewVLANRequest(int32(123), "Name_example")} // []VLANRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlansBulkUpdate(context.Background()).VLANRequest(vLANRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlansBulkUpdate`: []VLAN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlansBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **vLANRequest** | [**[]VLANRequest**](VLANRequest.md) | |
-
-### Return type
-
-[**[]VLAN**](VLAN.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)
-
-
-## IpamVlansCreate
-
-> VLAN IpamVlansCreate(ctx).WritableVLANRequest(writableVLANRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableVLANRequest := *openapiclient.NewWritableVLANRequest(int32(123), "Name_example") // WritableVLANRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlansCreate(context.Background()).WritableVLANRequest(writableVLANRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlansCreate`: VLAN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlansCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableVLANRequest** | [**WritableVLANRequest**](WritableVLANRequest.md) | |
-
-### Return type
-
-[**VLAN**](VLAN.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)
-
-
-## IpamVlansDestroy
-
-> IpamVlansDestroy(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 VLAN.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamVlansDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this VLAN. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlansDestroyRequest 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)
-
-
-## IpamVlansList
-
-> PaginatedVLANList IpamVlansList(ctx).AvailableOnDevice(availableOnDevice).AvailableOnVirtualmachine(availableOnVirtualmachine).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vid(vid).VidEmpty(vidEmpty).VidGt(vidGt).VidGte(vidGte).VidLt(vidLt).VidLte(vidLte).VidN(vidN).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- availableOnDevice := "availableOnDevice_example" // string | (optional)
- availableOnVirtualmachine := "availableOnVirtualmachine_example" // string | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- group := []string{"Inner_example"} // []string | Group (optional)
- groupN := []string{"Inner_example"} // []string | Group (optional)
- groupId := []*int32{int32(123)} // []*int32 | Group (ID) (optional)
- groupIdN := []*int32{int32(123)} // []*int32 | Group (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- l2vpn := []*int64{int64(123)} // []*int64 | L2VPN (optional)
- l2vpnN := []*int64{int64(123)} // []*int64 | L2VPN (optional)
- l2vpnId := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
- l2vpnIdN := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
- roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
- site := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
- siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
- status := []string{"Inner_example"} // []string | Operational status of this VLAN (optional)
- statusN := []string{"Inner_example"} // []string | Operational status of this VLAN (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- vid := []int32{int32(123)} // []int32 | (optional)
- vidEmpty := true // bool | (optional)
- vidGt := []int32{int32(123)} // []int32 | (optional)
- vidGte := []int32{int32(123)} // []int32 | (optional)
- vidLt := []int32{int32(123)} // []int32 | (optional)
- vidLte := []int32{int32(123)} // []int32 | (optional)
- vidN := []int32{int32(123)} // []int32 | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlansList(context.Background()).AvailableOnDevice(availableOnDevice).AvailableOnVirtualmachine(availableOnVirtualmachine).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vid(vid).VidEmpty(vidEmpty).VidGt(vidGt).VidGte(vidGte).VidLt(vidLt).VidLte(vidLte).VidN(vidN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlansList`: PaginatedVLANList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlansListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **availableOnDevice** | **string** | |
- **availableOnVirtualmachine** | **string** | |
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **group** | **[]string** | Group |
- **groupN** | **[]string** | Group |
- **groupId** | **[]int32** | Group (ID) |
- **groupIdN** | **[]int32** | Group (ID) |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **l2vpn** | **[]int64** | L2VPN |
- **l2vpnN** | **[]int64** | L2VPN |
- **l2vpnId** | **[]int32** | L2VPN (ID) |
- **l2vpnIdN** | **[]int32** | L2VPN (ID) |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **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 |
- **region** | **[]int32** | Region (slug) |
- **regionN** | **[]int32** | Region (slug) |
- **regionId** | **[]int32** | Region (ID) |
- **regionIdN** | **[]int32** | Region (ID) |
- **role** | **[]string** | Role (slug) |
- **roleN** | **[]string** | Role (slug) |
- **roleId** | **[]int32** | Role (ID) |
- **roleIdN** | **[]int32** | Role (ID) |
- **site** | **[]string** | Site (slug) |
- **siteN** | **[]string** | Site (slug) |
- **siteGroup** | **[]int32** | Site group (slug) |
- **siteGroupN** | **[]int32** | Site group (slug) |
- **siteGroupId** | **[]int32** | Site group (ID) |
- **siteGroupIdN** | **[]int32** | Site group (ID) |
- **siteId** | **[]int32** | Site (ID) |
- **siteIdN** | **[]int32** | Site (ID) |
- **status** | **[]string** | Operational status of this VLAN |
- **statusN** | **[]string** | Operational status of this VLAN |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **tenant** | **[]string** | Tenant (slug) |
- **tenantN** | **[]string** | Tenant (slug) |
- **tenantGroup** | **[]int32** | Tenant Group (slug) |
- **tenantGroupN** | **[]int32** | Tenant Group (slug) |
- **tenantGroupId** | **[]int32** | Tenant Group (ID) |
- **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
- **tenantId** | **[]int32** | Tenant (ID) |
- **tenantIdN** | **[]int32** | Tenant (ID) |
- **updatedByRequest** | **string** | |
- **vid** | **[]int32** | |
- **vidEmpty** | **bool** | |
- **vidGt** | **[]int32** | |
- **vidGte** | **[]int32** | |
- **vidLt** | **[]int32** | |
- **vidLte** | **[]int32** | |
- **vidN** | **[]int32** | |
-
-### Return type
-
-[**PaginatedVLANList**](PaginatedVLANList.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)
-
-
-## IpamVlansPartialUpdate
-
-> VLAN IpamVlansPartialUpdate(ctx, id).PatchedWritableVLANRequest(patchedWritableVLANRequest).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 VLAN.
- patchedWritableVLANRequest := *openapiclient.NewPatchedWritableVLANRequest() // PatchedWritableVLANRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlansPartialUpdate(context.Background(), id).PatchedWritableVLANRequest(patchedWritableVLANRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlansPartialUpdate`: VLAN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this VLAN. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlansPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableVLANRequest** | [**PatchedWritableVLANRequest**](PatchedWritableVLANRequest.md) | |
-
-### Return type
-
-[**VLAN**](VLAN.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)
-
-
-## IpamVlansRetrieve
-
-> VLAN IpamVlansRetrieve(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 VLAN.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlansRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlansRetrieve`: VLAN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansRetrieve`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this VLAN. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlansRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**VLAN**](VLAN.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)
-
-
-## IpamVlansUpdate
-
-> VLAN IpamVlansUpdate(ctx, id).WritableVLANRequest(writableVLANRequest).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 VLAN.
- writableVLANRequest := *openapiclient.NewWritableVLANRequest(int32(123), "Name_example") // WritableVLANRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlansUpdate(context.Background(), id).WritableVLANRequest(writableVLANRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVlansUpdate`: VLAN
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this VLAN. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVlansUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableVLANRequest** | [**WritableVLANRequest**](WritableVLANRequest.md) | |
-
-### Return type
-
-[**VLAN**](VLAN.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)
-
-
-## IpamVrfsBulkDestroy
-
-> IpamVrfsBulkDestroy(ctx).VRFRequest(vRFRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- vRFRequest := []openapiclient.VRFRequest{*openapiclient.NewVRFRequest("Name_example")} // []VRFRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamVrfsBulkDestroy(context.Background()).VRFRequest(vRFRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVrfsBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **vRFRequest** | [**[]VRFRequest**](VRFRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## IpamVrfsBulkPartialUpdate
-
-> []VRF IpamVrfsBulkPartialUpdate(ctx).VRFRequest(vRFRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- vRFRequest := []openapiclient.VRFRequest{*openapiclient.NewVRFRequest("Name_example")} // []VRFRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVrfsBulkPartialUpdate(context.Background()).VRFRequest(vRFRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVrfsBulkPartialUpdate`: []VRF
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVrfsBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **vRFRequest** | [**[]VRFRequest**](VRFRequest.md) | |
-
-### Return type
-
-[**[]VRF**](VRF.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)
-
-
-## IpamVrfsBulkUpdate
-
-> []VRF IpamVrfsBulkUpdate(ctx).VRFRequest(vRFRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- vRFRequest := []openapiclient.VRFRequest{*openapiclient.NewVRFRequest("Name_example")} // []VRFRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVrfsBulkUpdate(context.Background()).VRFRequest(vRFRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVrfsBulkUpdate`: []VRF
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVrfsBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **vRFRequest** | [**[]VRFRequest**](VRFRequest.md) | |
-
-### Return type
-
-[**[]VRF**](VRF.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)
-
-
-## IpamVrfsCreate
-
-> VRF IpamVrfsCreate(ctx).WritableVRFRequest(writableVRFRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableVRFRequest := *openapiclient.NewWritableVRFRequest("Name_example") // WritableVRFRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVrfsCreate(context.Background()).WritableVRFRequest(writableVRFRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVrfsCreate`: VRF
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVrfsCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableVRFRequest** | [**WritableVRFRequest**](WritableVRFRequest.md) | |
-
-### Return type
-
-[**VRF**](VRF.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)
-
-
-## IpamVrfsDestroy
-
-> IpamVrfsDestroy(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 VRF.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IpamAPI.IpamVrfsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 VRF. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVrfsDestroyRequest 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)
-
-
-## IpamVrfsList
-
-> PaginatedVRFList IpamVrfsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EnforceUnique(enforceUnique).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rd(rd).RdEmpty(rdEmpty).RdIc(rdIc).RdIe(rdIe).RdIew(rdIew).RdIsw(rdIsw).RdN(rdN).RdNic(rdNic).RdNie(rdNie).RdNiew(rdNiew).RdNisw(rdNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-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)
- enforceUnique := true // bool | (optional)
- exportTarget := []string{"Inner_example"} // []string | Export target (name) (optional)
- exportTargetN := []string{"Inner_example"} // []string | Export target (name) (optional)
- exportTargetId := []int32{int32(123)} // []int32 | Export target (optional)
- exportTargetIdN := []int32{int32(123)} // []int32 | Export target (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- importTarget := []string{"Inner_example"} // []string | Import target (name) (optional)
- importTargetN := []string{"Inner_example"} // []string | Import target (name) (optional)
- importTargetId := []int32{int32(123)} // []int32 | Import target (optional)
- importTargetIdN := []int32{int32(123)} // []int32 | Import target (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- 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)
- rd := []string{"Inner_example"} // []string | (optional)
- rdEmpty := true // bool | (optional)
- rdIc := []string{"Inner_example"} // []string | (optional)
- rdIe := []string{"Inner_example"} // []string | (optional)
- rdIew := []string{"Inner_example"} // []string | (optional)
- rdIsw := []string{"Inner_example"} // []string | (optional)
- rdN := []string{"Inner_example"} // []string | (optional)
- rdNic := []string{"Inner_example"} // []string | (optional)
- rdNie := []string{"Inner_example"} // []string | (optional)
- rdNiew := []string{"Inner_example"} // []string | (optional)
- rdNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVrfsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EnforceUnique(enforceUnique).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rd(rd).RdEmpty(rdEmpty).RdIc(rdIc).RdIe(rdIe).RdIew(rdIew).RdIsw(rdIsw).RdN(rdN).RdNic(rdNic).RdNie(rdNie).RdNiew(rdNiew).RdNisw(rdNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVrfsList`: PaginatedVRFList
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVrfsListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **enforceUnique** | **bool** | |
- **exportTarget** | **[]string** | Export target (name) |
- **exportTargetN** | **[]string** | Export target (name) |
- **exportTargetId** | **[]int32** | Export target |
- **exportTargetIdN** | **[]int32** | Export target |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **importTarget** | **[]string** | Import target (name) |
- **importTargetN** | **[]string** | Import target (name) |
- **importTargetId** | **[]int32** | Import target |
- **importTargetIdN** | **[]int32** | Import target |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **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 |
- **rd** | **[]string** | |
- **rdEmpty** | **bool** | |
- **rdIc** | **[]string** | |
- **rdIe** | **[]string** | |
- **rdIew** | **[]string** | |
- **rdIsw** | **[]string** | |
- **rdN** | **[]string** | |
- **rdNic** | **[]string** | |
- **rdNie** | **[]string** | |
- **rdNiew** | **[]string** | |
- **rdNisw** | **[]string** | |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **tenant** | **[]string** | Tenant (slug) |
- **tenantN** | **[]string** | Tenant (slug) |
- **tenantGroup** | **[]int32** | Tenant Group (slug) |
- **tenantGroupN** | **[]int32** | Tenant Group (slug) |
- **tenantGroupId** | **[]int32** | Tenant Group (ID) |
- **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
- **tenantId** | **[]int32** | Tenant (ID) |
- **tenantIdN** | **[]int32** | Tenant (ID) |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedVRFList**](PaginatedVRFList.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)
-
-
-## IpamVrfsPartialUpdate
-
-> VRF IpamVrfsPartialUpdate(ctx, id).PatchedWritableVRFRequest(patchedWritableVRFRequest).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 VRF.
- patchedWritableVRFRequest := *openapiclient.NewPatchedWritableVRFRequest() // PatchedWritableVRFRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVrfsPartialUpdate(context.Background(), id).PatchedWritableVRFRequest(patchedWritableVRFRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVrfsPartialUpdate`: VRF
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsPartialUpdate`: %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 VRF. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVrfsPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableVRFRequest** | [**PatchedWritableVRFRequest**](PatchedWritableVRFRequest.md) | |
-
-### Return type
-
-[**VRF**](VRF.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)
-
-
-## IpamVrfsRetrieve
-
-> VRF IpamVrfsRetrieve(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 VRF.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVrfsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVrfsRetrieve`: VRF
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsRetrieve`: %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 VRF. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVrfsRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**VRF**](VRF.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)
-
-
-## IpamVrfsUpdate
-
-> VRF IpamVrfsUpdate(ctx, id).WritableVRFRequest(writableVRFRequest).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 VRF.
- writableVRFRequest := *openapiclient.NewWritableVRFRequest("Name_example") // WritableVRFRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVrfsUpdate(context.Background(), id).WritableVRFRequest(writableVRFRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `IpamVrfsUpdate`: VRF
- fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsUpdate`: %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 VRF. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiIpamVrfsUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableVRFRequest** | [**WritableVRFRequest**](WritableVRFRequest.md) | |
-
-### Return type
-
-[**VRF**](VRF.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)
-
diff --git a/docs/Job.md b/docs/Job.md
index d605cb5959..ae0ae5dbbb 100644
--- a/docs/Job.md
+++ b/docs/Job.md
@@ -17,14 +17,15 @@ Name | Type | Description | Notes
**Started** | Pointer to **NullableTime** | | [optional]
**Completed** | Pointer to **NullableTime** | | [optional]
**User** | [**NestedUser**](NestedUser.md) | | [readonly]
-**Data** | Pointer to **map[string]interface{}** | | [optional]
+**Data** | Pointer to **interface{}** | | [optional]
+**Error** | **string** | | [readonly]
**JobId** | **string** | |
## Methods
### NewJob
-`func NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user NestedUser, jobId string, ) *Job`
+`func NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user NestedUser, error_ string, jobId string, ) *Job`
NewJob instantiates a new Job object
This constructor will assign default values to properties that have it defined,
@@ -376,20 +377,20 @@ SetUser sets User field to given value.
### GetData
-`func (o *Job) GetData() map[string]interface{}`
+`func (o *Job) GetData() interface{}`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *Job) GetDataOk() (*map[string]interface{}, bool)`
+`func (o *Job) GetDataOk() (*interface{}, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetData
-`func (o *Job) SetData(v map[string]interface{})`
+`func (o *Job) SetData(v interface{})`
SetData sets Data field to given value.
@@ -409,6 +410,26 @@ HasData returns a boolean if a field has been set.
`func (o *Job) UnsetData()`
UnsetData ensures that no value is present for Data, not even an explicit nil
+### GetError
+
+`func (o *Job) GetError() string`
+
+GetError returns the Error field if non-nil, zero value otherwise.
+
+### GetErrorOk
+
+`func (o *Job) GetErrorOk() (*string, bool)`
+
+GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetError
+
+`func (o *Job) SetError(v string)`
+
+SetError sets Error field to given value.
+
+
### GetJobId
`func (o *Job) GetJobId() string`
diff --git a/docs/JobStatus.md b/docs/JobStatus.md
index 5d3f97ea6d..bd0b5e7de3 100644
--- a/docs/JobStatus.md
+++ b/docs/JobStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**JobStatusValue**](JobStatusValue.md) | | [optional]
+**Label** | Pointer to [**JobStatusLabel**](JobStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *JobStatus) GetValue() string`
+`func (o *JobStatus) GetValue() JobStatusValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *JobStatus) GetValueOk() (*string, bool)`
+`func (o *JobStatus) GetValueOk() (*JobStatusValue, 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 *JobStatus) SetValue(v string)`
+`func (o *JobStatus) SetValue(v JobStatusValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *JobStatus) GetLabel() string`
+`func (o *JobStatus) GetLabel() JobStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *JobStatus) GetLabelOk() (*string, bool)`
+`func (o *JobStatus) GetLabelOk() (*JobStatusLabel, 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 *JobStatus) SetLabel(v string)`
+`func (o *JobStatus) SetLabel(v JobStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/JobStatusLabel.md b/docs/JobStatusLabel.md
new file mode 100644
index 0000000000..558b2a4506
--- /dev/null
+++ b/docs/JobStatusLabel.md
@@ -0,0 +1,21 @@
+# JobStatusLabel
+
+## Enum
+
+
+* `PENDING` (value: `"Pending"`)
+
+* `SCHEDULED` (value: `"Scheduled"`)
+
+* `RUNNING` (value: `"Running"`)
+
+* `COMPLETED` (value: `"Completed"`)
+
+* `ERRORED` (value: `"Errored"`)
+
+* `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/JobStatusValue.md b/docs/JobStatusValue.md
new file mode 100644
index 0000000000..eef831b0d5
--- /dev/null
+++ b/docs/JobStatusValue.md
@@ -0,0 +1,21 @@
+# JobStatusValue
+
+## Enum
+
+
+* `PENDING` (value: `"pending"`)
+
+* `SCHEDULED` (value: `"scheduled"`)
+
+* `RUNNING` (value: `"running"`)
+
+* `COMPLETED` (value: `"completed"`)
+
+* `ERRORED` (value: `"errored"`)
+
+* `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/JournalEntry.md b/docs/JournalEntry.md
index bcdb13e756..de511cc13b 100644
--- a/docs/JournalEntry.md
+++ b/docs/JournalEntry.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**AssignedObjectType** | **string** | |
**AssignedObjectId** | **int64** | |
-**AssignedObject** | **map[string]interface{}** | | [readonly]
+**AssignedObject** | **interface{}** | | [readonly]
**Created** | **NullableTime** | | [readonly]
**CreatedBy** | Pointer to **NullableInt32** | | [optional]
**Kind** | Pointer to [**JournalEntryKind**](JournalEntryKind.md) | | [optional]
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
### NewJournalEntry
-`func NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, assignedObject map[string]interface{}, created NullableTime, comments string, lastUpdated NullableTime, ) *JournalEntry`
+`func NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime, ) *JournalEntry`
NewJournalEntry instantiates a new JournalEntry object
This constructor will assign default values to properties that have it defined,
@@ -139,20 +139,20 @@ SetAssignedObjectId sets AssignedObjectId field to given value.
### GetAssignedObject
-`func (o *JournalEntry) GetAssignedObject() map[string]interface{}`
+`func (o *JournalEntry) GetAssignedObject() interface{}`
GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise.
### GetAssignedObjectOk
-`func (o *JournalEntry) GetAssignedObjectOk() (*map[string]interface{}, bool)`
+`func (o *JournalEntry) 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 *JournalEntry) SetAssignedObject(v map[string]interface{})`
+`func (o *JournalEntry) SetAssignedObject(v interface{})`
SetAssignedObject sets AssignedObject field to given value.
diff --git a/docs/JournalEntryKind.md b/docs/JournalEntryKind.md
index 635ae67c3c..e3675ac08b 100644
--- a/docs/JournalEntryKind.md
+++ b/docs/JournalEntryKind.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**JournalEntryKindValue**](JournalEntryKindValue.md) | | [optional]
+**Label** | Pointer to [**JournalEntryKindLabel**](JournalEntryKindLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *JournalEntryKind) GetValue() string`
+`func (o *JournalEntryKind) GetValue() JournalEntryKindValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *JournalEntryKind) GetValueOk() (*string, bool)`
+`func (o *JournalEntryKind) GetValueOk() (*JournalEntryKindValue, 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 *JournalEntryKind) SetValue(v string)`
+`func (o *JournalEntryKind) SetValue(v JournalEntryKindValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *JournalEntryKind) GetLabel() string`
+`func (o *JournalEntryKind) GetLabel() JournalEntryKindLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *JournalEntryKind) GetLabelOk() (*string, bool)`
+`func (o *JournalEntryKind) GetLabelOk() (*JournalEntryKindLabel, 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 *JournalEntryKind) SetLabel(v string)`
+`func (o *JournalEntryKind) SetLabel(v JournalEntryKindLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/JournalEntryKindLabel.md b/docs/JournalEntryKindLabel.md
new file mode 100644
index 0000000000..eb265e290c
--- /dev/null
+++ b/docs/JournalEntryKindLabel.md
@@ -0,0 +1,17 @@
+# JournalEntryKindLabel
+
+## Enum
+
+
+* `INFO` (value: `"Info"`)
+
+* `SUCCESS` (value: `"Success"`)
+
+* `WARNING` (value: `"Warning"`)
+
+* `DANGER` (value: `"Danger"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/JournalEntryKindValue.md b/docs/JournalEntryKindValue.md
new file mode 100644
index 0000000000..53bd047c35
--- /dev/null
+++ b/docs/JournalEntryKindValue.md
@@ -0,0 +1,17 @@
+# JournalEntryKindValue
+
+## Enum
+
+
+* `INFO` (value: `"info"`)
+
+* `SUCCESS` (value: `"success"`)
+
+* `WARNING` (value: `"warning"`)
+
+* `DANGER` (value: `"danger"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/JournalEntryRequest.md b/docs/JournalEntryRequest.md
index e75f160a34..b31fde8f7c 100644
--- a/docs/JournalEntryRequest.md
+++ b/docs/JournalEntryRequest.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**AssignedObjectType** | **string** | |
**AssignedObjectId** | **int64** | |
**CreatedBy** | Pointer to **NullableInt32** | | [optional]
-**Kind** | Pointer to **string** | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger | [optional]
+**Kind** | Pointer to [**JournalEntryKindValue**](JournalEntryKindValue.md) | | [optional]
**Comments** | **string** | |
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -108,20 +108,20 @@ HasCreatedBy returns a boolean if a field has been set.
UnsetCreatedBy ensures that no value is present for CreatedBy, not even an explicit nil
### GetKind
-`func (o *JournalEntryRequest) GetKind() string`
+`func (o *JournalEntryRequest) GetKind() JournalEntryKindValue`
GetKind returns the Kind field if non-nil, zero value otherwise.
### GetKindOk
-`func (o *JournalEntryRequest) GetKindOk() (*string, bool)`
+`func (o *JournalEntryRequest) GetKindOk() (*JournalEntryKindValue, bool)`
GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetKind
-`func (o *JournalEntryRequest) SetKind(v string)`
+`func (o *JournalEntryRequest) SetKind(v JournalEntryKindValue)`
SetKind sets Kind field to given value.
diff --git a/docs/L2VPNRequest.md b/docs/L2VPNRequest.md
index 3498c5f83a..f3c92e7b43 100644
--- a/docs/L2VPNRequest.md
+++ b/docs/L2VPNRequest.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Identifier** | Pointer to **NullableInt64** | | [optional]
**Name** | **string** | |
**Slug** | **string** | |
-**Type** | Pointer to **string** | * `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 | [optional]
+**Type** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional]
**ImportTargets** | Pointer to **[]int32** | | [optional]
**ExportTargets** | Pointer to **[]int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -112,20 +112,20 @@ SetSlug sets Slug field to given value.
### GetType
-`func (o *L2VPNRequest) GetType() string`
+`func (o *L2VPNRequest) GetType() L2VPNTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *L2VPNRequest) GetTypeOk() (*string, bool)`
+`func (o *L2VPNRequest) 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 *L2VPNRequest) SetType(v string)`
+`func (o *L2VPNRequest) SetType(v L2VPNTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/L2VPNTermination.md b/docs/L2VPNTermination.md
index dba79b4c8c..e7f63f92bb 100644
--- a/docs/L2VPNTermination.md
+++ b/docs/L2VPNTermination.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
**L2vpn** | [**NestedL2VPN**](NestedL2VPN.md) | |
**AssignedObjectType** | **string** | |
**AssignedObjectId** | **int64** | |
-**AssignedObject** | **map[string]interface{}** | | [readonly]
+**AssignedObject** | **interface{}** | | [readonly]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
### NewL2VPNTermination
-`func NewL2VPNTermination(id int32, url string, display string, l2vpn NestedL2VPN, assignedObjectType string, assignedObjectId int64, assignedObject map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *L2VPNTermination`
+`func NewL2VPNTermination(id int32, url string, display string, l2vpn NestedL2VPN, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, lastUpdated NullableTime, ) *L2VPNTermination`
NewL2VPNTermination instantiates a new L2VPNTermination object
This constructor will assign default values to properties that have it defined,
@@ -157,20 +157,20 @@ SetAssignedObjectId sets AssignedObjectId field to given value.
### GetAssignedObject
-`func (o *L2VPNTermination) GetAssignedObject() map[string]interface{}`
+`func (o *L2VPNTermination) GetAssignedObject() interface{}`
GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise.
### GetAssignedObjectOk
-`func (o *L2VPNTermination) GetAssignedObjectOk() (*map[string]interface{}, bool)`
+`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 map[string]interface{})`
+`func (o *L2VPNTermination) SetAssignedObject(v interface{})`
SetAssignedObject sets AssignedObject field to given value.
diff --git a/docs/L2VPNType.md b/docs/L2VPNType.md
index d51b4425ab..e1a34c35cf 100644
--- a/docs/L2VPNType.md
+++ b/docs/L2VPNType.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `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 | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional]
+**Label** | Pointer to [**L2VPNTypeLabel**](L2VPNTypeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *L2VPNType) GetValue() string`
+`func (o *L2VPNType) GetValue() L2VPNTypeValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *L2VPNType) GetValueOk() (*string, bool)`
+`func (o *L2VPNType) GetValueOk() (*L2VPNTypeValue, bool)`
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValue
-`func (o *L2VPNType) SetValue(v string)`
+`func (o *L2VPNType) SetValue(v L2VPNTypeValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *L2VPNType) GetLabel() string`
+`func (o *L2VPNType) GetLabel() L2VPNTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *L2VPNType) GetLabelOk() (*string, bool)`
+`func (o *L2VPNType) GetLabelOk() (*L2VPNTypeLabel, bool)`
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLabel
-`func (o *L2VPNType) SetLabel(v string)`
+`func (o *L2VPNType) SetLabel(v L2VPNTypeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/L2VPNTypeLabel.md b/docs/L2VPNTypeLabel.md
new file mode 100644
index 0000000000..52eb52820d
--- /dev/null
+++ b/docs/L2VPNTypeLabel.md
@@ -0,0 +1,33 @@
+# L2VPNTypeLabel
+
+## Enum
+
+
+* `VPWS` (value: `"VPWS"`)
+
+* `VPLS` (value: `"VPLS"`)
+
+* `VXLAN` (value: `"VXLAN"`)
+
+* `VXLAN_EVPN` (value: `"VXLAN-EVPN"`)
+
+* `MPLS_EVPN` (value: `"MPLS EVPN"`)
+
+* `PBB_EVPN` (value: `"PBB EVPN"`)
+
+* `EPL` (value: `"EPL"`)
+
+* `EVPL` (value: `"EVPL"`)
+
+* `ETHERNET_PRIVATE_LAN` (value: `"Ethernet Private LAN"`)
+
+* `ETHERNET_VIRTUAL_PRIVATE_LAN` (value: `"Ethernet Virtual Private LAN"`)
+
+* `ETHERNET_PRIVATE_TREE` (value: `"Ethernet Private Tree"`)
+
+* `ETHERNET_VIRTUAL_PRIVATE_TREE` (value: `"Ethernet Virtual Private Tree"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/L2VPNTypeValue.md b/docs/L2VPNTypeValue.md
new file mode 100644
index 0000000000..515c2ccafe
--- /dev/null
+++ b/docs/L2VPNTypeValue.md
@@ -0,0 +1,33 @@
+# L2VPNTypeValue
+
+## Enum
+
+
+* `VPWS` (value: `"vpws"`)
+
+* `VPLS` (value: `"vpls"`)
+
+* `VXLAN` (value: `"vxlan"`)
+
+* `VXLAN_EVPN` (value: `"vxlan-evpn"`)
+
+* `MPLS_EVPN` (value: `"mpls-evpn"`)
+
+* `PBB_EVPN` (value: `"pbb-evpn"`)
+
+* `EPL` (value: `"epl"`)
+
+* `EVPL` (value: `"evpl"`)
+
+* `EP_LAN` (value: `"ep-lan"`)
+
+* `EVP_LAN` (value: `"evp-lan"`)
+
+* `EP_TREE` (value: `"ep-tree"`)
+
+* `EVP_TREE` (value: `"evp-tree"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/LocationRequest.md b/docs/LocationRequest.md
index 78420d5b61..c47dcd5fdd 100644
--- a/docs/LocationRequest.md
+++ b/docs/LocationRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Slug** | **string** | |
**Site** | [**NestedSiteRequest**](NestedSiteRequest.md) | |
**Parent** | Pointer to [**NullableNestedLocationRequest**](NestedLocationRequest.md) | | [optional]
-**Status** | Pointer to **string** | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | [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]
@@ -130,20 +130,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 *LocationRequest) GetStatus() string`
+`func (o *LocationRequest) GetStatus() LocationStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *LocationRequest) GetStatusOk() (*string, bool)`
+`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 string)`
+`func (o *LocationRequest) SetStatus(v LocationStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/LocationStatus.md b/docs/LocationStatus.md
index f697376636..817680af33 100644
--- a/docs/LocationStatus.md
+++ b/docs/LocationStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional]
+**Label** | Pointer to [**LocationStatusLabel**](LocationStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *LocationStatus) GetValue() string`
+`func (o *LocationStatus) GetValue() LocationStatusValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *LocationStatus) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *LocationStatus) SetValue(v LocationStatusValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *LocationStatus) GetLabel() string`
+`func (o *LocationStatus) GetLabel() LocationStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *LocationStatus) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *LocationStatus) SetLabel(v LocationStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/LocationStatusLabel.md b/docs/LocationStatusLabel.md
new file mode 100644
index 0000000000..611c91d2be
--- /dev/null
+++ b/docs/LocationStatusLabel.md
@@ -0,0 +1,19 @@
+# LocationStatusLabel
+
+## Enum
+
+
+* `PLANNED` (value: `"Planned"`)
+
+* `STAGING` (value: `"Staging"`)
+
+* `ACTIVE` (value: `"Active"`)
+
+* `DECOMMISSIONING` (value: `"Decommissioning"`)
+
+* `RETIRED` (value: `"Retired"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/LocationStatusValue.md b/docs/LocationStatusValue.md
new file mode 100644
index 0000000000..37cbbe607b
--- /dev/null
+++ b/docs/LocationStatusValue.md
@@ -0,0 +1,19 @@
+# LocationStatusValue
+
+## 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/ModuleRequest.md b/docs/ModuleRequest.md
index 532f6a229c..095a674823 100644
--- a/docs/ModuleRequest.md
+++ b/docs/ModuleRequest.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Device** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
**ModuleBay** | [**NestedModuleBayRequest**](NestedModuleBayRequest.md) | |
**ModuleType** | [**NestedModuleTypeRequest**](NestedModuleTypeRequest.md) | |
-**Status** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | [optional]
+**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]
@@ -96,20 +96,20 @@ SetModuleType sets ModuleType field to given value.
### GetStatus
-`func (o *ModuleRequest) GetStatus() string`
+`func (o *ModuleRequest) GetStatus() ModuleStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *ModuleRequest) GetStatusOk() (*string, bool)`
+`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 string)`
+`func (o *ModuleRequest) SetStatus(v ModuleStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/ModuleStatus.md b/docs/ModuleStatus.md
index 285f1c9ca2..5ad5a6dedc 100644
--- a/docs/ModuleStatus.md
+++ b/docs/ModuleStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional]
+**Label** | Pointer to [**ModuleStatusLabel**](ModuleStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *ModuleStatus) GetValue() string`
+`func (o *ModuleStatus) GetValue() ModuleStatusValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *ModuleStatus) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *ModuleStatus) SetValue(v ModuleStatusValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *ModuleStatus) GetLabel() string`
+`func (o *ModuleStatus) GetLabel() ModuleStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *ModuleStatus) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *ModuleStatus) SetLabel(v ModuleStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/ModuleStatusLabel.md b/docs/ModuleStatusLabel.md
new file mode 100644
index 0000000000..3673c61f21
--- /dev/null
+++ b/docs/ModuleStatusLabel.md
@@ -0,0 +1,21 @@
+# ModuleStatusLabel
+
+## Enum
+
+
+* `OFFLINE` (value: `"Offline"`)
+
+* `ACTIVE` (value: `"Active"`)
+
+* `PLANNED` (value: `"Planned"`)
+
+* `STAGED` (value: `"Staged"`)
+
+* `FAILED` (value: `"Failed"`)
+
+* `DECOMMISSIONING` (value: `"Decommissioning"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ModuleStatusValue.md b/docs/ModuleStatusValue.md
new file mode 100644
index 0000000000..6e8631fd7d
--- /dev/null
+++ b/docs/ModuleStatusValue.md
@@ -0,0 +1,21 @@
+# ModuleStatusValue
+
+## Enum
+
+
+* `OFFLINE` (value: `"offline"`)
+
+* `ACTIVE` (value: `"active"`)
+
+* `PLANNED` (value: `"planned"`)
+
+* `STAGED` (value: `"staged"`)
+
+* `FAILED` (value: `"failed"`)
+
+* `DECOMMISSIONING` (value: `"decommissioning"`)
+
+
+[[Back to Model list]](../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 aea031522f..ddac1bba9c 100644
--- a/docs/ModuleTypeRequest.md
+++ b/docs/ModuleTypeRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Model** | **string** | |
**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional]
**Weight** | Pointer to **NullableFloat64** | | [optional]
-**WeightUnit** | Pointer to **NullableString** | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | [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]
@@ -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 *ModuleTypeRequest) GetWeightUnit() string`
+`func (o *ModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *ModuleTypeRequest) GetWeightUnitOk() (*string, bool)`
+`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 string)`
+`func (o *ModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)`
SetWeightUnit sets WeightUnit field to given value.
diff --git a/docs/NestedFHRPGroup.md b/docs/NestedFHRPGroup.md
index 5a137450c7..10e7feb186 100644
--- a/docs/NestedFHRPGroup.md
+++ b/docs/NestedFHRPGroup.md
@@ -7,14 +7,14 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Protocol** | **string** | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other |
+**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | |
**GroupId** | **int32** | |
## Methods
### NewNestedFHRPGroup
-`func NewNestedFHRPGroup(id int32, url string, display string, protocol string, groupId int32, ) *NestedFHRPGroup`
+`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,
@@ -91,20 +91,20 @@ SetDisplay sets Display field to given value.
### GetProtocol
-`func (o *NestedFHRPGroup) GetProtocol() string`
+`func (o *NestedFHRPGroup) GetProtocol() FHRPGroupProtocol`
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
### GetProtocolOk
-`func (o *NestedFHRPGroup) GetProtocolOk() (*string, bool)`
+`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 string)`
+`func (o *NestedFHRPGroup) SetProtocol(v FHRPGroupProtocol)`
SetProtocol sets Protocol field to given value.
diff --git a/docs/NestedFHRPGroupRequest.md b/docs/NestedFHRPGroupRequest.md
index 7add30ea14..e6841ac0c8 100644
--- a/docs/NestedFHRPGroupRequest.md
+++ b/docs/NestedFHRPGroupRequest.md
@@ -4,14 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Protocol** | **string** | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other |
+**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | |
**GroupId** | **int32** | |
## Methods
### NewNestedFHRPGroupRequest
-`func NewNestedFHRPGroupRequest(protocol string, groupId int32, ) *NestedFHRPGroupRequest`
+`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,
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetProtocol
-`func (o *NestedFHRPGroupRequest) GetProtocol() string`
+`func (o *NestedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol`
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
### GetProtocolOk
-`func (o *NestedFHRPGroupRequest) GetProtocolOk() (*string, bool)`
+`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 string)`
+`func (o *NestedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)`
SetProtocol sets Protocol field to given value.
diff --git a/docs/NestedIKEPolicy.md b/docs/NestedIKEPolicy.md
new file mode 100644
index 0000000000..d95a55b372
--- /dev/null
+++ b/docs/NestedIKEPolicy.md
@@ -0,0 +1,114 @@
+# 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
new file mode 100644
index 0000000000..54714b7f3f
--- /dev/null
+++ b/docs/NestedIKEPolicyRequest.md
@@ -0,0 +1,51 @@
+# 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/NestedIPSecPolicy.md b/docs/NestedIPSecPolicy.md
new file mode 100644
index 0000000000..c50867cb64
--- /dev/null
+++ b/docs/NestedIPSecPolicy.md
@@ -0,0 +1,114 @@
+# 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
new file mode 100644
index 0000000000..c74c084c1c
--- /dev/null
+++ b/docs/NestedIPSecPolicyRequest.md
@@ -0,0 +1,51 @@
+# 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
new file mode 100644
index 0000000000..ebf3727295
--- /dev/null
+++ b/docs/NestedIPSecProfile.md
@@ -0,0 +1,114 @@
+# 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
new file mode 100644
index 0000000000..7ddf4a1c3e
--- /dev/null
+++ b/docs/NestedIPSecProfileRequest.md
@@ -0,0 +1,51 @@
+# 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/NestedL2VPN.md b/docs/NestedL2VPN.md
index df2ac3495e..d38167df08 100644
--- a/docs/NestedL2VPN.md
+++ b/docs/NestedL2VPN.md
@@ -10,13 +10,13 @@ Name | Type | Description | Notes
**Identifier** | Pointer to **NullableInt64** | | [optional]
**Name** | **string** | |
**Slug** | **string** | |
-**Type** | **string** | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree |
+**Type** | [**L2VPNTypeValue**](L2VPNTypeValue.md) | |
## Methods
### NewNestedL2VPN
-`func NewNestedL2VPN(id int32, url string, display string, name string, slug string, type_ string, ) *NestedL2VPN`
+`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,
@@ -168,20 +168,20 @@ SetSlug sets Slug field to given value.
### GetType
-`func (o *NestedL2VPN) GetType() string`
+`func (o *NestedL2VPN) GetType() L2VPNTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *NestedL2VPN) GetTypeOk() (*string, bool)`
+`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 string)`
+`func (o *NestedL2VPN) SetType(v L2VPNTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/NestedL2VPNRequest.md b/docs/NestedL2VPNRequest.md
index 6fbf1a8b12..5b6ba55749 100644
--- a/docs/NestedL2VPNRequest.md
+++ b/docs/NestedL2VPNRequest.md
@@ -7,13 +7,13 @@ Name | Type | Description | Notes
**Identifier** | Pointer to **NullableInt64** | | [optional]
**Name** | **string** | |
**Slug** | **string** | |
-**Type** | **string** | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree |
+**Type** | [**L2VPNTypeValue**](L2VPNTypeValue.md) | |
## Methods
### NewNestedL2VPNRequest
-`func NewNestedL2VPNRequest(name string, slug string, type_ string, ) *NestedL2VPNRequest`
+`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,
@@ -105,20 +105,20 @@ SetSlug sets Slug field to given value.
### GetType
-`func (o *NestedL2VPNRequest) GetType() string`
+`func (o *NestedL2VPNRequest) GetType() L2VPNTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *NestedL2VPNRequest) GetTypeOk() (*string, bool)`
+`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 string)`
+`func (o *NestedL2VPNRequest) SetType(v L2VPNTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/NestedTunnel.md b/docs/NestedTunnel.md
new file mode 100644
index 0000000000..95004b61ee
--- /dev/null
+++ b/docs/NestedTunnel.md
@@ -0,0 +1,114 @@
+# 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
new file mode 100644
index 0000000000..db336dbf46
--- /dev/null
+++ b/docs/NestedTunnelGroup.md
@@ -0,0 +1,135 @@
+# 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
new file mode 100644
index 0000000000..8012588f60
--- /dev/null
+++ b/docs/NestedTunnelGroupRequest.md
@@ -0,0 +1,72 @@
+# 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
new file mode 100644
index 0000000000..889ececbf5
--- /dev/null
+++ b/docs/NestedTunnelRequest.md
@@ -0,0 +1,51 @@
+# 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/ObjectChange.md b/docs/ObjectChange.md
index 0f8763f76d..005c506e08 100644
--- a/docs/ObjectChange.md
+++ b/docs/ObjectChange.md
@@ -14,15 +14,15 @@ Name | Type | Description | Notes
**Action** | [**ObjectChangeAction**](ObjectChangeAction.md) | |
**ChangedObjectType** | **string** | | [readonly]
**ChangedObjectId** | **int64** | |
-**ChangedObject** | **map[string]interface{}** | | [readonly]
-**PrechangeData** | **map[string]interface{}** | | [readonly]
-**PostchangeData** | **map[string]interface{}** | | [readonly]
+**ChangedObject** | **interface{}** | | [readonly]
+**PrechangeData** | **interface{}** | | [readonly]
+**PostchangeData** | **interface{}** | | [readonly]
## Methods
### 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 map[string]interface{}, prechangeData map[string]interface{}, postchangeData map[string]interface{}, ) *ObjectChange`
+`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`
NewObjectChange instantiates a new ObjectChange object
This constructor will assign default values to properties that have it defined,
@@ -239,20 +239,20 @@ SetChangedObjectId sets ChangedObjectId field to given value.
### GetChangedObject
-`func (o *ObjectChange) GetChangedObject() map[string]interface{}`
+`func (o *ObjectChange) GetChangedObject() interface{}`
GetChangedObject returns the ChangedObject field if non-nil, zero value otherwise.
### GetChangedObjectOk
-`func (o *ObjectChange) GetChangedObjectOk() (*map[string]interface{}, bool)`
+`func (o *ObjectChange) GetChangedObjectOk() (*interface{}, bool)`
GetChangedObjectOk returns a tuple with the ChangedObject field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetChangedObject
-`func (o *ObjectChange) SetChangedObject(v map[string]interface{})`
+`func (o *ObjectChange) SetChangedObject(v interface{})`
SetChangedObject sets ChangedObject field to given value.
@@ -269,20 +269,20 @@ SetChangedObject sets ChangedObject field to given value.
UnsetChangedObject ensures that no value is present for ChangedObject, not even an explicit nil
### GetPrechangeData
-`func (o *ObjectChange) GetPrechangeData() map[string]interface{}`
+`func (o *ObjectChange) GetPrechangeData() interface{}`
GetPrechangeData returns the PrechangeData field if non-nil, zero value otherwise.
### GetPrechangeDataOk
-`func (o *ObjectChange) GetPrechangeDataOk() (*map[string]interface{}, bool)`
+`func (o *ObjectChange) GetPrechangeDataOk() (*interface{}, bool)`
GetPrechangeDataOk returns a tuple with the PrechangeData field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrechangeData
-`func (o *ObjectChange) SetPrechangeData(v map[string]interface{})`
+`func (o *ObjectChange) SetPrechangeData(v interface{})`
SetPrechangeData sets PrechangeData field to given value.
@@ -299,20 +299,20 @@ SetPrechangeData sets PrechangeData field to given value.
UnsetPrechangeData ensures that no value is present for PrechangeData, not even an explicit nil
### GetPostchangeData
-`func (o *ObjectChange) GetPostchangeData() map[string]interface{}`
+`func (o *ObjectChange) GetPostchangeData() interface{}`
GetPostchangeData returns the PostchangeData field if non-nil, zero value otherwise.
### GetPostchangeDataOk
-`func (o *ObjectChange) GetPostchangeDataOk() (*map[string]interface{}, bool)`
+`func (o *ObjectChange) GetPostchangeDataOk() (*interface{}, bool)`
GetPostchangeDataOk returns a tuple with the PostchangeData field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPostchangeData
-`func (o *ObjectChange) SetPostchangeData(v map[string]interface{})`
+`func (o *ObjectChange) SetPostchangeData(v interface{})`
SetPostchangeData sets PostchangeData field to given value.
diff --git a/docs/ObjectChangeAction.md b/docs/ObjectChangeAction.md
index cb275ef0e3..3c5c9956e7 100644
--- a/docs/ObjectChangeAction.md
+++ b/docs/ObjectChangeAction.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `create` - Created * `update` - Updated * `delete` - Deleted | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**ObjectChangeActionValue**](ObjectChangeActionValue.md) | | [optional]
+**Label** | Pointer to [**ObjectChangeActionLabel**](ObjectChangeActionLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *ObjectChangeAction) GetValue() string`
+`func (o *ObjectChangeAction) GetValue() ObjectChangeActionValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *ObjectChangeAction) GetValueOk() (*string, bool)`
+`func (o *ObjectChangeAction) GetValueOk() (*ObjectChangeActionValue, 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 *ObjectChangeAction) SetValue(v string)`
+`func (o *ObjectChangeAction) SetValue(v ObjectChangeActionValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *ObjectChangeAction) GetLabel() string`
+`func (o *ObjectChangeAction) GetLabel() ObjectChangeActionLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *ObjectChangeAction) GetLabelOk() (*string, bool)`
+`func (o *ObjectChangeAction) GetLabelOk() (*ObjectChangeActionLabel, 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 *ObjectChangeAction) SetLabel(v string)`
+`func (o *ObjectChangeAction) SetLabel(v ObjectChangeActionLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/ObjectChangeActionLabel.md b/docs/ObjectChangeActionLabel.md
new file mode 100644
index 0000000000..b1a4a59d10
--- /dev/null
+++ b/docs/ObjectChangeActionLabel.md
@@ -0,0 +1,15 @@
+# ObjectChangeActionLabel
+
+## Enum
+
+
+* `CREATED` (value: `"Created"`)
+
+* `UPDATED` (value: `"Updated"`)
+
+* `DELETED` (value: `"Deleted"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ObjectChangeActionValue.md b/docs/ObjectChangeActionValue.md
new file mode 100644
index 0000000000..3031dfede3
--- /dev/null
+++ b/docs/ObjectChangeActionValue.md
@@ -0,0 +1,15 @@
+# ObjectChangeActionValue
+
+## Enum
+
+
+* `CREATE` (value: `"create"`)
+
+* `UPDATE` (value: `"update"`)
+
+* `DELETE` (value: `"delete"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ObjectPermission.md b/docs/ObjectPermission.md
index 6364c1491e..c75369cb84 100644
--- a/docs/ObjectPermission.md
+++ b/docs/ObjectPermission.md
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
**Groups** | Pointer to **[]int32** | | [optional]
**Users** | Pointer to **[]int32** | | [optional]
**Actions** | **[]string** | The list of actions granted by this permission |
-**Constraints** | Pointer to **map[string]interface{}** | Queryset filter matching the applicable objects of the selected type(s) | [optional]
+**Constraints** | Pointer to **interface{}** | Queryset filter matching the applicable objects of the selected type(s) | [optional]
## Methods
@@ -257,20 +257,20 @@ SetActions sets Actions field to given value.
### GetConstraints
-`func (o *ObjectPermission) GetConstraints() map[string]interface{}`
+`func (o *ObjectPermission) GetConstraints() interface{}`
GetConstraints returns the Constraints field if non-nil, zero value otherwise.
### GetConstraintsOk
-`func (o *ObjectPermission) GetConstraintsOk() (*map[string]interface{}, bool)`
+`func (o *ObjectPermission) 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 *ObjectPermission) SetConstraints(v map[string]interface{})`
+`func (o *ObjectPermission) SetConstraints(v interface{})`
SetConstraints sets Constraints field to given value.
diff --git a/docs/ObjectPermissionRequest.md b/docs/ObjectPermissionRequest.md
index a32f2b0204..844d8d443f 100644
--- a/docs/ObjectPermissionRequest.md
+++ b/docs/ObjectPermissionRequest.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**Groups** | Pointer to **[]int32** | | [optional]
**Users** | Pointer to **[]int32** | | [optional]
**Actions** | **[]string** | The list of actions granted by this permission |
-**Constraints** | Pointer to **map[string]interface{}** | Queryset filter matching the applicable objects of the selected type(s) | [optional]
+**Constraints** | Pointer to **interface{}** | Queryset filter matching the applicable objects of the selected type(s) | [optional]
## Methods
@@ -194,20 +194,20 @@ SetActions sets Actions field to given value.
### GetConstraints
-`func (o *ObjectPermissionRequest) GetConstraints() map[string]interface{}`
+`func (o *ObjectPermissionRequest) GetConstraints() interface{}`
GetConstraints returns the Constraints field if non-nil, zero value otherwise.
### GetConstraintsOk
-`func (o *ObjectPermissionRequest) GetConstraintsOk() (*map[string]interface{}, bool)`
+`func (o *ObjectPermissionRequest) 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 *ObjectPermissionRequest) SetConstraints(v map[string]interface{})`
+`func (o *ObjectPermissionRequest) SetConstraints(v interface{})`
SetConstraints sets Constraints field to given value.
diff --git a/docs/PaginatedEventRuleList.md b/docs/PaginatedEventRuleList.md
new file mode 100644
index 0000000000..d08c1a1ba8
--- /dev/null
+++ b/docs/PaginatedEventRuleList.md
@@ -0,0 +1,154 @@
+# PaginatedEventRuleList
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Count** | Pointer to **int32** | | [optional]
+**Next** | Pointer to **NullableString** | | [optional]
+**Previous** | Pointer to **NullableString** | | [optional]
+**Results** | Pointer to [**[]EventRule**](EventRule.md) | | [optional]
+
+## Methods
+
+### NewPaginatedEventRuleList
+
+`func NewPaginatedEventRuleList() *PaginatedEventRuleList`
+
+NewPaginatedEventRuleList instantiates a new PaginatedEventRuleList object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPaginatedEventRuleListWithDefaults
+
+`func NewPaginatedEventRuleListWithDefaults() *PaginatedEventRuleList`
+
+NewPaginatedEventRuleListWithDefaults instantiates a new PaginatedEventRuleList object
+This 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 *PaginatedEventRuleList) GetCount() int32`
+
+GetCount returns the Count field if non-nil, zero value otherwise.
+
+### GetCountOk
+
+`func (o *PaginatedEventRuleList) 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 *PaginatedEventRuleList) SetCount(v int32)`
+
+SetCount sets Count field to given value.
+
+### HasCount
+
+`func (o *PaginatedEventRuleList) HasCount() bool`
+
+HasCount returns a boolean if a field has been set.
+
+### GetNext
+
+`func (o *PaginatedEventRuleList) GetNext() string`
+
+GetNext returns the Next field if non-nil, zero value otherwise.
+
+### GetNextOk
+
+`func (o *PaginatedEventRuleList) 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 *PaginatedEventRuleList) SetNext(v string)`
+
+SetNext sets Next field to given value.
+
+### HasNext
+
+`func (o *PaginatedEventRuleList) HasNext() bool`
+
+HasNext returns a boolean if a field has been set.
+
+### SetNextNil
+
+`func (o *PaginatedEventRuleList) SetNextNil(b bool)`
+
+ SetNextNil sets the value for Next to be an explicit nil
+
+### UnsetNext
+`func (o *PaginatedEventRuleList) UnsetNext()`
+
+UnsetNext ensures that no value is present for Next, not even an explicit nil
+### GetPrevious
+
+`func (o *PaginatedEventRuleList) GetPrevious() string`
+
+GetPrevious returns the Previous field if non-nil, zero value otherwise.
+
+### GetPreviousOk
+
+`func (o *PaginatedEventRuleList) 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 *PaginatedEventRuleList) SetPrevious(v string)`
+
+SetPrevious sets Previous field to given value.
+
+### HasPrevious
+
+`func (o *PaginatedEventRuleList) HasPrevious() bool`
+
+HasPrevious returns a boolean if a field has been set.
+
+### SetPreviousNil
+
+`func (o *PaginatedEventRuleList) SetPreviousNil(b bool)`
+
+ SetPreviousNil sets the value for Previous to be an explicit nil
+
+### UnsetPrevious
+`func (o *PaginatedEventRuleList) UnsetPrevious()`
+
+UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+### GetResults
+
+`func (o *PaginatedEventRuleList) GetResults() []EventRule`
+
+GetResults returns the Results field if non-nil, zero value otherwise.
+
+### GetResultsOk
+
+`func (o *PaginatedEventRuleList) GetResultsOk() (*[]EventRule, 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 *PaginatedEventRuleList) SetResults(v []EventRule)`
+
+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/PaginatedIKEPolicyList.md b/docs/PaginatedIKEPolicyList.md
new file mode 100644
index 0000000000..c37731c405
--- /dev/null
+++ b/docs/PaginatedIKEPolicyList.md
@@ -0,0 +1,154 @@
+# PaginatedIKEPolicyList
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Count** | Pointer to **int32** | | [optional]
+**Next** | Pointer to **NullableString** | | [optional]
+**Previous** | Pointer to **NullableString** | | [optional]
+**Results** | Pointer to [**[]IKEPolicy**](IKEPolicy.md) | | [optional]
+
+## Methods
+
+### NewPaginatedIKEPolicyList
+
+`func NewPaginatedIKEPolicyList() *PaginatedIKEPolicyList`
+
+NewPaginatedIKEPolicyList instantiates a new PaginatedIKEPolicyList object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPaginatedIKEPolicyListWithDefaults
+
+`func NewPaginatedIKEPolicyListWithDefaults() *PaginatedIKEPolicyList`
+
+NewPaginatedIKEPolicyListWithDefaults instantiates a new PaginatedIKEPolicyList object
+This 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 *PaginatedIKEPolicyList) GetCount() int32`
+
+GetCount returns the Count field if non-nil, zero value otherwise.
+
+### GetCountOk
+
+`func (o *PaginatedIKEPolicyList) 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 *PaginatedIKEPolicyList) SetCount(v int32)`
+
+SetCount sets Count field to given value.
+
+### HasCount
+
+`func (o *PaginatedIKEPolicyList) HasCount() bool`
+
+HasCount returns a boolean if a field has been set.
+
+### GetNext
+
+`func (o *PaginatedIKEPolicyList) GetNext() string`
+
+GetNext returns the Next field if non-nil, zero value otherwise.
+
+### GetNextOk
+
+`func (o *PaginatedIKEPolicyList) 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 *PaginatedIKEPolicyList) SetNext(v string)`
+
+SetNext sets Next field to given value.
+
+### HasNext
+
+`func (o *PaginatedIKEPolicyList) HasNext() bool`
+
+HasNext returns a boolean if a field has been set.
+
+### SetNextNil
+
+`func (o *PaginatedIKEPolicyList) SetNextNil(b bool)`
+
+ SetNextNil sets the value for Next to be an explicit nil
+
+### UnsetNext
+`func (o *PaginatedIKEPolicyList) UnsetNext()`
+
+UnsetNext ensures that no value is present for Next, not even an explicit nil
+### GetPrevious
+
+`func (o *PaginatedIKEPolicyList) GetPrevious() string`
+
+GetPrevious returns the Previous field if non-nil, zero value otherwise.
+
+### GetPreviousOk
+
+`func (o *PaginatedIKEPolicyList) 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 *PaginatedIKEPolicyList) SetPrevious(v string)`
+
+SetPrevious sets Previous field to given value.
+
+### HasPrevious
+
+`func (o *PaginatedIKEPolicyList) HasPrevious() bool`
+
+HasPrevious returns a boolean if a field has been set.
+
+### SetPreviousNil
+
+`func (o *PaginatedIKEPolicyList) SetPreviousNil(b bool)`
+
+ SetPreviousNil sets the value for Previous to be an explicit nil
+
+### UnsetPrevious
+`func (o *PaginatedIKEPolicyList) UnsetPrevious()`
+
+UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+### GetResults
+
+`func (o *PaginatedIKEPolicyList) GetResults() []IKEPolicy`
+
+GetResults returns the Results field if non-nil, zero value otherwise.
+
+### GetResultsOk
+
+`func (o *PaginatedIKEPolicyList) GetResultsOk() (*[]IKEPolicy, 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 *PaginatedIKEPolicyList) SetResults(v []IKEPolicy)`
+
+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
new file mode 100644
index 0000000000..c8ae2696e5
--- /dev/null
+++ b/docs/PaginatedIKEProposalList.md
@@ -0,0 +1,154 @@
+# PaginatedIKEProposalList
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Count** | Pointer to **int32** | | [optional]
+**Next** | Pointer to **NullableString** | | [optional]
+**Previous** | Pointer to **NullableString** | | [optional]
+**Results** | Pointer to [**[]IKEProposal**](IKEProposal.md) | | [optional]
+
+## Methods
+
+### NewPaginatedIKEProposalList
+
+`func NewPaginatedIKEProposalList() *PaginatedIKEProposalList`
+
+NewPaginatedIKEProposalList instantiates a new PaginatedIKEProposalList object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPaginatedIKEProposalListWithDefaults
+
+`func NewPaginatedIKEProposalListWithDefaults() *PaginatedIKEProposalList`
+
+NewPaginatedIKEProposalListWithDefaults instantiates a new PaginatedIKEProposalList object
+This 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 *PaginatedIKEProposalList) GetCount() int32`
+
+GetCount returns the Count field if non-nil, zero value otherwise.
+
+### GetCountOk
+
+`func (o *PaginatedIKEProposalList) 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 *PaginatedIKEProposalList) SetCount(v int32)`
+
+SetCount sets Count field to given value.
+
+### HasCount
+
+`func (o *PaginatedIKEProposalList) HasCount() bool`
+
+HasCount returns a boolean if a field has been set.
+
+### GetNext
+
+`func (o *PaginatedIKEProposalList) GetNext() string`
+
+GetNext returns the Next field if non-nil, zero value otherwise.
+
+### GetNextOk
+
+`func (o *PaginatedIKEProposalList) 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 *PaginatedIKEProposalList) SetNext(v string)`
+
+SetNext sets Next field to given value.
+
+### HasNext
+
+`func (o *PaginatedIKEProposalList) HasNext() bool`
+
+HasNext returns a boolean if a field has been set.
+
+### SetNextNil
+
+`func (o *PaginatedIKEProposalList) SetNextNil(b bool)`
+
+ SetNextNil sets the value for Next to be an explicit nil
+
+### UnsetNext
+`func (o *PaginatedIKEProposalList) UnsetNext()`
+
+UnsetNext ensures that no value is present for Next, not even an explicit nil
+### GetPrevious
+
+`func (o *PaginatedIKEProposalList) GetPrevious() string`
+
+GetPrevious returns the Previous field if non-nil, zero value otherwise.
+
+### GetPreviousOk
+
+`func (o *PaginatedIKEProposalList) 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 *PaginatedIKEProposalList) SetPrevious(v string)`
+
+SetPrevious sets Previous field to given value.
+
+### HasPrevious
+
+`func (o *PaginatedIKEProposalList) HasPrevious() bool`
+
+HasPrevious returns a boolean if a field has been set.
+
+### SetPreviousNil
+
+`func (o *PaginatedIKEProposalList) SetPreviousNil(b bool)`
+
+ SetPreviousNil sets the value for Previous to be an explicit nil
+
+### UnsetPrevious
+`func (o *PaginatedIKEProposalList) UnsetPrevious()`
+
+UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+### GetResults
+
+`func (o *PaginatedIKEProposalList) GetResults() []IKEProposal`
+
+GetResults returns the Results field if non-nil, zero value otherwise.
+
+### GetResultsOk
+
+`func (o *PaginatedIKEProposalList) GetResultsOk() (*[]IKEProposal, 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 *PaginatedIKEProposalList) SetResults(v []IKEProposal)`
+
+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/PaginatedIPSecPolicyList.md b/docs/PaginatedIPSecPolicyList.md
new file mode 100644
index 0000000000..18542a53de
--- /dev/null
+++ b/docs/PaginatedIPSecPolicyList.md
@@ -0,0 +1,154 @@
+# PaginatedIPSecPolicyList
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Count** | Pointer to **int32** | | [optional]
+**Next** | Pointer to **NullableString** | | [optional]
+**Previous** | Pointer to **NullableString** | | [optional]
+**Results** | Pointer to [**[]IPSecPolicy**](IPSecPolicy.md) | | [optional]
+
+## Methods
+
+### NewPaginatedIPSecPolicyList
+
+`func NewPaginatedIPSecPolicyList() *PaginatedIPSecPolicyList`
+
+NewPaginatedIPSecPolicyList instantiates a new PaginatedIPSecPolicyList object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPaginatedIPSecPolicyListWithDefaults
+
+`func NewPaginatedIPSecPolicyListWithDefaults() *PaginatedIPSecPolicyList`
+
+NewPaginatedIPSecPolicyListWithDefaults instantiates a new PaginatedIPSecPolicyList object
+This 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 *PaginatedIPSecPolicyList) GetCount() int32`
+
+GetCount returns the Count field if non-nil, zero value otherwise.
+
+### GetCountOk
+
+`func (o *PaginatedIPSecPolicyList) 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 *PaginatedIPSecPolicyList) SetCount(v int32)`
+
+SetCount sets Count field to given value.
+
+### HasCount
+
+`func (o *PaginatedIPSecPolicyList) HasCount() bool`
+
+HasCount returns a boolean if a field has been set.
+
+### GetNext
+
+`func (o *PaginatedIPSecPolicyList) GetNext() string`
+
+GetNext returns the Next field if non-nil, zero value otherwise.
+
+### GetNextOk
+
+`func (o *PaginatedIPSecPolicyList) 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 *PaginatedIPSecPolicyList) SetNext(v string)`
+
+SetNext sets Next field to given value.
+
+### HasNext
+
+`func (o *PaginatedIPSecPolicyList) HasNext() bool`
+
+HasNext returns a boolean if a field has been set.
+
+### SetNextNil
+
+`func (o *PaginatedIPSecPolicyList) SetNextNil(b bool)`
+
+ SetNextNil sets the value for Next to be an explicit nil
+
+### UnsetNext
+`func (o *PaginatedIPSecPolicyList) UnsetNext()`
+
+UnsetNext ensures that no value is present for Next, not even an explicit nil
+### GetPrevious
+
+`func (o *PaginatedIPSecPolicyList) GetPrevious() string`
+
+GetPrevious returns the Previous field if non-nil, zero value otherwise.
+
+### GetPreviousOk
+
+`func (o *PaginatedIPSecPolicyList) 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 *PaginatedIPSecPolicyList) SetPrevious(v string)`
+
+SetPrevious sets Previous field to given value.
+
+### HasPrevious
+
+`func (o *PaginatedIPSecPolicyList) HasPrevious() bool`
+
+HasPrevious returns a boolean if a field has been set.
+
+### SetPreviousNil
+
+`func (o *PaginatedIPSecPolicyList) SetPreviousNil(b bool)`
+
+ SetPreviousNil sets the value for Previous to be an explicit nil
+
+### UnsetPrevious
+`func (o *PaginatedIPSecPolicyList) UnsetPrevious()`
+
+UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+### GetResults
+
+`func (o *PaginatedIPSecPolicyList) GetResults() []IPSecPolicy`
+
+GetResults returns the Results field if non-nil, zero value otherwise.
+
+### GetResultsOk
+
+`func (o *PaginatedIPSecPolicyList) GetResultsOk() (*[]IPSecPolicy, 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 *PaginatedIPSecPolicyList) SetResults(v []IPSecPolicy)`
+
+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
new file mode 100644
index 0000000000..9b85a1b7a5
--- /dev/null
+++ b/docs/PaginatedIPSecProfileList.md
@@ -0,0 +1,154 @@
+# PaginatedIPSecProfileList
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Count** | Pointer to **int32** | | [optional]
+**Next** | Pointer to **NullableString** | | [optional]
+**Previous** | Pointer to **NullableString** | | [optional]
+**Results** | Pointer to [**[]IPSecProfile**](IPSecProfile.md) | | [optional]
+
+## Methods
+
+### NewPaginatedIPSecProfileList
+
+`func NewPaginatedIPSecProfileList() *PaginatedIPSecProfileList`
+
+NewPaginatedIPSecProfileList instantiates a new PaginatedIPSecProfileList object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPaginatedIPSecProfileListWithDefaults
+
+`func NewPaginatedIPSecProfileListWithDefaults() *PaginatedIPSecProfileList`
+
+NewPaginatedIPSecProfileListWithDefaults instantiates a new PaginatedIPSecProfileList object
+This 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 *PaginatedIPSecProfileList) GetCount() int32`
+
+GetCount returns the Count field if non-nil, zero value otherwise.
+
+### GetCountOk
+
+`func (o *PaginatedIPSecProfileList) 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 *PaginatedIPSecProfileList) SetCount(v int32)`
+
+SetCount sets Count field to given value.
+
+### HasCount
+
+`func (o *PaginatedIPSecProfileList) HasCount() bool`
+
+HasCount returns a boolean if a field has been set.
+
+### GetNext
+
+`func (o *PaginatedIPSecProfileList) GetNext() string`
+
+GetNext returns the Next field if non-nil, zero value otherwise.
+
+### GetNextOk
+
+`func (o *PaginatedIPSecProfileList) 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 *PaginatedIPSecProfileList) SetNext(v string)`
+
+SetNext sets Next field to given value.
+
+### HasNext
+
+`func (o *PaginatedIPSecProfileList) HasNext() bool`
+
+HasNext returns a boolean if a field has been set.
+
+### SetNextNil
+
+`func (o *PaginatedIPSecProfileList) SetNextNil(b bool)`
+
+ SetNextNil sets the value for Next to be an explicit nil
+
+### UnsetNext
+`func (o *PaginatedIPSecProfileList) UnsetNext()`
+
+UnsetNext ensures that no value is present for Next, not even an explicit nil
+### GetPrevious
+
+`func (o *PaginatedIPSecProfileList) GetPrevious() string`
+
+GetPrevious returns the Previous field if non-nil, zero value otherwise.
+
+### GetPreviousOk
+
+`func (o *PaginatedIPSecProfileList) 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 *PaginatedIPSecProfileList) SetPrevious(v string)`
+
+SetPrevious sets Previous field to given value.
+
+### HasPrevious
+
+`func (o *PaginatedIPSecProfileList) HasPrevious() bool`
+
+HasPrevious returns a boolean if a field has been set.
+
+### SetPreviousNil
+
+`func (o *PaginatedIPSecProfileList) SetPreviousNil(b bool)`
+
+ SetPreviousNil sets the value for Previous to be an explicit nil
+
+### UnsetPrevious
+`func (o *PaginatedIPSecProfileList) UnsetPrevious()`
+
+UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+### GetResults
+
+`func (o *PaginatedIPSecProfileList) GetResults() []IPSecProfile`
+
+GetResults returns the Results field if non-nil, zero value otherwise.
+
+### GetResultsOk
+
+`func (o *PaginatedIPSecProfileList) GetResultsOk() (*[]IPSecProfile, 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 *PaginatedIPSecProfileList) SetResults(v []IPSecProfile)`
+
+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
new file mode 100644
index 0000000000..df1d55e917
--- /dev/null
+++ b/docs/PaginatedIPSecProposalList.md
@@ -0,0 +1,154 @@
+# PaginatedIPSecProposalList
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Count** | Pointer to **int32** | | [optional]
+**Next** | Pointer to **NullableString** | | [optional]
+**Previous** | Pointer to **NullableString** | | [optional]
+**Results** | Pointer to [**[]IPSecProposal**](IPSecProposal.md) | | [optional]
+
+## Methods
+
+### NewPaginatedIPSecProposalList
+
+`func NewPaginatedIPSecProposalList() *PaginatedIPSecProposalList`
+
+NewPaginatedIPSecProposalList instantiates a new PaginatedIPSecProposalList object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPaginatedIPSecProposalListWithDefaults
+
+`func NewPaginatedIPSecProposalListWithDefaults() *PaginatedIPSecProposalList`
+
+NewPaginatedIPSecProposalListWithDefaults instantiates a new PaginatedIPSecProposalList object
+This 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 *PaginatedIPSecProposalList) GetCount() int32`
+
+GetCount returns the Count field if non-nil, zero value otherwise.
+
+### GetCountOk
+
+`func (o *PaginatedIPSecProposalList) 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 *PaginatedIPSecProposalList) SetCount(v int32)`
+
+SetCount sets Count field to given value.
+
+### HasCount
+
+`func (o *PaginatedIPSecProposalList) HasCount() bool`
+
+HasCount returns a boolean if a field has been set.
+
+### GetNext
+
+`func (o *PaginatedIPSecProposalList) GetNext() string`
+
+GetNext returns the Next field if non-nil, zero value otherwise.
+
+### GetNextOk
+
+`func (o *PaginatedIPSecProposalList) 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 *PaginatedIPSecProposalList) SetNext(v string)`
+
+SetNext sets Next field to given value.
+
+### HasNext
+
+`func (o *PaginatedIPSecProposalList) HasNext() bool`
+
+HasNext returns a boolean if a field has been set.
+
+### SetNextNil
+
+`func (o *PaginatedIPSecProposalList) SetNextNil(b bool)`
+
+ SetNextNil sets the value for Next to be an explicit nil
+
+### UnsetNext
+`func (o *PaginatedIPSecProposalList) UnsetNext()`
+
+UnsetNext ensures that no value is present for Next, not even an explicit nil
+### GetPrevious
+
+`func (o *PaginatedIPSecProposalList) GetPrevious() string`
+
+GetPrevious returns the Previous field if non-nil, zero value otherwise.
+
+### GetPreviousOk
+
+`func (o *PaginatedIPSecProposalList) 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 *PaginatedIPSecProposalList) SetPrevious(v string)`
+
+SetPrevious sets Previous field to given value.
+
+### HasPrevious
+
+`func (o *PaginatedIPSecProposalList) HasPrevious() bool`
+
+HasPrevious returns a boolean if a field has been set.
+
+### SetPreviousNil
+
+`func (o *PaginatedIPSecProposalList) SetPreviousNil(b bool)`
+
+ SetPreviousNil sets the value for Previous to be an explicit nil
+
+### UnsetPrevious
+`func (o *PaginatedIPSecProposalList) UnsetPrevious()`
+
+UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+### GetResults
+
+`func (o *PaginatedIPSecProposalList) GetResults() []IPSecProposal`
+
+GetResults returns the Results field if non-nil, zero value otherwise.
+
+### GetResultsOk
+
+`func (o *PaginatedIPSecProposalList) GetResultsOk() (*[]IPSecProposal, 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 *PaginatedIPSecProposalList) SetResults(v []IPSecProposal)`
+
+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/PaginatedTunnelGroupList.md b/docs/PaginatedTunnelGroupList.md
new file mode 100644
index 0000000000..23ff0c6bc8
--- /dev/null
+++ b/docs/PaginatedTunnelGroupList.md
@@ -0,0 +1,154 @@
+# PaginatedTunnelGroupList
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Count** | Pointer to **int32** | | [optional]
+**Next** | Pointer to **NullableString** | | [optional]
+**Previous** | Pointer to **NullableString** | | [optional]
+**Results** | Pointer to [**[]TunnelGroup**](TunnelGroup.md) | | [optional]
+
+## Methods
+
+### NewPaginatedTunnelGroupList
+
+`func NewPaginatedTunnelGroupList() *PaginatedTunnelGroupList`
+
+NewPaginatedTunnelGroupList instantiates a new PaginatedTunnelGroupList object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPaginatedTunnelGroupListWithDefaults
+
+`func NewPaginatedTunnelGroupListWithDefaults() *PaginatedTunnelGroupList`
+
+NewPaginatedTunnelGroupListWithDefaults instantiates a new PaginatedTunnelGroupList object
+This 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 *PaginatedTunnelGroupList) GetCount() int32`
+
+GetCount returns the Count field if non-nil, zero value otherwise.
+
+### GetCountOk
+
+`func (o *PaginatedTunnelGroupList) 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 *PaginatedTunnelGroupList) SetCount(v int32)`
+
+SetCount sets Count field to given value.
+
+### HasCount
+
+`func (o *PaginatedTunnelGroupList) HasCount() bool`
+
+HasCount returns a boolean if a field has been set.
+
+### GetNext
+
+`func (o *PaginatedTunnelGroupList) GetNext() string`
+
+GetNext returns the Next field if non-nil, zero value otherwise.
+
+### GetNextOk
+
+`func (o *PaginatedTunnelGroupList) 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 *PaginatedTunnelGroupList) SetNext(v string)`
+
+SetNext sets Next field to given value.
+
+### HasNext
+
+`func (o *PaginatedTunnelGroupList) HasNext() bool`
+
+HasNext returns a boolean if a field has been set.
+
+### SetNextNil
+
+`func (o *PaginatedTunnelGroupList) SetNextNil(b bool)`
+
+ SetNextNil sets the value for Next to be an explicit nil
+
+### UnsetNext
+`func (o *PaginatedTunnelGroupList) UnsetNext()`
+
+UnsetNext ensures that no value is present for Next, not even an explicit nil
+### GetPrevious
+
+`func (o *PaginatedTunnelGroupList) GetPrevious() string`
+
+GetPrevious returns the Previous field if non-nil, zero value otherwise.
+
+### GetPreviousOk
+
+`func (o *PaginatedTunnelGroupList) 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 *PaginatedTunnelGroupList) SetPrevious(v string)`
+
+SetPrevious sets Previous field to given value.
+
+### HasPrevious
+
+`func (o *PaginatedTunnelGroupList) HasPrevious() bool`
+
+HasPrevious returns a boolean if a field has been set.
+
+### SetPreviousNil
+
+`func (o *PaginatedTunnelGroupList) SetPreviousNil(b bool)`
+
+ SetPreviousNil sets the value for Previous to be an explicit nil
+
+### UnsetPrevious
+`func (o *PaginatedTunnelGroupList) UnsetPrevious()`
+
+UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+### GetResults
+
+`func (o *PaginatedTunnelGroupList) GetResults() []TunnelGroup`
+
+GetResults returns the Results field if non-nil, zero value otherwise.
+
+### GetResultsOk
+
+`func (o *PaginatedTunnelGroupList) GetResultsOk() (*[]TunnelGroup, 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 *PaginatedTunnelGroupList) SetResults(v []TunnelGroup)`
+
+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
new file mode 100644
index 0000000000..64e022fdc7
--- /dev/null
+++ b/docs/PaginatedTunnelList.md
@@ -0,0 +1,154 @@
+# PaginatedTunnelList
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Count** | Pointer to **int32** | | [optional]
+**Next** | Pointer to **NullableString** | | [optional]
+**Previous** | Pointer to **NullableString** | | [optional]
+**Results** | Pointer to [**[]Tunnel**](Tunnel.md) | | [optional]
+
+## Methods
+
+### NewPaginatedTunnelList
+
+`func NewPaginatedTunnelList() *PaginatedTunnelList`
+
+NewPaginatedTunnelList instantiates a new PaginatedTunnelList object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPaginatedTunnelListWithDefaults
+
+`func NewPaginatedTunnelListWithDefaults() *PaginatedTunnelList`
+
+NewPaginatedTunnelListWithDefaults instantiates a new PaginatedTunnelList object
+This 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 *PaginatedTunnelList) GetCount() int32`
+
+GetCount returns the Count field if non-nil, zero value otherwise.
+
+### GetCountOk
+
+`func (o *PaginatedTunnelList) 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 *PaginatedTunnelList) SetCount(v int32)`
+
+SetCount sets Count field to given value.
+
+### HasCount
+
+`func (o *PaginatedTunnelList) HasCount() bool`
+
+HasCount returns a boolean if a field has been set.
+
+### GetNext
+
+`func (o *PaginatedTunnelList) GetNext() string`
+
+GetNext returns the Next field if non-nil, zero value otherwise.
+
+### GetNextOk
+
+`func (o *PaginatedTunnelList) 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 *PaginatedTunnelList) SetNext(v string)`
+
+SetNext sets Next field to given value.
+
+### HasNext
+
+`func (o *PaginatedTunnelList) HasNext() bool`
+
+HasNext returns a boolean if a field has been set.
+
+### SetNextNil
+
+`func (o *PaginatedTunnelList) SetNextNil(b bool)`
+
+ SetNextNil sets the value for Next to be an explicit nil
+
+### UnsetNext
+`func (o *PaginatedTunnelList) UnsetNext()`
+
+UnsetNext ensures that no value is present for Next, not even an explicit nil
+### GetPrevious
+
+`func (o *PaginatedTunnelList) GetPrevious() string`
+
+GetPrevious returns the Previous field if non-nil, zero value otherwise.
+
+### GetPreviousOk
+
+`func (o *PaginatedTunnelList) 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 *PaginatedTunnelList) SetPrevious(v string)`
+
+SetPrevious sets Previous field to given value.
+
+### HasPrevious
+
+`func (o *PaginatedTunnelList) HasPrevious() bool`
+
+HasPrevious returns a boolean if a field has been set.
+
+### SetPreviousNil
+
+`func (o *PaginatedTunnelList) SetPreviousNil(b bool)`
+
+ SetPreviousNil sets the value for Previous to be an explicit nil
+
+### UnsetPrevious
+`func (o *PaginatedTunnelList) UnsetPrevious()`
+
+UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+### GetResults
+
+`func (o *PaginatedTunnelList) GetResults() []Tunnel`
+
+GetResults returns the Results field if non-nil, zero value otherwise.
+
+### GetResultsOk
+
+`func (o *PaginatedTunnelList) GetResultsOk() (*[]Tunnel, 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 *PaginatedTunnelList) SetResults(v []Tunnel)`
+
+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
new file mode 100644
index 0000000000..9bf96bbca7
--- /dev/null
+++ b/docs/PaginatedTunnelTerminationList.md
@@ -0,0 +1,154 @@
+# PaginatedTunnelTerminationList
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Count** | Pointer to **int32** | | [optional]
+**Next** | Pointer to **NullableString** | | [optional]
+**Previous** | Pointer to **NullableString** | | [optional]
+**Results** | Pointer to [**[]TunnelTermination**](TunnelTermination.md) | | [optional]
+
+## Methods
+
+### NewPaginatedTunnelTerminationList
+
+`func NewPaginatedTunnelTerminationList() *PaginatedTunnelTerminationList`
+
+NewPaginatedTunnelTerminationList instantiates a new PaginatedTunnelTerminationList object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPaginatedTunnelTerminationListWithDefaults
+
+`func NewPaginatedTunnelTerminationListWithDefaults() *PaginatedTunnelTerminationList`
+
+NewPaginatedTunnelTerminationListWithDefaults instantiates a new PaginatedTunnelTerminationList object
+This 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 *PaginatedTunnelTerminationList) GetCount() int32`
+
+GetCount returns the Count field if non-nil, zero value otherwise.
+
+### GetCountOk
+
+`func (o *PaginatedTunnelTerminationList) 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 *PaginatedTunnelTerminationList) SetCount(v int32)`
+
+SetCount sets Count field to given value.
+
+### HasCount
+
+`func (o *PaginatedTunnelTerminationList) HasCount() bool`
+
+HasCount returns a boolean if a field has been set.
+
+### GetNext
+
+`func (o *PaginatedTunnelTerminationList) GetNext() string`
+
+GetNext returns the Next field if non-nil, zero value otherwise.
+
+### GetNextOk
+
+`func (o *PaginatedTunnelTerminationList) 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 *PaginatedTunnelTerminationList) SetNext(v string)`
+
+SetNext sets Next field to given value.
+
+### HasNext
+
+`func (o *PaginatedTunnelTerminationList) HasNext() bool`
+
+HasNext returns a boolean if a field has been set.
+
+### SetNextNil
+
+`func (o *PaginatedTunnelTerminationList) SetNextNil(b bool)`
+
+ SetNextNil sets the value for Next to be an explicit nil
+
+### UnsetNext
+`func (o *PaginatedTunnelTerminationList) UnsetNext()`
+
+UnsetNext ensures that no value is present for Next, not even an explicit nil
+### GetPrevious
+
+`func (o *PaginatedTunnelTerminationList) GetPrevious() string`
+
+GetPrevious returns the Previous field if non-nil, zero value otherwise.
+
+### GetPreviousOk
+
+`func (o *PaginatedTunnelTerminationList) 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 *PaginatedTunnelTerminationList) SetPrevious(v string)`
+
+SetPrevious sets Previous field to given value.
+
+### HasPrevious
+
+`func (o *PaginatedTunnelTerminationList) HasPrevious() bool`
+
+HasPrevious returns a boolean if a field has been set.
+
+### SetPreviousNil
+
+`func (o *PaginatedTunnelTerminationList) SetPreviousNil(b bool)`
+
+ SetPreviousNil sets the value for Previous to be an explicit nil
+
+### UnsetPrevious
+`func (o *PaginatedTunnelTerminationList) UnsetPrevious()`
+
+UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+### GetResults
+
+`func (o *PaginatedTunnelTerminationList) GetResults() []TunnelTermination`
+
+GetResults returns the Results field if non-nil, zero value otherwise.
+
+### GetResultsOk
+
+`func (o *PaginatedTunnelTerminationList) GetResultsOk() (*[]TunnelTermination, 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 *PaginatedTunnelTerminationList) SetResults(v []TunnelTermination)`
+
+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/PaginatedVirtualDiskList.md b/docs/PaginatedVirtualDiskList.md
new file mode 100644
index 0000000000..1c7dca803a
--- /dev/null
+++ b/docs/PaginatedVirtualDiskList.md
@@ -0,0 +1,154 @@
+# PaginatedVirtualDiskList
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Count** | Pointer to **int32** | | [optional]
+**Next** | Pointer to **NullableString** | | [optional]
+**Previous** | Pointer to **NullableString** | | [optional]
+**Results** | Pointer to [**[]VirtualDisk**](VirtualDisk.md) | | [optional]
+
+## Methods
+
+### NewPaginatedVirtualDiskList
+
+`func NewPaginatedVirtualDiskList() *PaginatedVirtualDiskList`
+
+NewPaginatedVirtualDiskList instantiates a new PaginatedVirtualDiskList object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPaginatedVirtualDiskListWithDefaults
+
+`func NewPaginatedVirtualDiskListWithDefaults() *PaginatedVirtualDiskList`
+
+NewPaginatedVirtualDiskListWithDefaults instantiates a new PaginatedVirtualDiskList object
+This 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 *PaginatedVirtualDiskList) GetCount() int32`
+
+GetCount returns the Count field if non-nil, zero value otherwise.
+
+### GetCountOk
+
+`func (o *PaginatedVirtualDiskList) 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 *PaginatedVirtualDiskList) SetCount(v int32)`
+
+SetCount sets Count field to given value.
+
+### HasCount
+
+`func (o *PaginatedVirtualDiskList) HasCount() bool`
+
+HasCount returns a boolean if a field has been set.
+
+### GetNext
+
+`func (o *PaginatedVirtualDiskList) GetNext() string`
+
+GetNext returns the Next field if non-nil, zero value otherwise.
+
+### GetNextOk
+
+`func (o *PaginatedVirtualDiskList) 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 *PaginatedVirtualDiskList) SetNext(v string)`
+
+SetNext sets Next field to given value.
+
+### HasNext
+
+`func (o *PaginatedVirtualDiskList) HasNext() bool`
+
+HasNext returns a boolean if a field has been set.
+
+### SetNextNil
+
+`func (o *PaginatedVirtualDiskList) SetNextNil(b bool)`
+
+ SetNextNil sets the value for Next to be an explicit nil
+
+### UnsetNext
+`func (o *PaginatedVirtualDiskList) UnsetNext()`
+
+UnsetNext ensures that no value is present for Next, not even an explicit nil
+### GetPrevious
+
+`func (o *PaginatedVirtualDiskList) GetPrevious() string`
+
+GetPrevious returns the Previous field if non-nil, zero value otherwise.
+
+### GetPreviousOk
+
+`func (o *PaginatedVirtualDiskList) 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 *PaginatedVirtualDiskList) SetPrevious(v string)`
+
+SetPrevious sets Previous field to given value.
+
+### HasPrevious
+
+`func (o *PaginatedVirtualDiskList) HasPrevious() bool`
+
+HasPrevious returns a boolean if a field has been set.
+
+### SetPreviousNil
+
+`func (o *PaginatedVirtualDiskList) SetPreviousNil(b bool)`
+
+ SetPreviousNil sets the value for Previous to be an explicit nil
+
+### UnsetPrevious
+`func (o *PaginatedVirtualDiskList) UnsetPrevious()`
+
+UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+### GetResults
+
+`func (o *PaginatedVirtualDiskList) GetResults() []VirtualDisk`
+
+GetResults returns the Results field if non-nil, zero value otherwise.
+
+### GetResultsOk
+
+`func (o *PaginatedVirtualDiskList) GetResultsOk() (*[]VirtualDisk, 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 *PaginatedVirtualDiskList) SetResults(v []VirtualDisk)`
+
+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/ParentChildStatus.md b/docs/ParentChildStatus.md
new file mode 100644
index 0000000000..e31f44efa8
--- /dev/null
+++ b/docs/ParentChildStatus.md
@@ -0,0 +1,15 @@
+# ParentChildStatus
+
+## Enum
+
+
+* `PARENT` (value: `"parent"`)
+
+* `CHILD` (value: `"child"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedCableTerminationRequest.md b/docs/PatchedCableTerminationRequest.md
index 35bf645396..160b254e15 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 **string** | * `A` - A * `B` - B | [optional]
+**CableEnd** | Pointer to [**End**](End.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() string`
+`func (o *PatchedCableTerminationRequest) GetCableEnd() End`
GetCableEnd returns the CableEnd field if non-nil, zero value otherwise.
### GetCableEndOk
-`func (o *PatchedCableTerminationRequest) GetCableEndOk() (*string, bool)`
+`func (o *PatchedCableTerminationRequest) GetCableEndOk() (*End, 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 string)`
+`func (o *PatchedCableTerminationRequest) SetCableEnd(v End)`
SetCableEnd sets CableEnd field to given value.
diff --git a/docs/PatchedCircuitTypeRequest.md b/docs/PatchedCircuitTypeRequest.md
index dbc66ec579..2e1f24ff7e 100644
--- a/docs/PatchedCircuitTypeRequest.md
+++ b/docs/PatchedCircuitTypeRequest.md
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
**Slug** | Pointer to **string** | | [optional]
+**Color** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -79,6 +80,31 @@ SetSlug sets Slug field to given value.
HasSlug returns a boolean if a field has been set.
+### GetColor
+
+`func (o *PatchedCircuitTypeRequest) GetColor() string`
+
+GetColor returns the Color field if non-nil, zero value otherwise.
+
+### GetColorOk
+
+`func (o *PatchedCircuitTypeRequest) 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 *PatchedCircuitTypeRequest) SetColor(v string)`
+
+SetColor sets Color field to given value.
+
+### HasColor
+
+`func (o *PatchedCircuitTypeRequest) HasColor() bool`
+
+HasColor returns a boolean if a field has been set.
+
### GetDescription
`func (o *PatchedCircuitTypeRequest) GetDescription() string`
diff --git a/docs/PatchedCustomLinkRequest.md b/docs/PatchedCustomLinkRequest.md
index 3ab682fb98..bacf0db117 100644
--- a/docs/PatchedCustomLinkRequest.md
+++ b/docs/PatchedCustomLinkRequest.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**LinkUrl** | Pointer to **string** | Jinja2 template code for link URL | [optional]
**Weight** | Pointer to **int32** | | [optional]
**GroupName** | Pointer to **string** | Links with the same group will appear as a dropdown menu | [optional]
-**ButtonClass** | Pointer to **string** | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | [optional]
+**ButtonClass** | Pointer to [**CustomLinkButtonClass**](CustomLinkButtonClass.md) | | [optional]
**NewWindow** | Pointer to **bool** | Force link to open in a new window | [optional]
## Methods
@@ -210,20 +210,20 @@ HasGroupName returns a boolean if a field has been set.
### GetButtonClass
-`func (o *PatchedCustomLinkRequest) GetButtonClass() string`
+`func (o *PatchedCustomLinkRequest) GetButtonClass() CustomLinkButtonClass`
GetButtonClass returns the ButtonClass field if non-nil, zero value otherwise.
### GetButtonClassOk
-`func (o *PatchedCustomLinkRequest) GetButtonClassOk() (*string, bool)`
+`func (o *PatchedCustomLinkRequest) GetButtonClassOk() (*CustomLinkButtonClass, bool)`
GetButtonClassOk returns a tuple with the ButtonClass field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetButtonClass
-`func (o *PatchedCustomLinkRequest) SetButtonClass(v string)`
+`func (o *PatchedCustomLinkRequest) SetButtonClass(v CustomLinkButtonClass)`
SetButtonClass sets ButtonClass field to given value.
diff --git a/docs/PatchedDashboardRequest.md b/docs/PatchedDashboardRequest.md
index 7ab1baf605..88f26b5b4d 100644
--- a/docs/PatchedDashboardRequest.md
+++ b/docs/PatchedDashboardRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Layout** | Pointer to **map[string]interface{}** | | [optional]
-**Config** | Pointer to **map[string]interface{}** | | [optional]
+**Layout** | Pointer to **interface{}** | | [optional]
+**Config** | Pointer to **interface{}** | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetLayout
-`func (o *PatchedDashboardRequest) GetLayout() map[string]interface{}`
+`func (o *PatchedDashboardRequest) GetLayout() interface{}`
GetLayout returns the Layout field if non-nil, zero value otherwise.
### GetLayoutOk
-`func (o *PatchedDashboardRequest) GetLayoutOk() (*map[string]interface{}, bool)`
+`func (o *PatchedDashboardRequest) GetLayoutOk() (*interface{}, bool)`
GetLayoutOk returns a tuple with the Layout field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLayout
-`func (o *PatchedDashboardRequest) SetLayout(v map[string]interface{})`
+`func (o *PatchedDashboardRequest) SetLayout(v interface{})`
SetLayout sets Layout field to given value.
@@ -51,22 +51,32 @@ SetLayout sets Layout field to given value.
HasLayout returns a boolean if a field has been set.
+### SetLayoutNil
+
+`func (o *PatchedDashboardRequest) SetLayoutNil(b bool)`
+
+ SetLayoutNil sets the value for Layout to be an explicit nil
+
+### UnsetLayout
+`func (o *PatchedDashboardRequest) UnsetLayout()`
+
+UnsetLayout ensures that no value is present for Layout, not even an explicit nil
### GetConfig
-`func (o *PatchedDashboardRequest) GetConfig() map[string]interface{}`
+`func (o *PatchedDashboardRequest) GetConfig() interface{}`
GetConfig returns the Config field if non-nil, zero value otherwise.
### GetConfigOk
-`func (o *PatchedDashboardRequest) GetConfigOk() (*map[string]interface{}, bool)`
+`func (o *PatchedDashboardRequest) GetConfigOk() (*interface{}, bool)`
GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetConfig
-`func (o *PatchedDashboardRequest) SetConfig(v map[string]interface{})`
+`func (o *PatchedDashboardRequest) SetConfig(v interface{})`
SetConfig sets Config field to given value.
@@ -76,6 +86,16 @@ SetConfig sets Config field to given value.
HasConfig returns a boolean if a field has been set.
+### SetConfigNil
+
+`func (o *PatchedDashboardRequest) SetConfigNil(b bool)`
+
+ SetConfigNil sets the value for Config to be an explicit nil
+
+### UnsetConfig
+`func (o *PatchedDashboardRequest) UnsetConfig()`
+
+UnsetConfig ensures that no value is present for Config, 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/PatchedFHRPGroupRequest.md b/docs/PatchedFHRPGroupRequest.md
index 68fbd4275b..b1e63b0ca4 100644
--- a/docs/PatchedFHRPGroupRequest.md
+++ b/docs/PatchedFHRPGroupRequest.md
@@ -5,9 +5,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
-**Protocol** | Pointer to **string** | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other | [optional]
+**Protocol** | Pointer to [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | [optional]
**GroupId** | Pointer to **int32** | | [optional]
-**AuthType** | Pointer to **string** | * `plaintext` - Plaintext * `md5` - MD5 | [optional]
+**AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional]
**AuthKey** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -60,20 +60,20 @@ HasName returns a boolean if a field has been set.
### GetProtocol
-`func (o *PatchedFHRPGroupRequest) GetProtocol() string`
+`func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol`
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
### GetProtocolOk
-`func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*string, bool)`
+`func (o *PatchedFHRPGroupRequest) 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 *PatchedFHRPGroupRequest) SetProtocol(v string)`
+`func (o *PatchedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)`
SetProtocol sets Protocol field to given value.
@@ -110,20 +110,20 @@ HasGroupId returns a boolean if a field has been set.
### GetAuthType
-`func (o *PatchedFHRPGroupRequest) GetAuthType() string`
+`func (o *PatchedFHRPGroupRequest) GetAuthType() AuthenticationType`
GetAuthType returns the AuthType field if non-nil, zero value otherwise.
### GetAuthTypeOk
-`func (o *PatchedFHRPGroupRequest) GetAuthTypeOk() (*string, bool)`
+`func (o *PatchedFHRPGroupRequest) 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 *PatchedFHRPGroupRequest) SetAuthType(v string)`
+`func (o *PatchedFHRPGroupRequest) SetAuthType(v AuthenticationType)`
SetAuthType sets AuthType field to given value.
diff --git a/docs/PatchedSavedFilterRequest.md b/docs/PatchedSavedFilterRequest.md
index 83a822d1dd..21e21f3c91 100644
--- a/docs/PatchedSavedFilterRequest.md
+++ b/docs/PatchedSavedFilterRequest.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
**Weight** | Pointer to **int32** | | [optional]
**Enabled** | Pointer to **bool** | | [optional]
**Shared** | Pointer to **bool** | | [optional]
-**Parameters** | Pointer to **map[string]interface{}** | | [optional]
+**Parameters** | Pointer to **interface{}** | | [optional]
## Methods
@@ -245,20 +245,20 @@ HasShared returns a boolean if a field has been set.
### GetParameters
-`func (o *PatchedSavedFilterRequest) GetParameters() map[string]interface{}`
+`func (o *PatchedSavedFilterRequest) GetParameters() interface{}`
GetParameters returns the Parameters field if non-nil, zero value otherwise.
### GetParametersOk
-`func (o *PatchedSavedFilterRequest) GetParametersOk() (*map[string]interface{}, bool)`
+`func (o *PatchedSavedFilterRequest) GetParametersOk() (*interface{}, bool)`
GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetParameters
-`func (o *PatchedSavedFilterRequest) SetParameters(v map[string]interface{})`
+`func (o *PatchedSavedFilterRequest) SetParameters(v interface{})`
SetParameters sets Parameters field to given value.
@@ -268,6 +268,16 @@ SetParameters sets Parameters field to given value.
HasParameters returns a boolean if a field has been set.
+### SetParametersNil
+
+`func (o *PatchedSavedFilterRequest) SetParametersNil(b bool)`
+
+ SetParametersNil sets the value for Parameters to be an explicit nil
+
+### UnsetParameters
+`func (o *PatchedSavedFilterRequest) UnsetParameters()`
+
+UnsetParameters ensures that no value is present for Parameters, not even an explicit nil
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PatchedTunnelGroupRequest.md b/docs/PatchedTunnelGroupRequest.md
new file mode 100644
index 0000000000..a468236e3a
--- /dev/null
+++ b/docs/PatchedTunnelGroupRequest.md
@@ -0,0 +1,160 @@
+# PatchedTunnelGroupRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | Pointer to **string** | | [optional]
+**Slug** | Pointer to **string** | | [optional]
+**Description** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewPatchedTunnelGroupRequest
+
+`func NewPatchedTunnelGroupRequest() *PatchedTunnelGroupRequest`
+
+NewPatchedTunnelGroupRequest instantiates a new PatchedTunnelGroupRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPatchedTunnelGroupRequestWithDefaults
+
+`func NewPatchedTunnelGroupRequestWithDefaults() *PatchedTunnelGroupRequest`
+
+NewPatchedTunnelGroupRequestWithDefaults instantiates a new PatchedTunnelGroupRequest object
+This 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 *PatchedTunnelGroupRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *PatchedTunnelGroupRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### GetSlug
+
+`func (o *PatchedTunnelGroupRequest) GetSlug() string`
+
+GetSlug returns the Slug field if non-nil, zero value otherwise.
+
+### GetSlugOk
+
+`func (o *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) SetSlug(v string)`
+
+SetSlug sets Slug field to given value.
+
+### HasSlug
+
+`func (o *PatchedTunnelGroupRequest) HasSlug() bool`
+
+HasSlug returns a boolean if a field has been set.
+
+### GetDescription
+
+`func (o *PatchedTunnelGroupRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *PatchedTunnelGroupRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *PatchedTunnelGroupRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *PatchedTunnelGroupRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *PatchedTunnelGroupRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *PatchedTunnelGroupRequest) 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/PatchedWebhookRequest.md b/docs/PatchedWebhookRequest.md
index 2d9e1d144c..1ba30d6995 100644
--- a/docs/PatchedWebhookRequest.md
+++ b/docs/PatchedWebhookRequest.md
@@ -4,21 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | Pointer to **[]string** | | [optional]
**Name** | Pointer to **string** | | [optional]
-**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional]
-**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional]
-**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional]
-**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional]
-**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional]
+**Description** | Pointer to **string** | | [optional]
**PayloadUrl** | Pointer to **string** | This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body. | [optional]
-**Enabled** | Pointer to **bool** | | [optional]
-**HttpMethod** | Pointer to **string** | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE | [optional]
+**HttpMethod** | Pointer to [**PatchedWebhookRequestHttpMethod**](PatchedWebhookRequestHttpMethod.md) | | [optional]
**HttpContentType** | Pointer to **string** | The complete list of official content types is available <a href=\"https://www.iana.org/assignments/media-types/media-types.xhtml\">here</a>. | [optional]
**AdditionalHeaders** | Pointer to **string** | User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format <code>Name: Value</code>. Jinja2 template processing is supported with the same context as the request body (below). | [optional]
**BodyTemplate** | Pointer to **string** | Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: <code>event</code>, <code>model</code>, <code>timestamp</code>, <code>username</code>, <code>request_id</code>, and <code>data</code>. | [optional]
**Secret** | Pointer to **string** | When provided, the request will include a <code>X-Hook-Signature</code> header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. | [optional]
-**Conditions** | Pointer to **map[string]interface{}** | A set of conditions which determine whether the webhook will be generated. | [optional]
**SslVerification** | Pointer to **bool** | Enable SSL certificate verification. Disable with caution! | [optional]
**CaFilePath** | Pointer to **NullableString** | The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -43,31 +36,6 @@ NewPatchedWebhookRequestWithDefaults instantiates a new PatchedWebhookRequest 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
-
-`func (o *PatchedWebhookRequest) GetContentTypes() []string`
-
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
-
-### GetContentTypesOk
-
-`func (o *PatchedWebhookRequest) 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 *PatchedWebhookRequest) SetContentTypes(v []string)`
-
-SetContentTypes sets ContentTypes field to given value.
-
-### HasContentTypes
-
-`func (o *PatchedWebhookRequest) HasContentTypes() bool`
-
-HasContentTypes returns a boolean if a field has been set.
-
### GetName
`func (o *PatchedWebhookRequest) GetName() string`
@@ -93,130 +61,30 @@ SetName sets Name field to given value.
HasName returns a boolean if a field has been set.
-### GetTypeCreate
-
-`func (o *PatchedWebhookRequest) GetTypeCreate() bool`
-
-GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise.
-
-### GetTypeCreateOk
-
-`func (o *PatchedWebhookRequest) GetTypeCreateOk() (*bool, bool)`
-
-GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTypeCreate
-
-`func (o *PatchedWebhookRequest) SetTypeCreate(v bool)`
-
-SetTypeCreate sets TypeCreate field to given value.
-
-### HasTypeCreate
-
-`func (o *PatchedWebhookRequest) HasTypeCreate() bool`
+### GetDescription
-HasTypeCreate returns a boolean if a field has been set.
+`func (o *PatchedWebhookRequest) GetDescription() string`
-### GetTypeUpdate
+GetDescription returns the Description field if non-nil, zero value otherwise.
-`func (o *PatchedWebhookRequest) GetTypeUpdate() bool`
+### GetDescriptionOk
-GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise.
+`func (o *PatchedWebhookRequest) GetDescriptionOk() (*string, bool)`
-### GetTypeUpdateOk
-
-`func (o *PatchedWebhookRequest) GetTypeUpdateOk() (*bool, bool)`
-
-GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTypeUpdate
-
-`func (o *PatchedWebhookRequest) SetTypeUpdate(v bool)`
-
-SetTypeUpdate sets TypeUpdate field to given value.
-
-### HasTypeUpdate
-
-`func (o *PatchedWebhookRequest) HasTypeUpdate() bool`
-
-HasTypeUpdate returns a boolean if a field has been set.
-
-### GetTypeDelete
-
-`func (o *PatchedWebhookRequest) GetTypeDelete() bool`
-
-GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise.
-
-### GetTypeDeleteOk
-
-`func (o *PatchedWebhookRequest) GetTypeDeleteOk() (*bool, bool)`
-
-GetTypeDeleteOk returns a tuple with the TypeDelete 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.
-### SetTypeDelete
-
-`func (o *PatchedWebhookRequest) SetTypeDelete(v bool)`
-
-SetTypeDelete sets TypeDelete field to given value.
-
-### HasTypeDelete
+### SetDescription
-`func (o *PatchedWebhookRequest) HasTypeDelete() bool`
+`func (o *PatchedWebhookRequest) SetDescription(v string)`
-HasTypeDelete returns a boolean if a field has been set.
+SetDescription sets Description field to given value.
-### GetTypeJobStart
-
-`func (o *PatchedWebhookRequest) GetTypeJobStart() bool`
-
-GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise.
-
-### GetTypeJobStartOk
-
-`func (o *PatchedWebhookRequest) GetTypeJobStartOk() (*bool, bool)`
-
-GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
+### HasDescription
-### SetTypeJobStart
+`func (o *PatchedWebhookRequest) HasDescription() bool`
-`func (o *PatchedWebhookRequest) SetTypeJobStart(v bool)`
-
-SetTypeJobStart sets TypeJobStart field to given value.
-
-### HasTypeJobStart
-
-`func (o *PatchedWebhookRequest) HasTypeJobStart() bool`
-
-HasTypeJobStart returns a boolean if a field has been set.
-
-### GetTypeJobEnd
-
-`func (o *PatchedWebhookRequest) GetTypeJobEnd() bool`
-
-GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise.
-
-### GetTypeJobEndOk
-
-`func (o *PatchedWebhookRequest) GetTypeJobEndOk() (*bool, bool)`
-
-GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTypeJobEnd
-
-`func (o *PatchedWebhookRequest) SetTypeJobEnd(v bool)`
-
-SetTypeJobEnd sets TypeJobEnd field to given value.
-
-### HasTypeJobEnd
-
-`func (o *PatchedWebhookRequest) HasTypeJobEnd() bool`
-
-HasTypeJobEnd returns a boolean if a field has been set.
+HasDescription returns a boolean if a field has been set.
### GetPayloadUrl
@@ -243,47 +111,22 @@ SetPayloadUrl sets PayloadUrl field to given value.
HasPayloadUrl returns a boolean if a field has been set.
-### GetEnabled
-
-`func (o *PatchedWebhookRequest) GetEnabled() bool`
-
-GetEnabled returns the Enabled field if non-nil, zero value otherwise.
-
-### GetEnabledOk
-
-`func (o *PatchedWebhookRequest) 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 *PatchedWebhookRequest) SetEnabled(v bool)`
-
-SetEnabled sets Enabled field to given value.
-
-### HasEnabled
-
-`func (o *PatchedWebhookRequest) HasEnabled() bool`
-
-HasEnabled returns a boolean if a field has been set.
-
### GetHttpMethod
-`func (o *PatchedWebhookRequest) GetHttpMethod() string`
+`func (o *PatchedWebhookRequest) GetHttpMethod() PatchedWebhookRequestHttpMethod`
GetHttpMethod returns the HttpMethod field if non-nil, zero value otherwise.
### GetHttpMethodOk
-`func (o *PatchedWebhookRequest) GetHttpMethodOk() (*string, bool)`
+`func (o *PatchedWebhookRequest) GetHttpMethodOk() (*PatchedWebhookRequestHttpMethod, bool)`
GetHttpMethodOk returns a tuple with the HttpMethod field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetHttpMethod
-`func (o *PatchedWebhookRequest) SetHttpMethod(v string)`
+`func (o *PatchedWebhookRequest) SetHttpMethod(v PatchedWebhookRequestHttpMethod)`
SetHttpMethod sets HttpMethod field to given value.
@@ -393,41 +236,6 @@ SetSecret sets Secret field to given value.
HasSecret returns a boolean if a field has been set.
-### GetConditions
-
-`func (o *PatchedWebhookRequest) GetConditions() map[string]interface{}`
-
-GetConditions returns the Conditions field if non-nil, zero value otherwise.
-
-### GetConditionsOk
-
-`func (o *PatchedWebhookRequest) GetConditionsOk() (*map[string]interface{}, bool)`
-
-GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetConditions
-
-`func (o *PatchedWebhookRequest) SetConditions(v map[string]interface{})`
-
-SetConditions sets Conditions field to given value.
-
-### HasConditions
-
-`func (o *PatchedWebhookRequest) HasConditions() bool`
-
-HasConditions returns a boolean if a field has been set.
-
-### SetConditionsNil
-
-`func (o *PatchedWebhookRequest) SetConditionsNil(b bool)`
-
- SetConditionsNil sets the value for Conditions to be an explicit nil
-
-### UnsetConditions
-`func (o *PatchedWebhookRequest) UnsetConditions()`
-
-UnsetConditions ensures that no value is present for Conditions, not even an explicit nil
### GetSslVerification
`func (o *PatchedWebhookRequest) GetSslVerification() bool`
diff --git a/docs/PatchedWebhookRequestHttpMethod.md b/docs/PatchedWebhookRequestHttpMethod.md
new file mode 100644
index 0000000000..4709e6eb58
--- /dev/null
+++ b/docs/PatchedWebhookRequestHttpMethod.md
@@ -0,0 +1,19 @@
+# PatchedWebhookRequestHttpMethod
+
+## Enum
+
+
+* `GET` (value: `"GET"`)
+
+* `POST` (value: `"POST"`)
+
+* `PUT` (value: `"PUT"`)
+
+* `PATCH` (value: `"PATCH"`)
+
+* `DELETE` (value: `"DELETE"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableCableRequest.md b/docs/PatchedWritableCableRequest.md
index 54d316d845..dbdd98f7e0 100644
--- a/docs/PatchedWritableCableRequest.md
+++ b/docs/PatchedWritableCableRequest.md
@@ -4,15 +4,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Type** | Pointer to **string** | * `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 | [optional]
+**Type** | Pointer to [**CableType**](CableType.md) | | [optional]
**ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional]
**BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional]
-**Status** | Pointer to **string** | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | [optional]
+**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
**Label** | Pointer to **string** | | [optional]
**Color** | Pointer to **string** | | [optional]
**Length** | Pointer to **NullableFloat64** | | [optional]
-**LengthUnit** | Pointer to **string** | * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches | [optional]
+**LengthUnit** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.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() string`
+`func (o *PatchedWritableCableRequest) GetType() CableType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableCableRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableCableRequest) GetTypeOk() (*CableType, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *PatchedWritableCableRequest) SetType(v string)`
+`func (o *PatchedWritableCableRequest) SetType(v CableType)`
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() string`
+`func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableCableRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableCableRequest) GetStatusOk() (*CableStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *PatchedWritableCableRequest) SetStatus(v string)`
+`func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue)`
SetStatus sets Status 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() string`
+`func (o *PatchedWritableCableRequest) GetLengthUnit() CableLengthUnitValue`
GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise.
### GetLengthUnitOk
-`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*string, bool)`
+`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, 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 string)`
+`func (o *PatchedWritableCableRequest) SetLengthUnit(v CableLengthUnitValue)`
SetLengthUnit sets LengthUnit field to given value.
diff --git a/docs/PatchedWritableCircuitRequest.md b/docs/PatchedWritableCircuitRequest.md
index e13569efff..1573443171 100644
--- a/docs/PatchedWritableCircuitRequest.md
+++ b/docs/PatchedWritableCircuitRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Provider** | Pointer to **int32** | | [optional]
**ProviderAccount** | Pointer to **NullableInt32** | | [optional]
**Type** | Pointer to **int32** | | [optional]
-**Status** | Pointer to **string** | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned | [optional]
+**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
**InstallDate** | Pointer to **NullableString** | | [optional]
**TerminationDate** | Pointer to **NullableString** | | [optional]
@@ -149,20 +149,20 @@ HasType returns a boolean if a field has been set.
### GetStatus
-`func (o *PatchedWritableCircuitRequest) GetStatus() string`
+`func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *PatchedWritableCircuitRequest) SetStatus(v string)`
+`func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/PatchedWritableCircuitTerminationRequest.md b/docs/PatchedWritableCircuitTerminationRequest.md
index 0070591807..75fdf0d5af 100644
--- a/docs/PatchedWritableCircuitTerminationRequest.md
+++ b/docs/PatchedWritableCircuitTerminationRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Circuit** | Pointer to **int32** | | [optional]
-**TermSide** | Pointer to **string** | * `A` - A * `Z` - Z | [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]
@@ -63,20 +63,20 @@ HasCircuit returns a boolean if a field has been set.
### GetTermSide
-`func (o *PatchedWritableCircuitTerminationRequest) GetTermSide() string`
+`func (o *PatchedWritableCircuitTerminationRequest) GetTermSide() Termination`
GetTermSide returns the TermSide field if non-nil, zero value otherwise.
### GetTermSideOk
-`func (o *PatchedWritableCircuitTerminationRequest) GetTermSideOk() (*string, bool)`
+`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 string)`
+`func (o *PatchedWritableCircuitTerminationRequest) SetTermSide(v Termination)`
SetTermSide sets TermSide field to given value.
diff --git a/docs/PatchedWritableClusterRequest.md b/docs/PatchedWritableClusterRequest.md
index 4a47a2b467..4384603831 100644
--- a/docs/PatchedWritableClusterRequest.md
+++ b/docs/PatchedWritableClusterRequest.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Name** | Pointer to **string** | | [optional]
**Type** | Pointer to **int32** | | [optional]
**Group** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline | [optional]
+**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
**Site** | Pointer to **NullableInt32** | | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -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() string`
+`func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableClusterRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *PatchedWritableClusterRequest) SetStatus(v string)`
+`func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/PatchedWritableConfigContextRequest.md b/docs/PatchedWritableConfigContextRequest.md
index 85c744a2fa..85fb0bfca2 100644
--- a/docs/PatchedWritableConfigContextRequest.md
+++ b/docs/PatchedWritableConfigContextRequest.md
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
**Tenants** | Pointer to **[]int32** | | [optional]
**Tags** | Pointer to **[]string** | | [optional]
**DataSource** | Pointer to **NullableInt32** | Remote data source | [optional]
-**Data** | Pointer to **map[string]interface{}** | | [optional]
+**Data** | Pointer to **interface{}** | | [optional]
## Methods
@@ -505,20 +505,20 @@ HasDataSource returns a boolean if a field has been set.
UnsetDataSource ensures that no value is present for DataSource, not even an explicit nil
### GetData
-`func (o *PatchedWritableConfigContextRequest) GetData() map[string]interface{}`
+`func (o *PatchedWritableConfigContextRequest) GetData() interface{}`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *PatchedWritableConfigContextRequest) GetDataOk() (*map[string]interface{}, bool)`
+`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 map[string]interface{})`
+`func (o *PatchedWritableConfigContextRequest) SetData(v interface{})`
SetData sets Data field to given value.
@@ -528,6 +528,16 @@ SetData sets Data field to given value.
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
index 31ca3c17c6..6996f0f777 100644
--- a/docs/PatchedWritableConfigTemplateRequest.md
+++ b/docs/PatchedWritableConfigTemplateRequest.md
@@ -6,9 +6,10 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
-**EnvironmentParams** | Pointer to **map[string]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]
+**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
@@ -82,20 +83,20 @@ HasDescription returns a boolean if a field has been set.
### GetEnvironmentParams
-`func (o *PatchedWritableConfigTemplateRequest) GetEnvironmentParams() map[string]interface{}`
+`func (o *PatchedWritableConfigTemplateRequest) GetEnvironmentParams() interface{}`
GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise.
### GetEnvironmentParamsOk
-`func (o *PatchedWritableConfigTemplateRequest) GetEnvironmentParamsOk() (*map[string]interface{}, bool)`
+`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 map[string]interface{})`
+`func (o *PatchedWritableConfigTemplateRequest) SetEnvironmentParams(v interface{})`
SetEnvironmentParams sets EnvironmentParams field to given value.
@@ -175,6 +176,41 @@ HasDataSource returns a boolean if a field has been set.
`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`
diff --git a/docs/PatchedWritableConsolePortRequest.md b/docs/PatchedWritableConsolePortRequest.md
index e3de3a1dc5..30199d422d 100644
--- a/docs/PatchedWritableConsolePortRequest.md
+++ b/docs/PatchedWritableConsolePortRequest.md
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | 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 | [optional]
-**Speed** | Pointer to **NullableInt32** | 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]
+**Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional]
+**Speed** | Pointer to [**NullablePatchedWritableConsolePortRequestSpeed**](PatchedWritableConsolePortRequestSpeed.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -146,20 +146,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritableConsolePortRequest) GetType() string`
+`func (o *PatchedWritableConsolePortRequest) GetType() PatchedWritableConsolePortRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableConsolePortRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableConsolePortRequest) GetTypeOk() (*PatchedWritableConsolePortRequestType, 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 *PatchedWritableConsolePortRequest) SetType(v string)`
+`func (o *PatchedWritableConsolePortRequest) SetType(v PatchedWritableConsolePortRequestType)`
SetType sets Type field to given value.
@@ -171,20 +171,20 @@ HasType returns a boolean if a field has been set.
### GetSpeed
-`func (o *PatchedWritableConsolePortRequest) GetSpeed() int32`
+`func (o *PatchedWritableConsolePortRequest) GetSpeed() PatchedWritableConsolePortRequestSpeed`
GetSpeed returns the Speed field if non-nil, zero value otherwise.
### GetSpeedOk
-`func (o *PatchedWritableConsolePortRequest) GetSpeedOk() (*int32, bool)`
+`func (o *PatchedWritableConsolePortRequest) GetSpeedOk() (*PatchedWritableConsolePortRequestSpeed, bool)`
GetSpeedOk returns a tuple with the Speed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSpeed
-`func (o *PatchedWritableConsolePortRequest) SetSpeed(v int32)`
+`func (o *PatchedWritableConsolePortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed)`
SetSpeed sets Speed field to given value.
diff --git a/docs/PatchedWritableConsolePortRequestSpeed.md b/docs/PatchedWritableConsolePortRequestSpeed.md
new file mode 100644
index 0000000000..69d3ac83c8
--- /dev/null
+++ b/docs/PatchedWritableConsolePortRequestSpeed.md
@@ -0,0 +1,25 @@
+# PatchedWritableConsolePortRequestSpeed
+
+## Enum
+
+
+* `_1200` (value: `1200`)
+
+* `_2400` (value: `2400`)
+
+* `_4800` (value: `4800`)
+
+* `_9600` (value: `9600`)
+
+* `_19200` (value: `19200`)
+
+* `_38400` (value: `38400`)
+
+* `_57600` (value: `57600`)
+
+* `_115200` (value: `115200`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableConsolePortRequestType.md b/docs/PatchedWritableConsolePortRequestType.md
new file mode 100644
index 0000000000..c074074b37
--- /dev/null
+++ b/docs/PatchedWritableConsolePortRequestType.md
@@ -0,0 +1,41 @@
+# PatchedWritableConsolePortRequestType
+
+## Enum
+
+
+* `DE_9` (value: `"de-9"`)
+
+* `DB_25` (value: `"db-25"`)
+
+* `RJ_11` (value: `"rj-11"`)
+
+* `RJ_12` (value: `"rj-12"`)
+
+* `RJ_45` (value: `"rj-45"`)
+
+* `MINI_DIN_8` (value: `"mini-din-8"`)
+
+* `USB_A` (value: `"usb-a"`)
+
+* `USB_B` (value: `"usb-b"`)
+
+* `USB_C` (value: `"usb-c"`)
+
+* `USB_MINI_A` (value: `"usb-mini-a"`)
+
+* `USB_MINI_B` (value: `"usb-mini-b"`)
+
+* `USB_MICRO_A` (value: `"usb-micro-a"`)
+
+* `USB_MICRO_B` (value: `"usb-micro-b"`)
+
+* `USB_MICRO_AB` (value: `"usb-micro-ab"`)
+
+* `OTHER` (value: `"other"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableConsolePortTemplateRequest.md b/docs/PatchedWritableConsolePortTemplateRequest.md
index 4a79f56f4e..afc71bf67b 100644
--- a/docs/PatchedWritableConsolePortTemplateRequest.md
+++ b/docs/PatchedWritableConsolePortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**ModuleType** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional]
+**Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
## Methods
@@ -152,20 +152,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritableConsolePortTemplateRequest) GetType() string`
+`func (o *PatchedWritableConsolePortTemplateRequest) GetType() ConsolePortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableConsolePortTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableConsolePortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *PatchedWritableConsolePortTemplateRequest) SetType(v string)`
+`func (o *PatchedWritableConsolePortTemplateRequest) SetType(v ConsolePortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/PatchedWritableConsoleServerPortRequest.md b/docs/PatchedWritableConsoleServerPortRequest.md
index b6f132500a..d3f2f222dc 100644
--- a/docs/PatchedWritableConsoleServerPortRequest.md
+++ b/docs/PatchedWritableConsoleServerPortRequest.md
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | 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 | [optional]
-**Speed** | Pointer to **NullableInt32** | 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]
+**Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional]
+**Speed** | Pointer to [**NullablePatchedWritableConsolePortRequestSpeed**](PatchedWritableConsolePortRequestSpeed.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -146,20 +146,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritableConsoleServerPortRequest) GetType() string`
+`func (o *PatchedWritableConsoleServerPortRequest) GetType() PatchedWritableConsolePortRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableConsoleServerPortRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableConsoleServerPortRequest) GetTypeOk() (*PatchedWritableConsolePortRequestType, 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 *PatchedWritableConsoleServerPortRequest) SetType(v string)`
+`func (o *PatchedWritableConsoleServerPortRequest) SetType(v PatchedWritableConsolePortRequestType)`
SetType sets Type field to given value.
@@ -171,20 +171,20 @@ HasType returns a boolean if a field has been set.
### GetSpeed
-`func (o *PatchedWritableConsoleServerPortRequest) GetSpeed() int32`
+`func (o *PatchedWritableConsoleServerPortRequest) GetSpeed() PatchedWritableConsolePortRequestSpeed`
GetSpeed returns the Speed field if non-nil, zero value otherwise.
### GetSpeedOk
-`func (o *PatchedWritableConsoleServerPortRequest) GetSpeedOk() (*int32, bool)`
+`func (o *PatchedWritableConsoleServerPortRequest) GetSpeedOk() (*PatchedWritableConsolePortRequestSpeed, bool)`
GetSpeedOk returns a tuple with the Speed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSpeed
-`func (o *PatchedWritableConsoleServerPortRequest) SetSpeed(v int32)`
+`func (o *PatchedWritableConsoleServerPortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed)`
SetSpeed sets Speed field to given value.
diff --git a/docs/PatchedWritableConsoleServerPortTemplateRequest.md b/docs/PatchedWritableConsoleServerPortTemplateRequest.md
index 1044600a27..40813e2afc 100644
--- a/docs/PatchedWritableConsoleServerPortTemplateRequest.md
+++ b/docs/PatchedWritableConsoleServerPortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**ModuleType** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional]
+**Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
## Methods
@@ -152,20 +152,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetType() string`
+`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetType() ConsolePortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetType(v string)`
+`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetType(v ConsolePortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/PatchedWritableContactAssignmentRequest.md b/docs/PatchedWritableContactAssignmentRequest.md
index 57c882e626..d88d71e420 100644
--- a/docs/PatchedWritableContactAssignmentRequest.md
+++ b/docs/PatchedWritableContactAssignmentRequest.md
@@ -8,8 +8,9 @@ Name | Type | Description | Notes
**ObjectId** | Pointer to **int64** | | [optional]
**Contact** | Pointer to **int32** | | [optional]
**Role** | Pointer to **int32** | | [optional]
-**Priority** | Pointer to **string** | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | [optional]
+**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
## Methods
@@ -132,20 +133,20 @@ HasRole returns a boolean if a field has been set.
### GetPriority
-`func (o *PatchedWritableContactAssignmentRequest) GetPriority() string`
+`func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue`
GetPriority returns the Priority field if non-nil, zero value otherwise.
### GetPriorityOk
-`func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*string, bool)`
+`func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)`
GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPriority
-`func (o *PatchedWritableContactAssignmentRequest) SetPriority(v string)`
+`func (o *PatchedWritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)`
SetPriority sets Priority field to given value.
@@ -180,6 +181,31 @@ SetTags sets Tags field to given value.
HasTags returns a boolean if a field has been set.
+### GetCustomFields
+
+`func (o *PatchedWritableContactAssignmentRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *PatchedWritableContactAssignmentRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+
+GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCustomFields
+
+`func (o *PatchedWritableContactAssignmentRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *PatchedWritableContactAssignmentRequest) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PatchedWritableCustomFieldChoiceSetRequest.md b/docs/PatchedWritableCustomFieldChoiceSetRequest.md
index cf1a6ab8e0..36270d3036 100644
--- a/docs/PatchedWritableCustomFieldChoiceSetRequest.md
+++ b/docs/PatchedWritableCustomFieldChoiceSetRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
-**BaseChoices** | Pointer to **string** | Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) | [optional]
+**BaseChoices** | Pointer to [**PatchedWritableCustomFieldChoiceSetRequestBaseChoices**](PatchedWritableCustomFieldChoiceSetRequestBaseChoices.md) | | [optional]
**ExtraChoices** | Pointer to **[][]string** | | [optional]
**OrderAlphabetically** | Pointer to **bool** | Choices are automatically ordered alphabetically | [optional]
@@ -81,20 +81,20 @@ HasDescription returns a boolean if a field has been set.
### GetBaseChoices
-`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoices() string`
+`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoices() PatchedWritableCustomFieldChoiceSetRequestBaseChoices`
GetBaseChoices returns the BaseChoices field if non-nil, zero value otherwise.
### GetBaseChoicesOk
-`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoicesOk() (*string, bool)`
+`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoicesOk() (*PatchedWritableCustomFieldChoiceSetRequestBaseChoices, bool)`
GetBaseChoicesOk returns a tuple with the BaseChoices field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBaseChoices
-`func (o *PatchedWritableCustomFieldChoiceSetRequest) SetBaseChoices(v string)`
+`func (o *PatchedWritableCustomFieldChoiceSetRequest) SetBaseChoices(v PatchedWritableCustomFieldChoiceSetRequestBaseChoices)`
SetBaseChoices sets BaseChoices field to given value.
diff --git a/docs/PatchedWritableCustomFieldChoiceSetRequestBaseChoices.md b/docs/PatchedWritableCustomFieldChoiceSetRequestBaseChoices.md
new file mode 100644
index 0000000000..ae7c3f6a8c
--- /dev/null
+++ b/docs/PatchedWritableCustomFieldChoiceSetRequestBaseChoices.md
@@ -0,0 +1,17 @@
+# PatchedWritableCustomFieldChoiceSetRequestBaseChoices
+
+## Enum
+
+
+* `IATA` (value: `"IATA"`)
+
+* `ISO_3166` (value: `"ISO_3166"`)
+
+* `UN_LOCODE` (value: `"UN_LOCODE"`)
+
+* `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/PatchedWritableCustomFieldRequest.md b/docs/PatchedWritableCustomFieldRequest.md
index 9799433b71..7e818350fc 100644
--- a/docs/PatchedWritableCustomFieldRequest.md
+++ b/docs/PatchedWritableCustomFieldRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ContentTypes** | Pointer to **[]string** | | [optional]
-**Type** | Pointer to **string** | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | [optional]
+**Type** | Pointer to [**PatchedWritableCustomFieldRequestType**](PatchedWritableCustomFieldRequestType.md) | | [optional]
**ObjectType** | Pointer to **string** | | [optional]
**Name** | Pointer to **string** | Internal field name | [optional]
**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional]
@@ -13,13 +13,14 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional]
**SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional]
-**FilterLogic** | Pointer to **string** | Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact | [optional]
-**UiVisibility** | Pointer to **string** | Specifies the visibility of custom field in the UI * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) | [optional]
+**FilterLogic** | Pointer to [**PatchedWritableCustomFieldRequestFilterLogic**](PatchedWritableCustomFieldRequestFilterLogic.md) | | [optional]
+**UiVisible** | Pointer to [**PatchedWritableCustomFieldRequestUiVisible**](PatchedWritableCustomFieldRequestUiVisible.md) | | [optional]
+**UiEditable** | Pointer to [**PatchedWritableCustomFieldRequestUiEditable**](PatchedWritableCustomFieldRequestUiEditable.md) | | [optional]
**IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional]
-**Default** | Pointer to **map[string]interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional]
+**Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional]
**Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional]
-**ValidationMinimum** | Pointer to **NullableInt32** | Minimum allowed value (for numeric fields) | [optional]
-**ValidationMaximum** | Pointer to **NullableInt32** | Maximum allowed value (for numeric fields) | [optional]
+**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]
@@ -69,20 +70,20 @@ HasContentTypes returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritableCustomFieldRequest) GetType() string`
+`func (o *PatchedWritableCustomFieldRequest) GetType() PatchedWritableCustomFieldRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableCustomFieldRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableCustomFieldRequest) GetTypeOk() (*PatchedWritableCustomFieldRequestType, 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 *PatchedWritableCustomFieldRequest) SetType(v string)`
+`func (o *PatchedWritableCustomFieldRequest) SetType(v PatchedWritableCustomFieldRequestType)`
SetType sets Type field to given value.
@@ -269,20 +270,20 @@ HasSearchWeight returns a boolean if a field has been set.
### GetFilterLogic
-`func (o *PatchedWritableCustomFieldRequest) GetFilterLogic() string`
+`func (o *PatchedWritableCustomFieldRequest) GetFilterLogic() PatchedWritableCustomFieldRequestFilterLogic`
GetFilterLogic returns the FilterLogic field if non-nil, zero value otherwise.
### GetFilterLogicOk
-`func (o *PatchedWritableCustomFieldRequest) GetFilterLogicOk() (*string, bool)`
+`func (o *PatchedWritableCustomFieldRequest) GetFilterLogicOk() (*PatchedWritableCustomFieldRequestFilterLogic, bool)`
GetFilterLogicOk returns a tuple with the FilterLogic field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFilterLogic
-`func (o *PatchedWritableCustomFieldRequest) SetFilterLogic(v string)`
+`func (o *PatchedWritableCustomFieldRequest) SetFilterLogic(v PatchedWritableCustomFieldRequestFilterLogic)`
SetFilterLogic sets FilterLogic field to given value.
@@ -292,30 +293,55 @@ SetFilterLogic sets FilterLogic field to given value.
HasFilterLogic returns a boolean if a field has been set.
-### GetUiVisibility
+### GetUiVisible
-`func (o *PatchedWritableCustomFieldRequest) GetUiVisibility() string`
+`func (o *PatchedWritableCustomFieldRequest) GetUiVisible() PatchedWritableCustomFieldRequestUiVisible`
-GetUiVisibility returns the UiVisibility field if non-nil, zero value otherwise.
+GetUiVisible returns the UiVisible field if non-nil, zero value otherwise.
-### GetUiVisibilityOk
+### GetUiVisibleOk
-`func (o *PatchedWritableCustomFieldRequest) GetUiVisibilityOk() (*string, bool)`
+`func (o *PatchedWritableCustomFieldRequest) GetUiVisibleOk() (*PatchedWritableCustomFieldRequestUiVisible, bool)`
-GetUiVisibilityOk returns a tuple with the UiVisibility field if it's non-nil, zero value otherwise
+GetUiVisibleOk returns a tuple with the UiVisible field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetUiVisibility
+### SetUiVisible
-`func (o *PatchedWritableCustomFieldRequest) SetUiVisibility(v string)`
+`func (o *PatchedWritableCustomFieldRequest) SetUiVisible(v PatchedWritableCustomFieldRequestUiVisible)`
-SetUiVisibility sets UiVisibility field to given value.
+SetUiVisible sets UiVisible field to given value.
-### HasUiVisibility
+### HasUiVisible
-`func (o *PatchedWritableCustomFieldRequest) HasUiVisibility() bool`
+`func (o *PatchedWritableCustomFieldRequest) HasUiVisible() bool`
-HasUiVisibility returns a boolean if a field has been set.
+HasUiVisible returns a boolean if a field has been set.
+
+### GetUiEditable
+
+`func (o *PatchedWritableCustomFieldRequest) GetUiEditable() PatchedWritableCustomFieldRequestUiEditable`
+
+GetUiEditable returns the UiEditable field if non-nil, zero value otherwise.
+
+### GetUiEditableOk
+
+`func (o *PatchedWritableCustomFieldRequest) GetUiEditableOk() (*PatchedWritableCustomFieldRequestUiEditable, bool)`
+
+GetUiEditableOk returns a tuple with the UiEditable field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetUiEditable
+
+`func (o *PatchedWritableCustomFieldRequest) SetUiEditable(v PatchedWritableCustomFieldRequestUiEditable)`
+
+SetUiEditable sets UiEditable field to given value.
+
+### HasUiEditable
+
+`func (o *PatchedWritableCustomFieldRequest) HasUiEditable() bool`
+
+HasUiEditable returns a boolean if a field has been set.
### GetIsCloneable
@@ -344,20 +370,20 @@ HasIsCloneable returns a boolean if a field has been set.
### GetDefault
-`func (o *PatchedWritableCustomFieldRequest) GetDefault() map[string]interface{}`
+`func (o *PatchedWritableCustomFieldRequest) GetDefault() interface{}`
GetDefault returns the Default field if non-nil, zero value otherwise.
### GetDefaultOk
-`func (o *PatchedWritableCustomFieldRequest) GetDefaultOk() (*map[string]interface{}, bool)`
+`func (o *PatchedWritableCustomFieldRequest) GetDefaultOk() (*interface{}, bool)`
GetDefaultOk returns a tuple with the Default field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDefault
-`func (o *PatchedWritableCustomFieldRequest) SetDefault(v map[string]interface{})`
+`func (o *PatchedWritableCustomFieldRequest) SetDefault(v interface{})`
SetDefault sets Default field to given value.
@@ -404,20 +430,20 @@ HasWeight returns a boolean if a field has been set.
### GetValidationMinimum
-`func (o *PatchedWritableCustomFieldRequest) GetValidationMinimum() int32`
+`func (o *PatchedWritableCustomFieldRequest) GetValidationMinimum() int64`
GetValidationMinimum returns the ValidationMinimum field if non-nil, zero value otherwise.
### GetValidationMinimumOk
-`func (o *PatchedWritableCustomFieldRequest) GetValidationMinimumOk() (*int32, bool)`
+`func (o *PatchedWritableCustomFieldRequest) GetValidationMinimumOk() (*int64, bool)`
GetValidationMinimumOk returns a tuple with the ValidationMinimum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValidationMinimum
-`func (o *PatchedWritableCustomFieldRequest) SetValidationMinimum(v int32)`
+`func (o *PatchedWritableCustomFieldRequest) SetValidationMinimum(v int64)`
SetValidationMinimum sets ValidationMinimum field to given value.
@@ -439,20 +465,20 @@ HasValidationMinimum returns a boolean if a field has been set.
UnsetValidationMinimum ensures that no value is present for ValidationMinimum, not even an explicit nil
### GetValidationMaximum
-`func (o *PatchedWritableCustomFieldRequest) GetValidationMaximum() int32`
+`func (o *PatchedWritableCustomFieldRequest) GetValidationMaximum() int64`
GetValidationMaximum returns the ValidationMaximum field if non-nil, zero value otherwise.
### GetValidationMaximumOk
-`func (o *PatchedWritableCustomFieldRequest) GetValidationMaximumOk() (*int32, bool)`
+`func (o *PatchedWritableCustomFieldRequest) GetValidationMaximumOk() (*int64, bool)`
GetValidationMaximumOk returns a tuple with the ValidationMaximum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValidationMaximum
-`func (o *PatchedWritableCustomFieldRequest) SetValidationMaximum(v int32)`
+`func (o *PatchedWritableCustomFieldRequest) SetValidationMaximum(v int64)`
SetValidationMaximum sets ValidationMaximum field to given value.
diff --git a/docs/PatchedWritableCustomFieldRequestFilterLogic.md b/docs/PatchedWritableCustomFieldRequestFilterLogic.md
new file mode 100644
index 0000000000..2dcb116c74
--- /dev/null
+++ b/docs/PatchedWritableCustomFieldRequestFilterLogic.md
@@ -0,0 +1,15 @@
+# PatchedWritableCustomFieldRequestFilterLogic
+
+## Enum
+
+
+* `DISABLED` (value: `"disabled"`)
+
+* `LOOSE` (value: `"loose"`)
+
+* `EXACT` (value: `"exact"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableCustomFieldRequestType.md b/docs/PatchedWritableCustomFieldRequestType.md
new file mode 100644
index 0000000000..38aad13fae
--- /dev/null
+++ b/docs/PatchedWritableCustomFieldRequestType.md
@@ -0,0 +1,35 @@
+# PatchedWritableCustomFieldRequestType
+
+## Enum
+
+
+* `TEXT` (value: `"text"`)
+
+* `LONGTEXT` (value: `"longtext"`)
+
+* `INTEGER` (value: `"integer"`)
+
+* `DECIMAL` (value: `"decimal"`)
+
+* `BOOLEAN` (value: `"boolean"`)
+
+* `DATE` (value: `"date"`)
+
+* `DATETIME` (value: `"datetime"`)
+
+* `URL` (value: `"url"`)
+
+* `JSON` (value: `"json"`)
+
+* `SELECT` (value: `"select"`)
+
+* `MULTISELECT` (value: `"multiselect"`)
+
+* `OBJECT` (value: `"object"`)
+
+* `MULTIOBJECT` (value: `"multiobject"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableCustomFieldRequestUiEditable.md b/docs/PatchedWritableCustomFieldRequestUiEditable.md
new file mode 100644
index 0000000000..d3aeeef908
--- /dev/null
+++ b/docs/PatchedWritableCustomFieldRequestUiEditable.md
@@ -0,0 +1,15 @@
+# PatchedWritableCustomFieldRequestUiEditable
+
+## Enum
+
+
+* `YES` (value: `"yes"`)
+
+* `NO` (value: `"no"`)
+
+* `HIDDEN` (value: `"hidden"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableCustomFieldRequestUiVisible.md b/docs/PatchedWritableCustomFieldRequestUiVisible.md
new file mode 100644
index 0000000000..47bf7f089e
--- /dev/null
+++ b/docs/PatchedWritableCustomFieldRequestUiVisible.md
@@ -0,0 +1,15 @@
+# PatchedWritableCustomFieldRequestUiVisible
+
+## Enum
+
+
+* `ALWAYS` (value: `"always"`)
+
+* `IF_SET` (value: `"if-set"`)
+
+* `HIDDEN` (value: `"hidden"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableDataSourceRequest.md b/docs/PatchedWritableDataSourceRequest.md
index 8384acffb6..30ccc17955 100644
--- a/docs/PatchedWritableDataSourceRequest.md
+++ b/docs/PatchedWritableDataSourceRequest.md
@@ -5,12 +5,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
-**Type** | Pointer to **string** | * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3 | [optional]
+**Type** | Pointer to **string** | | [optional]
**SourceUrl** | Pointer to **string** | | [optional]
**Enabled** | Pointer to **bool** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
-**Parameters** | Pointer to **map[string]interface{}** | | [optional]
+**Parameters** | Pointer to **interface{}** | | [optional]
**IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional]
## Methods
@@ -184,20 +184,20 @@ HasComments returns a boolean if a field has been set.
### GetParameters
-`func (o *PatchedWritableDataSourceRequest) GetParameters() map[string]interface{}`
+`func (o *PatchedWritableDataSourceRequest) GetParameters() interface{}`
GetParameters returns the Parameters field if non-nil, zero value otherwise.
### GetParametersOk
-`func (o *PatchedWritableDataSourceRequest) GetParametersOk() (*map[string]interface{}, bool)`
+`func (o *PatchedWritableDataSourceRequest) 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 *PatchedWritableDataSourceRequest) SetParameters(v map[string]interface{})`
+`func (o *PatchedWritableDataSourceRequest) SetParameters(v interface{})`
SetParameters sets Parameters field to given value.
diff --git a/docs/PatchedWritableDeviceTypeRequest.md b/docs/PatchedWritableDeviceTypeRequest.md
index 9f17ebadd9..97c61b9c24 100644
--- a/docs/PatchedWritableDeviceTypeRequest.md
+++ b/docs/PatchedWritableDeviceTypeRequest.md
@@ -10,11 +10,12 @@ Name | Type | Description | Notes
**Slug** | Pointer to **string** | | [optional]
**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional]
**UHeight** | Pointer to **float64** | | [optional] [default to 1.0]
-**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces | [optional]
-**SubdeviceRole** | Pointer to **string** | 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]
-**Airflow** | Pointer to **string** | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | [optional]
+**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]
+**Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional]
**Weight** | Pointer to **NullableFloat64** | | [optional]
-**WeightUnit** | Pointer to **string** | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | [optional]
+**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional]
**FrontImage** | Pointer to ***os.File** | | [optional]
**RearImage** | Pointer to ***os.File** | | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -201,6 +202,31 @@ SetUHeight sets UHeight field to given value.
HasUHeight returns a boolean if a field has been set.
+### GetExcludeFromUtilization
+
+`func (o *PatchedWritableDeviceTypeRequest) GetExcludeFromUtilization() bool`
+
+GetExcludeFromUtilization returns the ExcludeFromUtilization field if non-nil, zero value otherwise.
+
+### GetExcludeFromUtilizationOk
+
+`func (o *PatchedWritableDeviceTypeRequest) 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 *PatchedWritableDeviceTypeRequest) SetExcludeFromUtilization(v bool)`
+
+SetExcludeFromUtilization sets ExcludeFromUtilization field to given value.
+
+### HasExcludeFromUtilization
+
+`func (o *PatchedWritableDeviceTypeRequest) HasExcludeFromUtilization() bool`
+
+HasExcludeFromUtilization returns a boolean if a field has been set.
+
### GetIsFullDepth
`func (o *PatchedWritableDeviceTypeRequest) GetIsFullDepth() bool`
@@ -228,20 +254,20 @@ HasIsFullDepth returns a boolean if a field has been set.
### GetSubdeviceRole
-`func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRole() string`
+`func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus`
GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise.
### GetSubdeviceRoleOk
-`func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRoleOk() (*string, bool)`
+`func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus, 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 string)`
+`func (o *PatchedWritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus)`
SetSubdeviceRole sets SubdeviceRole field to given value.
@@ -253,20 +279,20 @@ HasSubdeviceRole returns a boolean if a field has been set.
### GetAirflow
-`func (o *PatchedWritableDeviceTypeRequest) GetAirflow() string`
+`func (o *PatchedWritableDeviceTypeRequest) GetAirflow() DeviceAirflowValue`
GetAirflow returns the Airflow field if non-nil, zero value otherwise.
### GetAirflowOk
-`func (o *PatchedWritableDeviceTypeRequest) GetAirflowOk() (*string, bool)`
+`func (o *PatchedWritableDeviceTypeRequest) GetAirflowOk() (*DeviceAirflowValue, bool)`
GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAirflow
-`func (o *PatchedWritableDeviceTypeRequest) SetAirflow(v string)`
+`func (o *PatchedWritableDeviceTypeRequest) SetAirflow(v DeviceAirflowValue)`
SetAirflow sets Airflow field to given value.
@@ -313,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() string`
+`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*string, bool)`
+`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, 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 string)`
+`func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)`
SetWeightUnit sets WeightUnit field to given value.
diff --git a/docs/PatchedWritableDeviceWithConfigContextRequest.md b/docs/PatchedWritableDeviceWithConfigContextRequest.md
index aae05e6761..0158f7e385 100644
--- a/docs/PatchedWritableDeviceWithConfigContextRequest.md
+++ b/docs/PatchedWritableDeviceWithConfigContextRequest.md
@@ -15,11 +15,11 @@ Name | Type | Description | Notes
**Location** | Pointer to **NullableInt32** | | [optional]
**Rack** | Pointer to **NullableInt32** | | [optional]
**Position** | Pointer to **NullableFloat64** | | [optional]
-**Face** | Pointer to **string** | * `front` - Front * `rear` - Rear | [optional]
+**Face** | Pointer to [**RackFace**](RackFace.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 **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | [optional]
-**Airflow** | Pointer to **string** | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | [optional]
+**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]
@@ -30,7 +30,7 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**ConfigTemplate** | Pointer to **NullableInt32** | | [optional]
-**LocalContextData** | Pointer to **map[string]interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional]
+**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]
@@ -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() string`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetFace() RackFace`
GetFace returns the Face field if non-nil, zero value otherwise.
### GetFaceOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetFaceOk() (*string, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetFaceOk() (*RackFace, 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 string)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetFace(v RackFace)`
SetFace sets Face field to given value.
@@ -495,20 +495,20 @@ HasLongitude returns a boolean if a field has been set.
UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil
### GetStatus
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetStatus() string`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetStatus() DeviceStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetStatusOk() (*DeviceStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *PatchedWritableDeviceWithConfigContextRequest) SetStatus(v string)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetStatus(v DeviceStatusValue)`
SetStatus sets Status field to given value.
@@ -520,20 +520,20 @@ HasStatus returns a boolean if a field has been set.
### GetAirflow
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflow() string`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflow() DeviceAirflowValue`
GetAirflow returns the Airflow field if non-nil, zero value otherwise.
### GetAirflowOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflowOk() (*string, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceAirflowValue, bool)`
GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAirflow
-`func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v string)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue)`
SetAirflow sets Airflow field to given value.
@@ -875,20 +875,20 @@ HasConfigTemplate returns a boolean if a field has been set.
UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
### GetLocalContextData
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocalContextData() map[string]interface{}`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocalContextData() interface{}`
GetLocalContextData returns the LocalContextData field if non-nil, zero value otherwise.
### GetLocalContextDataOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocalContextDataOk() (*map[string]interface{}, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocalContextDataOk() (*interface{}, bool)`
GetLocalContextDataOk returns a tuple with the LocalContextData field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLocalContextData
-`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocalContextData(v map[string]interface{})`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocalContextData(v interface{})`
SetLocalContextData sets LocalContextData field to given value.
diff --git a/docs/PatchedWritableEventRuleRequest.md b/docs/PatchedWritableEventRuleRequest.md
new file mode 100644
index 0000000000..57e94a3b1a
--- /dev/null
+++ b/docs/PatchedWritableEventRuleRequest.md
@@ -0,0 +1,440 @@
+# PatchedWritableEventRuleRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ContentTypes** | Pointer to **[]string** | | [optional]
+**Name** | Pointer to **string** | | [optional]
+**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional]
+**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional]
+**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional]
+**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional]
+**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional]
+**Enabled** | Pointer to **bool** | | [optional]
+**Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional]
+**ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional]
+**ActionObjectType** | Pointer to **string** | | [optional]
+**ActionObjectId** | Pointer to **NullableInt64** | | [optional]
+**Description** | Pointer to **string** | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+
+## Methods
+
+### NewPatchedWritableEventRuleRequest
+
+`func NewPatchedWritableEventRuleRequest() *PatchedWritableEventRuleRequest`
+
+NewPatchedWritableEventRuleRequest instantiates a new PatchedWritableEventRuleRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPatchedWritableEventRuleRequestWithDefaults
+
+`func NewPatchedWritableEventRuleRequestWithDefaults() *PatchedWritableEventRuleRequest`
+
+NewPatchedWritableEventRuleRequestWithDefaults instantiates a new PatchedWritableEventRuleRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetContentTypes
+
+`func (o *PatchedWritableEventRuleRequest) GetContentTypes() []string`
+
+GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+
+### GetContentTypesOk
+
+`func (o *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) SetContentTypes(v []string)`
+
+SetContentTypes sets ContentTypes field to given value.
+
+### HasContentTypes
+
+`func (o *PatchedWritableEventRuleRequest) HasContentTypes() bool`
+
+HasContentTypes returns a boolean if a field has been set.
+
+### GetName
+
+`func (o *PatchedWritableEventRuleRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *PatchedWritableEventRuleRequest) GetNameOk() (*string, bool)`
+
+GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetName
+
+`func (o *PatchedWritableEventRuleRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *PatchedWritableEventRuleRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### GetTypeCreate
+
+`func (o *PatchedWritableEventRuleRequest) GetTypeCreate() bool`
+
+GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise.
+
+### GetTypeCreateOk
+
+`func (o *PatchedWritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)`
+
+GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeCreate
+
+`func (o *PatchedWritableEventRuleRequest) SetTypeCreate(v bool)`
+
+SetTypeCreate sets TypeCreate field to given value.
+
+### HasTypeCreate
+
+`func (o *PatchedWritableEventRuleRequest) HasTypeCreate() bool`
+
+HasTypeCreate returns a boolean if a field has been set.
+
+### GetTypeUpdate
+
+`func (o *PatchedWritableEventRuleRequest) GetTypeUpdate() bool`
+
+GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise.
+
+### GetTypeUpdateOk
+
+`func (o *PatchedWritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)`
+
+GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeUpdate
+
+`func (o *PatchedWritableEventRuleRequest) SetTypeUpdate(v bool)`
+
+SetTypeUpdate sets TypeUpdate field to given value.
+
+### HasTypeUpdate
+
+`func (o *PatchedWritableEventRuleRequest) HasTypeUpdate() bool`
+
+HasTypeUpdate returns a boolean if a field has been set.
+
+### GetTypeDelete
+
+`func (o *PatchedWritableEventRuleRequest) GetTypeDelete() bool`
+
+GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise.
+
+### GetTypeDeleteOk
+
+`func (o *PatchedWritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)`
+
+GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeDelete
+
+`func (o *PatchedWritableEventRuleRequest) SetTypeDelete(v bool)`
+
+SetTypeDelete sets TypeDelete field to given value.
+
+### HasTypeDelete
+
+`func (o *PatchedWritableEventRuleRequest) HasTypeDelete() bool`
+
+HasTypeDelete returns a boolean if a field has been set.
+
+### GetTypeJobStart
+
+`func (o *PatchedWritableEventRuleRequest) GetTypeJobStart() bool`
+
+GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise.
+
+### GetTypeJobStartOk
+
+`func (o *PatchedWritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)`
+
+GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeJobStart
+
+`func (o *PatchedWritableEventRuleRequest) SetTypeJobStart(v bool)`
+
+SetTypeJobStart sets TypeJobStart field to given value.
+
+### HasTypeJobStart
+
+`func (o *PatchedWritableEventRuleRequest) HasTypeJobStart() bool`
+
+HasTypeJobStart returns a boolean if a field has been set.
+
+### GetTypeJobEnd
+
+`func (o *PatchedWritableEventRuleRequest) GetTypeJobEnd() bool`
+
+GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise.
+
+### GetTypeJobEndOk
+
+`func (o *PatchedWritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)`
+
+GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeJobEnd
+
+`func (o *PatchedWritableEventRuleRequest) SetTypeJobEnd(v bool)`
+
+SetTypeJobEnd sets TypeJobEnd field to given value.
+
+### HasTypeJobEnd
+
+`func (o *PatchedWritableEventRuleRequest) HasTypeJobEnd() bool`
+
+HasTypeJobEnd returns a boolean if a field has been set.
+
+### GetEnabled
+
+`func (o *PatchedWritableEventRuleRequest) GetEnabled() bool`
+
+GetEnabled returns the Enabled field if non-nil, zero value otherwise.
+
+### GetEnabledOk
+
+`func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool)`
+
+GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEnabled
+
+`func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool)`
+
+SetEnabled sets Enabled field to given value.
+
+### HasEnabled
+
+`func (o *PatchedWritableEventRuleRequest) HasEnabled() bool`
+
+HasEnabled returns a boolean if a field has been set.
+
+### GetConditions
+
+`func (o *PatchedWritableEventRuleRequest) GetConditions() interface{}`
+
+GetConditions returns the Conditions field if non-nil, zero value otherwise.
+
+### GetConditionsOk
+
+`func (o *PatchedWritableEventRuleRequest) GetConditionsOk() (*interface{}, bool)`
+
+GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetConditions
+
+`func (o *PatchedWritableEventRuleRequest) SetConditions(v interface{})`
+
+SetConditions sets Conditions field to given value.
+
+### HasConditions
+
+`func (o *PatchedWritableEventRuleRequest) HasConditions() bool`
+
+HasConditions returns a boolean if a field has been set.
+
+### SetConditionsNil
+
+`func (o *PatchedWritableEventRuleRequest) SetConditionsNil(b bool)`
+
+ SetConditionsNil sets the value for Conditions to be an explicit nil
+
+### UnsetConditions
+`func (o *PatchedWritableEventRuleRequest) UnsetConditions()`
+
+UnsetConditions ensures that no value is present for Conditions, not even an explicit nil
+### GetActionType
+
+`func (o *PatchedWritableEventRuleRequest) GetActionType() EventRuleActionTypeValue`
+
+GetActionType returns the ActionType field if non-nil, zero value otherwise.
+
+### GetActionTypeOk
+
+`func (o *PatchedWritableEventRuleRequest) GetActionTypeOk() (*EventRuleActionTypeValue, bool)`
+
+GetActionTypeOk returns a tuple with the ActionType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActionType
+
+`func (o *PatchedWritableEventRuleRequest) SetActionType(v EventRuleActionTypeValue)`
+
+SetActionType sets ActionType field to given value.
+
+### HasActionType
+
+`func (o *PatchedWritableEventRuleRequest) HasActionType() bool`
+
+HasActionType returns a boolean if a field has been set.
+
+### GetActionObjectType
+
+`func (o *PatchedWritableEventRuleRequest) GetActionObjectType() string`
+
+GetActionObjectType returns the ActionObjectType field if non-nil, zero value otherwise.
+
+### GetActionObjectTypeOk
+
+`func (o *PatchedWritableEventRuleRequest) GetActionObjectTypeOk() (*string, bool)`
+
+GetActionObjectTypeOk returns a tuple with the ActionObjectType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActionObjectType
+
+`func (o *PatchedWritableEventRuleRequest) SetActionObjectType(v string)`
+
+SetActionObjectType sets ActionObjectType field to given value.
+
+### HasActionObjectType
+
+`func (o *PatchedWritableEventRuleRequest) HasActionObjectType() bool`
+
+HasActionObjectType returns a boolean if a field has been set.
+
+### GetActionObjectId
+
+`func (o *PatchedWritableEventRuleRequest) GetActionObjectId() int64`
+
+GetActionObjectId returns the ActionObjectId field if non-nil, zero value otherwise.
+
+### GetActionObjectIdOk
+
+`func (o *PatchedWritableEventRuleRequest) GetActionObjectIdOk() (*int64, bool)`
+
+GetActionObjectIdOk returns a tuple with the ActionObjectId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActionObjectId
+
+`func (o *PatchedWritableEventRuleRequest) SetActionObjectId(v int64)`
+
+SetActionObjectId sets ActionObjectId field to given value.
+
+### HasActionObjectId
+
+`func (o *PatchedWritableEventRuleRequest) HasActionObjectId() bool`
+
+HasActionObjectId returns a boolean if a field has been set.
+
+### SetActionObjectIdNil
+
+`func (o *PatchedWritableEventRuleRequest) SetActionObjectIdNil(b bool)`
+
+ SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil
+
+### UnsetActionObjectId
+`func (o *PatchedWritableEventRuleRequest) UnsetActionObjectId()`
+
+UnsetActionObjectId ensures that no value is present for ActionObjectId, not even an explicit nil
+### GetDescription
+
+`func (o *PatchedWritableEventRuleRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *PatchedWritableEventRuleRequest) GetDescriptionOk() (*string, bool)`
+
+GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDescription
+
+`func (o *PatchedWritableEventRuleRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *PatchedWritableEventRuleRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *PatchedWritableEventRuleRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *PatchedWritableEventRuleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+
+GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCustomFields
+
+`func (o *PatchedWritableEventRuleRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *PatchedWritableEventRuleRequest) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *PatchedWritableEventRuleRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *PatchedWritableEventRuleRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+
+GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTags
+
+`func (o *PatchedWritableEventRuleRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *PatchedWritableEventRuleRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableFrontPortRequest.md b/docs/PatchedWritableFrontPortRequest.md
index 3935f578c0..edd954ba16 100644
--- a/docs/PatchedWritableFrontPortRequest.md
+++ b/docs/PatchedWritableFrontPortRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other | [optional]
+**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]
@@ -148,20 +148,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritableFrontPortRequest) GetType() string`
+`func (o *PatchedWritableFrontPortRequest) GetType() FrontPortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableFrontPortRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableFrontPortRequest) 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 *PatchedWritableFrontPortRequest) SetType(v string)`
+`func (o *PatchedWritableFrontPortRequest) SetType(v FrontPortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/PatchedWritableFrontPortTemplateRequest.md b/docs/PatchedWritableFrontPortTemplateRequest.md
index dbcb5b84a2..d7e2ec6cce 100644
--- a/docs/PatchedWritableFrontPortTemplateRequest.md
+++ b/docs/PatchedWritableFrontPortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**ModuleType** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other | [optional]
+**Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional]
**Color** | Pointer to **string** | | [optional]
**RearPort** | Pointer to **int32** | | [optional]
**RearPortPosition** | Pointer to **int32** | | [optional]
@@ -155,20 +155,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritableFrontPortTemplateRequest) GetType() string`
+`func (o *PatchedWritableFrontPortTemplateRequest) GetType() FrontPortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableFrontPortTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableFrontPortTemplateRequest) 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 *PatchedWritableFrontPortTemplateRequest) SetType(v string)`
+`func (o *PatchedWritableFrontPortTemplateRequest) SetType(v FrontPortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/PatchedWritableIKEPolicyRequest.md b/docs/PatchedWritableIKEPolicyRequest.md
new file mode 100644
index 0000000000..c877d8a593
--- /dev/null
+++ b/docs/PatchedWritableIKEPolicyRequest.md
@@ -0,0 +1,264 @@
+# PatchedWritableIKEPolicyRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | Pointer to **string** | | [optional]
+**Description** | Pointer to **string** | | [optional]
+**Version** | Pointer to [**PatchedWritableIKEPolicyRequestVersion**](PatchedWritableIKEPolicyRequestVersion.md) | | [optional]
+**Mode** | Pointer to [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | [optional]
+**Proposals** | Pointer to **[]int32** | | [optional]
+**PresharedKey** | Pointer to **string** | | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewPatchedWritableIKEPolicyRequest
+
+`func NewPatchedWritableIKEPolicyRequest() *PatchedWritableIKEPolicyRequest`
+
+NewPatchedWritableIKEPolicyRequest instantiates a new PatchedWritableIKEPolicyRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPatchedWritableIKEPolicyRequestWithDefaults
+
+`func NewPatchedWritableIKEPolicyRequestWithDefaults() *PatchedWritableIKEPolicyRequest`
+
+NewPatchedWritableIKEPolicyRequestWithDefaults instantiates a new PatchedWritableIKEPolicyRequest object
+This 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 *PatchedWritableIKEPolicyRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *PatchedWritableIKEPolicyRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### GetDescription
+
+`func (o *PatchedWritableIKEPolicyRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *PatchedWritableIKEPolicyRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetVersion
+
+`func (o *PatchedWritableIKEPolicyRequest) GetVersion() PatchedWritableIKEPolicyRequestVersion`
+
+GetVersion returns the Version field if non-nil, zero value otherwise.
+
+### GetVersionOk
+
+`func (o *PatchedWritableIKEPolicyRequest) GetVersionOk() (*PatchedWritableIKEPolicyRequestVersion, bool)`
+
+GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVersion
+
+`func (o *PatchedWritableIKEPolicyRequest) SetVersion(v PatchedWritableIKEPolicyRequestVersion)`
+
+SetVersion sets Version field to given value.
+
+### HasVersion
+
+`func (o *PatchedWritableIKEPolicyRequest) HasVersion() bool`
+
+HasVersion returns a boolean if a field has been set.
+
+### GetMode
+
+`func (o *PatchedWritableIKEPolicyRequest) GetMode() IKEPolicyModeValue`
+
+GetMode returns the Mode field if non-nil, zero value otherwise.
+
+### GetModeOk
+
+`func (o *PatchedWritableIKEPolicyRequest) GetModeOk() (*IKEPolicyModeValue, bool)`
+
+GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetMode
+
+`func (o *PatchedWritableIKEPolicyRequest) SetMode(v IKEPolicyModeValue)`
+
+SetMode sets Mode field to given value.
+
+### HasMode
+
+`func (o *PatchedWritableIKEPolicyRequest) HasMode() bool`
+
+HasMode returns a boolean if a field has been set.
+
+### GetProposals
+
+`func (o *PatchedWritableIKEPolicyRequest) GetProposals() []int32`
+
+GetProposals returns the Proposals field if non-nil, zero value otherwise.
+
+### GetProposalsOk
+
+`func (o *PatchedWritableIKEPolicyRequest) GetProposalsOk() (*[]int32, bool)`
+
+GetProposalsOk returns a tuple with the Proposals field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetProposals
+
+`func (o *PatchedWritableIKEPolicyRequest) SetProposals(v []int32)`
+
+SetProposals sets Proposals field to given value.
+
+### HasProposals
+
+`func (o *PatchedWritableIKEPolicyRequest) HasProposals() bool`
+
+HasProposals returns a boolean if a field has been set.
+
+### GetPresharedKey
+
+`func (o *PatchedWritableIKEPolicyRequest) GetPresharedKey() string`
+
+GetPresharedKey returns the PresharedKey field if non-nil, zero value otherwise.
+
+### GetPresharedKeyOk
+
+`func (o *PatchedWritableIKEPolicyRequest) GetPresharedKeyOk() (*string, bool)`
+
+GetPresharedKeyOk returns a tuple with the PresharedKey field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPresharedKey
+
+`func (o *PatchedWritableIKEPolicyRequest) SetPresharedKey(v string)`
+
+SetPresharedKey sets PresharedKey field to given value.
+
+### HasPresharedKey
+
+`func (o *PatchedWritableIKEPolicyRequest) HasPresharedKey() bool`
+
+HasPresharedKey returns a boolean if a field has been set.
+
+### GetComments
+
+`func (o *PatchedWritableIKEPolicyRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *PatchedWritableIKEPolicyRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *PatchedWritableIKEPolicyRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *PatchedWritableIKEPolicyRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *PatchedWritableIKEPolicyRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *PatchedWritableIKEPolicyRequest) 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/PatchedWritableIKEPolicyRequestVersion.md b/docs/PatchedWritableIKEPolicyRequestVersion.md
new file mode 100644
index 0000000000..e1977e1eb9
--- /dev/null
+++ b/docs/PatchedWritableIKEPolicyRequestVersion.md
@@ -0,0 +1,13 @@
+# PatchedWritableIKEPolicyRequestVersion
+
+## Enum
+
+
+* `_1` (value: `1`)
+
+* `_2` (value: `2`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableIKEProposalRequest.md b/docs/PatchedWritableIKEProposalRequest.md
new file mode 100644
index 0000000000..1cffd162de
--- /dev/null
+++ b/docs/PatchedWritableIKEProposalRequest.md
@@ -0,0 +1,300 @@
+# PatchedWritableIKEProposalRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | Pointer to **string** | | [optional]
+**Description** | Pointer to **string** | | [optional]
+**AuthenticationMethod** | Pointer to [**IKEProposalAuthenticationMethodValue**](IKEProposalAuthenticationMethodValue.md) | | [optional]
+**EncryptionAlgorithm** | Pointer to [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | | [optional]
+**AuthenticationAlgorithm** | Pointer to [**PatchedWritableIKEProposalRequestAuthenticationAlgorithm**](PatchedWritableIKEProposalRequestAuthenticationAlgorithm.md) | | [optional]
+**Group** | Pointer to [**PatchedWritableIKEProposalRequestGroup**](PatchedWritableIKEProposalRequestGroup.md) | | [optional]
+**SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewPatchedWritableIKEProposalRequest
+
+`func NewPatchedWritableIKEProposalRequest() *PatchedWritableIKEProposalRequest`
+
+NewPatchedWritableIKEProposalRequest instantiates a new PatchedWritableIKEProposalRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPatchedWritableIKEProposalRequestWithDefaults
+
+`func NewPatchedWritableIKEProposalRequestWithDefaults() *PatchedWritableIKEProposalRequest`
+
+NewPatchedWritableIKEProposalRequestWithDefaults instantiates a new PatchedWritableIKEProposalRequest object
+This 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 *PatchedWritableIKEProposalRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *PatchedWritableIKEProposalRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### GetDescription
+
+`func (o *PatchedWritableIKEProposalRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *PatchedWritableIKEProposalRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetAuthenticationMethod
+
+`func (o *PatchedWritableIKEProposalRequest) GetAuthenticationMethod() IKEProposalAuthenticationMethodValue`
+
+GetAuthenticationMethod returns the AuthenticationMethod field if non-nil, zero value otherwise.
+
+### GetAuthenticationMethodOk
+
+`func (o *PatchedWritableIKEProposalRequest) GetAuthenticationMethodOk() (*IKEProposalAuthenticationMethodValue, bool)`
+
+GetAuthenticationMethodOk returns a tuple with the AuthenticationMethod field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAuthenticationMethod
+
+`func (o *PatchedWritableIKEProposalRequest) SetAuthenticationMethod(v IKEProposalAuthenticationMethodValue)`
+
+SetAuthenticationMethod sets AuthenticationMethod field to given value.
+
+### HasAuthenticationMethod
+
+`func (o *PatchedWritableIKEProposalRequest) HasAuthenticationMethod() bool`
+
+HasAuthenticationMethod returns a boolean if a field has been set.
+
+### GetEncryptionAlgorithm
+
+`func (o *PatchedWritableIKEProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue`
+
+GetEncryptionAlgorithm returns the EncryptionAlgorithm field if non-nil, zero value otherwise.
+
+### GetEncryptionAlgorithmOk
+
+`func (o *PatchedWritableIKEProposalRequest) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithmValue, bool)`
+
+GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEncryptionAlgorithm
+
+`func (o *PatchedWritableIKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithmValue)`
+
+SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value.
+
+### HasEncryptionAlgorithm
+
+`func (o *PatchedWritableIKEProposalRequest) HasEncryptionAlgorithm() bool`
+
+HasEncryptionAlgorithm returns a boolean if a field has been set.
+
+### GetAuthenticationAlgorithm
+
+`func (o *PatchedWritableIKEProposalRequest) GetAuthenticationAlgorithm() PatchedWritableIKEProposalRequestAuthenticationAlgorithm`
+
+GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field if non-nil, zero value otherwise.
+
+### GetAuthenticationAlgorithmOk
+
+`func (o *PatchedWritableIKEProposalRequest) GetAuthenticationAlgorithmOk() (*PatchedWritableIKEProposalRequestAuthenticationAlgorithm, bool)`
+
+GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAuthenticationAlgorithm
+
+`func (o *PatchedWritableIKEProposalRequest) SetAuthenticationAlgorithm(v PatchedWritableIKEProposalRequestAuthenticationAlgorithm)`
+
+SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value.
+
+### HasAuthenticationAlgorithm
+
+`func (o *PatchedWritableIKEProposalRequest) HasAuthenticationAlgorithm() bool`
+
+HasAuthenticationAlgorithm returns a boolean if a field has been set.
+
+### GetGroup
+
+`func (o *PatchedWritableIKEProposalRequest) GetGroup() PatchedWritableIKEProposalRequestGroup`
+
+GetGroup returns the Group field if non-nil, zero value otherwise.
+
+### GetGroupOk
+
+`func (o *PatchedWritableIKEProposalRequest) GetGroupOk() (*PatchedWritableIKEProposalRequestGroup, 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 *PatchedWritableIKEProposalRequest) SetGroup(v PatchedWritableIKEProposalRequestGroup)`
+
+SetGroup sets Group field to given value.
+
+### HasGroup
+
+`func (o *PatchedWritableIKEProposalRequest) HasGroup() bool`
+
+HasGroup returns a boolean if a field has been set.
+
+### GetSaLifetime
+
+`func (o *PatchedWritableIKEProposalRequest) GetSaLifetime() int32`
+
+GetSaLifetime returns the SaLifetime field if non-nil, zero value otherwise.
+
+### GetSaLifetimeOk
+
+`func (o *PatchedWritableIKEProposalRequest) GetSaLifetimeOk() (*int32, bool)`
+
+GetSaLifetimeOk returns a tuple with the SaLifetime field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSaLifetime
+
+`func (o *PatchedWritableIKEProposalRequest) SetSaLifetime(v int32)`
+
+SetSaLifetime sets SaLifetime field to given value.
+
+### HasSaLifetime
+
+`func (o *PatchedWritableIKEProposalRequest) HasSaLifetime() bool`
+
+HasSaLifetime returns a boolean if a field has been set.
+
+### SetSaLifetimeNil
+
+`func (o *PatchedWritableIKEProposalRequest) SetSaLifetimeNil(b bool)`
+
+ SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil
+
+### UnsetSaLifetime
+`func (o *PatchedWritableIKEProposalRequest) UnsetSaLifetime()`
+
+UnsetSaLifetime ensures that no value is present for SaLifetime, not even an explicit nil
+### GetComments
+
+`func (o *PatchedWritableIKEProposalRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *PatchedWritableIKEProposalRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *PatchedWritableIKEProposalRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *PatchedWritableIKEProposalRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *PatchedWritableIKEProposalRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *PatchedWritableIKEProposalRequest) 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/PatchedWritableIKEProposalRequestAuthenticationAlgorithm.md b/docs/PatchedWritableIKEProposalRequestAuthenticationAlgorithm.md
new file mode 100644
index 0000000000..87eacaf57a
--- /dev/null
+++ b/docs/PatchedWritableIKEProposalRequestAuthenticationAlgorithm.md
@@ -0,0 +1,21 @@
+# PatchedWritableIKEProposalRequestAuthenticationAlgorithm
+
+## Enum
+
+
+* `HMAC_SHA1` (value: `"hmac-sha1"`)
+
+* `HMAC_SHA256` (value: `"hmac-sha256"`)
+
+* `HMAC_SHA384` (value: `"hmac-sha384"`)
+
+* `HMAC_SHA512` (value: `"hmac-sha512"`)
+
+* `HMAC_MD5` (value: `"hmac-md5"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableIKEProposalRequestGroup.md b/docs/PatchedWritableIKEProposalRequestGroup.md
new file mode 100644
index 0000000000..80dc03eb9b
--- /dev/null
+++ b/docs/PatchedWritableIKEProposalRequestGroup.md
@@ -0,0 +1,55 @@
+# PatchedWritableIKEProposalRequestGroup
+
+## Enum
+
+
+* `_1` (value: `1`)
+
+* `_2` (value: `2`)
+
+* `_5` (value: `5`)
+
+* `_14` (value: `14`)
+
+* `_16` (value: `16`)
+
+* `_17` (value: `17`)
+
+* `_18` (value: `18`)
+
+* `_19` (value: `19`)
+
+* `_20` (value: `20`)
+
+* `_21` (value: `21`)
+
+* `_22` (value: `22`)
+
+* `_23` (value: `23`)
+
+* `_24` (value: `24`)
+
+* `_25` (value: `25`)
+
+* `_26` (value: `26`)
+
+* `_27` (value: `27`)
+
+* `_28` (value: `28`)
+
+* `_29` (value: `29`)
+
+* `_30` (value: `30`)
+
+* `_31` (value: `31`)
+
+* `_32` (value: `32`)
+
+* `_33` (value: `33`)
+
+* `_34` (value: `34`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableIPAddressRequest.md b/docs/PatchedWritableIPAddressRequest.md
index 4d13a7bb68..ff330ee7a3 100644
--- a/docs/PatchedWritableIPAddressRequest.md
+++ b/docs/PatchedWritableIPAddressRequest.md
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
**Address** | Pointer to **string** | | [optional]
**Vrf** | Pointer to **NullableInt32** | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC | [optional]
-**Role** | Pointer to **string** | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP | [optional]
+**Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional]
+**Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional]
**AssignedObjectType** | Pointer to **NullableString** | | [optional]
**AssignedObjectId** | Pointer to **NullableInt64** | | [optional]
**NatInside** | Pointer to **NullableInt32** | The IP for which this address is the \"outside\" IP | [optional]
@@ -134,20 +134,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
### GetStatus
-`func (o *PatchedWritableIPAddressRequest) GetStatus() string`
+`func (o *PatchedWritableIPAddressRequest) GetStatus() PatchedWritableIPAddressRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableIPAddressRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableIPAddressRequest) GetStatusOk() (*PatchedWritableIPAddressRequestStatus, 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 *PatchedWritableIPAddressRequest) SetStatus(v string)`
+`func (o *PatchedWritableIPAddressRequest) SetStatus(v PatchedWritableIPAddressRequestStatus)`
SetStatus sets Status field to given value.
@@ -159,20 +159,20 @@ HasStatus returns a boolean if a field has been set.
### GetRole
-`func (o *PatchedWritableIPAddressRequest) GetRole() string`
+`func (o *PatchedWritableIPAddressRequest) GetRole() PatchedWritableIPAddressRequestRole`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *PatchedWritableIPAddressRequest) GetRoleOk() (*string, bool)`
+`func (o *PatchedWritableIPAddressRequest) GetRoleOk() (*PatchedWritableIPAddressRequestRole, 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 *PatchedWritableIPAddressRequest) SetRole(v string)`
+`func (o *PatchedWritableIPAddressRequest) SetRole(v PatchedWritableIPAddressRequestRole)`
SetRole sets Role field to given value.
diff --git a/docs/PatchedWritableIPAddressRequestRole.md b/docs/PatchedWritableIPAddressRequestRole.md
new file mode 100644
index 0000000000..88384de3ac
--- /dev/null
+++ b/docs/PatchedWritableIPAddressRequestRole.md
@@ -0,0 +1,27 @@
+# PatchedWritableIPAddressRequestRole
+
+## 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/PatchedWritableIPAddressRequestStatus.md b/docs/PatchedWritableIPAddressRequestStatus.md
new file mode 100644
index 0000000000..e2e00ec151
--- /dev/null
+++ b/docs/PatchedWritableIPAddressRequestStatus.md
@@ -0,0 +1,19 @@
+# PatchedWritableIPAddressRequestStatus
+
+## 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/PatchedWritableIPRangeRequest.md b/docs/PatchedWritableIPRangeRequest.md
index e6d47decc6..2a5d058885 100644
--- a/docs/PatchedWritableIPRangeRequest.md
+++ b/docs/PatchedWritableIPRangeRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**EndAddress** | Pointer to **string** | | [optional]
**Vrf** | Pointer to **NullableInt32** | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | [optional]
+**Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional]
**Role** | Pointer to **NullableInt32** | The primary function of this range | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -157,20 +157,20 @@ HasTenant returns a boolean if a field has been set.
UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
### GetStatus
-`func (o *PatchedWritableIPRangeRequest) GetStatus() string`
+`func (o *PatchedWritableIPRangeRequest) GetStatus() PatchedWritableIPRangeRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableIPRangeRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableIPRangeRequest) GetStatusOk() (*PatchedWritableIPRangeRequestStatus, 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 *PatchedWritableIPRangeRequest) SetStatus(v string)`
+`func (o *PatchedWritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeRequestStatus)`
SetStatus sets Status field to given value.
diff --git a/docs/PatchedWritableIPRangeRequestStatus.md b/docs/PatchedWritableIPRangeRequestStatus.md
new file mode 100644
index 0000000000..e04b98bd75
--- /dev/null
+++ b/docs/PatchedWritableIPRangeRequestStatus.md
@@ -0,0 +1,15 @@
+# PatchedWritableIPRangeRequestStatus
+
+## Enum
+
+
+* `ACTIVE` (value: `"active"`)
+
+* `RESERVED` (value: `"reserved"`)
+
+* `DEPRECATED` (value: `"deprecated"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableIPSecPolicyRequest.md b/docs/PatchedWritableIPSecPolicyRequest.md
new file mode 100644
index 0000000000..b0101cbf62
--- /dev/null
+++ b/docs/PatchedWritableIPSecPolicyRequest.md
@@ -0,0 +1,222 @@
+# PatchedWritableIPSecPolicyRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | Pointer to **string** | | [optional]
+**Description** | Pointer to **string** | | [optional]
+**Proposals** | Pointer to **[]int32** | | [optional]
+**PfsGroup** | Pointer to [**NullablePatchedWritableIPSecPolicyRequestPfsGroup**](PatchedWritableIPSecPolicyRequestPfsGroup.md) | | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewPatchedWritableIPSecPolicyRequest
+
+`func NewPatchedWritableIPSecPolicyRequest() *PatchedWritableIPSecPolicyRequest`
+
+NewPatchedWritableIPSecPolicyRequest instantiates a new PatchedWritableIPSecPolicyRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPatchedWritableIPSecPolicyRequestWithDefaults
+
+`func NewPatchedWritableIPSecPolicyRequestWithDefaults() *PatchedWritableIPSecPolicyRequest`
+
+NewPatchedWritableIPSecPolicyRequestWithDefaults instantiates a new PatchedWritableIPSecPolicyRequest object
+This 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 *PatchedWritableIPSecPolicyRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *PatchedWritableIPSecPolicyRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### GetDescription
+
+`func (o *PatchedWritableIPSecPolicyRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *PatchedWritableIPSecPolicyRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetProposals
+
+`func (o *PatchedWritableIPSecPolicyRequest) GetProposals() []int32`
+
+GetProposals returns the Proposals field if non-nil, zero value otherwise.
+
+### GetProposalsOk
+
+`func (o *PatchedWritableIPSecPolicyRequest) GetProposalsOk() (*[]int32, bool)`
+
+GetProposalsOk returns a tuple with the Proposals field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetProposals
+
+`func (o *PatchedWritableIPSecPolicyRequest) SetProposals(v []int32)`
+
+SetProposals sets Proposals field to given value.
+
+### HasProposals
+
+`func (o *PatchedWritableIPSecPolicyRequest) HasProposals() bool`
+
+HasProposals returns a boolean if a field has been set.
+
+### GetPfsGroup
+
+`func (o *PatchedWritableIPSecPolicyRequest) GetPfsGroup() PatchedWritableIPSecPolicyRequestPfsGroup`
+
+GetPfsGroup returns the PfsGroup field if non-nil, zero value otherwise.
+
+### GetPfsGroupOk
+
+`func (o *PatchedWritableIPSecPolicyRequest) GetPfsGroupOk() (*PatchedWritableIPSecPolicyRequestPfsGroup, bool)`
+
+GetPfsGroupOk returns a tuple with the PfsGroup field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPfsGroup
+
+`func (o *PatchedWritableIPSecPolicyRequest) SetPfsGroup(v PatchedWritableIPSecPolicyRequestPfsGroup)`
+
+SetPfsGroup sets PfsGroup field to given value.
+
+### HasPfsGroup
+
+`func (o *PatchedWritableIPSecPolicyRequest) HasPfsGroup() bool`
+
+HasPfsGroup returns a boolean if a field has been set.
+
+### SetPfsGroupNil
+
+`func (o *PatchedWritableIPSecPolicyRequest) SetPfsGroupNil(b bool)`
+
+ SetPfsGroupNil sets the value for PfsGroup to be an explicit nil
+
+### UnsetPfsGroup
+`func (o *PatchedWritableIPSecPolicyRequest) UnsetPfsGroup()`
+
+UnsetPfsGroup ensures that no value is present for PfsGroup, not even an explicit nil
+### GetComments
+
+`func (o *PatchedWritableIPSecPolicyRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *PatchedWritableIPSecPolicyRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *PatchedWritableIPSecPolicyRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *PatchedWritableIPSecPolicyRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *PatchedWritableIPSecPolicyRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *PatchedWritableIPSecPolicyRequest) 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/PatchedWritableIPSecPolicyRequestPfsGroup.md b/docs/PatchedWritableIPSecPolicyRequestPfsGroup.md
new file mode 100644
index 0000000000..5f5cf898b0
--- /dev/null
+++ b/docs/PatchedWritableIPSecPolicyRequestPfsGroup.md
@@ -0,0 +1,55 @@
+# PatchedWritableIPSecPolicyRequestPfsGroup
+
+## Enum
+
+
+* `_1` (value: `1`)
+
+* `_2` (value: `2`)
+
+* `_5` (value: `5`)
+
+* `_14` (value: `14`)
+
+* `_16` (value: `16`)
+
+* `_17` (value: `17`)
+
+* `_18` (value: `18`)
+
+* `_19` (value: `19`)
+
+* `_20` (value: `20`)
+
+* `_21` (value: `21`)
+
+* `_22` (value: `22`)
+
+* `_23` (value: `23`)
+
+* `_24` (value: `24`)
+
+* `_25` (value: `25`)
+
+* `_26` (value: `26`)
+
+* `_27` (value: `27`)
+
+* `_28` (value: `28`)
+
+* `_29` (value: `29`)
+
+* `_30` (value: `30`)
+
+* `_31` (value: `31`)
+
+* `_32` (value: `32`)
+
+* `_33` (value: `33`)
+
+* `_34` (value: `34`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableIPSecProfileRequest.md b/docs/PatchedWritableIPSecProfileRequest.md
new file mode 100644
index 0000000000..e0c0c1111b
--- /dev/null
+++ b/docs/PatchedWritableIPSecProfileRequest.md
@@ -0,0 +1,238 @@
+# PatchedWritableIPSecProfileRequest
+
+## Properties
+
+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]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewPatchedWritableIPSecProfileRequest
+
+`func NewPatchedWritableIPSecProfileRequest() *PatchedWritableIPSecProfileRequest`
+
+NewPatchedWritableIPSecProfileRequest instantiates a new PatchedWritableIPSecProfileRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPatchedWritableIPSecProfileRequestWithDefaults
+
+`func NewPatchedWritableIPSecProfileRequestWithDefaults() *PatchedWritableIPSecProfileRequest`
+
+NewPatchedWritableIPSecProfileRequestWithDefaults instantiates a new PatchedWritableIPSecProfileRequest object
+This 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 *PatchedWritableIPSecProfileRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *PatchedWritableIPSecProfileRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### GetDescription
+
+`func (o *PatchedWritableIPSecProfileRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *PatchedWritableIPSecProfileRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetMode
+
+`func (o *PatchedWritableIPSecProfileRequest) GetMode() IPSecProfileModeValue`
+
+GetMode returns the Mode field if non-nil, zero value otherwise.
+
+### GetModeOk
+
+`func (o *PatchedWritableIPSecProfileRequest) GetModeOk() (*IPSecProfileModeValue, bool)`
+
+GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetMode
+
+`func (o *PatchedWritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue)`
+
+SetMode sets Mode field to given value.
+
+### HasMode
+
+`func (o *PatchedWritableIPSecProfileRequest) HasMode() bool`
+
+HasMode returns a boolean if a field has been set.
+
+### GetIkePolicy
+
+`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() int32`
+
+GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise.
+
+### GetIkePolicyOk
+
+`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*int32, 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)`
+
+SetIkePolicy sets IkePolicy field to given value.
+
+### HasIkePolicy
+
+`func (o *PatchedWritableIPSecProfileRequest) HasIkePolicy() bool`
+
+HasIkePolicy returns a boolean if a field has been set.
+
+### GetIpsecPolicy
+
+`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() int32`
+
+GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise.
+
+### GetIpsecPolicyOk
+
+`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*int32, 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)`
+
+SetIpsecPolicy sets IpsecPolicy field to given value.
+
+### HasIpsecPolicy
+
+`func (o *PatchedWritableIPSecProfileRequest) HasIpsecPolicy() bool`
+
+HasIpsecPolicy returns a boolean if a field has been set.
+
+### GetComments
+
+`func (o *PatchedWritableIPSecProfileRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *PatchedWritableIPSecProfileRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *PatchedWritableIPSecProfileRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *PatchedWritableIPSecProfileRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *PatchedWritableIPSecProfileRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *PatchedWritableIPSecProfileRequest) 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/PatchedWritableIPSecProposalRequest.md b/docs/PatchedWritableIPSecProposalRequest.md
new file mode 100644
index 0000000000..cb3aa4ad14
--- /dev/null
+++ b/docs/PatchedWritableIPSecProposalRequest.md
@@ -0,0 +1,284 @@
+# PatchedWritableIPSecProposalRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | Pointer to **string** | | [optional]
+**Description** | Pointer to **string** | | [optional]
+**EncryptionAlgorithm** | Pointer to [**Encryption**](Encryption.md) | | [optional]
+**AuthenticationAlgorithm** | Pointer to [**Authentication**](Authentication.md) | | [optional]
+**SaLifetimeSeconds** | Pointer to **NullableInt32** | Security association lifetime (seconds) | [optional]
+**SaLifetimeData** | Pointer to **NullableInt32** | Security association lifetime (in kilobytes) | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewPatchedWritableIPSecProposalRequest
+
+`func NewPatchedWritableIPSecProposalRequest() *PatchedWritableIPSecProposalRequest`
+
+NewPatchedWritableIPSecProposalRequest instantiates a new PatchedWritableIPSecProposalRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPatchedWritableIPSecProposalRequestWithDefaults
+
+`func NewPatchedWritableIPSecProposalRequestWithDefaults() *PatchedWritableIPSecProposalRequest`
+
+NewPatchedWritableIPSecProposalRequestWithDefaults instantiates a new PatchedWritableIPSecProposalRequest object
+This 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 *PatchedWritableIPSecProposalRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *PatchedWritableIPSecProposalRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### GetDescription
+
+`func (o *PatchedWritableIPSecProposalRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *PatchedWritableIPSecProposalRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetEncryptionAlgorithm
+
+`func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption`
+
+GetEncryptionAlgorithm returns the EncryptionAlgorithm field if non-nil, zero value otherwise.
+
+### GetEncryptionAlgorithmOk
+
+`func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption, bool)`
+
+GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEncryptionAlgorithm
+
+`func (o *PatchedWritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption)`
+
+SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value.
+
+### HasEncryptionAlgorithm
+
+`func (o *PatchedWritableIPSecProposalRequest) HasEncryptionAlgorithm() bool`
+
+HasEncryptionAlgorithm returns a boolean if a field has been set.
+
+### GetAuthenticationAlgorithm
+
+`func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication`
+
+GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field if non-nil, zero value otherwise.
+
+### GetAuthenticationAlgorithmOk
+
+`func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication, bool)`
+
+GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAuthenticationAlgorithm
+
+`func (o *PatchedWritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication)`
+
+SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value.
+
+### HasAuthenticationAlgorithm
+
+`func (o *PatchedWritableIPSecProposalRequest) HasAuthenticationAlgorithm() bool`
+
+HasAuthenticationAlgorithm returns a boolean if a field has been set.
+
+### GetSaLifetimeSeconds
+
+`func (o *PatchedWritableIPSecProposalRequest) GetSaLifetimeSeconds() int32`
+
+GetSaLifetimeSeconds returns the SaLifetimeSeconds field if non-nil, zero value otherwise.
+
+### GetSaLifetimeSecondsOk
+
+`func (o *PatchedWritableIPSecProposalRequest) GetSaLifetimeSecondsOk() (*int32, bool)`
+
+GetSaLifetimeSecondsOk returns a tuple with the SaLifetimeSeconds field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSaLifetimeSeconds
+
+`func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeSeconds(v int32)`
+
+SetSaLifetimeSeconds sets SaLifetimeSeconds field to given value.
+
+### HasSaLifetimeSeconds
+
+`func (o *PatchedWritableIPSecProposalRequest) HasSaLifetimeSeconds() bool`
+
+HasSaLifetimeSeconds returns a boolean if a field has been set.
+
+### SetSaLifetimeSecondsNil
+
+`func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeSecondsNil(b bool)`
+
+ SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil
+
+### UnsetSaLifetimeSeconds
+`func (o *PatchedWritableIPSecProposalRequest) UnsetSaLifetimeSeconds()`
+
+UnsetSaLifetimeSeconds ensures that no value is present for SaLifetimeSeconds, not even an explicit nil
+### GetSaLifetimeData
+
+`func (o *PatchedWritableIPSecProposalRequest) GetSaLifetimeData() int32`
+
+GetSaLifetimeData returns the SaLifetimeData field if non-nil, zero value otherwise.
+
+### GetSaLifetimeDataOk
+
+`func (o *PatchedWritableIPSecProposalRequest) GetSaLifetimeDataOk() (*int32, bool)`
+
+GetSaLifetimeDataOk returns a tuple with the SaLifetimeData field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSaLifetimeData
+
+`func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeData(v int32)`
+
+SetSaLifetimeData sets SaLifetimeData field to given value.
+
+### HasSaLifetimeData
+
+`func (o *PatchedWritableIPSecProposalRequest) HasSaLifetimeData() bool`
+
+HasSaLifetimeData returns a boolean if a field has been set.
+
+### SetSaLifetimeDataNil
+
+`func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeDataNil(b bool)`
+
+ SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil
+
+### UnsetSaLifetimeData
+`func (o *PatchedWritableIPSecProposalRequest) UnsetSaLifetimeData()`
+
+UnsetSaLifetimeData ensures that no value is present for SaLifetimeData, not even an explicit nil
+### GetComments
+
+`func (o *PatchedWritableIPSecProposalRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *PatchedWritableIPSecProposalRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *PatchedWritableIPSecProposalRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *PatchedWritableIPSecProposalRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *PatchedWritableIPSecProposalRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *PatchedWritableIPSecProposalRequest) 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/PatchedWritableInterfaceRequest.md b/docs/PatchedWritableInterfaceRequest.md
index a955ebd519..0fae1ae989 100644
--- a/docs/PatchedWritableInterfaceRequest.md
+++ b/docs/PatchedWritableInterfaceRequest.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | [optional]
+**Type** | Pointer to [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional]
**Enabled** | Pointer to **bool** | | [optional]
**Parent** | Pointer to **NullableInt32** | | [optional]
**Bridge** | Pointer to **NullableInt32** | | [optional]
@@ -17,15 +17,15 @@ Name | Type | Description | Notes
**Mtu** | Pointer to **NullableInt32** | | [optional]
**MacAddress** | Pointer to **NullableString** | | [optional]
**Speed** | Pointer to **NullableInt32** | | [optional]
-**Duplex** | Pointer to **NullableString** | * `half` - Half * `full` - Full * `auto` - Auto | [optional]
+**Duplex** | Pointer to [**NullableInterfaceRequestDuplex**](InterfaceRequestDuplex.md) | | [optional]
**Wwn** | Pointer to **NullableString** | | [optional]
**MgmtOnly** | Pointer to **bool** | This interface is used only for out-of-band management | [optional]
**Description** | Pointer to **string** | | [optional]
-**Mode** | Pointer to **string** | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | [optional]
-**RfRole** | Pointer to **string** | * `ap` - Access point * `station` - Station | [optional]
-**RfChannel** | Pointer to **string** | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) | [optional]
-**PoeMode** | Pointer to **string** | * `pd` - PD * `pse` - PSE | [optional]
-**PoeType** | Pointer to **string** | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | [optional]
+**Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional]
+**RfRole** | Pointer to [**WirelessRole**](WirelessRole.md) | | [optional]
+**RfChannel** | Pointer to [**WirelessChannel**](WirelessChannel.md) | | [optional]
+**PoeMode** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional]
+**PoeType** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional]
**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]
@@ -193,20 +193,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritableInterfaceRequest) GetType() string`
+`func (o *PatchedWritableInterfaceRequest) GetType() InterfaceTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableInterfaceRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableInterfaceRequest) GetTypeOk() (*InterfaceTypeValue, 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 *PatchedWritableInterfaceRequest) SetType(v string)`
+`func (o *PatchedWritableInterfaceRequest) SetType(v InterfaceTypeValue)`
SetType sets Type field to given value.
@@ -453,20 +453,20 @@ HasSpeed returns a boolean if a field has been set.
UnsetSpeed ensures that no value is present for Speed, not even an explicit nil
### GetDuplex
-`func (o *PatchedWritableInterfaceRequest) GetDuplex() string`
+`func (o *PatchedWritableInterfaceRequest) GetDuplex() InterfaceRequestDuplex`
GetDuplex returns the Duplex field if non-nil, zero value otherwise.
### GetDuplexOk
-`func (o *PatchedWritableInterfaceRequest) GetDuplexOk() (*string, bool)`
+`func (o *PatchedWritableInterfaceRequest) GetDuplexOk() (*InterfaceRequestDuplex, bool)`
GetDuplexOk returns a tuple with the Duplex field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDuplex
-`func (o *PatchedWritableInterfaceRequest) SetDuplex(v string)`
+`func (o *PatchedWritableInterfaceRequest) SetDuplex(v InterfaceRequestDuplex)`
SetDuplex sets Duplex field to given value.
@@ -573,20 +573,20 @@ HasDescription returns a boolean if a field has been set.
### GetMode
-`func (o *PatchedWritableInterfaceRequest) GetMode() string`
+`func (o *PatchedWritableInterfaceRequest) GetMode() PatchedWritableInterfaceRequestMode`
GetMode returns the Mode field if non-nil, zero value otherwise.
### GetModeOk
-`func (o *PatchedWritableInterfaceRequest) GetModeOk() (*string, bool)`
+`func (o *PatchedWritableInterfaceRequest) GetModeOk() (*PatchedWritableInterfaceRequestMode, bool)`
GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMode
-`func (o *PatchedWritableInterfaceRequest) SetMode(v string)`
+`func (o *PatchedWritableInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode)`
SetMode sets Mode field to given value.
@@ -598,20 +598,20 @@ HasMode returns a boolean if a field has been set.
### GetRfRole
-`func (o *PatchedWritableInterfaceRequest) GetRfRole() string`
+`func (o *PatchedWritableInterfaceRequest) GetRfRole() WirelessRole`
GetRfRole returns the RfRole field if non-nil, zero value otherwise.
### GetRfRoleOk
-`func (o *PatchedWritableInterfaceRequest) GetRfRoleOk() (*string, bool)`
+`func (o *PatchedWritableInterfaceRequest) GetRfRoleOk() (*WirelessRole, bool)`
GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRfRole
-`func (o *PatchedWritableInterfaceRequest) SetRfRole(v string)`
+`func (o *PatchedWritableInterfaceRequest) SetRfRole(v WirelessRole)`
SetRfRole sets RfRole field to given value.
@@ -623,20 +623,20 @@ HasRfRole returns a boolean if a field has been set.
### GetRfChannel
-`func (o *PatchedWritableInterfaceRequest) GetRfChannel() string`
+`func (o *PatchedWritableInterfaceRequest) GetRfChannel() WirelessChannel`
GetRfChannel returns the RfChannel field if non-nil, zero value otherwise.
### GetRfChannelOk
-`func (o *PatchedWritableInterfaceRequest) GetRfChannelOk() (*string, bool)`
+`func (o *PatchedWritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel, bool)`
GetRfChannelOk returns a tuple with the RfChannel field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRfChannel
-`func (o *PatchedWritableInterfaceRequest) SetRfChannel(v string)`
+`func (o *PatchedWritableInterfaceRequest) SetRfChannel(v WirelessChannel)`
SetRfChannel sets RfChannel field to given value.
@@ -648,20 +648,20 @@ HasRfChannel returns a boolean if a field has been set.
### GetPoeMode
-`func (o *PatchedWritableInterfaceRequest) GetPoeMode() string`
+`func (o *PatchedWritableInterfaceRequest) GetPoeMode() InterfacePoeModeValue`
GetPoeMode returns the PoeMode field if non-nil, zero value otherwise.
### GetPoeModeOk
-`func (o *PatchedWritableInterfaceRequest) GetPoeModeOk() (*string, bool)`
+`func (o *PatchedWritableInterfaceRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool)`
GetPoeModeOk returns a tuple with the PoeMode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPoeMode
-`func (o *PatchedWritableInterfaceRequest) SetPoeMode(v string)`
+`func (o *PatchedWritableInterfaceRequest) SetPoeMode(v InterfacePoeModeValue)`
SetPoeMode sets PoeMode field to given value.
@@ -673,20 +673,20 @@ HasPoeMode returns a boolean if a field has been set.
### GetPoeType
-`func (o *PatchedWritableInterfaceRequest) GetPoeType() string`
+`func (o *PatchedWritableInterfaceRequest) GetPoeType() InterfacePoeTypeValue`
GetPoeType returns the PoeType field if non-nil, zero value otherwise.
### GetPoeTypeOk
-`func (o *PatchedWritableInterfaceRequest) GetPoeTypeOk() (*string, bool)`
+`func (o *PatchedWritableInterfaceRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool)`
GetPoeTypeOk returns a tuple with the PoeType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPoeType
-`func (o *PatchedWritableInterfaceRequest) SetPoeType(v string)`
+`func (o *PatchedWritableInterfaceRequest) SetPoeType(v InterfacePoeTypeValue)`
SetPoeType sets PoeType field to given value.
diff --git a/docs/PatchedWritableInterfaceRequestMode.md b/docs/PatchedWritableInterfaceRequestMode.md
new file mode 100644
index 0000000000..8a23d52568
--- /dev/null
+++ b/docs/PatchedWritableInterfaceRequestMode.md
@@ -0,0 +1,17 @@
+# PatchedWritableInterfaceRequestMode
+
+## Enum
+
+
+* `ACCESS` (value: `"access"`)
+
+* `TAGGED` (value: `"tagged"`)
+
+* `TAGGED_ALL` (value: `"tagged-all"`)
+
+* `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/PatchedWritableInterfaceTemplateRequest.md b/docs/PatchedWritableInterfaceTemplateRequest.md
index 7b4f41ad52..0513057b6d 100644
--- a/docs/PatchedWritableInterfaceTemplateRequest.md
+++ b/docs/PatchedWritableInterfaceTemplateRequest.md
@@ -8,14 +8,14 @@ Name | Type | Description | Notes
**ModuleType** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | [optional]
+**Type** | Pointer to [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional]
**Enabled** | Pointer to **bool** | | [optional]
**MgmtOnly** | Pointer to **bool** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Bridge** | Pointer to **NullableInt32** | | [optional]
-**PoeMode** | Pointer to **string** | * `pd` - PD * `pse` - PSE | [optional]
-**PoeType** | Pointer to **string** | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | [optional]
-**RfRole** | Pointer to **string** | * `ap` - Access point * `station` - Station | [optional]
+**PoeMode** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional]
+**PoeType** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional]
+**RfRole** | Pointer to [**WirelessRole**](WirelessRole.md) | | [optional]
## Methods
@@ -158,20 +158,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritableInterfaceTemplateRequest) GetType() string`
+`func (o *PatchedWritableInterfaceTemplateRequest) GetType() InterfaceTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableInterfaceTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableInterfaceTemplateRequest) GetTypeOk() (*InterfaceTypeValue, 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 *PatchedWritableInterfaceTemplateRequest) SetType(v string)`
+`func (o *PatchedWritableInterfaceTemplateRequest) SetType(v InterfaceTypeValue)`
SetType sets Type field to given value.
@@ -293,20 +293,20 @@ HasBridge returns a boolean if a field has been set.
UnsetBridge ensures that no value is present for Bridge, not even an explicit nil
### GetPoeMode
-`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeMode() string`
+`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeMode() InterfacePoeModeValue`
GetPoeMode returns the PoeMode field if non-nil, zero value otherwise.
### GetPoeModeOk
-`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeModeOk() (*string, bool)`
+`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool)`
GetPoeModeOk returns a tuple with the PoeMode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPoeMode
-`func (o *PatchedWritableInterfaceTemplateRequest) SetPoeMode(v string)`
+`func (o *PatchedWritableInterfaceTemplateRequest) SetPoeMode(v InterfacePoeModeValue)`
SetPoeMode sets PoeMode field to given value.
@@ -318,20 +318,20 @@ HasPoeMode returns a boolean if a field has been set.
### GetPoeType
-`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeType() string`
+`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeType() InterfacePoeTypeValue`
GetPoeType returns the PoeType field if non-nil, zero value otherwise.
### GetPoeTypeOk
-`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeTypeOk() (*string, bool)`
+`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool)`
GetPoeTypeOk returns a tuple with the PoeType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPoeType
-`func (o *PatchedWritableInterfaceTemplateRequest) SetPoeType(v string)`
+`func (o *PatchedWritableInterfaceTemplateRequest) SetPoeType(v InterfacePoeTypeValue)`
SetPoeType sets PoeType field to given value.
@@ -343,20 +343,20 @@ HasPoeType returns a boolean if a field has been set.
### GetRfRole
-`func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() string`
+`func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() WirelessRole`
GetRfRole returns the RfRole field if non-nil, zero value otherwise.
### GetRfRoleOk
-`func (o *PatchedWritableInterfaceTemplateRequest) GetRfRoleOk() (*string, bool)`
+`func (o *PatchedWritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole, bool)`
GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRfRole
-`func (o *PatchedWritableInterfaceTemplateRequest) SetRfRole(v string)`
+`func (o *PatchedWritableInterfaceTemplateRequest) SetRfRole(v WirelessRole)`
SetRfRole sets RfRole field to given value.
diff --git a/docs/PatchedWritableJournalEntryRequest.md b/docs/PatchedWritableJournalEntryRequest.md
index 604ed9afe9..555aa1fe15 100644
--- a/docs/PatchedWritableJournalEntryRequest.md
+++ b/docs/PatchedWritableJournalEntryRequest.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**AssignedObjectType** | Pointer to **string** | | [optional]
**AssignedObjectId** | Pointer to **int64** | | [optional]
**CreatedBy** | Pointer to **NullableInt32** | | [optional]
-**Kind** | Pointer to **string** | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger | [optional]
+**Kind** | Pointer to [**JournalEntryKindValue**](JournalEntryKindValue.md) | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -118,20 +118,20 @@ HasCreatedBy returns a boolean if a field has been set.
UnsetCreatedBy ensures that no value is present for CreatedBy, not even an explicit nil
### GetKind
-`func (o *PatchedWritableJournalEntryRequest) GetKind() string`
+`func (o *PatchedWritableJournalEntryRequest) GetKind() JournalEntryKindValue`
GetKind returns the Kind field if non-nil, zero value otherwise.
### GetKindOk
-`func (o *PatchedWritableJournalEntryRequest) GetKindOk() (*string, bool)`
+`func (o *PatchedWritableJournalEntryRequest) GetKindOk() (*JournalEntryKindValue, bool)`
GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetKind
-`func (o *PatchedWritableJournalEntryRequest) SetKind(v string)`
+`func (o *PatchedWritableJournalEntryRequest) SetKind(v JournalEntryKindValue)`
SetKind sets Kind field to given value.
diff --git a/docs/PatchedWritableL2VPNRequest.md b/docs/PatchedWritableL2VPNRequest.md
index 0010c42cab..d87dfb89e3 100644
--- a/docs/PatchedWritableL2VPNRequest.md
+++ b/docs/PatchedWritableL2VPNRequest.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Identifier** | Pointer to **NullableInt64** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Slug** | Pointer to **string** | | [optional]
-**Type** | Pointer to **string** | * `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 | [optional]
+**Type** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional]
**ImportTargets** | Pointer to **[]int32** | | [optional]
**ExportTargets** | Pointer to **[]int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -122,20 +122,20 @@ HasSlug returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritableL2VPNRequest) GetType() string`
+`func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableL2VPNRequest) 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 *PatchedWritableL2VPNRequest) SetType(v string)`
+`func (o *PatchedWritableL2VPNRequest) SetType(v L2VPNTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/PatchedWritableLocationRequest.md b/docs/PatchedWritableLocationRequest.md
index fa0a65e875..e121c90b6b 100644
--- a/docs/PatchedWritableLocationRequest.md
+++ b/docs/PatchedWritableLocationRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Slug** | Pointer to **string** | | [optional]
**Site** | Pointer to **int32** | | [optional]
**Parent** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | [optional]
+**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -145,20 +145,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() string`
+`func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableLocationRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *PatchedWritableLocationRequest) SetStatus(v string)`
+`func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/PatchedWritableModuleRequest.md b/docs/PatchedWritableModuleRequest.md
index f058d613fb..79d49c0dc5 100644
--- a/docs/PatchedWritableModuleRequest.md
+++ b/docs/PatchedWritableModuleRequest.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Device** | Pointer to **int32** | | [optional]
**ModuleBay** | Pointer to **int32** | | [optional]
**ModuleType** | Pointer to **int32** | | [optional]
-**Status** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | [optional]
+**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]
@@ -111,20 +111,20 @@ HasModuleType returns a boolean if a field has been set.
### GetStatus
-`func (o *PatchedWritableModuleRequest) GetStatus() string`
+`func (o *PatchedWritableModuleRequest) GetStatus() ModuleStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableModuleRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableModuleRequest) 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 *PatchedWritableModuleRequest) SetStatus(v string)`
+`func (o *PatchedWritableModuleRequest) SetStatus(v ModuleStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/PatchedWritableModuleTypeRequest.md b/docs/PatchedWritableModuleTypeRequest.md
index 71ea469cc2..4fdedebfb2 100644
--- a/docs/PatchedWritableModuleTypeRequest.md
+++ b/docs/PatchedWritableModuleTypeRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Model** | Pointer to **string** | | [optional]
**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional]
**Weight** | Pointer to **NullableFloat64** | | [optional]
-**WeightUnit** | Pointer to **string** | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | [optional]
+**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -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() string`
+`func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*string, bool)`
+`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, 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 string)`
+`func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)`
SetWeightUnit sets WeightUnit field to given value.
diff --git a/docs/PatchedWritableObjectPermissionRequest.md b/docs/PatchedWritableObjectPermissionRequest.md
index b69c365f13..a43df18b21 100644
--- a/docs/PatchedWritableObjectPermissionRequest.md
+++ b/docs/PatchedWritableObjectPermissionRequest.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**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 **map[string]interface{}** | Queryset filter matching the applicable objects of the selected type(s) | [optional]
+**Constraints** | Pointer to **interface{}** | Queryset filter matching the applicable objects of the selected type(s) | [optional]
## Methods
@@ -209,20 +209,20 @@ HasActions returns a boolean if a field has been set.
### GetConstraints
-`func (o *PatchedWritableObjectPermissionRequest) GetConstraints() map[string]interface{}`
+`func (o *PatchedWritableObjectPermissionRequest) GetConstraints() interface{}`
GetConstraints returns the Constraints field if non-nil, zero value otherwise.
### GetConstraintsOk
-`func (o *PatchedWritableObjectPermissionRequest) GetConstraintsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedWritableObjectPermissionRequest) 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 *PatchedWritableObjectPermissionRequest) SetConstraints(v map[string]interface{})`
+`func (o *PatchedWritableObjectPermissionRequest) SetConstraints(v interface{})`
SetConstraints sets Constraints field to given value.
diff --git a/docs/PatchedWritablePowerFeedRequest.md b/docs/PatchedWritablePowerFeedRequest.md
index a6ff30ec18..117c10dfb6 100644
--- a/docs/PatchedWritablePowerFeedRequest.md
+++ b/docs/PatchedWritablePowerFeedRequest.md
@@ -7,10 +7,10 @@ Name | Type | Description | Notes
**PowerPanel** | Pointer to **int32** | | [optional]
**Rack** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | | [optional]
-**Status** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed | [optional]
-**Type** | Pointer to **string** | * `primary` - Primary * `redundant` - Redundant | [optional]
-**Supply** | Pointer to **string** | * `ac` - AC * `dc` - DC | [optional]
-**Phase** | Pointer to **string** | * `single-phase` - Single phase * `three-phase` - Three-phase | [optional]
+**Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional]
+**Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional]
+**Supply** | Pointer to [**PatchedWritablePowerFeedRequestSupply**](PatchedWritablePowerFeedRequestSupply.md) | | [optional]
+**Phase** | Pointer to [**PatchedWritablePowerFeedRequestPhase**](PatchedWritablePowerFeedRequestPhase.md) | | [optional]
**Voltage** | Pointer to **int32** | | [optional]
**Amperage** | Pointer to **int32** | | [optional]
**MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional]
@@ -127,20 +127,20 @@ HasName returns a boolean if a field has been set.
### GetStatus
-`func (o *PatchedWritablePowerFeedRequest) GetStatus() string`
+`func (o *PatchedWritablePowerFeedRequest) GetStatus() PatchedWritablePowerFeedRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritablePowerFeedRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritablePowerFeedRequest) GetStatusOk() (*PatchedWritablePowerFeedRequestStatus, 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 *PatchedWritablePowerFeedRequest) SetStatus(v string)`
+`func (o *PatchedWritablePowerFeedRequest) SetStatus(v PatchedWritablePowerFeedRequestStatus)`
SetStatus sets Status field to given value.
@@ -152,20 +152,20 @@ HasStatus returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritablePowerFeedRequest) GetType() string`
+`func (o *PatchedWritablePowerFeedRequest) GetType() PatchedWritablePowerFeedRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritablePowerFeedRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritablePowerFeedRequest) GetTypeOk() (*PatchedWritablePowerFeedRequestType, 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 *PatchedWritablePowerFeedRequest) SetType(v string)`
+`func (o *PatchedWritablePowerFeedRequest) SetType(v PatchedWritablePowerFeedRequestType)`
SetType sets Type field to given value.
@@ -177,20 +177,20 @@ HasType returns a boolean if a field has been set.
### GetSupply
-`func (o *PatchedWritablePowerFeedRequest) GetSupply() string`
+`func (o *PatchedWritablePowerFeedRequest) GetSupply() PatchedWritablePowerFeedRequestSupply`
GetSupply returns the Supply field if non-nil, zero value otherwise.
### GetSupplyOk
-`func (o *PatchedWritablePowerFeedRequest) GetSupplyOk() (*string, bool)`
+`func (o *PatchedWritablePowerFeedRequest) GetSupplyOk() (*PatchedWritablePowerFeedRequestSupply, bool)`
GetSupplyOk returns a tuple with the Supply field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSupply
-`func (o *PatchedWritablePowerFeedRequest) SetSupply(v string)`
+`func (o *PatchedWritablePowerFeedRequest) SetSupply(v PatchedWritablePowerFeedRequestSupply)`
SetSupply sets Supply field to given value.
@@ -202,20 +202,20 @@ HasSupply returns a boolean if a field has been set.
### GetPhase
-`func (o *PatchedWritablePowerFeedRequest) GetPhase() string`
+`func (o *PatchedWritablePowerFeedRequest) GetPhase() PatchedWritablePowerFeedRequestPhase`
GetPhase returns the Phase field if non-nil, zero value otherwise.
### GetPhaseOk
-`func (o *PatchedWritablePowerFeedRequest) GetPhaseOk() (*string, bool)`
+`func (o *PatchedWritablePowerFeedRequest) GetPhaseOk() (*PatchedWritablePowerFeedRequestPhase, bool)`
GetPhaseOk returns a tuple with the Phase field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPhase
-`func (o *PatchedWritablePowerFeedRequest) SetPhase(v string)`
+`func (o *PatchedWritablePowerFeedRequest) SetPhase(v PatchedWritablePowerFeedRequestPhase)`
SetPhase sets Phase field to given value.
diff --git a/docs/PatchedWritablePowerFeedRequestPhase.md b/docs/PatchedWritablePowerFeedRequestPhase.md
new file mode 100644
index 0000000000..9fd68afe6e
--- /dev/null
+++ b/docs/PatchedWritablePowerFeedRequestPhase.md
@@ -0,0 +1,13 @@
+# PatchedWritablePowerFeedRequestPhase
+
+## 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/PatchedWritablePowerFeedRequestStatus.md b/docs/PatchedWritablePowerFeedRequestStatus.md
new file mode 100644
index 0000000000..c33d4183b8
--- /dev/null
+++ b/docs/PatchedWritablePowerFeedRequestStatus.md
@@ -0,0 +1,17 @@
+# PatchedWritablePowerFeedRequestStatus
+
+## Enum
+
+
+* `OFFLINE` (value: `"offline"`)
+
+* `ACTIVE` (value: `"active"`)
+
+* `PLANNED` (value: `"planned"`)
+
+* `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/PatchedWritablePowerFeedRequestSupply.md b/docs/PatchedWritablePowerFeedRequestSupply.md
new file mode 100644
index 0000000000..bb051c4646
--- /dev/null
+++ b/docs/PatchedWritablePowerFeedRequestSupply.md
@@ -0,0 +1,13 @@
+# PatchedWritablePowerFeedRequestSupply
+
+## Enum
+
+
+* `AC` (value: `"ac"`)
+
+* `DC` (value: `"dc"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritablePowerFeedRequestType.md b/docs/PatchedWritablePowerFeedRequestType.md
new file mode 100644
index 0000000000..6271b3afc9
--- /dev/null
+++ b/docs/PatchedWritablePowerFeedRequestType.md
@@ -0,0 +1,13 @@
+# PatchedWritablePowerFeedRequestType
+
+## Enum
+
+
+* `PRIMARY` (value: `"primary"`)
+
+* `REDUNDANT` (value: `"redundant"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritablePowerOutletRequest.md b/docs/PatchedWritablePowerOutletRequest.md
index 3a48ab75d6..078122c08b 100644
--- a/docs/PatchedWritablePowerOutletRequest.md
+++ b/docs/PatchedWritablePowerOutletRequest.md
@@ -8,9 +8,9 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | 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 | [optional]
+**Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional]
**PowerPort** | Pointer to **NullableInt32** | | [optional]
-**FeedLeg** | Pointer to **string** | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | [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]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -147,20 +147,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritablePowerOutletRequest) GetType() string`
+`func (o *PatchedWritablePowerOutletRequest) GetType() PatchedWritablePowerOutletRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritablePowerOutletRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritablePowerOutletRequest) GetTypeOk() (*PatchedWritablePowerOutletRequestType, 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 *PatchedWritablePowerOutletRequest) SetType(v string)`
+`func (o *PatchedWritablePowerOutletRequest) SetType(v PatchedWritablePowerOutletRequestType)`
SetType sets Type field to given value.
@@ -207,20 +207,20 @@ HasPowerPort returns a boolean if a field has been set.
UnsetPowerPort ensures that no value is present for PowerPort, not even an explicit nil
### GetFeedLeg
-`func (o *PatchedWritablePowerOutletRequest) GetFeedLeg() string`
+`func (o *PatchedWritablePowerOutletRequest) GetFeedLeg() PatchedWritablePowerOutletRequestFeedLeg`
GetFeedLeg returns the FeedLeg field if non-nil, zero value otherwise.
### GetFeedLegOk
-`func (o *PatchedWritablePowerOutletRequest) GetFeedLegOk() (*string, bool)`
+`func (o *PatchedWritablePowerOutletRequest) GetFeedLegOk() (*PatchedWritablePowerOutletRequestFeedLeg, bool)`
GetFeedLegOk returns a tuple with the FeedLeg field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFeedLeg
-`func (o *PatchedWritablePowerOutletRequest) SetFeedLeg(v string)`
+`func (o *PatchedWritablePowerOutletRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg)`
SetFeedLeg sets FeedLeg field to given value.
diff --git a/docs/PatchedWritablePowerOutletRequestFeedLeg.md b/docs/PatchedWritablePowerOutletRequestFeedLeg.md
new file mode 100644
index 0000000000..f157cbc750
--- /dev/null
+++ b/docs/PatchedWritablePowerOutletRequestFeedLeg.md
@@ -0,0 +1,17 @@
+# PatchedWritablePowerOutletRequestFeedLeg
+
+## Enum
+
+
+* `A` (value: `"A"`)
+
+* `B` (value: `"B"`)
+
+* `C` (value: `"C"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritablePowerOutletRequestType.md b/docs/PatchedWritablePowerOutletRequestType.md
new file mode 100644
index 0000000000..d5127a33d4
--- /dev/null
+++ b/docs/PatchedWritablePowerOutletRequestType.md
@@ -0,0 +1,197 @@
+# PatchedWritablePowerOutletRequestType
+
+## Enum
+
+
+* `IEC_60320_C5` (value: `"iec-60320-c5"`)
+
+* `IEC_60320_C7` (value: `"iec-60320-c7"`)
+
+* `IEC_60320_C13` (value: `"iec-60320-c13"`)
+
+* `IEC_60320_C15` (value: `"iec-60320-c15"`)
+
+* `IEC_60320_C19` (value: `"iec-60320-c19"`)
+
+* `IEC_60320_C21` (value: `"iec-60320-c21"`)
+
+* `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_15R` (value: `"nema-1-15r"`)
+
+* `NEMA_5_15R` (value: `"nema-5-15r"`)
+
+* `NEMA_5_20R` (value: `"nema-5-20r"`)
+
+* `NEMA_5_30R` (value: `"nema-5-30r"`)
+
+* `NEMA_5_50R` (value: `"nema-5-50r"`)
+
+* `NEMA_6_15R` (value: `"nema-6-15r"`)
+
+* `NEMA_6_20R` (value: `"nema-6-20r"`)
+
+* `NEMA_6_30R` (value: `"nema-6-30r"`)
+
+* `NEMA_6_50R` (value: `"nema-6-50r"`)
+
+* `NEMA_10_30R` (value: `"nema-10-30r"`)
+
+* `NEMA_10_50R` (value: `"nema-10-50r"`)
+
+* `NEMA_14_20R` (value: `"nema-14-20r"`)
+
+* `NEMA_14_30R` (value: `"nema-14-30r"`)
+
+* `NEMA_14_50R` (value: `"nema-14-50r"`)
+
+* `NEMA_14_60R` (value: `"nema-14-60r"`)
+
+* `NEMA_15_15R` (value: `"nema-15-15r"`)
+
+* `NEMA_15_20R` (value: `"nema-15-20r"`)
+
+* `NEMA_15_30R` (value: `"nema-15-30r"`)
+
+* `NEMA_15_50R` (value: `"nema-15-50r"`)
+
+* `NEMA_15_60R` (value: `"nema-15-60r"`)
+
+* `NEMA_L1_15R` (value: `"nema-l1-15r"`)
+
+* `NEMA_L5_15R` (value: `"nema-l5-15r"`)
+
+* `NEMA_L5_20R` (value: `"nema-l5-20r"`)
+
+* `NEMA_L5_30R` (value: `"nema-l5-30r"`)
+
+* `NEMA_L5_50R` (value: `"nema-l5-50r"`)
+
+* `NEMA_L6_15R` (value: `"nema-l6-15r"`)
+
+* `NEMA_L6_20R` (value: `"nema-l6-20r"`)
+
+* `NEMA_L6_30R` (value: `"nema-l6-30r"`)
+
+* `NEMA_L6_50R` (value: `"nema-l6-50r"`)
+
+* `NEMA_L10_30R` (value: `"nema-l10-30r"`)
+
+* `NEMA_L14_20R` (value: `"nema-l14-20r"`)
+
+* `NEMA_L14_30R` (value: `"nema-l14-30r"`)
+
+* `NEMA_L14_50R` (value: `"nema-l14-50r"`)
+
+* `NEMA_L14_60R` (value: `"nema-l14-60r"`)
+
+* `NEMA_L15_20R` (value: `"nema-l15-20r"`)
+
+* `NEMA_L15_30R` (value: `"nema-l15-30r"`)
+
+* `NEMA_L15_50R` (value: `"nema-l15-50r"`)
+
+* `NEMA_L15_60R` (value: `"nema-l15-60r"`)
+
+* `NEMA_L21_20R` (value: `"nema-l21-20r"`)
+
+* `NEMA_L21_30R` (value: `"nema-l21-30r"`)
+
+* `NEMA_L22_30R` (value: `"nema-l22-30r"`)
+
+* `CS6360_C` (value: `"CS6360C"`)
+
+* `CS6364_C` (value: `"CS6364C"`)
+
+* `CS8164_C` (value: `"CS8164C"`)
+
+* `CS8264_C` (value: `"CS8264C"`)
+
+* `CS8364_C` (value: `"CS8364C"`)
+
+* `CS8464_C` (value: `"CS8464C"`)
+
+* `ITA_E` (value: `"ita-e"`)
+
+* `ITA_F` (value: `"ita-f"`)
+
+* `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"`)
+
+* `ITA_MULTISTANDARD` (value: `"ita-multistandard"`)
+
+* `USB_A` (value: `"usb-a"`)
+
+* `USB_MICRO_B` (value: `"usb-micro-b"`)
+
+* `USB_C` (value: `"usb-c"`)
+
+* `DC_TERMINAL` (value: `"dc-terminal"`)
+
+* `HDOT_CX` (value: `"hdot-cx"`)
+
+* `SAF_D_GRID` (value: `"saf-d-grid"`)
+
+* `NEUTRIK_POWERCON_20A` (value: `"neutrik-powercon-20a"`)
+
+* `NEUTRIK_POWERCON_32A` (value: `"neutrik-powercon-32a"`)
+
+* `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/PatchedWritablePowerOutletTemplateRequest.md b/docs/PatchedWritablePowerOutletTemplateRequest.md
index 85bdd5e313..1dffdc2663 100644
--- a/docs/PatchedWritablePowerOutletTemplateRequest.md
+++ b/docs/PatchedWritablePowerOutletTemplateRequest.md
@@ -8,9 +8,9 @@ Name | Type | Description | Notes
**ModuleType** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional]
+**Type** | Pointer to [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional]
**PowerPort** | Pointer to **NullableInt32** | | [optional]
-**FeedLeg** | Pointer to **string** | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | [optional]
+**FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
## Methods
@@ -154,20 +154,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritablePowerOutletTemplateRequest) GetType() string`
+`func (o *PatchedWritablePowerOutletTemplateRequest) GetType() PatchedWritablePowerOutletTemplateRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritablePowerOutletTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritablePowerOutletTemplateRequest) GetTypeOk() (*PatchedWritablePowerOutletTemplateRequestType, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *PatchedWritablePowerOutletTemplateRequest) SetType(v string)`
+`func (o *PatchedWritablePowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType)`
SetType sets Type field to given value.
@@ -214,20 +214,20 @@ HasPowerPort returns a boolean if a field has been set.
UnsetPowerPort ensures that no value is present for PowerPort, not even an explicit nil
### GetFeedLeg
-`func (o *PatchedWritablePowerOutletTemplateRequest) GetFeedLeg() string`
+`func (o *PatchedWritablePowerOutletTemplateRequest) GetFeedLeg() PatchedWritablePowerOutletRequestFeedLeg`
GetFeedLeg returns the FeedLeg field if non-nil, zero value otherwise.
### GetFeedLegOk
-`func (o *PatchedWritablePowerOutletTemplateRequest) GetFeedLegOk() (*string, bool)`
+`func (o *PatchedWritablePowerOutletTemplateRequest) GetFeedLegOk() (*PatchedWritablePowerOutletRequestFeedLeg, bool)`
GetFeedLegOk returns a tuple with the FeedLeg field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFeedLeg
-`func (o *PatchedWritablePowerOutletTemplateRequest) SetFeedLeg(v string)`
+`func (o *PatchedWritablePowerOutletTemplateRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg)`
SetFeedLeg sets FeedLeg field to given value.
diff --git a/docs/PatchedWritablePowerOutletTemplateRequestType.md b/docs/PatchedWritablePowerOutletTemplateRequestType.md
new file mode 100644
index 0000000000..9cd053f0a2
--- /dev/null
+++ b/docs/PatchedWritablePowerOutletTemplateRequestType.md
@@ -0,0 +1,197 @@
+# PatchedWritablePowerOutletTemplateRequestType
+
+## Enum
+
+
+* `IEC_60320_C5` (value: `"iec-60320-c5"`)
+
+* `IEC_60320_C7` (value: `"iec-60320-c7"`)
+
+* `IEC_60320_C13` (value: `"iec-60320-c13"`)
+
+* `IEC_60320_C15` (value: `"iec-60320-c15"`)
+
+* `IEC_60320_C19` (value: `"iec-60320-c19"`)
+
+* `IEC_60320_C21` (value: `"iec-60320-c21"`)
+
+* `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_15R` (value: `"nema-1-15r"`)
+
+* `NEMA_5_15R` (value: `"nema-5-15r"`)
+
+* `NEMA_5_20R` (value: `"nema-5-20r"`)
+
+* `NEMA_5_30R` (value: `"nema-5-30r"`)
+
+* `NEMA_5_50R` (value: `"nema-5-50r"`)
+
+* `NEMA_6_15R` (value: `"nema-6-15r"`)
+
+* `NEMA_6_20R` (value: `"nema-6-20r"`)
+
+* `NEMA_6_30R` (value: `"nema-6-30r"`)
+
+* `NEMA_6_50R` (value: `"nema-6-50r"`)
+
+* `NEMA_10_30R` (value: `"nema-10-30r"`)
+
+* `NEMA_10_50R` (value: `"nema-10-50r"`)
+
+* `NEMA_14_20R` (value: `"nema-14-20r"`)
+
+* `NEMA_14_30R` (value: `"nema-14-30r"`)
+
+* `NEMA_14_50R` (value: `"nema-14-50r"`)
+
+* `NEMA_14_60R` (value: `"nema-14-60r"`)
+
+* `NEMA_15_15R` (value: `"nema-15-15r"`)
+
+* `NEMA_15_20R` (value: `"nema-15-20r"`)
+
+* `NEMA_15_30R` (value: `"nema-15-30r"`)
+
+* `NEMA_15_50R` (value: `"nema-15-50r"`)
+
+* `NEMA_15_60R` (value: `"nema-15-60r"`)
+
+* `NEMA_L1_15R` (value: `"nema-l1-15r"`)
+
+* `NEMA_L5_15R` (value: `"nema-l5-15r"`)
+
+* `NEMA_L5_20R` (value: `"nema-l5-20r"`)
+
+* `NEMA_L5_30R` (value: `"nema-l5-30r"`)
+
+* `NEMA_L5_50R` (value: `"nema-l5-50r"`)
+
+* `NEMA_L6_15R` (value: `"nema-l6-15r"`)
+
+* `NEMA_L6_20R` (value: `"nema-l6-20r"`)
+
+* `NEMA_L6_30R` (value: `"nema-l6-30r"`)
+
+* `NEMA_L6_50R` (value: `"nema-l6-50r"`)
+
+* `NEMA_L10_30R` (value: `"nema-l10-30r"`)
+
+* `NEMA_L14_20R` (value: `"nema-l14-20r"`)
+
+* `NEMA_L14_30R` (value: `"nema-l14-30r"`)
+
+* `NEMA_L14_50R` (value: `"nema-l14-50r"`)
+
+* `NEMA_L14_60R` (value: `"nema-l14-60r"`)
+
+* `NEMA_L15_20R` (value: `"nema-l15-20r"`)
+
+* `NEMA_L15_30R` (value: `"nema-l15-30r"`)
+
+* `NEMA_L15_50R` (value: `"nema-l15-50r"`)
+
+* `NEMA_L15_60R` (value: `"nema-l15-60r"`)
+
+* `NEMA_L21_20R` (value: `"nema-l21-20r"`)
+
+* `NEMA_L21_30R` (value: `"nema-l21-30r"`)
+
+* `NEMA_L22_30R` (value: `"nema-l22-30r"`)
+
+* `CS6360_C` (value: `"CS6360C"`)
+
+* `CS6364_C` (value: `"CS6364C"`)
+
+* `CS8164_C` (value: `"CS8164C"`)
+
+* `CS8264_C` (value: `"CS8264C"`)
+
+* `CS8364_C` (value: `"CS8364C"`)
+
+* `CS8464_C` (value: `"CS8464C"`)
+
+* `ITA_E` (value: `"ita-e"`)
+
+* `ITA_F` (value: `"ita-f"`)
+
+* `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"`)
+
+* `ITA_MULTISTANDARD` (value: `"ita-multistandard"`)
+
+* `USB_A` (value: `"usb-a"`)
+
+* `USB_MICRO_B` (value: `"usb-micro-b"`)
+
+* `USB_C` (value: `"usb-c"`)
+
+* `DC_TERMINAL` (value: `"dc-terminal"`)
+
+* `HDOT_CX` (value: `"hdot-cx"`)
+
+* `SAF_D_GRID` (value: `"saf-d-grid"`)
+
+* `NEUTRIK_POWERCON_20A` (value: `"neutrik-powercon-20a"`)
+
+* `NEUTRIK_POWERCON_32A` (value: `"neutrik-powercon-32a"`)
+
+* `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/PatchedWritablePowerPortRequest.md b/docs/PatchedWritablePowerPortRequest.md
index 767f0e4120..3b1748bb20 100644
--- a/docs/PatchedWritablePowerPortRequest.md
+++ b/docs/PatchedWritablePowerPortRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | 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 | [optional]
+**Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional]
**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional]
**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -147,20 +147,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritablePowerPortRequest) GetType() string`
+`func (o *PatchedWritablePowerPortRequest) GetType() PatchedWritablePowerPortRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritablePowerPortRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritablePowerPortRequest) GetTypeOk() (*PatchedWritablePowerPortRequestType, 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 *PatchedWritablePowerPortRequest) SetType(v string)`
+`func (o *PatchedWritablePowerPortRequest) SetType(v PatchedWritablePowerPortRequestType)`
SetType sets Type field to given value.
diff --git a/docs/PatchedWritablePowerPortRequestType.md b/docs/PatchedWritablePowerPortRequestType.md
new file mode 100644
index 0000000000..f1563d80e4
--- /dev/null
+++ b/docs/PatchedWritablePowerPortRequestType.md
@@ -0,0 +1,211 @@
+# PatchedWritablePowerPortRequestType
+
+## 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/PatchedWritablePowerPortTemplateRequest.md b/docs/PatchedWritablePowerPortTemplateRequest.md
index 905c568315..fd9ef9b586 100644
--- a/docs/PatchedWritablePowerPortTemplateRequest.md
+++ b/docs/PatchedWritablePowerPortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**ModuleType** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional]
+**Type** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional]
**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional]
**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -154,20 +154,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritablePowerPortTemplateRequest) GetType() string`
+`func (o *PatchedWritablePowerPortTemplateRequest) GetType() PatchedWritablePowerPortTemplateRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritablePowerPortTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritablePowerPortTemplateRequest) GetTypeOk() (*PatchedWritablePowerPortTemplateRequestType, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *PatchedWritablePowerPortTemplateRequest) SetType(v string)`
+`func (o *PatchedWritablePowerPortTemplateRequest) SetType(v PatchedWritablePowerPortTemplateRequestType)`
SetType sets Type field to given value.
diff --git a/docs/PatchedWritablePowerPortTemplateRequestType.md b/docs/PatchedWritablePowerPortTemplateRequestType.md
new file mode 100644
index 0000000000..5dd17c5bb7
--- /dev/null
+++ b/docs/PatchedWritablePowerPortTemplateRequestType.md
@@ -0,0 +1,211 @@
+# PatchedWritablePowerPortTemplateRequestType
+
+## 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/PatchedWritablePrefixRequest.md b/docs/PatchedWritablePrefixRequest.md
index 4e57bbd8c3..9f84b66cd5 100644
--- a/docs/PatchedWritablePrefixRequest.md
+++ b/docs/PatchedWritablePrefixRequest.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Vrf** | Pointer to **NullableInt32** | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
**Vlan** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | [optional]
+**Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional]
**Role** | Pointer to **NullableInt32** | The primary function of this prefix | [optional]
**IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional]
**MarkUtilized** | Pointer to **bool** | Treat as 100% utilized | [optional]
@@ -204,20 +204,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
### GetStatus
-`func (o *PatchedWritablePrefixRequest) GetStatus() string`
+`func (o *PatchedWritablePrefixRequest) GetStatus() PatchedWritablePrefixRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritablePrefixRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritablePrefixRequest) GetStatusOk() (*PatchedWritablePrefixRequestStatus, 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 *PatchedWritablePrefixRequest) SetStatus(v string)`
+`func (o *PatchedWritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestStatus)`
SetStatus sets Status field to given value.
diff --git a/docs/PatchedWritablePrefixRequestStatus.md b/docs/PatchedWritablePrefixRequestStatus.md
new file mode 100644
index 0000000000..89ae9b8717
--- /dev/null
+++ b/docs/PatchedWritablePrefixRequestStatus.md
@@ -0,0 +1,17 @@
+# PatchedWritablePrefixRequestStatus
+
+## Enum
+
+
+* `CONTAINER` (value: `"container"`)
+
+* `ACTIVE` (value: `"active"`)
+
+* `RESERVED` (value: `"reserved"`)
+
+* `DEPRECATED` (value: `"deprecated"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableRackRequest.md b/docs/PatchedWritableRackRequest.md
index cf6007f3a4..849c185e85 100644
--- a/docs/PatchedWritableRackRequest.md
+++ b/docs/PatchedWritableRackRequest.md
@@ -9,21 +9,21 @@ Name | Type | Description | Notes
**Site** | Pointer to **int32** | | [optional]
**Location** | Pointer to **NullableInt32** | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated | [optional]
+**Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional]
**Role** | Pointer to **NullableInt32** | Functional role | [optional]
**Serial** | Pointer to **string** | | [optional]
**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional]
-**Type** | Pointer to **string** | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | [optional]
-**Width** | Pointer to **int32** | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | [optional]
+**Type** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional]
+**Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional]
**UHeight** | Pointer to **int32** | Height in rack units | [optional]
**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional]
**Weight** | Pointer to **NullableFloat64** | | [optional]
**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional]
-**WeightUnit** | Pointer to **string** | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | [optional]
+**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.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 **string** | * `mm` - Millimeters * `in` - Inches | [optional]
+**OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional]
**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -206,20 +206,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
### GetStatus
-`func (o *PatchedWritableRackRequest) GetStatus() string`
+`func (o *PatchedWritableRackRequest) GetStatus() PatchedWritableRackRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableRackRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableRackRequest) 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 *PatchedWritableRackRequest) SetStatus(v string)`
+`func (o *PatchedWritableRackRequest) SetStatus(v PatchedWritableRackRequestStatus)`
SetStatus sets Status field to given value.
@@ -326,20 +326,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
### GetType
-`func (o *PatchedWritableRackRequest) GetType() string`
+`func (o *PatchedWritableRackRequest) GetType() PatchedWritableRackRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableRackRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, 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 *PatchedWritableRackRequest) SetType(v string)`
+`func (o *PatchedWritableRackRequest) SetType(v PatchedWritableRackRequestType)`
SetType sets Type field to given value.
@@ -351,20 +351,20 @@ HasType returns a boolean if a field has been set.
### GetWidth
-`func (o *PatchedWritableRackRequest) GetWidth() int32`
+`func (o *PatchedWritableRackRequest) GetWidth() PatchedWritableRackRequestWidth`
GetWidth returns the Width field if non-nil, zero value otherwise.
### GetWidthOk
-`func (o *PatchedWritableRackRequest) GetWidthOk() (*int32, bool)`
+`func (o *PatchedWritableRackRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool)`
GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetWidth
-`func (o *PatchedWritableRackRequest) SetWidth(v int32)`
+`func (o *PatchedWritableRackRequest) SetWidth(v PatchedWritableRackRequestWidth)`
SetWidth sets Width 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() string`
+`func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*string, bool)`
+`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, 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 string)`
+`func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)`
SetWeightUnit sets WeightUnit field to given value.
@@ -616,20 +616,20 @@ HasOuterDepth returns a boolean if a field has been set.
UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil
### GetOuterUnit
-`func (o *PatchedWritableRackRequest) GetOuterUnit() string`
+`func (o *PatchedWritableRackRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit`
GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise.
### GetOuterUnitOk
-`func (o *PatchedWritableRackRequest) GetOuterUnitOk() (*string, bool)`
+`func (o *PatchedWritableRackRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool)`
GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetOuterUnit
-`func (o *PatchedWritableRackRequest) SetOuterUnit(v string)`
+`func (o *PatchedWritableRackRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit)`
SetOuterUnit sets OuterUnit field to given value.
diff --git a/docs/PatchedWritableRackRequestOuterUnit.md b/docs/PatchedWritableRackRequestOuterUnit.md
new file mode 100644
index 0000000000..3b2df08ca8
--- /dev/null
+++ b/docs/PatchedWritableRackRequestOuterUnit.md
@@ -0,0 +1,15 @@
+# PatchedWritableRackRequestOuterUnit
+
+## Enum
+
+
+* `MM` (value: `"mm"`)
+
+* `IN` (value: `"in"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableRackRequestStatus.md b/docs/PatchedWritableRackRequestStatus.md
new file mode 100644
index 0000000000..f7aa0efdbd
--- /dev/null
+++ b/docs/PatchedWritableRackRequestStatus.md
@@ -0,0 +1,19 @@
+# PatchedWritableRackRequestStatus
+
+## Enum
+
+
+* `RESERVED` (value: `"reserved"`)
+
+* `AVAILABLE` (value: `"available"`)
+
+* `PLANNED` (value: `"planned"`)
+
+* `ACTIVE` (value: `"active"`)
+
+* `DEPRECATED` (value: `"deprecated"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableRackRequestType.md b/docs/PatchedWritableRackRequestType.md
new file mode 100644
index 0000000000..8f0c70feb0
--- /dev/null
+++ b/docs/PatchedWritableRackRequestType.md
@@ -0,0 +1,25 @@
+# PatchedWritableRackRequestType
+
+## 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/PatchedWritableRackRequestWidth.md b/docs/PatchedWritableRackRequestWidth.md
new file mode 100644
index 0000000000..921ed47674
--- /dev/null
+++ b/docs/PatchedWritableRackRequestWidth.md
@@ -0,0 +1,17 @@
+# PatchedWritableRackRequestWidth
+
+## Enum
+
+
+* `_10` (value: `10`)
+
+* `_19` (value: `19`)
+
+* `_21` (value: `21`)
+
+* `_23` (value: `23`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableRearPortRequest.md b/docs/PatchedWritableRearPortRequest.md
index e9ac567a2f..44e457add6 100644
--- a/docs/PatchedWritableRearPortRequest.md
+++ b/docs/PatchedWritableRearPortRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other | [optional]
+**Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional]
**Color** | Pointer to **string** | | [optional]
**Positions** | Pointer to **int32** | Number of front ports which may be mapped | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -147,20 +147,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritableRearPortRequest) GetType() string`
+`func (o *PatchedWritableRearPortRequest) GetType() FrontPortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableRearPortRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableRearPortRequest) 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 *PatchedWritableRearPortRequest) SetType(v string)`
+`func (o *PatchedWritableRearPortRequest) SetType(v FrontPortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/PatchedWritableRearPortTemplateRequest.md b/docs/PatchedWritableRearPortTemplateRequest.md
index 871fe20d03..bec067135d 100644
--- a/docs/PatchedWritableRearPortTemplateRequest.md
+++ b/docs/PatchedWritableRearPortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**ModuleType** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other | [optional]
+**Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional]
**Color** | Pointer to **string** | | [optional]
**Positions** | Pointer to **int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -154,20 +154,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritableRearPortTemplateRequest) GetType() string`
+`func (o *PatchedWritableRearPortTemplateRequest) GetType() FrontPortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableRearPortTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *PatchedWritableRearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *PatchedWritableRearPortTemplateRequest) SetType(v string)`
+`func (o *PatchedWritableRearPortTemplateRequest) SetType(v FrontPortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/PatchedWritableServiceRequest.md b/docs/PatchedWritableServiceRequest.md
index 6c03ccd0f7..0707238326 100644
--- a/docs/PatchedWritableServiceRequest.md
+++ b/docs/PatchedWritableServiceRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**VirtualMachine** | Pointer to **NullableInt32** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Ports** | Pointer to **[]int32** | | [optional]
-**Protocol** | Pointer to **string** | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | [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]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -156,20 +156,20 @@ HasPorts returns a boolean if a field has been set.
### GetProtocol
-`func (o *PatchedWritableServiceRequest) GetProtocol() string`
+`func (o *PatchedWritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
### GetProtocolOk
-`func (o *PatchedWritableServiceRequest) GetProtocolOk() (*string, bool)`
+`func (o *PatchedWritableServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetProtocol
-`func (o *PatchedWritableServiceRequest) SetProtocol(v string)`
+`func (o *PatchedWritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
SetProtocol sets Protocol field to given value.
diff --git a/docs/PatchedWritableServiceRequestProtocol.md b/docs/PatchedWritableServiceRequestProtocol.md
new file mode 100644
index 0000000000..1ddfff4dea
--- /dev/null
+++ b/docs/PatchedWritableServiceRequestProtocol.md
@@ -0,0 +1,15 @@
+# PatchedWritableServiceRequestProtocol
+
+## Enum
+
+
+* `TCP` (value: `"tcp"`)
+
+* `UDP` (value: `"udp"`)
+
+* `SCTP` (value: `"sctp"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableServiceTemplateRequest.md b/docs/PatchedWritableServiceTemplateRequest.md
index 9af8cf81a7..26fb48b4ba 100644
--- a/docs/PatchedWritableServiceTemplateRequest.md
+++ b/docs/PatchedWritableServiceTemplateRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
**Ports** | Pointer to **[]int32** | | [optional]
-**Protocol** | Pointer to **string** | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | [optional]
+**Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -83,20 +83,20 @@ HasPorts returns a boolean if a field has been set.
### GetProtocol
-`func (o *PatchedWritableServiceTemplateRequest) GetProtocol() string`
+`func (o *PatchedWritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
### GetProtocolOk
-`func (o *PatchedWritableServiceTemplateRequest) GetProtocolOk() (*string, bool)`
+`func (o *PatchedWritableServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetProtocol
-`func (o *PatchedWritableServiceTemplateRequest) SetProtocol(v string)`
+`func (o *PatchedWritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
SetProtocol sets Protocol field to given value.
diff --git a/docs/PatchedWritableSiteRequest.md b/docs/PatchedWritableSiteRequest.md
index 234bc45ba9..7c6fc142b8 100644
--- a/docs/PatchedWritableSiteRequest.md
+++ b/docs/PatchedWritableSiteRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | Full name of the site | [optional]
**Slug** | Pointer to **string** | | [optional]
-**Status** | Pointer to **string** | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | [optional]
+**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional]
**Region** | Pointer to **NullableInt32** | | [optional]
**Group** | Pointer to **NullableInt32** | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
@@ -93,20 +93,20 @@ HasSlug returns a boolean if a field has been set.
### GetStatus
-`func (o *PatchedWritableSiteRequest) GetStatus() string`
+`func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableSiteRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *PatchedWritableSiteRequest) SetStatus(v string)`
+`func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/PatchedWritableTunnelRequest.md b/docs/PatchedWritableTunnelRequest.md
new file mode 100644
index 0000000000..c257d0c9b1
--- /dev/null
+++ b/docs/PatchedWritableTunnelRequest.md
@@ -0,0 +1,356 @@
+# PatchedWritableTunnelRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | Pointer to **string** | | [optional]
+**Status** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional]
+**Group** | Pointer to **NullableInt32** | | [optional]
+**Encapsulation** | Pointer to [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | [optional]
+**IpsecProfile** | Pointer to **NullableInt32** | | [optional]
+**Tenant** | Pointer to **NullableInt32** | | [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
+
+### NewPatchedWritableTunnelRequest
+
+`func NewPatchedWritableTunnelRequest() *PatchedWritableTunnelRequest`
+
+NewPatchedWritableTunnelRequest instantiates a new PatchedWritableTunnelRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPatchedWritableTunnelRequestWithDefaults
+
+`func NewPatchedWritableTunnelRequestWithDefaults() *PatchedWritableTunnelRequest`
+
+NewPatchedWritableTunnelRequestWithDefaults instantiates a new PatchedWritableTunnelRequest object
+This 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 *PatchedWritableTunnelRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *PatchedWritableTunnelRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### GetStatus
+
+`func (o *PatchedWritableTunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus`
+
+GetStatus returns the Status field if non-nil, zero value otherwise.
+
+### GetStatusOk
+
+`func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus)`
+
+SetStatus sets Status field to given value.
+
+### HasStatus
+
+`func (o *PatchedWritableTunnelRequest) HasStatus() bool`
+
+HasStatus returns a boolean if a field has been set.
+
+### GetGroup
+
+`func (o *PatchedWritableTunnelRequest) GetGroup() int32`
+
+GetGroup returns the Group field if non-nil, zero value otherwise.
+
+### GetGroupOk
+
+`func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetGroup(v int32)`
+
+SetGroup sets Group field to given value.
+
+### HasGroup
+
+`func (o *PatchedWritableTunnelRequest) HasGroup() bool`
+
+HasGroup returns a boolean if a field has been set.
+
+### SetGroupNil
+
+`func (o *PatchedWritableTunnelRequest) SetGroupNil(b bool)`
+
+ SetGroupNil sets the value for Group to be an explicit nil
+
+### UnsetGroup
+`func (o *PatchedWritableTunnelRequest) UnsetGroup()`
+
+UnsetGroup ensures that no value is present for Group, not even an explicit nil
+### GetEncapsulation
+
+`func (o *PatchedWritableTunnelRequest) GetEncapsulation() PatchedWritableTunnelRequestEncapsulation`
+
+GetEncapsulation returns the Encapsulation field if non-nil, zero value otherwise.
+
+### GetEncapsulationOk
+
+`func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestEncapsulation)`
+
+SetEncapsulation sets Encapsulation field to given value.
+
+### HasEncapsulation
+
+`func (o *PatchedWritableTunnelRequest) HasEncapsulation() bool`
+
+HasEncapsulation returns a boolean if a field has been set.
+
+### GetIpsecProfile
+
+`func (o *PatchedWritableTunnelRequest) GetIpsecProfile() int32`
+
+GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise.
+
+### GetIpsecProfileOk
+
+`func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*int32, 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)`
+
+SetIpsecProfile sets IpsecProfile field to given value.
+
+### HasIpsecProfile
+
+`func (o *PatchedWritableTunnelRequest) HasIpsecProfile() bool`
+
+HasIpsecProfile returns a boolean if a field has been set.
+
+### SetIpsecProfileNil
+
+`func (o *PatchedWritableTunnelRequest) SetIpsecProfileNil(b bool)`
+
+ SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil
+
+### UnsetIpsecProfile
+`func (o *PatchedWritableTunnelRequest) UnsetIpsecProfile()`
+
+UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil
+### GetTenant
+
+`func (o *PatchedWritableTunnelRequest) GetTenant() int32`
+
+GetTenant returns the Tenant field if non-nil, zero value otherwise.
+
+### GetTenantOk
+
+`func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetTenant(v int32)`
+
+SetTenant sets Tenant field to given value.
+
+### HasTenant
+
+`func (o *PatchedWritableTunnelRequest) HasTenant() bool`
+
+HasTenant returns a boolean if a field has been set.
+
+### SetTenantNil
+
+`func (o *PatchedWritableTunnelRequest) SetTenantNil(b bool)`
+
+ SetTenantNil sets the value for Tenant to be an explicit nil
+
+### UnsetTenant
+`func (o *PatchedWritableTunnelRequest) UnsetTenant()`
+
+UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
+### GetTunnelId
+
+`func (o *PatchedWritableTunnelRequest) GetTunnelId() int64`
+
+GetTunnelId returns the TunnelId field if non-nil, zero value otherwise.
+
+### GetTunnelIdOk
+
+`func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetTunnelId(v int64)`
+
+SetTunnelId sets TunnelId field to given value.
+
+### HasTunnelId
+
+`func (o *PatchedWritableTunnelRequest) HasTunnelId() bool`
+
+HasTunnelId returns a boolean if a field has been set.
+
+### SetTunnelIdNil
+
+`func (o *PatchedWritableTunnelRequest) SetTunnelIdNil(b bool)`
+
+ SetTunnelIdNil sets the value for TunnelId to be an explicit nil
+
+### UnsetTunnelId
+`func (o *PatchedWritableTunnelRequest) UnsetTunnelId()`
+
+UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil
+### GetDescription
+
+`func (o *PatchedWritableTunnelRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *PatchedWritableTunnelRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetComments
+
+`func (o *PatchedWritableTunnelRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *PatchedWritableTunnelRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *PatchedWritableTunnelRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *PatchedWritableTunnelRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *PatchedWritableTunnelRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *PatchedWritableTunnelRequest) 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/PatchedWritableTunnelRequestEncapsulation.md b/docs/PatchedWritableTunnelRequestEncapsulation.md
new file mode 100644
index 0000000000..d1077c5e9a
--- /dev/null
+++ b/docs/PatchedWritableTunnelRequestEncapsulation.md
@@ -0,0 +1,17 @@
+# PatchedWritableTunnelRequestEncapsulation
+
+## Enum
+
+
+* `IPSEC_TRANSPORT` (value: `"ipsec-transport"`)
+
+* `IPSEC_TUNNEL` (value: `"ipsec-tunnel"`)
+
+* `IP_IP` (value: `"ip-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/PatchedWritableTunnelRequestStatus.md b/docs/PatchedWritableTunnelRequestStatus.md
new file mode 100644
index 0000000000..c21c4900e8
--- /dev/null
+++ b/docs/PatchedWritableTunnelRequestStatus.md
@@ -0,0 +1,15 @@
+# PatchedWritableTunnelRequestStatus
+
+## 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/PatchedWritableTunnelTerminationRequest.md b/docs/PatchedWritableTunnelTerminationRequest.md
new file mode 100644
index 0000000000..39a95dbb2c
--- /dev/null
+++ b/docs/PatchedWritableTunnelTerminationRequest.md
@@ -0,0 +1,232 @@
+# PatchedWritableTunnelTerminationRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Tunnel** | Pointer to **int32** | | [optional]
+**Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional]
+**TerminationType** | Pointer to **string** | | [optional]
+**TerminationId** | Pointer to **NullableInt64** | | [optional]
+**OutsideIp** | Pointer to **NullableInt32** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewPatchedWritableTunnelTerminationRequest
+
+`func NewPatchedWritableTunnelTerminationRequest() *PatchedWritableTunnelTerminationRequest`
+
+NewPatchedWritableTunnelTerminationRequest instantiates a new PatchedWritableTunnelTerminationRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPatchedWritableTunnelTerminationRequestWithDefaults
+
+`func NewPatchedWritableTunnelTerminationRequestWithDefaults() *PatchedWritableTunnelTerminationRequest`
+
+NewPatchedWritableTunnelTerminationRequestWithDefaults instantiates a new PatchedWritableTunnelTerminationRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetTunnel
+
+`func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() int32`
+
+GetTunnel returns the Tunnel field if non-nil, zero value otherwise.
+
+### GetTunnelOk
+
+`func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*int32, 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)`
+
+SetTunnel sets Tunnel field to given value.
+
+### HasTunnel
+
+`func (o *PatchedWritableTunnelTerminationRequest) HasTunnel() bool`
+
+HasTunnel returns a boolean if a field has been set.
+
+### GetRole
+
+`func (o *PatchedWritableTunnelTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole`
+
+GetRole returns the Role field if non-nil, zero value otherwise.
+
+### GetRoleOk
+
+`func (o *PatchedWritableTunnelTerminationRequest) GetRoleOk() (*PatchedWritableTunnelTerminationRequestRole, bool)`
+
+GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetRole
+
+`func (o *PatchedWritableTunnelTerminationRequest) SetRole(v PatchedWritableTunnelTerminationRequestRole)`
+
+SetRole sets Role field to given value.
+
+### HasRole
+
+`func (o *PatchedWritableTunnelTerminationRequest) HasRole() bool`
+
+HasRole returns a boolean if a field has been set.
+
+### GetTerminationType
+
+`func (o *PatchedWritableTunnelTerminationRequest) GetTerminationType() string`
+
+GetTerminationType returns the TerminationType field if non-nil, zero value otherwise.
+
+### GetTerminationTypeOk
+
+`func (o *PatchedWritableTunnelTerminationRequest) GetTerminationTypeOk() (*string, bool)`
+
+GetTerminationTypeOk returns a tuple with the TerminationType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTerminationType
+
+`func (o *PatchedWritableTunnelTerminationRequest) SetTerminationType(v string)`
+
+SetTerminationType sets TerminationType field to given value.
+
+### HasTerminationType
+
+`func (o *PatchedWritableTunnelTerminationRequest) HasTerminationType() bool`
+
+HasTerminationType returns a boolean if a field has been set.
+
+### GetTerminationId
+
+`func (o *PatchedWritableTunnelTerminationRequest) GetTerminationId() int64`
+
+GetTerminationId returns the TerminationId field if non-nil, zero value otherwise.
+
+### GetTerminationIdOk
+
+`func (o *PatchedWritableTunnelTerminationRequest) GetTerminationIdOk() (*int64, bool)`
+
+GetTerminationIdOk returns a tuple with the TerminationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTerminationId
+
+`func (o *PatchedWritableTunnelTerminationRequest) SetTerminationId(v int64)`
+
+SetTerminationId sets TerminationId field to given value.
+
+### HasTerminationId
+
+`func (o *PatchedWritableTunnelTerminationRequest) HasTerminationId() bool`
+
+HasTerminationId returns a boolean if a field has been set.
+
+### SetTerminationIdNil
+
+`func (o *PatchedWritableTunnelTerminationRequest) SetTerminationIdNil(b bool)`
+
+ SetTerminationIdNil sets the value for TerminationId to be an explicit nil
+
+### UnsetTerminationId
+`func (o *PatchedWritableTunnelTerminationRequest) UnsetTerminationId()`
+
+UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil
+### GetOutsideIp
+
+`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() int32`
+
+GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise.
+
+### GetOutsideIpOk
+
+`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*int32, 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)`
+
+SetOutsideIp sets OutsideIp field to given value.
+
+### HasOutsideIp
+
+`func (o *PatchedWritableTunnelTerminationRequest) HasOutsideIp() bool`
+
+HasOutsideIp returns a boolean if a field has been set.
+
+### SetOutsideIpNil
+
+`func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIpNil(b bool)`
+
+ SetOutsideIpNil sets the value for OutsideIp to be an explicit nil
+
+### UnsetOutsideIp
+`func (o *PatchedWritableTunnelTerminationRequest) UnsetOutsideIp()`
+
+UnsetOutsideIp ensures that no value is present for OutsideIp, not even an explicit nil
+### GetTags
+
+`func (o *PatchedWritableTunnelTerminationRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *PatchedWritableTunnelTerminationRequest) 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 *PatchedWritableTunnelTerminationRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *PatchedWritableTunnelTerminationRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *PatchedWritableTunnelTerminationRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *PatchedWritableTunnelTerminationRequest) 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 *PatchedWritableTunnelTerminationRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *PatchedWritableTunnelTerminationRequest) 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/PatchedWritableTunnelTerminationRequestRole.md b/docs/PatchedWritableTunnelTerminationRequestRole.md
new file mode 100644
index 0000000000..8bc82df1f8
--- /dev/null
+++ b/docs/PatchedWritableTunnelTerminationRequestRole.md
@@ -0,0 +1,15 @@
+# PatchedWritableTunnelTerminationRequestRole
+
+## Enum
+
+
+* `PEER` (value: `"peer"`)
+
+* `HUB` (value: `"hub"`)
+
+* `SPOKE` (value: `"spoke"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableVLANRequest.md b/docs/PatchedWritableVLANRequest.md
index 787a2355d6..82acf3ab5a 100644
--- a/docs/PatchedWritableVLANRequest.md
+++ b/docs/PatchedWritableVLANRequest.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Vid** | Pointer to **int32** | Numeric VLAN ID (1-4094) | [optional]
**Name** | Pointer to **string** | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | [optional]
+**Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional]
**Role** | Pointer to **NullableInt32** | The primary function of this VLAN | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -192,20 +192,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
### GetStatus
-`func (o *PatchedWritableVLANRequest) GetStatus() string`
+`func (o *PatchedWritableVLANRequest) GetStatus() PatchedWritableVLANRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableVLANRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableVLANRequest) GetStatusOk() (*PatchedWritableVLANRequestStatus, 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 *PatchedWritableVLANRequest) SetStatus(v string)`
+`func (o *PatchedWritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatus)`
SetStatus sets Status field to given value.
diff --git a/docs/PatchedWritableVLANRequestStatus.md b/docs/PatchedWritableVLANRequestStatus.md
new file mode 100644
index 0000000000..e944331eab
--- /dev/null
+++ b/docs/PatchedWritableVLANRequestStatus.md
@@ -0,0 +1,15 @@
+# PatchedWritableVLANRequestStatus
+
+## Enum
+
+
+* `ACTIVE` (value: `"active"`)
+
+* `RESERVED` (value: `"reserved"`)
+
+* `DEPRECATED` (value: `"deprecated"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableVMInterfaceRequest.md b/docs/PatchedWritableVMInterfaceRequest.md
index ebdbd6b63e..7d801fe8b5 100644
--- a/docs/PatchedWritableVMInterfaceRequest.md
+++ b/docs/PatchedWritableVMInterfaceRequest.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
**Mtu** | Pointer to **NullableInt32** | | [optional]
**MacAddress** | Pointer to **NullableString** | | [optional]
**Description** | Pointer to **string** | | [optional]
-**Mode** | Pointer to **string** | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | [optional]
+**Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional]
**UntaggedVlan** | Pointer to **NullableInt32** | | [optional]
**TaggedVlans** | Pointer to **[]int32** | | [optional]
**Vrf** | Pointer to **NullableInt32** | | [optional]
@@ -280,20 +280,20 @@ HasDescription returns a boolean if a field has been set.
### GetMode
-`func (o *PatchedWritableVMInterfaceRequest) GetMode() string`
+`func (o *PatchedWritableVMInterfaceRequest) GetMode() PatchedWritableInterfaceRequestMode`
GetMode returns the Mode field if non-nil, zero value otherwise.
### GetModeOk
-`func (o *PatchedWritableVMInterfaceRequest) GetModeOk() (*string, bool)`
+`func (o *PatchedWritableVMInterfaceRequest) GetModeOk() (*PatchedWritableInterfaceRequestMode, bool)`
GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMode
-`func (o *PatchedWritableVMInterfaceRequest) SetMode(v string)`
+`func (o *PatchedWritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode)`
SetMode sets Mode field to given value.
diff --git a/docs/PatchedWritableVirtualDeviceContextRequest.md b/docs/PatchedWritableVirtualDeviceContextRequest.md
index d0aa525eef..a66e7a7b28 100644
--- a/docs/PatchedWritableVirtualDeviceContextRequest.md
+++ b/docs/PatchedWritableVirtualDeviceContextRequest.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
**Tenant** | Pointer to **NullableInt32** | | [optional]
**PrimaryIp4** | Pointer to **NullableInt32** | | [optional]
**PrimaryIp6** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | * `active` - Active * `planned` - Planned * `offline` - Offline | [optional]
+**Status** | Pointer to [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -237,20 +237,20 @@ HasPrimaryIp6 returns a boolean if a field has been set.
UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil
### GetStatus
-`func (o *PatchedWritableVirtualDeviceContextRequest) GetStatus() string`
+`func (o *PatchedWritableVirtualDeviceContextRequest) GetStatus() PatchedWritableVirtualDeviceContextRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableVirtualDeviceContextRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableVirtualDeviceContextRequest) GetStatusOk() (*PatchedWritableVirtualDeviceContextRequestStatus, 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 *PatchedWritableVirtualDeviceContextRequest) SetStatus(v string)`
+`func (o *PatchedWritableVirtualDeviceContextRequest) SetStatus(v PatchedWritableVirtualDeviceContextRequestStatus)`
SetStatus sets Status field to given value.
diff --git a/docs/PatchedWritableVirtualDeviceContextRequestStatus.md b/docs/PatchedWritableVirtualDeviceContextRequestStatus.md
new file mode 100644
index 0000000000..6ce6853313
--- /dev/null
+++ b/docs/PatchedWritableVirtualDeviceContextRequestStatus.md
@@ -0,0 +1,15 @@
+# PatchedWritableVirtualDeviceContextRequestStatus
+
+## Enum
+
+
+* `ACTIVE` (value: `"active"`)
+
+* `PLANNED` (value: `"planned"`)
+
+* `OFFLINE` (value: `"offline"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableVirtualDiskRequest.md b/docs/PatchedWritableVirtualDiskRequest.md
new file mode 100644
index 0000000000..63cb4dbc9c
--- /dev/null
+++ b/docs/PatchedWritableVirtualDiskRequest.md
@@ -0,0 +1,186 @@
+# PatchedWritableVirtualDiskRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**VirtualMachine** | Pointer to **int32** | | [optional]
+**Name** | Pointer to **string** | | [optional]
+**Description** | Pointer to **string** | | [optional]
+**Size** | Pointer to **int32** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewPatchedWritableVirtualDiskRequest
+
+`func NewPatchedWritableVirtualDiskRequest() *PatchedWritableVirtualDiskRequest`
+
+NewPatchedWritableVirtualDiskRequest instantiates a new PatchedWritableVirtualDiskRequest object
+This constructor will assign default values to properties that have it defined,
+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
+
+`func NewPatchedWritableVirtualDiskRequestWithDefaults() *PatchedWritableVirtualDiskRequest`
+
+NewPatchedWritableVirtualDiskRequestWithDefaults instantiates a new PatchedWritableVirtualDiskRequest object
+This 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`
+
+GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
+
+### GetVirtualMachineOk
+
+`func (o *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) SetVirtualMachine(v int32)`
+
+SetVirtualMachine sets VirtualMachine field to given value.
+
+### HasVirtualMachine
+
+`func (o *PatchedWritableVirtualDiskRequest) HasVirtualMachine() bool`
+
+HasVirtualMachine returns a boolean if a field has been set.
+
+### GetName
+
+`func (o *PatchedWritableVirtualDiskRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *PatchedWritableVirtualDiskRequest) 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)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *PatchedWritableVirtualDiskRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### GetDescription
+
+`func (o *PatchedWritableVirtualDiskRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *PatchedWritableVirtualDiskRequest) 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)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *PatchedWritableVirtualDiskRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetSize
+
+`func (o *PatchedWritableVirtualDiskRequest) GetSize() int32`
+
+GetSize returns the Size field if non-nil, zero value otherwise.
+
+### GetSizeOk
+
+`func (o *PatchedWritableVirtualDiskRequest) 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)`
+
+SetSize sets Size field to given value.
+
+### HasSize
+
+`func (o *PatchedWritableVirtualDiskRequest) HasSize() bool`
+
+HasSize returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *PatchedWritableVirtualDiskRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *PatchedWritableVirtualDiskRequest) 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)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *PatchedWritableVirtualDiskRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *PatchedWritableVirtualDiskRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *PatchedWritableVirtualDiskRequest) 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{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *PatchedWritableVirtualDiskRequest) 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/PatchedWritableVirtualMachineWithConfigContextRequest.md b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md
index 816072169e..23505cae73 100644
--- a/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md
+++ b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
-**Status** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | [optional]
+**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional]
**Site** | Pointer to **NullableInt32** | | [optional]
**Cluster** | Pointer to **NullableInt32** | | [optional]
**Device** | Pointer to **NullableInt32** | | [optional]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
**Disk** | Pointer to **NullableInt32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
-**LocalContextData** | Pointer to **map[string]interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [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]
@@ -69,20 +69,20 @@ HasName returns a boolean if a field has been set.
### GetStatus
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() string`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v string)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)`
SetStatus sets Status field to given value.
@@ -529,20 +529,20 @@ HasComments returns a boolean if a field has been set.
### GetLocalContextData
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetLocalContextData() map[string]interface{}`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetLocalContextData() interface{}`
GetLocalContextData returns the LocalContextData field if non-nil, zero value otherwise.
### GetLocalContextDataOk
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetLocalContextDataOk() (*map[string]interface{}, bool)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetLocalContextDataOk() (*interface{}, bool)`
GetLocalContextDataOk returns a tuple with the LocalContextData field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLocalContextData
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetLocalContextData(v map[string]interface{})`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetLocalContextData(v interface{})`
SetLocalContextData sets LocalContextData field to given value.
diff --git a/docs/PatchedWritableWirelessLANRequest.md b/docs/PatchedWritableWirelessLANRequest.md
index 66f890955b..5de85ca786 100644
--- a/docs/PatchedWritableWirelessLANRequest.md
+++ b/docs/PatchedWritableWirelessLANRequest.md
@@ -7,11 +7,11 @@ Name | Type | Description | Notes
**Ssid** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Group** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated | [optional]
+**Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional]
**Vlan** | Pointer to **NullableInt32** | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
-**AuthType** | Pointer to **string** | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | [optional]
-**AuthCipher** | Pointer to **string** | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | [optional]
+**AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional]
+**AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional]
**AuthPsk** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -123,20 +123,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 *PatchedWritableWirelessLANRequest) GetStatus() string`
+`func (o *PatchedWritableWirelessLANRequest) GetStatus() PatchedWritableWirelessLANRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableWirelessLANRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableWirelessLANRequest) GetStatusOk() (*PatchedWritableWirelessLANRequestStatus, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *PatchedWritableWirelessLANRequest) SetStatus(v string)`
+`func (o *PatchedWritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessLANRequestStatus)`
SetStatus sets Status field to given value.
@@ -218,20 +218,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
### GetAuthType
-`func (o *PatchedWritableWirelessLANRequest) GetAuthType() string`
+`func (o *PatchedWritableWirelessLANRequest) GetAuthType() AuthenticationType1`
GetAuthType returns the AuthType field if non-nil, zero value otherwise.
### GetAuthTypeOk
-`func (o *PatchedWritableWirelessLANRequest) GetAuthTypeOk() (*string, bool)`
+`func (o *PatchedWritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType1, bool)`
GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAuthType
-`func (o *PatchedWritableWirelessLANRequest) SetAuthType(v string)`
+`func (o *PatchedWritableWirelessLANRequest) SetAuthType(v AuthenticationType1)`
SetAuthType sets AuthType field to given value.
@@ -243,20 +243,20 @@ HasAuthType returns a boolean if a field has been set.
### GetAuthCipher
-`func (o *PatchedWritableWirelessLANRequest) GetAuthCipher() string`
+`func (o *PatchedWritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher`
GetAuthCipher returns the AuthCipher field if non-nil, zero value otherwise.
### GetAuthCipherOk
-`func (o *PatchedWritableWirelessLANRequest) GetAuthCipherOk() (*string, bool)`
+`func (o *PatchedWritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher, bool)`
GetAuthCipherOk returns a tuple with the AuthCipher field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAuthCipher
-`func (o *PatchedWritableWirelessLANRequest) SetAuthCipher(v string)`
+`func (o *PatchedWritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher)`
SetAuthCipher sets AuthCipher field to given value.
diff --git a/docs/PatchedWritableWirelessLANRequestStatus.md b/docs/PatchedWritableWirelessLANRequestStatus.md
new file mode 100644
index 0000000000..f130b619ae
--- /dev/null
+++ b/docs/PatchedWritableWirelessLANRequestStatus.md
@@ -0,0 +1,17 @@
+# PatchedWritableWirelessLANRequestStatus
+
+## Enum
+
+
+* `ACTIVE` (value: `"active"`)
+
+* `RESERVED` (value: `"reserved"`)
+
+* `DISABLED` (value: `"disabled"`)
+
+* `DEPRECATED` (value: `"deprecated"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PatchedWritableWirelessLinkRequest.md b/docs/PatchedWritableWirelessLinkRequest.md
index 8ccaa58aae..2a5f888807 100644
--- a/docs/PatchedWritableWirelessLinkRequest.md
+++ b/docs/PatchedWritableWirelessLinkRequest.md
@@ -7,10 +7,10 @@ Name | Type | Description | Notes
**InterfaceA** | Pointer to **int32** | | [optional]
**InterfaceB** | Pointer to **int32** | | [optional]
**Ssid** | Pointer to **string** | | [optional]
-**Status** | Pointer to **string** | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | [optional]
+**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
-**AuthType** | Pointer to **string** | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | [optional]
-**AuthCipher** | Pointer to **string** | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | [optional]
+**AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional]
+**AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional]
**AuthPsk** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -113,20 +113,20 @@ HasSsid returns a boolean if a field has been set.
### GetStatus
-`func (o *PatchedWritableWirelessLinkRequest) GetStatus() string`
+`func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*string, bool)`
+`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *PatchedWritableWirelessLinkRequest) SetStatus(v string)`
+`func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue)`
SetStatus sets Status field to given value.
@@ -173,20 +173,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
### GetAuthType
-`func (o *PatchedWritableWirelessLinkRequest) GetAuthType() string`
+`func (o *PatchedWritableWirelessLinkRequest) GetAuthType() AuthenticationType1`
GetAuthType returns the AuthType field if non-nil, zero value otherwise.
### GetAuthTypeOk
-`func (o *PatchedWritableWirelessLinkRequest) GetAuthTypeOk() (*string, bool)`
+`func (o *PatchedWritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType1, bool)`
GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAuthType
-`func (o *PatchedWritableWirelessLinkRequest) SetAuthType(v string)`
+`func (o *PatchedWritableWirelessLinkRequest) SetAuthType(v AuthenticationType1)`
SetAuthType sets AuthType field to given value.
@@ -198,20 +198,20 @@ HasAuthType returns a boolean if a field has been set.
### GetAuthCipher
-`func (o *PatchedWritableWirelessLinkRequest) GetAuthCipher() string`
+`func (o *PatchedWritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher`
GetAuthCipher returns the AuthCipher field if non-nil, zero value otherwise.
### GetAuthCipherOk
-`func (o *PatchedWritableWirelessLinkRequest) GetAuthCipherOk() (*string, bool)`
+`func (o *PatchedWritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher, bool)`
GetAuthCipherOk returns a tuple with the AuthCipher field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAuthCipher
-`func (o *PatchedWritableWirelessLinkRequest) SetAuthCipher(v string)`
+`func (o *PatchedWritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher)`
SetAuthCipher sets AuthCipher field to given value.
diff --git a/docs/PowerFeedPhase.md b/docs/PowerFeedPhase.md
index edd8115926..51138ce603 100644
--- a/docs/PowerFeedPhase.md
+++ b/docs/PowerFeedPhase.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `single-phase` - Single phase * `three-phase` - Three-phase | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**PatchedWritablePowerFeedRequestPhase**](PatchedWritablePowerFeedRequestPhase.md) | | [optional]
+**Label** | Pointer to [**PowerFeedPhaseLabel**](PowerFeedPhaseLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *PowerFeedPhase) GetValue() string`
+`func (o *PowerFeedPhase) GetValue() PatchedWritablePowerFeedRequestPhase`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *PowerFeedPhase) GetValueOk() (*string, bool)`
+`func (o *PowerFeedPhase) GetValueOk() (*PatchedWritablePowerFeedRequestPhase, 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 *PowerFeedPhase) SetValue(v string)`
+`func (o *PowerFeedPhase) SetValue(v PatchedWritablePowerFeedRequestPhase)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *PowerFeedPhase) GetLabel() string`
+`func (o *PowerFeedPhase) GetLabel() PowerFeedPhaseLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *PowerFeedPhase) GetLabelOk() (*string, bool)`
+`func (o *PowerFeedPhase) GetLabelOk() (*PowerFeedPhaseLabel, 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 *PowerFeedPhase) SetLabel(v string)`
+`func (o *PowerFeedPhase) SetLabel(v PowerFeedPhaseLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/PowerFeedPhaseLabel.md b/docs/PowerFeedPhaseLabel.md
new file mode 100644
index 0000000000..f38a0d6c81
--- /dev/null
+++ b/docs/PowerFeedPhaseLabel.md
@@ -0,0 +1,13 @@
+# PowerFeedPhaseLabel
+
+## 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/PowerFeedRequest.md b/docs/PowerFeedRequest.md
index 8bb510d486..14c55aa4b0 100644
--- a/docs/PowerFeedRequest.md
+++ b/docs/PowerFeedRequest.md
@@ -7,10 +7,10 @@ Name | Type | Description | Notes
**PowerPanel** | [**NestedPowerPanelRequest**](NestedPowerPanelRequest.md) | |
**Rack** | Pointer to [**NullableNestedRackRequest**](NestedRackRequest.md) | | [optional]
**Name** | **string** | |
-**Status** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed | [optional]
-**Type** | Pointer to **string** | * `primary` - Primary * `redundant` - Redundant | [optional]
-**Supply** | Pointer to **string** | * `ac` - AC * `dc` - DC | [optional]
-**Phase** | Pointer to **string** | * `single-phase` - Single phase * `three-phase` - Three-phase | [optional]
+**Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional]
+**Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional]
+**Supply** | Pointer to [**PatchedWritablePowerFeedRequestSupply**](PatchedWritablePowerFeedRequestSupply.md) | | [optional]
+**Phase** | Pointer to [**PatchedWritablePowerFeedRequestPhase**](PatchedWritablePowerFeedRequestPhase.md) | | [optional]
**Voltage** | Pointer to **int32** | | [optional]
**Amperage** | Pointer to **int32** | | [optional]
**MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional]
@@ -117,20 +117,20 @@ SetName sets Name field to given value.
### GetStatus
-`func (o *PowerFeedRequest) GetStatus() string`
+`func (o *PowerFeedRequest) GetStatus() PatchedWritablePowerFeedRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PowerFeedRequest) GetStatusOk() (*string, bool)`
+`func (o *PowerFeedRequest) GetStatusOk() (*PatchedWritablePowerFeedRequestStatus, 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 *PowerFeedRequest) SetStatus(v string)`
+`func (o *PowerFeedRequest) SetStatus(v PatchedWritablePowerFeedRequestStatus)`
SetStatus sets Status field to given value.
@@ -142,20 +142,20 @@ HasStatus returns a boolean if a field has been set.
### GetType
-`func (o *PowerFeedRequest) GetType() string`
+`func (o *PowerFeedRequest) GetType() PatchedWritablePowerFeedRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PowerFeedRequest) GetTypeOk() (*string, bool)`
+`func (o *PowerFeedRequest) GetTypeOk() (*PatchedWritablePowerFeedRequestType, 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 *PowerFeedRequest) SetType(v string)`
+`func (o *PowerFeedRequest) SetType(v PatchedWritablePowerFeedRequestType)`
SetType sets Type field to given value.
@@ -167,20 +167,20 @@ HasType returns a boolean if a field has been set.
### GetSupply
-`func (o *PowerFeedRequest) GetSupply() string`
+`func (o *PowerFeedRequest) GetSupply() PatchedWritablePowerFeedRequestSupply`
GetSupply returns the Supply field if non-nil, zero value otherwise.
### GetSupplyOk
-`func (o *PowerFeedRequest) GetSupplyOk() (*string, bool)`
+`func (o *PowerFeedRequest) GetSupplyOk() (*PatchedWritablePowerFeedRequestSupply, bool)`
GetSupplyOk returns a tuple with the Supply field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSupply
-`func (o *PowerFeedRequest) SetSupply(v string)`
+`func (o *PowerFeedRequest) SetSupply(v PatchedWritablePowerFeedRequestSupply)`
SetSupply sets Supply field to given value.
@@ -192,20 +192,20 @@ HasSupply returns a boolean if a field has been set.
### GetPhase
-`func (o *PowerFeedRequest) GetPhase() string`
+`func (o *PowerFeedRequest) GetPhase() PatchedWritablePowerFeedRequestPhase`
GetPhase returns the Phase field if non-nil, zero value otherwise.
### GetPhaseOk
-`func (o *PowerFeedRequest) GetPhaseOk() (*string, bool)`
+`func (o *PowerFeedRequest) GetPhaseOk() (*PatchedWritablePowerFeedRequestPhase, bool)`
GetPhaseOk returns a tuple with the Phase field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPhase
-`func (o *PowerFeedRequest) SetPhase(v string)`
+`func (o *PowerFeedRequest) SetPhase(v PatchedWritablePowerFeedRequestPhase)`
SetPhase sets Phase field to given value.
diff --git a/docs/PowerFeedStatus.md b/docs/PowerFeedStatus.md
index ce011f7687..de13122c35 100644
--- a/docs/PowerFeedStatus.md
+++ b/docs/PowerFeedStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional]
+**Label** | Pointer to [**PowerFeedStatusLabel**](PowerFeedStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *PowerFeedStatus) GetValue() string`
+`func (o *PowerFeedStatus) GetValue() PatchedWritablePowerFeedRequestStatus`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *PowerFeedStatus) GetValueOk() (*string, bool)`
+`func (o *PowerFeedStatus) GetValueOk() (*PatchedWritablePowerFeedRequestStatus, 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 *PowerFeedStatus) SetValue(v string)`
+`func (o *PowerFeedStatus) SetValue(v PatchedWritablePowerFeedRequestStatus)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *PowerFeedStatus) GetLabel() string`
+`func (o *PowerFeedStatus) GetLabel() PowerFeedStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *PowerFeedStatus) GetLabelOk() (*string, bool)`
+`func (o *PowerFeedStatus) GetLabelOk() (*PowerFeedStatusLabel, 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 *PowerFeedStatus) SetLabel(v string)`
+`func (o *PowerFeedStatus) SetLabel(v PowerFeedStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/PowerFeedStatusLabel.md b/docs/PowerFeedStatusLabel.md
new file mode 100644
index 0000000000..2349761201
--- /dev/null
+++ b/docs/PowerFeedStatusLabel.md
@@ -0,0 +1,17 @@
+# PowerFeedStatusLabel
+
+## Enum
+
+
+* `OFFLINE` (value: `"Offline"`)
+
+* `ACTIVE` (value: `"Active"`)
+
+* `PLANNED` (value: `"Planned"`)
+
+* `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/PowerFeedSupply.md b/docs/PowerFeedSupply.md
index 6b4764e150..6f202d6978 100644
--- a/docs/PowerFeedSupply.md
+++ b/docs/PowerFeedSupply.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `ac` - AC * `dc` - DC | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**PatchedWritablePowerFeedRequestSupply**](PatchedWritablePowerFeedRequestSupply.md) | | [optional]
+**Label** | Pointer to [**PowerFeedSupplyLabel**](PowerFeedSupplyLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *PowerFeedSupply) GetValue() string`
+`func (o *PowerFeedSupply) GetValue() PatchedWritablePowerFeedRequestSupply`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *PowerFeedSupply) GetValueOk() (*string, bool)`
+`func (o *PowerFeedSupply) GetValueOk() (*PatchedWritablePowerFeedRequestSupply, bool)`
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValue
-`func (o *PowerFeedSupply) SetValue(v string)`
+`func (o *PowerFeedSupply) SetValue(v PatchedWritablePowerFeedRequestSupply)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *PowerFeedSupply) GetLabel() string`
+`func (o *PowerFeedSupply) GetLabel() PowerFeedSupplyLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *PowerFeedSupply) GetLabelOk() (*string, bool)`
+`func (o *PowerFeedSupply) GetLabelOk() (*PowerFeedSupplyLabel, bool)`
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLabel
-`func (o *PowerFeedSupply) SetLabel(v string)`
+`func (o *PowerFeedSupply) SetLabel(v PowerFeedSupplyLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/PowerFeedSupplyLabel.md b/docs/PowerFeedSupplyLabel.md
new file mode 100644
index 0000000000..6d30ca84db
--- /dev/null
+++ b/docs/PowerFeedSupplyLabel.md
@@ -0,0 +1,13 @@
+# PowerFeedSupplyLabel
+
+## Enum
+
+
+* `AC` (value: `"AC"`)
+
+* `DC` (value: `"DC"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PowerFeedType.md b/docs/PowerFeedType.md
index 76767c46b4..74e01e342c 100644
--- a/docs/PowerFeedType.md
+++ b/docs/PowerFeedType.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `primary` - Primary * `redundant` - Redundant | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional]
+**Label** | Pointer to [**PowerFeedTypeLabel**](PowerFeedTypeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *PowerFeedType) GetValue() string`
+`func (o *PowerFeedType) GetValue() PatchedWritablePowerFeedRequestType`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *PowerFeedType) GetValueOk() (*string, bool)`
+`func (o *PowerFeedType) GetValueOk() (*PatchedWritablePowerFeedRequestType, 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 *PowerFeedType) SetValue(v string)`
+`func (o *PowerFeedType) SetValue(v PatchedWritablePowerFeedRequestType)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *PowerFeedType) GetLabel() string`
+`func (o *PowerFeedType) GetLabel() PowerFeedTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *PowerFeedType) GetLabelOk() (*string, bool)`
+`func (o *PowerFeedType) GetLabelOk() (*PowerFeedTypeLabel, 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 *PowerFeedType) SetLabel(v string)`
+`func (o *PowerFeedType) SetLabel(v PowerFeedTypeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/PowerFeedTypeLabel.md b/docs/PowerFeedTypeLabel.md
new file mode 100644
index 0000000000..d7be597d80
--- /dev/null
+++ b/docs/PowerFeedTypeLabel.md
@@ -0,0 +1,13 @@
+# PowerFeedTypeLabel
+
+## Enum
+
+
+* `PRIMARY` (value: `"Primary"`)
+
+* `REDUNDANT` (value: `"Redundant"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PowerOutletFeedLeg.md b/docs/PowerOutletFeedLeg.md
index b15d5d4bff..9be6708605 100644
--- a/docs/PowerOutletFeedLeg.md
+++ b/docs/PowerOutletFeedLeg.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `A` - A * `B` - B * `C` - C | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**PowerOutletFeedLegValue**](PowerOutletFeedLegValue.md) | | [optional]
+**Label** | Pointer to [**PowerOutletFeedLegLabel**](PowerOutletFeedLegLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *PowerOutletFeedLeg) GetValue() string`
+`func (o *PowerOutletFeedLeg) GetValue() PowerOutletFeedLegValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *PowerOutletFeedLeg) GetValueOk() (*string, bool)`
+`func (o *PowerOutletFeedLeg) GetValueOk() (*PowerOutletFeedLegValue, 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 *PowerOutletFeedLeg) SetValue(v string)`
+`func (o *PowerOutletFeedLeg) SetValue(v PowerOutletFeedLegValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *PowerOutletFeedLeg) GetLabel() string`
+`func (o *PowerOutletFeedLeg) GetLabel() PowerOutletFeedLegLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *PowerOutletFeedLeg) GetLabelOk() (*string, bool)`
+`func (o *PowerOutletFeedLeg) GetLabelOk() (*PowerOutletFeedLegLabel, 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 *PowerOutletFeedLeg) SetLabel(v string)`
+`func (o *PowerOutletFeedLeg) SetLabel(v PowerOutletFeedLegLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/PowerOutletFeedLegLabel.md b/docs/PowerOutletFeedLegLabel.md
new file mode 100644
index 0000000000..0a729fd38e
--- /dev/null
+++ b/docs/PowerOutletFeedLegLabel.md
@@ -0,0 +1,15 @@
+# PowerOutletFeedLegLabel
+
+## Enum
+
+
+* `A` (value: `"A"`)
+
+* `B` (value: `"B"`)
+
+* `C` (value: `"C"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PowerOutletFeedLegValue.md b/docs/PowerOutletFeedLegValue.md
new file mode 100644
index 0000000000..f602d83af1
--- /dev/null
+++ b/docs/PowerOutletFeedLegValue.md
@@ -0,0 +1,17 @@
+# PowerOutletFeedLegValue
+
+## Enum
+
+
+* `A` (value: `"A"`)
+
+* `B` (value: `"B"`)
+
+* `C` (value: `"C"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PowerOutletRequest.md b/docs/PowerOutletRequest.md
index b1f11b9d22..1dd0a05a9d 100644
--- a/docs/PowerOutletRequest.md
+++ b/docs/PowerOutletRequest.md
@@ -8,9 +8,9 @@ Name | Type | Description | Notes
**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **NullableString** | * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional]
+**Type** | Pointer to [**NullablePowerOutletRequestType**](PowerOutletRequestType.md) | | [optional]
**PowerPort** | Pointer to [**NullableNestedPowerPortRequest**](NestedPowerPortRequest.md) | | [optional]
-**FeedLeg** | Pointer to **NullableString** | * `A` - A * `B` - B * `C` - C | [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]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -137,20 +137,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PowerOutletRequest) GetType() string`
+`func (o *PowerOutletRequest) GetType() PowerOutletRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PowerOutletRequest) GetTypeOk() (*string, bool)`
+`func (o *PowerOutletRequest) GetTypeOk() (*PowerOutletRequestType, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *PowerOutletRequest) SetType(v string)`
+`func (o *PowerOutletRequest) SetType(v PowerOutletRequestType)`
SetType sets Type field to given value.
@@ -207,20 +207,20 @@ HasPowerPort returns a boolean if a field has been set.
UnsetPowerPort ensures that no value is present for PowerPort, not even an explicit nil
### GetFeedLeg
-`func (o *PowerOutletRequest) GetFeedLeg() string`
+`func (o *PowerOutletRequest) GetFeedLeg() PowerOutletRequestFeedLeg`
GetFeedLeg returns the FeedLeg field if non-nil, zero value otherwise.
### GetFeedLegOk
-`func (o *PowerOutletRequest) GetFeedLegOk() (*string, bool)`
+`func (o *PowerOutletRequest) GetFeedLegOk() (*PowerOutletRequestFeedLeg, bool)`
GetFeedLegOk returns a tuple with the FeedLeg field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFeedLeg
-`func (o *PowerOutletRequest) SetFeedLeg(v string)`
+`func (o *PowerOutletRequest) SetFeedLeg(v PowerOutletRequestFeedLeg)`
SetFeedLeg sets FeedLeg field to given value.
diff --git a/docs/PowerOutletRequestFeedLeg.md b/docs/PowerOutletRequestFeedLeg.md
new file mode 100644
index 0000000000..f1539f3094
--- /dev/null
+++ b/docs/PowerOutletRequestFeedLeg.md
@@ -0,0 +1,17 @@
+# PowerOutletRequestFeedLeg
+
+## Enum
+
+
+* `A` (value: `"A"`)
+
+* `B` (value: `"B"`)
+
+* `C` (value: `"C"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PowerOutletRequestType.md b/docs/PowerOutletRequestType.md
new file mode 100644
index 0000000000..24ab336a8e
--- /dev/null
+++ b/docs/PowerOutletRequestType.md
@@ -0,0 +1,197 @@
+# PowerOutletRequestType
+
+## Enum
+
+
+* `IEC_60320_C5` (value: `"iec-60320-c5"`)
+
+* `IEC_60320_C7` (value: `"iec-60320-c7"`)
+
+* `IEC_60320_C13` (value: `"iec-60320-c13"`)
+
+* `IEC_60320_C15` (value: `"iec-60320-c15"`)
+
+* `IEC_60320_C19` (value: `"iec-60320-c19"`)
+
+* `IEC_60320_C21` (value: `"iec-60320-c21"`)
+
+* `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_15R` (value: `"nema-1-15r"`)
+
+* `NEMA_5_15R` (value: `"nema-5-15r"`)
+
+* `NEMA_5_20R` (value: `"nema-5-20r"`)
+
+* `NEMA_5_30R` (value: `"nema-5-30r"`)
+
+* `NEMA_5_50R` (value: `"nema-5-50r"`)
+
+* `NEMA_6_15R` (value: `"nema-6-15r"`)
+
+* `NEMA_6_20R` (value: `"nema-6-20r"`)
+
+* `NEMA_6_30R` (value: `"nema-6-30r"`)
+
+* `NEMA_6_50R` (value: `"nema-6-50r"`)
+
+* `NEMA_10_30R` (value: `"nema-10-30r"`)
+
+* `NEMA_10_50R` (value: `"nema-10-50r"`)
+
+* `NEMA_14_20R` (value: `"nema-14-20r"`)
+
+* `NEMA_14_30R` (value: `"nema-14-30r"`)
+
+* `NEMA_14_50R` (value: `"nema-14-50r"`)
+
+* `NEMA_14_60R` (value: `"nema-14-60r"`)
+
+* `NEMA_15_15R` (value: `"nema-15-15r"`)
+
+* `NEMA_15_20R` (value: `"nema-15-20r"`)
+
+* `NEMA_15_30R` (value: `"nema-15-30r"`)
+
+* `NEMA_15_50R` (value: `"nema-15-50r"`)
+
+* `NEMA_15_60R` (value: `"nema-15-60r"`)
+
+* `NEMA_L1_15R` (value: `"nema-l1-15r"`)
+
+* `NEMA_L5_15R` (value: `"nema-l5-15r"`)
+
+* `NEMA_L5_20R` (value: `"nema-l5-20r"`)
+
+* `NEMA_L5_30R` (value: `"nema-l5-30r"`)
+
+* `NEMA_L5_50R` (value: `"nema-l5-50r"`)
+
+* `NEMA_L6_15R` (value: `"nema-l6-15r"`)
+
+* `NEMA_L6_20R` (value: `"nema-l6-20r"`)
+
+* `NEMA_L6_30R` (value: `"nema-l6-30r"`)
+
+* `NEMA_L6_50R` (value: `"nema-l6-50r"`)
+
+* `NEMA_L10_30R` (value: `"nema-l10-30r"`)
+
+* `NEMA_L14_20R` (value: `"nema-l14-20r"`)
+
+* `NEMA_L14_30R` (value: `"nema-l14-30r"`)
+
+* `NEMA_L14_50R` (value: `"nema-l14-50r"`)
+
+* `NEMA_L14_60R` (value: `"nema-l14-60r"`)
+
+* `NEMA_L15_20R` (value: `"nema-l15-20r"`)
+
+* `NEMA_L15_30R` (value: `"nema-l15-30r"`)
+
+* `NEMA_L15_50R` (value: `"nema-l15-50r"`)
+
+* `NEMA_L15_60R` (value: `"nema-l15-60r"`)
+
+* `NEMA_L21_20R` (value: `"nema-l21-20r"`)
+
+* `NEMA_L21_30R` (value: `"nema-l21-30r"`)
+
+* `NEMA_L22_30R` (value: `"nema-l22-30r"`)
+
+* `CS6360_C` (value: `"CS6360C"`)
+
+* `CS6364_C` (value: `"CS6364C"`)
+
+* `CS8164_C` (value: `"CS8164C"`)
+
+* `CS8264_C` (value: `"CS8264C"`)
+
+* `CS8364_C` (value: `"CS8364C"`)
+
+* `CS8464_C` (value: `"CS8464C"`)
+
+* `ITA_E` (value: `"ita-e"`)
+
+* `ITA_F` (value: `"ita-f"`)
+
+* `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"`)
+
+* `ITA_MULTISTANDARD` (value: `"ita-multistandard"`)
+
+* `USB_A` (value: `"usb-a"`)
+
+* `USB_MICRO_B` (value: `"usb-micro-b"`)
+
+* `USB_C` (value: `"usb-c"`)
+
+* `DC_TERMINAL` (value: `"dc-terminal"`)
+
+* `HDOT_CX` (value: `"hdot-cx"`)
+
+* `SAF_D_GRID` (value: `"saf-d-grid"`)
+
+* `NEUTRIK_POWERCON_20A` (value: `"neutrik-powercon-20a"`)
+
+* `NEUTRIK_POWERCON_32A` (value: `"neutrik-powercon-32a"`)
+
+* `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/PowerOutletTemplateRequest.md b/docs/PowerOutletTemplateRequest.md
index c0663c0d9e..cea522f382 100644
--- a/docs/PowerOutletTemplateRequest.md
+++ b/docs/PowerOutletTemplateRequest.md
@@ -8,9 +8,9 @@ Name | Type | Description | Notes
**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 **NullableString** | * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional]
+**Type** | Pointer to [**NullablePowerOutletRequestType**](PowerOutletRequestType.md) | | [optional]
**PowerPort** | Pointer to [**NullableNestedPowerPortTemplateRequest**](NestedPowerPortTemplateRequest.md) | | [optional]
-**FeedLeg** | Pointer to **NullableString** | * `A` - A * `B` - B * `C` - C | [optional]
+**FeedLeg** | Pointer to [**NullablePowerOutletRequestFeedLeg**](PowerOutletRequestFeedLeg.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
## Methods
@@ -149,20 +149,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PowerOutletTemplateRequest) GetType() string`
+`func (o *PowerOutletTemplateRequest) GetType() PowerOutletRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PowerOutletTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *PowerOutletTemplateRequest) GetTypeOk() (*PowerOutletRequestType, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *PowerOutletTemplateRequest) SetType(v string)`
+`func (o *PowerOutletTemplateRequest) SetType(v PowerOutletRequestType)`
SetType sets Type field to given value.
@@ -219,20 +219,20 @@ HasPowerPort returns a boolean if a field has been set.
UnsetPowerPort ensures that no value is present for PowerPort, not even an explicit nil
### GetFeedLeg
-`func (o *PowerOutletTemplateRequest) GetFeedLeg() string`
+`func (o *PowerOutletTemplateRequest) GetFeedLeg() PowerOutletRequestFeedLeg`
GetFeedLeg returns the FeedLeg field if non-nil, zero value otherwise.
### GetFeedLegOk
-`func (o *PowerOutletTemplateRequest) GetFeedLegOk() (*string, bool)`
+`func (o *PowerOutletTemplateRequest) GetFeedLegOk() (*PowerOutletRequestFeedLeg, bool)`
GetFeedLegOk returns a tuple with the FeedLeg field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFeedLeg
-`func (o *PowerOutletTemplateRequest) SetFeedLeg(v string)`
+`func (o *PowerOutletTemplateRequest) SetFeedLeg(v PowerOutletRequestFeedLeg)`
SetFeedLeg sets FeedLeg field to given value.
diff --git a/docs/PowerOutletType.md b/docs/PowerOutletType.md
index 21b177fa27..b34b5d8178 100644
--- a/docs/PowerOutletType.md
+++ b/docs/PowerOutletType.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional]
+**Label** | Pointer to [**PowerOutletTypeLabel**](PowerOutletTypeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *PowerOutletType) GetValue() string`
+`func (o *PowerOutletType) GetValue() PatchedWritablePowerOutletTemplateRequestType`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *PowerOutletType) GetValueOk() (*string, bool)`
+`func (o *PowerOutletType) GetValueOk() (*PatchedWritablePowerOutletTemplateRequestType, bool)`
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValue
-`func (o *PowerOutletType) SetValue(v string)`
+`func (o *PowerOutletType) SetValue(v PatchedWritablePowerOutletTemplateRequestType)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *PowerOutletType) GetLabel() string`
+`func (o *PowerOutletType) GetLabel() PowerOutletTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *PowerOutletType) GetLabelOk() (*string, bool)`
+`func (o *PowerOutletType) GetLabelOk() (*PowerOutletTypeLabel, 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 *PowerOutletType) SetLabel(v string)`
+`func (o *PowerOutletType) SetLabel(v PowerOutletTypeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/PowerOutletTypeLabel.md b/docs/PowerOutletTypeLabel.md
new file mode 100644
index 0000000000..d15e67865a
--- /dev/null
+++ b/docs/PowerOutletTypeLabel.md
@@ -0,0 +1,195 @@
+# PowerOutletTypeLabel
+
+## Enum
+
+
+* `C5` (value: `"C5"`)
+
+* `C7` (value: `"C7"`)
+
+* `C13` (value: `"C13"`)
+
+* `C15` (value: `"C15"`)
+
+* `C19` (value: `"C19"`)
+
+* `C21` (value: `"C21"`)
+
+* `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_R` (value: `"NEMA 1-15R"`)
+
+* `NEMA_5_15_R` (value: `"NEMA 5-15R"`)
+
+* `NEMA_5_20_R` (value: `"NEMA 5-20R"`)
+
+* `NEMA_5_30_R` (value: `"NEMA 5-30R"`)
+
+* `NEMA_5_50_R` (value: `"NEMA 5-50R"`)
+
+* `NEMA_6_15_R` (value: `"NEMA 6-15R"`)
+
+* `NEMA_6_20_R` (value: `"NEMA 6-20R"`)
+
+* `NEMA_6_30_R` (value: `"NEMA 6-30R"`)
+
+* `NEMA_6_50_R` (value: `"NEMA 6-50R"`)
+
+* `NEMA_10_30_R` (value: `"NEMA 10-30R"`)
+
+* `NEMA_10_50_R` (value: `"NEMA 10-50R"`)
+
+* `NEMA_14_20_R` (value: `"NEMA 14-20R"`)
+
+* `NEMA_14_30_R` (value: `"NEMA 14-30R"`)
+
+* `NEMA_14_50_R` (value: `"NEMA 14-50R"`)
+
+* `NEMA_14_60_R` (value: `"NEMA 14-60R"`)
+
+* `NEMA_15_15_R` (value: `"NEMA 15-15R"`)
+
+* `NEMA_15_20_R` (value: `"NEMA 15-20R"`)
+
+* `NEMA_15_30_R` (value: `"NEMA 15-30R"`)
+
+* `NEMA_15_50_R` (value: `"NEMA 15-50R"`)
+
+* `NEMA_15_60_R` (value: `"NEMA 15-60R"`)
+
+* `NEMA_L1_15_R` (value: `"NEMA L1-15R"`)
+
+* `NEMA_L5_15_R` (value: `"NEMA L5-15R"`)
+
+* `NEMA_L5_20_R` (value: `"NEMA L5-20R"`)
+
+* `NEMA_L5_30_R` (value: `"NEMA L5-30R"`)
+
+* `NEMA_L5_50_R` (value: `"NEMA L5-50R"`)
+
+* `NEMA_L6_15_R` (value: `"NEMA L6-15R"`)
+
+* `NEMA_L6_20_R` (value: `"NEMA L6-20R"`)
+
+* `NEMA_L6_30_R` (value: `"NEMA L6-30R"`)
+
+* `NEMA_L6_50_R` (value: `"NEMA L6-50R"`)
+
+* `NEMA_L10_30_R` (value: `"NEMA L10-30R"`)
+
+* `NEMA_L14_20_R` (value: `"NEMA L14-20R"`)
+
+* `NEMA_L14_30_R` (value: `"NEMA L14-30R"`)
+
+* `NEMA_L14_50_R` (value: `"NEMA L14-50R"`)
+
+* `NEMA_L14_60_R` (value: `"NEMA L14-60R"`)
+
+* `NEMA_L15_20_R` (value: `"NEMA L15-20R"`)
+
+* `NEMA_L15_30_R` (value: `"NEMA L15-30R"`)
+
+* `NEMA_L15_50_R` (value: `"NEMA L15-50R"`)
+
+* `NEMA_L15_60_R` (value: `"NEMA L15-60R"`)
+
+* `NEMA_L21_20_R` (value: `"NEMA L21-20R"`)
+
+* `NEMA_L21_30_R` (value: `"NEMA L21-30R"`)
+
+* `NEMA_L22_30_R` (value: `"NEMA L22-30R"`)
+
+* `CS6360_C` (value: `"CS6360C"`)
+
+* `CS6364_C` (value: `"CS6364C"`)
+
+* `CS8164_C` (value: `"CS8164C"`)
+
+* `CS8264_C` (value: `"CS8264C"`)
+
+* `CS8364_C` (value: `"CS8364C"`)
+
+* `CS8464_C` (value: `"CS8464C"`)
+
+* `ITA_TYPE_E__CEE_7_5` (value: `"ITA Type E (CEE 7/5)"`)
+
+* `ITA_TYPE_F__CEE_7_3` (value: `"ITA Type F (CEE 7/3)"`)
+
+* `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"`)
+
+* `ITA_MULTISTANDARD` (value: `"ITA Multistandard"`)
+
+* `USB_TYPE_A` (value: `"USB Type A"`)
+
+* `USB_MICRO_B` (value: `"USB Micro B"`)
+
+* `USB_TYPE_C` (value: `"USB Type C"`)
+
+* `DC_TERMINAL` (value: `"DC Terminal"`)
+
+* `HDOT_CX` (value: `"HDOT Cx"`)
+
+* `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/PowerPortRequest.md b/docs/PowerPortRequest.md
index 78c48b1cea..cb2c73dd53 100644
--- a/docs/PowerPortRequest.md
+++ b/docs/PowerPortRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **NullableString** | * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional]
+**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]
@@ -137,20 +137,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PowerPortRequest) GetType() string`
+`func (o *PowerPortRequest) GetType() PowerPortRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PowerPortRequest) GetTypeOk() (*string, bool)`
+`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 string)`
+`func (o *PowerPortRequest) SetType(v PowerPortRequestType)`
SetType sets Type field to given value.
diff --git a/docs/PowerPortRequestType.md b/docs/PowerPortRequestType.md
new file mode 100644
index 0000000000..0cb4867d3e
--- /dev/null
+++ b/docs/PowerPortRequestType.md
@@ -0,0 +1,211 @@
+# 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/PowerPortTemplateRequest.md b/docs/PowerPortTemplateRequest.md
index 9c8376d3c7..8962fade77 100644
--- a/docs/PowerPortTemplateRequest.md
+++ b/docs/PowerPortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**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 **NullableString** | * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional]
+**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]
@@ -149,20 +149,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *PowerPortTemplateRequest) GetType() string`
+`func (o *PowerPortTemplateRequest) GetType() PowerPortRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PowerPortTemplateRequest) GetTypeOk() (*string, bool)`
+`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 string)`
+`func (o *PowerPortTemplateRequest) SetType(v PowerPortRequestType)`
SetType sets Type field to given value.
diff --git a/docs/PowerPortType.md b/docs/PowerPortType.md
index 824712ec18..c982432ff5 100644
--- a/docs/PowerPortType.md
+++ b/docs/PowerPortType.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional]
+**Label** | Pointer to [**PowerPortTypeLabel**](PowerPortTypeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *PowerPortType) GetValue() string`
+`func (o *PowerPortType) GetValue() PatchedWritablePowerPortTemplateRequestType`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *PowerPortType) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *PowerPortType) SetValue(v PatchedWritablePowerPortTemplateRequestType)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *PowerPortType) GetLabel() string`
+`func (o *PowerPortType) GetLabel() PowerPortTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *PowerPortType) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *PowerPortType) SetLabel(v PowerPortTypeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/PowerPortTypeLabel.md b/docs/PowerPortTypeLabel.md
new file mode 100644
index 0000000000..cd6676d67e
--- /dev/null
+++ b/docs/PowerPortTypeLabel.md
@@ -0,0 +1,209 @@
+# 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/PrefixRequest.md b/docs/PrefixRequest.md
index 9f4d0e22b2..de47a36384 100644
--- a/docs/PrefixRequest.md
+++ b/docs/PrefixRequest.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Vrf** | Pointer to [**NullableNestedVRFRequest**](NestedVRFRequest.md) | | [optional]
**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
**Vlan** | Pointer to [**NullableNestedVLANRequest**](NestedVLANRequest.md) | | [optional]
-**Status** | Pointer to **string** | * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | [optional]
+**Status** | Pointer to [**PrefixStatusValue**](PrefixStatusValue.md) | | [optional]
**Role** | Pointer to [**NullableNestedRoleRequest**](NestedRoleRequest.md) | | [optional]
**IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional]
**MarkUtilized** | Pointer to **bool** | Treat as 100% utilized | [optional]
@@ -199,20 +199,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
### GetStatus
-`func (o *PrefixRequest) GetStatus() string`
+`func (o *PrefixRequest) GetStatus() PrefixStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PrefixRequest) GetStatusOk() (*string, bool)`
+`func (o *PrefixRequest) GetStatusOk() (*PrefixStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *PrefixRequest) SetStatus(v string)`
+`func (o *PrefixRequest) SetStatus(v PrefixStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/PrefixStatus.md b/docs/PrefixStatus.md
index 90a77c15ab..f66d24d941 100644
--- a/docs/PrefixStatus.md
+++ b/docs/PrefixStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**PrefixStatusValue**](PrefixStatusValue.md) | | [optional]
+**Label** | Pointer to [**PrefixStatusLabel**](PrefixStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *PrefixStatus) GetValue() string`
+`func (o *PrefixStatus) GetValue() PrefixStatusValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *PrefixStatus) GetValueOk() (*string, bool)`
+`func (o *PrefixStatus) GetValueOk() (*PrefixStatusValue, 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 *PrefixStatus) SetValue(v string)`
+`func (o *PrefixStatus) SetValue(v PrefixStatusValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *PrefixStatus) GetLabel() string`
+`func (o *PrefixStatus) GetLabel() PrefixStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *PrefixStatus) GetLabelOk() (*string, bool)`
+`func (o *PrefixStatus) GetLabelOk() (*PrefixStatusLabel, 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 *PrefixStatus) SetLabel(v string)`
+`func (o *PrefixStatus) SetLabel(v PrefixStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/PrefixStatusLabel.md b/docs/PrefixStatusLabel.md
new file mode 100644
index 0000000000..cc715c5f34
--- /dev/null
+++ b/docs/PrefixStatusLabel.md
@@ -0,0 +1,17 @@
+# PrefixStatusLabel
+
+## Enum
+
+
+* `CONTAINER` (value: `"Container"`)
+
+* `ACTIVE` (value: `"Active"`)
+
+* `RESERVED` (value: `"Reserved"`)
+
+* `DEPRECATED` (value: `"Deprecated"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PrefixStatusValue.md b/docs/PrefixStatusValue.md
new file mode 100644
index 0000000000..7c62dcb4f5
--- /dev/null
+++ b/docs/PrefixStatusValue.md
@@ -0,0 +1,17 @@
+# PrefixStatusValue
+
+## Enum
+
+
+* `CONTAINER` (value: `"container"`)
+
+* `ACTIVE` (value: `"active"`)
+
+* `RESERVED` (value: `"reserved"`)
+
+* `DEPRECATED` (value: `"deprecated"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/RackFace.md b/docs/RackFace.md
new file mode 100644
index 0000000000..10bfeb07cb
--- /dev/null
+++ b/docs/RackFace.md
@@ -0,0 +1,15 @@
+# RackFace
+
+## Enum
+
+
+* `FRONT` (value: `"front"`)
+
+* `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/RackOuterUnit.md b/docs/RackOuterUnit.md
index 80239fcca1..09a88910f6 100644
--- a/docs/RackOuterUnit.md
+++ b/docs/RackOuterUnit.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `mm` - Millimeters * `in` - Inches | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional]
+**Label** | Pointer to [**RackOuterUnitLabel**](RackOuterUnitLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *RackOuterUnit) GetValue() string`
+`func (o *RackOuterUnit) GetValue() PatchedWritableRackRequestOuterUnit`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *RackOuterUnit) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *RackOuterUnit) SetValue(v PatchedWritableRackRequestOuterUnit)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *RackOuterUnit) GetLabel() string`
+`func (o *RackOuterUnit) GetLabel() RackOuterUnitLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *RackOuterUnit) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *RackOuterUnit) SetLabel(v RackOuterUnitLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/RackOuterUnitLabel.md b/docs/RackOuterUnitLabel.md
new file mode 100644
index 0000000000..760faedf16
--- /dev/null
+++ b/docs/RackOuterUnitLabel.md
@@ -0,0 +1,13 @@
+# RackOuterUnitLabel
+
+## Enum
+
+
+* `MILLIMETERS` (value: `"Millimeters"`)
+
+* `INCHES` (value: `"Inches"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/RackRequest.md b/docs/RackRequest.md
index d9fbf95a67..afea025fdc 100644
--- a/docs/RackRequest.md
+++ b/docs/RackRequest.md
@@ -9,21 +9,21 @@ Name | Type | Description | Notes
**Site** | [**NestedSiteRequest**](NestedSiteRequest.md) | |
**Location** | Pointer to [**NullableNestedLocationRequest**](NestedLocationRequest.md) | | [optional]
**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**Status** | Pointer to **string** | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated | [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 **NullableString** | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | [optional]
-**Width** | Pointer to **int32** | * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | [optional]
+**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 **NullableString** | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | [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 **NullableString** | * `mm` - Millimeters * `in` - Inches | [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]
@@ -196,20 +196,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
### GetStatus
-`func (o *RackRequest) GetStatus() string`
+`func (o *RackRequest) GetStatus() PatchedWritableRackRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *RackRequest) GetStatusOk() (*string, bool)`
+`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 string)`
+`func (o *RackRequest) SetStatus(v PatchedWritableRackRequestStatus)`
SetStatus sets Status field to given value.
@@ -316,20 +316,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
### GetType
-`func (o *RackRequest) GetType() string`
+`func (o *RackRequest) GetType() RackRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *RackRequest) GetTypeOk() (*string, bool)`
+`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 string)`
+`func (o *RackRequest) SetType(v RackRequestType)`
SetType sets Type field to given value.
@@ -351,20 +351,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
### GetWidth
-`func (o *RackRequest) GetWidth() int32`
+`func (o *RackRequest) GetWidth() RackWidthValue`
GetWidth returns the Width field if non-nil, zero value otherwise.
### GetWidthOk
-`func (o *RackRequest) GetWidthOk() (*int32, bool)`
+`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 int32)`
+`func (o *RackRequest) SetWidth(v RackWidthValue)`
SetWidth sets Width 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 *RackRequest) GetWeightUnit() string`
+`func (o *RackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *RackRequest) GetWeightUnitOk() (*string, bool)`
+`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 string)`
+`func (o *RackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)`
SetWeightUnit sets WeightUnit field to given value.
@@ -626,20 +626,20 @@ HasOuterDepth returns a boolean if a field has been set.
UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil
### GetOuterUnit
-`func (o *RackRequest) GetOuterUnit() string`
+`func (o *RackRequest) GetOuterUnit() RackRequestOuterUnit`
GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise.
### GetOuterUnitOk
-`func (o *RackRequest) GetOuterUnitOk() (*string, bool)`
+`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 string)`
+`func (o *RackRequest) SetOuterUnit(v RackRequestOuterUnit)`
SetOuterUnit sets OuterUnit field to given value.
diff --git a/docs/RackRequestOuterUnit.md b/docs/RackRequestOuterUnit.md
new file mode 100644
index 0000000000..8316b288d2
--- /dev/null
+++ b/docs/RackRequestOuterUnit.md
@@ -0,0 +1,15 @@
+# RackRequestOuterUnit
+
+## Enum
+
+
+* `MM` (value: `"mm"`)
+
+* `IN` (value: `"in"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/RackRequestType.md b/docs/RackRequestType.md
new file mode 100644
index 0000000000..410f30589b
--- /dev/null
+++ b/docs/RackRequestType.md
@@ -0,0 +1,25 @@
+# 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/RackStatus.md b/docs/RackStatus.md
index e420d5dd71..414f07ddeb 100644
--- a/docs/RackStatus.md
+++ b/docs/RackStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional]
+**Label** | Pointer to [**RackStatusLabel**](RackStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *RackStatus) GetValue() string`
+`func (o *RackStatus) GetValue() PatchedWritableRackRequestStatus`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *RackStatus) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *RackStatus) SetValue(v PatchedWritableRackRequestStatus)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *RackStatus) GetLabel() string`
+`func (o *RackStatus) GetLabel() RackStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *RackStatus) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *RackStatus) SetLabel(v RackStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/RackStatusLabel.md b/docs/RackStatusLabel.md
new file mode 100644
index 0000000000..0b700039e6
--- /dev/null
+++ b/docs/RackStatusLabel.md
@@ -0,0 +1,19 @@
+# RackStatusLabel
+
+## Enum
+
+
+* `RESERVED` (value: `"Reserved"`)
+
+* `AVAILABLE` (value: `"Available"`)
+
+* `PLANNED` (value: `"Planned"`)
+
+* `ACTIVE` (value: `"Active"`)
+
+* `DEPRECATED` (value: `"Deprecated"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/RackType.md b/docs/RackType.md
index ff15be294a..aa761d4530 100644
--- a/docs/RackType.md
+++ b/docs/RackType.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional]
+**Label** | Pointer to [**RackTypeLabel**](RackTypeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *RackType) GetValue() string`
+`func (o *RackType) GetValue() PatchedWritableRackRequestType`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *RackType) GetValueOk() (*string, bool)`
+`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 string)`
+`func (o *RackType) SetValue(v PatchedWritableRackRequestType)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *RackType) GetLabel() string`
+`func (o *RackType) GetLabel() RackTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *RackType) GetLabelOk() (*string, bool)`
+`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 string)`
+`func (o *RackType) SetLabel(v RackTypeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/RackTypeLabel.md b/docs/RackTypeLabel.md
new file mode 100644
index 0000000000..286a95c70d
--- /dev/null
+++ b/docs/RackTypeLabel.md
@@ -0,0 +1,23 @@
+# 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/RackWidth.md b/docs/RackWidth.md
index f841dba83d..04b03ffe83 100644
--- a/docs/RackWidth.md
+++ b/docs/RackWidth.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **int32** | * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**RackWidthValue**](RackWidthValue.md) | | [optional]
+**Label** | Pointer to [**RackWidthLabel**](RackWidthLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *RackWidth) GetValue() int32`
+`func (o *RackWidth) GetValue() RackWidthValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *RackWidth) GetValueOk() (*int32, bool)`
+`func (o *RackWidth) GetValueOk() (*RackWidthValue, bool)`
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValue
-`func (o *RackWidth) SetValue(v int32)`
+`func (o *RackWidth) SetValue(v RackWidthValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *RackWidth) GetLabel() string`
+`func (o *RackWidth) GetLabel() RackWidthLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *RackWidth) GetLabelOk() (*string, bool)`
+`func (o *RackWidth) GetLabelOk() (*RackWidthLabel, bool)`
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLabel
-`func (o *RackWidth) SetLabel(v string)`
+`func (o *RackWidth) SetLabel(v RackWidthLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/RackWidthLabel.md b/docs/RackWidthLabel.md
new file mode 100644
index 0000000000..c6fa6cba1a
--- /dev/null
+++ b/docs/RackWidthLabel.md
@@ -0,0 +1,17 @@
+# RackWidthLabel
+
+## Enum
+
+
+* `_10_INCHES` (value: `"10 inches"`)
+
+* `_19_INCHES` (value: `"19 inches"`)
+
+* `_21_INCHES` (value: `"21 inches"`)
+
+* `_23_INCHES` (value: `"23 inches"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/RackWidthValue.md b/docs/RackWidthValue.md
new file mode 100644
index 0000000000..c4f90af4da
--- /dev/null
+++ b/docs/RackWidthValue.md
@@ -0,0 +1,17 @@
+# RackWidthValue
+
+## Enum
+
+
+* `_10` (value: `10`)
+
+* `_19` (value: `19`)
+
+* `_21` (value: `21`)
+
+* `_23` (value: `23`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/RearPortRequest.md b/docs/RearPortRequest.md
index ffcbba4d67..95a17250f6 100644
--- a/docs/RearPortRequest.md
+++ b/docs/RearPortRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other |
+**Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | |
**Color** | Pointer to **string** | | [optional]
**Positions** | Pointer to **int32** | Number of front ports which may be mapped | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
### NewRearPortRequest
-`func NewRearPortRequest(device NestedDeviceRequest, name string, type_ string, ) *RearPortRequest`
+`func NewRearPortRequest(device NestedDeviceRequest, name string, type_ FrontPortTypeValue, ) *RearPortRequest`
NewRearPortRequest instantiates a new RearPortRequest object
This constructor will assign default values to properties that have it defined,
@@ -137,20 +137,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *RearPortRequest) GetType() string`
+`func (o *RearPortRequest) GetType() FrontPortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *RearPortRequest) GetTypeOk() (*string, bool)`
+`func (o *RearPortRequest) 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 *RearPortRequest) SetType(v string)`
+`func (o *RearPortRequest) SetType(v FrontPortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/RearPortTemplateRequest.md b/docs/RearPortTemplateRequest.md
index 2d90a1581f..d8cba32f50 100644
--- a/docs/RearPortTemplateRequest.md
+++ b/docs/RearPortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**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** | **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other |
+**Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | |
**Color** | Pointer to **string** | | [optional]
**Positions** | Pointer to **int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
### NewRearPortTemplateRequest
-`func NewRearPortTemplateRequest(name string, type_ string, ) *RearPortTemplateRequest`
+`func NewRearPortTemplateRequest(name string, type_ FrontPortTypeValue, ) *RearPortTemplateRequest`
NewRearPortTemplateRequest instantiates a new RearPortTemplateRequest object
This constructor will assign default values to properties that have it defined,
@@ -149,20 +149,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *RearPortTemplateRequest) GetType() string`
+`func (o *RearPortTemplateRequest) GetType() FrontPortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *RearPortTemplateRequest) GetTypeOk() (*string, bool)`
+`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 string)`
+`func (o *RearPortTemplateRequest) SetType(v FrontPortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/SavedFilter.md b/docs/SavedFilter.md
index 0d0f40a697..ebc998a6d7 100644
--- a/docs/SavedFilter.md
+++ b/docs/SavedFilter.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
**Weight** | Pointer to **int32** | | [optional]
**Enabled** | Pointer to **bool** | | [optional]
**Shared** | Pointer to **bool** | | [optional]
-**Parameters** | **map[string]interface{}** | |
+**Parameters** | **interface{}** | |
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
@@ -23,7 +23,7 @@ Name | Type | Description | Notes
### NewSavedFilter
-`func NewSavedFilter(id int32, url string, display string, contentTypes []string, name string, slug string, parameters map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *SavedFilter`
+`func NewSavedFilter(id int32, url string, display string, contentTypes []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,
@@ -295,24 +295,34 @@ HasShared returns a boolean if a field has been set.
### GetParameters
-`func (o *SavedFilter) GetParameters() map[string]interface{}`
+`func (o *SavedFilter) GetParameters() interface{}`
GetParameters returns the Parameters field if non-nil, zero value otherwise.
### GetParametersOk
-`func (o *SavedFilter) GetParametersOk() (*map[string]interface{}, bool)`
+`func (o *SavedFilter) 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 *SavedFilter) SetParameters(v map[string]interface{})`
+`func (o *SavedFilter) SetParameters(v interface{})`
SetParameters sets Parameters field to given value.
+### SetParametersNil
+
+`func (o *SavedFilter) SetParametersNil(b bool)`
+
+ SetParametersNil sets the value for Parameters to be an explicit nil
+
+### UnsetParameters
+`func (o *SavedFilter) UnsetParameters()`
+
+UnsetParameters ensures that no value is present for Parameters, not even an explicit nil
### GetCreated
`func (o *SavedFilter) GetCreated() time.Time`
diff --git a/docs/SavedFilterRequest.md b/docs/SavedFilterRequest.md
index 8951e03dd9..bc080797a7 100644
--- a/docs/SavedFilterRequest.md
+++ b/docs/SavedFilterRequest.md
@@ -12,13 +12,13 @@ Name | Type | Description | Notes
**Weight** | Pointer to **int32** | | [optional]
**Enabled** | Pointer to **bool** | | [optional]
**Shared** | Pointer to **bool** | | [optional]
-**Parameters** | **map[string]interface{}** | |
+**Parameters** | **interface{}** | |
## Methods
### NewSavedFilterRequest
-`func NewSavedFilterRequest(contentTypes []string, name string, slug string, parameters map[string]interface{}, ) *SavedFilterRequest`
+`func NewSavedFilterRequest(contentTypes []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,
@@ -230,24 +230,34 @@ HasShared returns a boolean if a field has been set.
### GetParameters
-`func (o *SavedFilterRequest) GetParameters() map[string]interface{}`
+`func (o *SavedFilterRequest) GetParameters() interface{}`
GetParameters returns the Parameters field if non-nil, zero value otherwise.
### GetParametersOk
-`func (o *SavedFilterRequest) GetParametersOk() (*map[string]interface{}, bool)`
+`func (o *SavedFilterRequest) 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 *SavedFilterRequest) SetParameters(v map[string]interface{})`
+`func (o *SavedFilterRequest) SetParameters(v interface{})`
SetParameters sets Parameters field to given value.
+### SetParametersNil
+
+`func (o *SavedFilterRequest) SetParametersNil(b bool)`
+
+ SetParametersNil sets the value for Parameters to be an explicit nil
+
+### UnsetParameters
+`func (o *SavedFilterRequest) UnsetParameters()`
+
+UnsetParameters ensures that no value is present for Parameters, not even an explicit nil
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/SchemaApi.md b/docs/SchemaAPI.md
similarity index 58%
rename from docs/SchemaApi.md
rename to docs/SchemaAPI.md
index f3d0fd25e0..5d4e28290d 100644
--- a/docs/SchemaApi.md
+++ b/docs/SchemaAPI.md
@@ -22,24 +22,24 @@ Method | HTTP request | Description
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- format := "format_example" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.SchemaAPI.SchemaRetrieve(context.Background()).Format(format).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `SchemaAPI.SchemaRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `SchemaRetrieve`: map[string]interface{}
- fmt.Fprintf(os.Stdout, "Response from `SchemaAPI.SchemaRetrieve`: %v\n", resp)
+ format := openapiclient.schema_retrieve_format_parameter("json") // SchemaRetrieveFormatParameter | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.SchemaAPI.SchemaRetrieve(context.Background()).Format(format).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `SchemaAPI.SchemaRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `SchemaRetrieve`: map[string]interface{}
+ fmt.Fprintf(os.Stdout, "Response from `SchemaAPI.SchemaRetrieve`: %v\n", resp)
}
```
@@ -54,7 +54,7 @@ Other parameters are passed through a pointer to a apiSchemaRetrieveRequest stru
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **format** | **string** | |
+ **format** | [**SchemaRetrieveFormatParameter**](SchemaRetrieveFormatParameter.md) | |
### Return type
diff --git a/docs/SchemaRetrieveFormatParameter.md b/docs/SchemaRetrieveFormatParameter.md
new file mode 100644
index 0000000000..07e00f06af
--- /dev/null
+++ b/docs/SchemaRetrieveFormatParameter.md
@@ -0,0 +1,13 @@
+# SchemaRetrieveFormatParameter
+
+## Enum
+
+
+* `JSON` (value: `"json"`)
+
+* `YAML` (value: `"yaml"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ServiceProtocol.md b/docs/ServiceProtocol.md
index f7e0288a2f..a68c12132a 100644
--- a/docs/ServiceProtocol.md
+++ b/docs/ServiceProtocol.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional]
+**Label** | Pointer to [**ServiceProtocolLabel**](ServiceProtocolLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *ServiceProtocol) GetValue() string`
+`func (o *ServiceProtocol) GetValue() PatchedWritableServiceRequestProtocol`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *ServiceProtocol) GetValueOk() (*string, bool)`
+`func (o *ServiceProtocol) GetValueOk() (*PatchedWritableServiceRequestProtocol, 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 *ServiceProtocol) SetValue(v string)`
+`func (o *ServiceProtocol) SetValue(v PatchedWritableServiceRequestProtocol)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *ServiceProtocol) GetLabel() string`
+`func (o *ServiceProtocol) GetLabel() ServiceProtocolLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *ServiceProtocol) GetLabelOk() (*string, bool)`
+`func (o *ServiceProtocol) GetLabelOk() (*ServiceProtocolLabel, 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 *ServiceProtocol) SetLabel(v string)`
+`func (o *ServiceProtocol) SetLabel(v ServiceProtocolLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/ServiceProtocolLabel.md b/docs/ServiceProtocolLabel.md
new file mode 100644
index 0000000000..6f4e91e787
--- /dev/null
+++ b/docs/ServiceProtocolLabel.md
@@ -0,0 +1,15 @@
+# ServiceProtocolLabel
+
+## Enum
+
+
+* `TCP` (value: `"TCP"`)
+
+* `UDP` (value: `"UDP"`)
+
+* `SCTP` (value: `"SCTP"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ServiceRequest.md b/docs/ServiceRequest.md
index 1e9249e934..a702cb7a5e 100644
--- a/docs/ServiceRequest.md
+++ b/docs/ServiceRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**VirtualMachine** | Pointer to [**NullableNestedVirtualMachineRequest**](NestedVirtualMachineRequest.md) | | [optional]
**Name** | **string** | |
**Ports** | **[]int32** | |
-**Protocol** | Pointer to **string** | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | [optional]
+**Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional]
**Ipaddresses** | Pointer to **[]int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -146,20 +146,20 @@ SetPorts sets Ports field to given value.
### GetProtocol
-`func (o *ServiceRequest) GetProtocol() string`
+`func (o *ServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
### GetProtocolOk
-`func (o *ServiceRequest) GetProtocolOk() (*string, bool)`
+`func (o *ServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetProtocol
-`func (o *ServiceRequest) SetProtocol(v string)`
+`func (o *ServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
SetProtocol sets Protocol field to given value.
diff --git a/docs/ServiceTemplateRequest.md b/docs/ServiceTemplateRequest.md
index 7f17329ddc..7875fcd355 100644
--- a/docs/ServiceTemplateRequest.md
+++ b/docs/ServiceTemplateRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Ports** | **[]int32** | |
-**Protocol** | Pointer to **string** | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | [optional]
+**Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -73,20 +73,20 @@ SetPorts sets Ports field to given value.
### GetProtocol
-`func (o *ServiceTemplateRequest) GetProtocol() string`
+`func (o *ServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
### GetProtocolOk
-`func (o *ServiceTemplateRequest) GetProtocolOk() (*string, bool)`
+`func (o *ServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetProtocol
-`func (o *ServiceTemplateRequest) SetProtocol(v string)`
+`func (o *ServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
SetProtocol sets Protocol field to given value.
diff --git a/docs/SiteRequest.md b/docs/SiteRequest.md
index 470b5b8af3..0663a61179 100644
--- a/docs/SiteRequest.md
+++ b/docs/SiteRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | Full name of the site |
**Slug** | **string** | |
-**Status** | Pointer to **string** | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | [optional]
+**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]
@@ -83,20 +83,20 @@ SetSlug sets Slug field to given value.
### GetStatus
-`func (o *SiteRequest) GetStatus() string`
+`func (o *SiteRequest) GetStatus() LocationStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *SiteRequest) GetStatusOk() (*string, bool)`
+`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 string)`
+`func (o *SiteRequest) SetStatus(v LocationStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/StatusApi.md b/docs/StatusAPI.md
similarity index 61%
rename from docs/StatusApi.md
rename to docs/StatusAPI.md
index 29713db20f..72029d1a23 100644
--- a/docs/StatusApi.md
+++ b/docs/StatusAPI.md
@@ -22,23 +22,23 @@ Method | HTTP request | Description
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.StatusAPI.StatusRetrieve(context.Background()).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `StatusAPI.StatusRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `StatusRetrieve`: map[string]interface{}
- fmt.Fprintf(os.Stdout, "Response from `StatusAPI.StatusRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.StatusAPI.StatusRetrieve(context.Background()).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `StatusAPI.StatusRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `StatusRetrieve`: map[string]interface{}
+ fmt.Fprintf(os.Stdout, "Response from `StatusAPI.StatusRetrieve`: %v\n", resp)
}
```
diff --git a/docs/TenancyApi.md b/docs/TenancyAPI.md
similarity index 53%
rename from docs/TenancyApi.md
rename to docs/TenancyAPI.md
index 74c927d781..279c614cc9 100644
--- a/docs/TenancyApi.md
+++ b/docs/TenancyAPI.md
@@ -75,22 +75,22 @@ Method | HTTP request | Description
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ContentType_example", int64(123), *openapiclient.NewNestedContactRequest("Name_example"))} // []ContactAssignmentRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkDestroy(context.Background()).ContactAssignmentRequest(contactAssignmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ContentType_example", int64(123), *openapiclient.NewNestedContactRequest("Name_example"))} // []ContactAssignmentRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkDestroy(context.Background()).ContactAssignmentRequest(contactAssignmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -139,24 +139,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ContentType_example", int64(123), *openapiclient.NewNestedContactRequest("Name_example"))} // []ContactAssignmentRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkPartialUpdate(context.Background()).ContactAssignmentRequest(contactAssignmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactAssignmentsBulkPartialUpdate`: []ContactAssignment
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsBulkPartialUpdate`: %v\n", resp)
+ contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ContentType_example", int64(123), *openapiclient.NewNestedContactRequest("Name_example"))} // []ContactAssignmentRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkPartialUpdate(context.Background()).ContactAssignmentRequest(contactAssignmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactAssignmentsBulkPartialUpdate`: []ContactAssignment
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -205,24 +205,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ContentType_example", int64(123), *openapiclient.NewNestedContactRequest("Name_example"))} // []ContactAssignmentRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkUpdate(context.Background()).ContactAssignmentRequest(contactAssignmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactAssignmentsBulkUpdate`: []ContactAssignment
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsBulkUpdate`: %v\n", resp)
+ contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ContentType_example", int64(123), *openapiclient.NewNestedContactRequest("Name_example"))} // []ContactAssignmentRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkUpdate(context.Background()).ContactAssignmentRequest(contactAssignmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactAssignmentsBulkUpdate`: []ContactAssignment
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsBulkUpdate`: %v\n", resp)
}
```
@@ -271,24 +271,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ContentType_example", int64(123), int32(123), int32(123)) // WritableContactAssignmentRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsCreate(context.Background()).WritableContactAssignmentRequest(writableContactAssignmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactAssignmentsCreate`: ContactAssignment
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsCreate`: %v\n", resp)
+ writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ContentType_example", int64(123), int32(123), int32(123)) // WritableContactAssignmentRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsCreate(context.Background()).WritableContactAssignmentRequest(writableContactAssignmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactAssignmentsCreate`: ContactAssignment
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsCreate`: %v\n", resp)
}
```
@@ -337,22 +337,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact assignment.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.TenancyAPI.TenancyContactAssignmentsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this contact assignment.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.TenancyAPI.TenancyContactAssignmentsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -393,7 +393,7 @@ Name | Type | Description | Notes
## TenancyContactAssignmentsList
-> PaginatedContactAssignmentList TenancyContactAssignmentsList(ctx).ContactId(contactId).ContactIdN(contactIdN).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -405,73 +405,77 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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)
- 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)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- objectId := []int32{int32(123)} // []int32 | (optional)
- objectIdEmpty := true // bool | (optional)
- objectIdGt := []int32{int32(123)} // []int32 | (optional)
- objectIdGte := []int32{int32(123)} // []int32 | (optional)
- objectIdLt := []int32{int32(123)} // []int32 | (optional)
- objectIdLte := []int32{int32(123)} // []int32 | (optional)
- objectIdN := []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)
- priority := "priority_example" // string | (optional)
- priorityN := "priorityN_example" // string | (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)
- roleId := []int32{int32(123)} // []int32 | Contact role (ID) (optional)
- roleIdN := []int32{int32(123)} // []int32 | Contact role (ID) (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsList(context.Background()).ContactId(contactId).ContactIdN(contactIdN).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactAssignmentsList`: PaginatedContactAssignmentList
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsList`: %v\n", resp)
+ 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)
+ 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)
+ group := []int32{int32(123)} // []int32 | Contact group (slug) (optional)
+ groupN := []int32{int32(123)} // []int32 | Contact group (slug) (optional)
+ groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional)
+ groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ objectId := []int32{int32(123)} // []int32 | (optional)
+ objectIdEmpty := true // bool | (optional)
+ objectIdGt := []int32{int32(123)} // []int32 | (optional)
+ objectIdGte := []int32{int32(123)} // []int32 | (optional)
+ objectIdLt := []int32{int32(123)} // []int32 | (optional)
+ objectIdLte := []int32{int32(123)} // []int32 | (optional)
+ objectIdN := []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)
+ priority := "priority_example" // string | (optional)
+ priorityN := "priorityN_example" // string | (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)
+ roleId := []int32{int32(123)} // []int32 | Contact role (ID) (optional)
+ roleIdN := []int32{int32(123)} // []int32 | Contact role (ID) (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsList(context.Background()).ContactId(contactId).ContactIdN(contactIdN).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).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()
+ 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)
+ }
+ // response from `TenancyContactAssignmentsList`: PaginatedContactAssignmentList
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsList`: %v\n", resp)
}
```
@@ -500,6 +504,10 @@ Name | Type | Description | Notes
**createdLte** | [**[]time.Time**](time.Time.md) | |
**createdN** | [**[]time.Time**](time.Time.md) | |
**createdByRequest** | **string** | |
+ **group** | **[]int32** | Contact group (slug) |
+ **groupN** | **[]int32** | Contact group (slug) |
+ **groupId** | **[]int32** | Contact group (ID) |
+ **groupIdN** | **[]int32** | Contact group (ID) |
**id** | **[]int32** | |
**idEmpty** | **bool** | |
**idGt** | **[]int32** | |
@@ -568,25 +576,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact assignment.
- patchedWritableContactAssignmentRequest := *openapiclient.NewPatchedWritableContactAssignmentRequest() // PatchedWritableContactAssignmentRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsPartialUpdate(context.Background(), id).PatchedWritableContactAssignmentRequest(patchedWritableContactAssignmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactAssignmentsPartialUpdate`: ContactAssignment
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this contact assignment.
+ patchedWritableContactAssignmentRequest := *openapiclient.NewPatchedWritableContactAssignmentRequest() // PatchedWritableContactAssignmentRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsPartialUpdate(context.Background(), id).PatchedWritableContactAssignmentRequest(patchedWritableContactAssignmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactAssignmentsPartialUpdate`: ContactAssignment
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsPartialUpdate`: %v\n", resp)
}
```
@@ -640,24 +648,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact assignment.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactAssignmentsRetrieve`: ContactAssignment
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this contact assignment.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactAssignmentsRetrieve`: ContactAssignment
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsRetrieve`: %v\n", resp)
}
```
@@ -710,25 +718,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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 |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsUpdate(context.Background(), id).WritableContactAssignmentRequest(writableContactAssignmentRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactAssignmentsUpdate`: ContactAssignment
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this contact assignment.
+ writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ContentType_example", int64(123), int32(123), int32(123)) // WritableContactAssignmentRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsUpdate(context.Background(), id).WritableContactAssignmentRequest(writableContactAssignmentRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactAssignmentsUpdate`: ContactAssignment
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsUpdate`: %v\n", resp)
}
```
@@ -782,22 +790,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contactGroupRequest := []openapiclient.ContactGroupRequest{*openapiclient.NewContactGroupRequest("Name_example", "Slug_example")} // []ContactGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.TenancyAPI.TenancyContactGroupsBulkDestroy(context.Background()).ContactGroupRequest(contactGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ contactGroupRequest := []openapiclient.ContactGroupRequest{*openapiclient.NewContactGroupRequest("Name_example", "Slug_example")} // []ContactGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.TenancyAPI.TenancyContactGroupsBulkDestroy(context.Background()).ContactGroupRequest(contactGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -846,24 +854,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contactGroupRequest := []openapiclient.ContactGroupRequest{*openapiclient.NewContactGroupRequest("Name_example", "Slug_example")} // []ContactGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsBulkPartialUpdate(context.Background()).ContactGroupRequest(contactGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactGroupsBulkPartialUpdate`: []ContactGroup
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsBulkPartialUpdate`: %v\n", resp)
+ contactGroupRequest := []openapiclient.ContactGroupRequest{*openapiclient.NewContactGroupRequest("Name_example", "Slug_example")} // []ContactGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsBulkPartialUpdate(context.Background()).ContactGroupRequest(contactGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactGroupsBulkPartialUpdate`: []ContactGroup
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -912,24 +920,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contactGroupRequest := []openapiclient.ContactGroupRequest{*openapiclient.NewContactGroupRequest("Name_example", "Slug_example")} // []ContactGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsBulkUpdate(context.Background()).ContactGroupRequest(contactGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactGroupsBulkUpdate`: []ContactGroup
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsBulkUpdate`: %v\n", resp)
+ contactGroupRequest := []openapiclient.ContactGroupRequest{*openapiclient.NewContactGroupRequest("Name_example", "Slug_example")} // []ContactGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsBulkUpdate(context.Background()).ContactGroupRequest(contactGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactGroupsBulkUpdate`: []ContactGroup
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsBulkUpdate`: %v\n", resp)
}
```
@@ -978,24 +986,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableContactGroupRequest := *openapiclient.NewWritableContactGroupRequest("Name_example", "Slug_example") // WritableContactGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsCreate(context.Background()).WritableContactGroupRequest(writableContactGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactGroupsCreate`: ContactGroup
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsCreate`: %v\n", resp)
+ writableContactGroupRequest := *openapiclient.NewWritableContactGroupRequest("Name_example", "Slug_example") // WritableContactGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsCreate(context.Background()).WritableContactGroupRequest(writableContactGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactGroupsCreate`: ContactGroup
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsCreate`: %v\n", resp)
}
```
@@ -1044,22 +1052,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.TenancyAPI.TenancyContactGroupsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this contact group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.TenancyAPI.TenancyContactGroupsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1112,91 +1120,91 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- 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)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactGroupsList`: PaginatedContactGroupList
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsList`: %v\n", resp)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ 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)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactGroupsList`: PaginatedContactGroupList
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsList`: %v\n", resp)
}
```
@@ -1311,25 +1319,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact group.
- patchedWritableContactGroupRequest := *openapiclient.NewPatchedWritableContactGroupRequest() // PatchedWritableContactGroupRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsPartialUpdate(context.Background(), id).PatchedWritableContactGroupRequest(patchedWritableContactGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactGroupsPartialUpdate`: ContactGroup
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this contact group.
+ patchedWritableContactGroupRequest := *openapiclient.NewPatchedWritableContactGroupRequest() // PatchedWritableContactGroupRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsPartialUpdate(context.Background(), id).PatchedWritableContactGroupRequest(patchedWritableContactGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactGroupsPartialUpdate`: ContactGroup
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsPartialUpdate`: %v\n", resp)
}
```
@@ -1383,24 +1391,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactGroupsRetrieve`: ContactGroup
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this contact group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactGroupsRetrieve`: ContactGroup
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsRetrieve`: %v\n", resp)
}
```
@@ -1453,25 +1461,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact group.
- writableContactGroupRequest := *openapiclient.NewWritableContactGroupRequest("Name_example", "Slug_example") // WritableContactGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsUpdate(context.Background(), id).WritableContactGroupRequest(writableContactGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactGroupsUpdate`: ContactGroup
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this contact group.
+ writableContactGroupRequest := *openapiclient.NewWritableContactGroupRequest("Name_example", "Slug_example") // WritableContactGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsUpdate(context.Background(), id).WritableContactGroupRequest(writableContactGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactGroupsUpdate`: ContactGroup
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsUpdate`: %v\n", resp)
}
```
@@ -1525,22 +1533,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contactRoleRequest := []openapiclient.ContactRoleRequest{*openapiclient.NewContactRoleRequest("Name_example", "Slug_example")} // []ContactRoleRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.TenancyAPI.TenancyContactRolesBulkDestroy(context.Background()).ContactRoleRequest(contactRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ contactRoleRequest := []openapiclient.ContactRoleRequest{*openapiclient.NewContactRoleRequest("Name_example", "Slug_example")} // []ContactRoleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.TenancyAPI.TenancyContactRolesBulkDestroy(context.Background()).ContactRoleRequest(contactRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1589,24 +1597,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contactRoleRequest := []openapiclient.ContactRoleRequest{*openapiclient.NewContactRoleRequest("Name_example", "Slug_example")} // []ContactRoleRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactRolesBulkPartialUpdate(context.Background()).ContactRoleRequest(contactRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactRolesBulkPartialUpdate`: []ContactRole
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesBulkPartialUpdate`: %v\n", resp)
+ contactRoleRequest := []openapiclient.ContactRoleRequest{*openapiclient.NewContactRoleRequest("Name_example", "Slug_example")} // []ContactRoleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactRolesBulkPartialUpdate(context.Background()).ContactRoleRequest(contactRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactRolesBulkPartialUpdate`: []ContactRole
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesBulkPartialUpdate`: %v\n", resp)
}
```
@@ -1655,24 +1663,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contactRoleRequest := []openapiclient.ContactRoleRequest{*openapiclient.NewContactRoleRequest("Name_example", "Slug_example")} // []ContactRoleRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactRolesBulkUpdate(context.Background()).ContactRoleRequest(contactRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactRolesBulkUpdate`: []ContactRole
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesBulkUpdate`: %v\n", resp)
+ contactRoleRequest := []openapiclient.ContactRoleRequest{*openapiclient.NewContactRoleRequest("Name_example", "Slug_example")} // []ContactRoleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactRolesBulkUpdate(context.Background()).ContactRoleRequest(contactRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactRolesBulkUpdate`: []ContactRole
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesBulkUpdate`: %v\n", resp)
}
```
@@ -1721,24 +1729,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contactRoleRequest := *openapiclient.NewContactRoleRequest("Name_example", "Slug_example") // ContactRoleRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactRolesCreate(context.Background()).ContactRoleRequest(contactRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactRolesCreate`: ContactRole
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesCreate`: %v\n", resp)
+ contactRoleRequest := *openapiclient.NewContactRoleRequest("Name_example", "Slug_example") // ContactRoleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactRolesCreate(context.Background()).ContactRoleRequest(contactRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactRolesCreate`: ContactRole
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesCreate`: %v\n", resp)
}
```
@@ -1787,22 +1795,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact role.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.TenancyAPI.TenancyContactRolesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this contact role.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.TenancyAPI.TenancyContactRolesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1855,87 +1863,87 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactRolesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactRolesList`: PaginatedContactRoleList
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesList`: %v\n", resp)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactRolesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactRolesList`: PaginatedContactRoleList
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesList`: %v\n", resp)
}
```
@@ -2046,25 +2054,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact role.
- patchedContactRoleRequest := *openapiclient.NewPatchedContactRoleRequest() // PatchedContactRoleRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactRolesPartialUpdate(context.Background(), id).PatchedContactRoleRequest(patchedContactRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactRolesPartialUpdate`: ContactRole
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this contact role.
+ patchedContactRoleRequest := *openapiclient.NewPatchedContactRoleRequest() // PatchedContactRoleRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactRolesPartialUpdate(context.Background(), id).PatchedContactRoleRequest(patchedContactRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactRolesPartialUpdate`: ContactRole
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesPartialUpdate`: %v\n", resp)
}
```
@@ -2118,24 +2126,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact role.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactRolesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactRolesRetrieve`: ContactRole
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this contact role.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactRolesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactRolesRetrieve`: ContactRole
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesRetrieve`: %v\n", resp)
}
```
@@ -2188,25 +2196,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact role.
- contactRoleRequest := *openapiclient.NewContactRoleRequest("Name_example", "Slug_example") // ContactRoleRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactRolesUpdate(context.Background(), id).ContactRoleRequest(contactRoleRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactRolesUpdate`: ContactRole
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this contact role.
+ contactRoleRequest := *openapiclient.NewContactRoleRequest("Name_example", "Slug_example") // ContactRoleRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactRolesUpdate(context.Background(), id).ContactRoleRequest(contactRoleRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactRolesUpdate`: ContactRole
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesUpdate`: %v\n", resp)
}
```
@@ -2260,22 +2268,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contactRequest := []openapiclient.ContactRequest{*openapiclient.NewContactRequest("Name_example")} // []ContactRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.TenancyAPI.TenancyContactsBulkDestroy(context.Background()).ContactRequest(contactRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ contactRequest := []openapiclient.ContactRequest{*openapiclient.NewContactRequest("Name_example")} // []ContactRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.TenancyAPI.TenancyContactsBulkDestroy(context.Background()).ContactRequest(contactRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -2324,24 +2332,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contactRequest := []openapiclient.ContactRequest{*openapiclient.NewContactRequest("Name_example")} // []ContactRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactsBulkPartialUpdate(context.Background()).ContactRequest(contactRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactsBulkPartialUpdate`: []Contact
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsBulkPartialUpdate`: %v\n", resp)
+ contactRequest := []openapiclient.ContactRequest{*openapiclient.NewContactRequest("Name_example")} // []ContactRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactsBulkPartialUpdate(context.Background()).ContactRequest(contactRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactsBulkPartialUpdate`: []Contact
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -2390,24 +2398,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contactRequest := []openapiclient.ContactRequest{*openapiclient.NewContactRequest("Name_example")} // []ContactRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactsBulkUpdate(context.Background()).ContactRequest(contactRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactsBulkUpdate`: []Contact
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsBulkUpdate`: %v\n", resp)
+ contactRequest := []openapiclient.ContactRequest{*openapiclient.NewContactRequest("Name_example")} // []ContactRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactsBulkUpdate(context.Background()).ContactRequest(contactRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactsBulkUpdate`: []Contact
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsBulkUpdate`: %v\n", resp)
}
```
@@ -2456,24 +2464,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableContactRequest := *openapiclient.NewWritableContactRequest("Name_example") // WritableContactRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactsCreate(context.Background()).WritableContactRequest(writableContactRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactsCreate`: Contact
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsCreate`: %v\n", resp)
+ writableContactRequest := *openapiclient.NewWritableContactRequest("Name_example") // WritableContactRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactsCreate(context.Background()).WritableContactRequest(writableContactRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactsCreate`: Contact
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsCreate`: %v\n", resp)
}
```
@@ -2522,22 +2530,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.TenancyAPI.TenancyContactsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this contact.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.TenancyAPI.TenancyContactsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -2578,7 +2586,7 @@ Name | Type | Description | Notes
## TenancyContactsList
-> PaginatedContactList TenancyContactsList(ctx).Address(address).AddressEmpty(addressEmpty).AddressIc(addressIc).AddressIe(addressIe).AddressIew(addressIew).AddressIsw(addressIsw).AddressN(addressN).AddressNic(addressNic).AddressNie(addressNie).AddressNiew(addressNiew).AddressNisw(addressNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Link(link).LinkEmpty(linkEmpty).LinkIc(linkIc).LinkIe(linkIe).LinkIew(linkIew).LinkIsw(linkIsw).LinkN(linkN).LinkNic(linkNic).LinkNie(linkNie).LinkNiew(linkNiew).LinkNisw(linkNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Phone(phone).PhoneEmpty(phoneEmpty).PhoneIc(phoneIc).PhoneIe(phoneIe).PhoneIew(phoneIew).PhoneIsw(phoneIsw).PhoneN(phoneN).PhoneNic(phoneNic).PhoneNie(phoneNie).PhoneNiew(phoneNiew).PhoneNisw(phoneNisw).Q(q).Tag(tag).TagN(tagN).Title(title).TitleEmpty(titleEmpty).TitleIc(titleIc).TitleIe(titleIe).TitleIew(titleIew).TitleIsw(titleIsw).TitleN(titleN).TitleNic(titleNic).TitleNie(titleNie).TitleNiew(titleNiew).TitleNisw(titleNisw).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedContactList TenancyContactsList(ctx).Address(address).AddressEmpty(addressEmpty).AddressIc(addressIc).AddressIe(addressIe).AddressIew(addressIew).AddressIsw(addressIsw).AddressN(addressN).AddressNic(addressNic).AddressNie(addressNie).AddressNiew(addressNiew).AddressNisw(addressNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Link(link).LinkEmpty(linkEmpty).LinkIc(linkIc).LinkIe(linkIe).LinkIew(linkIew).LinkIsw(linkIsw).LinkN(linkN).LinkNic(linkNic).LinkNie(linkNie).LinkNiew(linkNiew).LinkNisw(linkNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Phone(phone).PhoneEmpty(phoneEmpty).PhoneIc(phoneIc).PhoneIe(phoneIe).PhoneIew(phoneIew).PhoneIsw(phoneIsw).PhoneN(phoneN).PhoneNic(phoneNic).PhoneNie(phoneNie).PhoneNiew(phoneNiew).PhoneNisw(phoneNisw).Q(q).Tag(tag).TagN(tagN).Title(title).TitleEmpty(titleEmpty).TitleIc(titleIc).TitleIe(titleIe).TitleIew(titleIew).TitleIsw(titleIsw).TitleN(titleN).TitleNic(titleNic).TitleNie(titleNie).TitleNiew(titleNiew).TitleNisw(titleNisw).UpdatedByRequest(updatedByRequest).Execute()
@@ -2590,124 +2598,135 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- address := []string{"Inner_example"} // []string | (optional)
- addressEmpty := true // bool | (optional)
- addressIc := []string{"Inner_example"} // []string | (optional)
- addressIe := []string{"Inner_example"} // []string | (optional)
- addressIew := []string{"Inner_example"} // []string | (optional)
- addressIsw := []string{"Inner_example"} // []string | (optional)
- addressN := []string{"Inner_example"} // []string | (optional)
- addressNic := []string{"Inner_example"} // []string | (optional)
- addressNie := []string{"Inner_example"} // []string | (optional)
- addressNiew := []string{"Inner_example"} // []string | (optional)
- addressNisw := []string{"Inner_example"} // []string | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- email := []string{"Inner_example"} // []string | (optional)
- emailEmpty := true // bool | (optional)
- emailIc := []string{"Inner_example"} // []string | (optional)
- emailIe := []string{"Inner_example"} // []string | (optional)
- emailIew := []string{"Inner_example"} // []string | (optional)
- emailIsw := []string{"Inner_example"} // []string | (optional)
- emailN := []string{"Inner_example"} // []string | (optional)
- emailNic := []string{"Inner_example"} // []string | (optional)
- emailNie := []string{"Inner_example"} // []string | (optional)
- emailNiew := []string{"Inner_example"} // []string | (optional)
- emailNisw := []string{"Inner_example"} // []string | (optional)
- group := []int32{int32(123)} // []int32 | Contact group (slug) (optional)
- groupN := []int32{int32(123)} // []int32 | Contact group (slug) (optional)
- groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional)
- groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional)
- 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)
- link := []string{"Inner_example"} // []string | (optional)
- linkEmpty := true // bool | (optional)
- linkIc := []string{"Inner_example"} // []string | (optional)
- linkIe := []string{"Inner_example"} // []string | (optional)
- linkIew := []string{"Inner_example"} // []string | (optional)
- linkIsw := []string{"Inner_example"} // []string | (optional)
- linkN := []string{"Inner_example"} // []string | (optional)
- linkNic := []string{"Inner_example"} // []string | (optional)
- linkNie := []string{"Inner_example"} // []string | (optional)
- linkNiew := []string{"Inner_example"} // []string | (optional)
- linkNisw := []string{"Inner_example"} // []string | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- 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)
- phone := []string{"Inner_example"} // []string | (optional)
- phoneEmpty := true // bool | (optional)
- phoneIc := []string{"Inner_example"} // []string | (optional)
- phoneIe := []string{"Inner_example"} // []string | (optional)
- phoneIew := []string{"Inner_example"} // []string | (optional)
- phoneIsw := []string{"Inner_example"} // []string | (optional)
- phoneN := []string{"Inner_example"} // []string | (optional)
- phoneNic := []string{"Inner_example"} // []string | (optional)
- phoneNie := []string{"Inner_example"} // []string | (optional)
- phoneNiew := []string{"Inner_example"} // []string | (optional)
- phoneNisw := []string{"Inner_example"} // []string | (optional)
- q := "q_example" // string | Search (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- title := []string{"Inner_example"} // []string | (optional)
- titleEmpty := true // bool | (optional)
- titleIc := []string{"Inner_example"} // []string | (optional)
- titleIe := []string{"Inner_example"} // []string | (optional)
- titleIew := []string{"Inner_example"} // []string | (optional)
- titleIsw := []string{"Inner_example"} // []string | (optional)
- titleN := []string{"Inner_example"} // []string | (optional)
- titleNic := []string{"Inner_example"} // []string | (optional)
- titleNie := []string{"Inner_example"} // []string | (optional)
- titleNiew := []string{"Inner_example"} // []string | (optional)
- titleNisw := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactsList(context.Background()).Address(address).AddressEmpty(addressEmpty).AddressIc(addressIc).AddressIe(addressIe).AddressIew(addressIew).AddressIsw(addressIsw).AddressN(addressN).AddressNic(addressNic).AddressNie(addressNie).AddressNiew(addressNiew).AddressNisw(addressNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Link(link).LinkEmpty(linkEmpty).LinkIc(linkIc).LinkIe(linkIe).LinkIew(linkIew).LinkIsw(linkIsw).LinkN(linkN).LinkNic(linkNic).LinkNie(linkNie).LinkNiew(linkNiew).LinkNisw(linkNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Phone(phone).PhoneEmpty(phoneEmpty).PhoneIc(phoneIc).PhoneIe(phoneIe).PhoneIew(phoneIew).PhoneIsw(phoneIsw).PhoneN(phoneN).PhoneNic(phoneNic).PhoneNie(phoneNie).PhoneNiew(phoneNiew).PhoneNisw(phoneNisw).Q(q).Tag(tag).TagN(tagN).Title(title).TitleEmpty(titleEmpty).TitleIc(titleIc).TitleIe(titleIe).TitleIew(titleIew).TitleIsw(titleIsw).TitleN(titleN).TitleNic(titleNic).TitleNie(titleNie).TitleNiew(titleNiew).TitleNisw(titleNisw).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactsList`: PaginatedContactList
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsList`: %v\n", resp)
+ address := []string{"Inner_example"} // []string | (optional)
+ addressEmpty := true // bool | (optional)
+ addressIc := []string{"Inner_example"} // []string | (optional)
+ addressIe := []string{"Inner_example"} // []string | (optional)
+ addressIew := []string{"Inner_example"} // []string | (optional)
+ addressIsw := []string{"Inner_example"} // []string | (optional)
+ addressN := []string{"Inner_example"} // []string | (optional)
+ addressNic := []string{"Inner_example"} // []string | (optional)
+ addressNie := []string{"Inner_example"} // []string | (optional)
+ addressNiew := []string{"Inner_example"} // []string | (optional)
+ addressNisw := []string{"Inner_example"} // []string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ email := []string{"Inner_example"} // []string | (optional)
+ emailEmpty := true // bool | (optional)
+ emailIc := []string{"Inner_example"} // []string | (optional)
+ emailIe := []string{"Inner_example"} // []string | (optional)
+ emailIew := []string{"Inner_example"} // []string | (optional)
+ emailIsw := []string{"Inner_example"} // []string | (optional)
+ emailN := []string{"Inner_example"} // []string | (optional)
+ emailNic := []string{"Inner_example"} // []string | (optional)
+ emailNie := []string{"Inner_example"} // []string | (optional)
+ emailNiew := []string{"Inner_example"} // []string | (optional)
+ emailNisw := []string{"Inner_example"} // []string | (optional)
+ group := []int32{int32(123)} // []int32 | Contact group (slug) (optional)
+ groupN := []int32{int32(123)} // []int32 | Contact group (slug) (optional)
+ groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional)
+ groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional)
+ 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)
+ link := []string{"Inner_example"} // []string | (optional)
+ linkEmpty := true // bool | (optional)
+ linkIc := []string{"Inner_example"} // []string | (optional)
+ linkIe := []string{"Inner_example"} // []string | (optional)
+ linkIew := []string{"Inner_example"} // []string | (optional)
+ linkIsw := []string{"Inner_example"} // []string | (optional)
+ linkN := []string{"Inner_example"} // []string | (optional)
+ linkNic := []string{"Inner_example"} // []string | (optional)
+ linkNie := []string{"Inner_example"} // []string | (optional)
+ linkNiew := []string{"Inner_example"} // []string | (optional)
+ linkNisw := []string{"Inner_example"} // []string | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ 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)
+ phone := []string{"Inner_example"} // []string | (optional)
+ phoneEmpty := true // bool | (optional)
+ phoneIc := []string{"Inner_example"} // []string | (optional)
+ phoneIe := []string{"Inner_example"} // []string | (optional)
+ phoneIew := []string{"Inner_example"} // []string | (optional)
+ phoneIsw := []string{"Inner_example"} // []string | (optional)
+ phoneN := []string{"Inner_example"} // []string | (optional)
+ phoneNic := []string{"Inner_example"} // []string | (optional)
+ phoneNie := []string{"Inner_example"} // []string | (optional)
+ phoneNiew := []string{"Inner_example"} // []string | (optional)
+ phoneNisw := []string{"Inner_example"} // []string | (optional)
+ q := "q_example" // string | Search (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ title := []string{"Inner_example"} // []string | (optional)
+ titleEmpty := true // bool | (optional)
+ titleIc := []string{"Inner_example"} // []string | (optional)
+ titleIe := []string{"Inner_example"} // []string | (optional)
+ titleIew := []string{"Inner_example"} // []string | (optional)
+ titleIsw := []string{"Inner_example"} // []string | (optional)
+ titleN := []string{"Inner_example"} // []string | (optional)
+ titleNic := []string{"Inner_example"} // []string | (optional)
+ titleNie := []string{"Inner_example"} // []string | (optional)
+ titleNiew := []string{"Inner_example"} // []string | (optional)
+ titleNisw := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactsList(context.Background()).Address(address).AddressEmpty(addressEmpty).AddressIc(addressIc).AddressIe(addressIe).AddressIew(addressIew).AddressIsw(addressIsw).AddressN(addressN).AddressNic(addressNic).AddressNie(addressNie).AddressNiew(addressNiew).AddressNisw(addressNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Link(link).LinkEmpty(linkEmpty).LinkIc(linkIc).LinkIe(linkIe).LinkIew(linkIew).LinkIsw(linkIsw).LinkN(linkN).LinkNic(linkNic).LinkNie(linkNie).LinkNiew(linkNiew).LinkNisw(linkNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Phone(phone).PhoneEmpty(phoneEmpty).PhoneIc(phoneIc).PhoneIe(phoneIe).PhoneIew(phoneIew).PhoneIsw(phoneIsw).PhoneN(phoneN).PhoneNic(phoneNic).PhoneNie(phoneNie).PhoneNiew(phoneNiew).PhoneNisw(phoneNisw).Q(q).Tag(tag).TagN(tagN).Title(title).TitleEmpty(titleEmpty).TitleIc(titleIc).TitleIe(titleIe).TitleIew(titleIew).TitleIsw(titleIsw).TitleN(titleN).TitleNic(titleNic).TitleNie(titleNie).TitleNiew(titleNiew).TitleNisw(titleNisw).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactsList`: PaginatedContactList
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsList`: %v\n", resp)
}
```
@@ -2741,6 +2760,17 @@ 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** | |
**email** | **[]string** | |
**emailEmpty** | **bool** | |
**emailIc** | **[]string** | |
@@ -2855,25 +2885,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact.
- patchedWritableContactRequest := *openapiclient.NewPatchedWritableContactRequest() // PatchedWritableContactRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactsPartialUpdate(context.Background(), id).PatchedWritableContactRequest(patchedWritableContactRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactsPartialUpdate`: Contact
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this contact.
+ patchedWritableContactRequest := *openapiclient.NewPatchedWritableContactRequest() // PatchedWritableContactRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactsPartialUpdate(context.Background(), id).PatchedWritableContactRequest(patchedWritableContactRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactsPartialUpdate`: Contact
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsPartialUpdate`: %v\n", resp)
}
```
@@ -2927,24 +2957,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactsRetrieve`: Contact
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this contact.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactsRetrieve`: Contact
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsRetrieve`: %v\n", resp)
}
```
@@ -2997,25 +3027,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this contact.
- writableContactRequest := *openapiclient.NewWritableContactRequest("Name_example") // WritableContactRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactsUpdate(context.Background(), id).WritableContactRequest(writableContactRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyContactsUpdate`: Contact
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this contact.
+ writableContactRequest := *openapiclient.NewWritableContactRequest("Name_example") // WritableContactRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyContactsUpdate(context.Background(), id).WritableContactRequest(writableContactRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyContactsUpdate`: Contact
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsUpdate`: %v\n", resp)
}
```
@@ -3069,22 +3099,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tenantGroupRequest := []openapiclient.TenantGroupRequest{*openapiclient.NewTenantGroupRequest("Name_example", "Slug_example")} // []TenantGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkDestroy(context.Background()).TenantGroupRequest(tenantGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ tenantGroupRequest := []openapiclient.TenantGroupRequest{*openapiclient.NewTenantGroupRequest("Name_example", "Slug_example")} // []TenantGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkDestroy(context.Background()).TenantGroupRequest(tenantGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -3133,24 +3163,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tenantGroupRequest := []openapiclient.TenantGroupRequest{*openapiclient.NewTenantGroupRequest("Name_example", "Slug_example")} // []TenantGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkPartialUpdate(context.Background()).TenantGroupRequest(tenantGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantGroupsBulkPartialUpdate`: []TenantGroup
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsBulkPartialUpdate`: %v\n", resp)
+ tenantGroupRequest := []openapiclient.TenantGroupRequest{*openapiclient.NewTenantGroupRequest("Name_example", "Slug_example")} // []TenantGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkPartialUpdate(context.Background()).TenantGroupRequest(tenantGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantGroupsBulkPartialUpdate`: []TenantGroup
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -3199,24 +3229,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tenantGroupRequest := []openapiclient.TenantGroupRequest{*openapiclient.NewTenantGroupRequest("Name_example", "Slug_example")} // []TenantGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkUpdate(context.Background()).TenantGroupRequest(tenantGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantGroupsBulkUpdate`: []TenantGroup
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsBulkUpdate`: %v\n", resp)
+ tenantGroupRequest := []openapiclient.TenantGroupRequest{*openapiclient.NewTenantGroupRequest("Name_example", "Slug_example")} // []TenantGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkUpdate(context.Background()).TenantGroupRequest(tenantGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantGroupsBulkUpdate`: []TenantGroup
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsBulkUpdate`: %v\n", resp)
}
```
@@ -3265,24 +3295,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableTenantGroupRequest := *openapiclient.NewWritableTenantGroupRequest("Name_example", "Slug_example") // WritableTenantGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsCreate(context.Background()).WritableTenantGroupRequest(writableTenantGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantGroupsCreate`: TenantGroup
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsCreate`: %v\n", resp)
+ writableTenantGroupRequest := *openapiclient.NewWritableTenantGroupRequest("Name_example", "Slug_example") // WritableTenantGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsCreate(context.Background()).WritableTenantGroupRequest(writableTenantGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantGroupsCreate`: TenantGroup
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsCreate`: %v\n", resp)
}
```
@@ -3331,22 +3361,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this tenant group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.TenancyAPI.TenancyTenantGroupsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this tenant group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.TenancyAPI.TenancyTenantGroupsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -3399,91 +3429,91 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- 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)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantGroupsList`: PaginatedTenantGroupList
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsList`: %v\n", resp)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ 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)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantGroupsList`: PaginatedTenantGroupList
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsList`: %v\n", resp)
}
```
@@ -3598,25 +3628,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this tenant group.
- patchedWritableTenantGroupRequest := *openapiclient.NewPatchedWritableTenantGroupRequest() // PatchedWritableTenantGroupRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsPartialUpdate(context.Background(), id).PatchedWritableTenantGroupRequest(patchedWritableTenantGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantGroupsPartialUpdate`: TenantGroup
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this tenant group.
+ patchedWritableTenantGroupRequest := *openapiclient.NewPatchedWritableTenantGroupRequest() // PatchedWritableTenantGroupRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsPartialUpdate(context.Background(), id).PatchedWritableTenantGroupRequest(patchedWritableTenantGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantGroupsPartialUpdate`: TenantGroup
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsPartialUpdate`: %v\n", resp)
}
```
@@ -3670,24 +3700,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this tenant group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantGroupsRetrieve`: TenantGroup
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this tenant group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantGroupsRetrieve`: TenantGroup
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsRetrieve`: %v\n", resp)
}
```
@@ -3740,25 +3770,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this tenant group.
- writableTenantGroupRequest := *openapiclient.NewWritableTenantGroupRequest("Name_example", "Slug_example") // WritableTenantGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsUpdate(context.Background(), id).WritableTenantGroupRequest(writableTenantGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantGroupsUpdate`: TenantGroup
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this tenant group.
+ writableTenantGroupRequest := *openapiclient.NewWritableTenantGroupRequest("Name_example", "Slug_example") // WritableTenantGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsUpdate(context.Background(), id).WritableTenantGroupRequest(writableTenantGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantGroupsUpdate`: TenantGroup
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsUpdate`: %v\n", resp)
}
```
@@ -3812,22 +3842,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tenantRequest := []openapiclient.TenantRequest{*openapiclient.NewTenantRequest("Name_example", "Slug_example")} // []TenantRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.TenancyAPI.TenancyTenantsBulkDestroy(context.Background()).TenantRequest(tenantRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ tenantRequest := []openapiclient.TenantRequest{*openapiclient.NewTenantRequest("Name_example", "Slug_example")} // []TenantRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.TenancyAPI.TenancyTenantsBulkDestroy(context.Background()).TenantRequest(tenantRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -3876,24 +3906,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tenantRequest := []openapiclient.TenantRequest{*openapiclient.NewTenantRequest("Name_example", "Slug_example")} // []TenantRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantsBulkPartialUpdate(context.Background()).TenantRequest(tenantRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantsBulkPartialUpdate`: []Tenant
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsBulkPartialUpdate`: %v\n", resp)
+ tenantRequest := []openapiclient.TenantRequest{*openapiclient.NewTenantRequest("Name_example", "Slug_example")} // []TenantRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantsBulkPartialUpdate(context.Background()).TenantRequest(tenantRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantsBulkPartialUpdate`: []Tenant
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -3942,24 +3972,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tenantRequest := []openapiclient.TenantRequest{*openapiclient.NewTenantRequest("Name_example", "Slug_example")} // []TenantRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantsBulkUpdate(context.Background()).TenantRequest(tenantRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantsBulkUpdate`: []Tenant
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsBulkUpdate`: %v\n", resp)
+ tenantRequest := []openapiclient.TenantRequest{*openapiclient.NewTenantRequest("Name_example", "Slug_example")} // []TenantRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantsBulkUpdate(context.Background()).TenantRequest(tenantRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantsBulkUpdate`: []Tenant
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsBulkUpdate`: %v\n", resp)
}
```
@@ -4008,24 +4038,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableTenantRequest := *openapiclient.NewWritableTenantRequest("Name_example", "Slug_example") // WritableTenantRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantsCreate(context.Background()).WritableTenantRequest(writableTenantRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantsCreate`: Tenant
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsCreate`: %v\n", resp)
+ writableTenantRequest := *openapiclient.NewWritableTenantRequest("Name_example", "Slug_example") // WritableTenantRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantsCreate(context.Background()).WritableTenantRequest(writableTenantRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantsCreate`: Tenant
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsCreate`: %v\n", resp)
}
```
@@ -4074,22 +4104,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this tenant.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.TenancyAPI.TenancyTenantsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this tenant.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.TenancyAPI.TenancyTenantsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -4142,97 +4172,97 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- 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)
- group := []int32{int32(123)} // []int32 | Tenant group (slug) (optional)
- groupN := []int32{int32(123)} // []int32 | Tenant group (slug) (optional)
- groupId := []int32{int32(123)} // []int32 | Tenant group (ID) (optional)
- groupIdN := []int32{int32(123)} // []int32 | Tenant group (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantsList`: PaginatedTenantList
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsList`: %v\n", resp)
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ 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)
+ group := []int32{int32(123)} // []int32 | Tenant group (slug) (optional)
+ groupN := []int32{int32(123)} // []int32 | Tenant group (slug) (optional)
+ groupId := []int32{int32(123)} // []int32 | Tenant group (ID) (optional)
+ groupIdN := []int32{int32(123)} // []int32 | Tenant group (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantsList`: PaginatedTenantList
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsList`: %v\n", resp)
}
```
@@ -4353,25 +4383,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this tenant.
- patchedWritableTenantRequest := *openapiclient.NewPatchedWritableTenantRequest() // PatchedWritableTenantRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantsPartialUpdate(context.Background(), id).PatchedWritableTenantRequest(patchedWritableTenantRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantsPartialUpdate`: Tenant
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this tenant.
+ patchedWritableTenantRequest := *openapiclient.NewPatchedWritableTenantRequest() // PatchedWritableTenantRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantsPartialUpdate(context.Background(), id).PatchedWritableTenantRequest(patchedWritableTenantRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantsPartialUpdate`: Tenant
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsPartialUpdate`: %v\n", resp)
}
```
@@ -4425,24 +4455,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this tenant.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantsRetrieve`: Tenant
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this tenant.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantsRetrieve`: Tenant
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsRetrieve`: %v\n", resp)
}
```
@@ -4495,25 +4525,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this tenant.
- writableTenantRequest := *openapiclient.NewWritableTenantRequest("Name_example", "Slug_example") // WritableTenantRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantsUpdate(context.Background(), id).WritableTenantRequest(writableTenantRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `TenancyTenantsUpdate`: Tenant
- fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this tenant.
+ writableTenantRequest := *openapiclient.NewWritableTenantRequest("Name_example", "Slug_example") // WritableTenantRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantsUpdate(context.Background(), id).WritableTenantRequest(writableTenantRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `TenancyTenantsUpdate`: Tenant
+ fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsUpdate`: %v\n", resp)
}
```
diff --git a/docs/Termination.md b/docs/Termination.md
new file mode 100644
index 0000000000..8cfc0f739c
--- /dev/null
+++ b/docs/Termination.md
@@ -0,0 +1,13 @@
+# Termination
+
+## 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/Tunnel.md b/docs/Tunnel.md
new file mode 100644
index 0000000000..2fc1ffd746
--- /dev/null
+++ b/docs/Tunnel.md
@@ -0,0 +1,451 @@
+# Tunnel
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **int32** | | [readonly]
+**Url** | **string** | | [readonly]
+**Display** | **string** | | [readonly]
+**Name** | **string** | |
+**Status** | [**TunnelStatus**](TunnelStatus.md) | |
+**Group** | [**NestedTunnelGroup**](NestedTunnelGroup.md) | |
+**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, group NestedTunnelGroup, encapsulation TunnelEncapsulation, created NullableTime, lastUpdated NullableTime, ) *Tunnel`
+
+NewTunnel instantiates a new Tunnel object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTunnelWithDefaults
+
+`func NewTunnelWithDefaults() *Tunnel`
+
+NewTunnelWithDefaults instantiates a new Tunnel object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetId
+
+`func (o *Tunnel) GetId() int32`
+
+GetId returns the Id field if non-nil, zero value otherwise.
+
+### GetIdOk
+
+`func (o *Tunnel) GetIdOk() (*int32, bool)`
+
+GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetId
+
+`func (o *Tunnel) SetId(v int32)`
+
+SetId sets Id field to given value.
+
+
+### GetUrl
+
+`func (o *Tunnel) GetUrl() string`
+
+GetUrl returns the Url field if non-nil, zero value otherwise.
+
+### GetUrlOk
+
+`func (o *Tunnel) GetUrlOk() (*string, bool)`
+
+GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetUrl
+
+`func (o *Tunnel) SetUrl(v string)`
+
+SetUrl sets Url field to given value.
+
+
+### GetDisplay
+
+`func (o *Tunnel) GetDisplay() string`
+
+GetDisplay returns the Display field if non-nil, zero value otherwise.
+
+### GetDisplayOk
+
+`func (o *Tunnel) GetDisplayOk() (*string, bool)`
+
+GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDisplay
+
+`func (o *Tunnel) SetDisplay(v string)`
+
+SetDisplay sets Display field to given value.
+
+
+### GetName
+
+`func (o *Tunnel) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *Tunnel) GetNameOk() (*string, bool)`
+
+GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetName
+
+`func (o *Tunnel) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### 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.
+
+
+### 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`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *Tunnel) GetDescriptionOk() (*string, bool)`
+
+GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDescription
+
+`func (o *Tunnel) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *Tunnel) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### 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
new file mode 100644
index 0000000000..fe7e117168
--- /dev/null
+++ b/docs/TunnelEncapsulation.md
@@ -0,0 +1,82 @@
+# TunnelEncapsulation
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Value** | Pointer to [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | [optional]
+**Label** | Pointer to [**TunnelEncapsulationLabel**](TunnelEncapsulationLabel.md) | | [optional]
+
+## Methods
+
+### NewTunnelEncapsulation
+
+`func NewTunnelEncapsulation() *TunnelEncapsulation`
+
+NewTunnelEncapsulation instantiates a new TunnelEncapsulation object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTunnelEncapsulationWithDefaults
+
+`func NewTunnelEncapsulationWithDefaults() *TunnelEncapsulation`
+
+NewTunnelEncapsulationWithDefaults instantiates a new TunnelEncapsulation object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetValue
+
+`func (o *TunnelEncapsulation) GetValue() PatchedWritableTunnelRequestEncapsulation`
+
+GetValue returns the Value field if non-nil, zero value otherwise.
+
+### GetValueOk
+
+`func (o *TunnelEncapsulation) GetValueOk() (*PatchedWritableTunnelRequestEncapsulation, bool)`
+
+GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetValue
+
+`func (o *TunnelEncapsulation) SetValue(v PatchedWritableTunnelRequestEncapsulation)`
+
+SetValue sets Value field to given value.
+
+### HasValue
+
+`func (o *TunnelEncapsulation) HasValue() bool`
+
+HasValue returns a boolean if a field has been set.
+
+### GetLabel
+
+`func (o *TunnelEncapsulation) GetLabel() TunnelEncapsulationLabel`
+
+GetLabel returns the Label field if non-nil, zero value otherwise.
+
+### GetLabelOk
+
+`func (o *TunnelEncapsulation) GetLabelOk() (*TunnelEncapsulationLabel, bool)`
+
+GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLabel
+
+`func (o *TunnelEncapsulation) SetLabel(v TunnelEncapsulationLabel)`
+
+SetLabel sets Label field to given value.
+
+### HasLabel
+
+`func (o *TunnelEncapsulation) HasLabel() bool`
+
+HasLabel returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TunnelEncapsulationLabel.md b/docs/TunnelEncapsulationLabel.md
new file mode 100644
index 0000000000..9e46fb7c8a
--- /dev/null
+++ b/docs/TunnelEncapsulationLabel.md
@@ -0,0 +1,17 @@
+# 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
new file mode 100644
index 0000000000..246ce681b7
--- /dev/null
+++ b/docs/TunnelGroup.md
@@ -0,0 +1,296 @@
+# TunnelGroup
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **int32** | | [readonly]
+**Url** | **string** | | [readonly]
+**Display** | **string** | | [readonly]
+**Name** | **string** | |
+**Slug** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+**Created** | **NullableTime** | | [readonly]
+**LastUpdated** | **NullableTime** | | [readonly]
+**TunnelCount** | **int32** | | [readonly]
+
+## Methods
+
+### NewTunnelGroup
+
+`func NewTunnelGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int32, ) *TunnelGroup`
+
+NewTunnelGroup instantiates a new TunnelGroup object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTunnelGroupWithDefaults
+
+`func NewTunnelGroupWithDefaults() *TunnelGroup`
+
+NewTunnelGroupWithDefaults instantiates a new TunnelGroup object
+This 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 *TunnelGroup) GetId() int32`
+
+GetId returns the Id field if non-nil, zero value otherwise.
+
+### GetIdOk
+
+`func (o *TunnelGroup) 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 *TunnelGroup) SetId(v int32)`
+
+SetId sets Id field to given value.
+
+
+### GetUrl
+
+`func (o *TunnelGroup) GetUrl() string`
+
+GetUrl returns the Url field if non-nil, zero value otherwise.
+
+### GetUrlOk
+
+`func (o *TunnelGroup) 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 *TunnelGroup) SetUrl(v string)`
+
+SetUrl sets Url field to given value.
+
+
+### GetDisplay
+
+`func (o *TunnelGroup) GetDisplay() string`
+
+GetDisplay returns the Display field if non-nil, zero value otherwise.
+
+### GetDisplayOk
+
+`func (o *TunnelGroup) 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 *TunnelGroup) SetDisplay(v string)`
+
+SetDisplay sets Display field to given value.
+
+
+### GetName
+
+`func (o *TunnelGroup) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *TunnelGroup) 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 *TunnelGroup) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetSlug
+
+`func (o *TunnelGroup) GetSlug() string`
+
+GetSlug returns the Slug field if non-nil, zero value otherwise.
+
+### GetSlugOk
+
+`func (o *TunnelGroup) 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 *TunnelGroup) SetSlug(v string)`
+
+SetSlug sets Slug field to given value.
+
+
+### GetDescription
+
+`func (o *TunnelGroup) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *TunnelGroup) 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 *TunnelGroup) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *TunnelGroup) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *TunnelGroup) GetTags() []NestedTag`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *TunnelGroup) 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 *TunnelGroup) SetTags(v []NestedTag)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *TunnelGroup) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *TunnelGroup) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *TunnelGroup) 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 *TunnelGroup) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *TunnelGroup) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+### GetCreated
+
+`func (o *TunnelGroup) GetCreated() time.Time`
+
+GetCreated returns the Created field if non-nil, zero value otherwise.
+
+### GetCreatedOk
+
+`func (o *TunnelGroup) 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 *TunnelGroup) SetCreated(v time.Time)`
+
+SetCreated sets Created field to given value.
+
+
+### SetCreatedNil
+
+`func (o *TunnelGroup) SetCreatedNil(b bool)`
+
+ SetCreatedNil sets the value for Created to be an explicit nil
+
+### UnsetCreated
+`func (o *TunnelGroup) UnsetCreated()`
+
+UnsetCreated ensures that no value is present for Created, not even an explicit nil
+### GetLastUpdated
+
+`func (o *TunnelGroup) GetLastUpdated() time.Time`
+
+GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
+
+### GetLastUpdatedOk
+
+`func (o *TunnelGroup) 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 *TunnelGroup) SetLastUpdated(v time.Time)`
+
+SetLastUpdated sets LastUpdated field to given value.
+
+
+### SetLastUpdatedNil
+
+`func (o *TunnelGroup) SetLastUpdatedNil(b bool)`
+
+ SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
+
+### UnsetLastUpdated
+`func (o *TunnelGroup) UnsetLastUpdated()`
+
+UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
+### GetTunnelCount
+
+`func (o *TunnelGroup) GetTunnelCount() int32`
+
+GetTunnelCount returns the TunnelCount field if non-nil, zero value otherwise.
+
+### GetTunnelCountOk
+
+`func (o *TunnelGroup) GetTunnelCountOk() (*int32, 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)`
+
+SetTunnelCount sets TunnelCount 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/TunnelGroupRequest.md b/docs/TunnelGroupRequest.md
new file mode 100644
index 0000000000..a83e9cb743
--- /dev/null
+++ b/docs/TunnelGroupRequest.md
@@ -0,0 +1,150 @@
+# TunnelGroupRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Slug** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewTunnelGroupRequest
+
+`func NewTunnelGroupRequest(name string, slug string, ) *TunnelGroupRequest`
+
+NewTunnelGroupRequest instantiates a new TunnelGroupRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTunnelGroupRequestWithDefaults
+
+`func NewTunnelGroupRequestWithDefaults() *TunnelGroupRequest`
+
+NewTunnelGroupRequestWithDefaults instantiates a new TunnelGroupRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetName
+
+`func (o *TunnelGroupRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *TunnelGroupRequest) GetNameOk() (*string, bool)`
+
+GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetName
+
+`func (o *TunnelGroupRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetSlug
+
+`func (o *TunnelGroupRequest) GetSlug() string`
+
+GetSlug returns the Slug field if non-nil, zero value otherwise.
+
+### GetSlugOk
+
+`func (o *TunnelGroupRequest) GetSlugOk() (*string, bool)`
+
+GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSlug
+
+`func (o *TunnelGroupRequest) SetSlug(v string)`
+
+SetSlug sets Slug field to given value.
+
+
+### GetDescription
+
+`func (o *TunnelGroupRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *TunnelGroupRequest) GetDescriptionOk() (*string, bool)`
+
+GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDescription
+
+`func (o *TunnelGroupRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *TunnelGroupRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *TunnelGroupRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *TunnelGroupRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+
+GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTags
+
+`func (o *TunnelGroupRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *TunnelGroupRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *TunnelGroupRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *TunnelGroupRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+
+GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCustomFields
+
+`func (o *TunnelGroupRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *TunnelGroupRequest) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TunnelRequest.md b/docs/TunnelRequest.md
new file mode 100644
index 0000000000..4b17294751
--- /dev/null
+++ b/docs/TunnelRequest.md
@@ -0,0 +1,326 @@
+# TunnelRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Status** | [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | |
+**Group** | [**NestedTunnelGroupRequest**](NestedTunnelGroupRequest.md) | |
+**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, group NestedTunnelGroupRequest, encapsulation PatchedWritableTunnelRequestEncapsulation, ) *TunnelRequest`
+
+NewTunnelRequest instantiates a new TunnelRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTunnelRequestWithDefaults
+
+`func NewTunnelRequestWithDefaults() *TunnelRequest`
+
+NewTunnelRequestWithDefaults instantiates a new TunnelRequest object
+This 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 *TunnelRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *TunnelRequest) 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 *TunnelRequest) SetName(v string)`
+
+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.
+
+
+### 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`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *TunnelRequest) 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 *TunnelRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *TunnelRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetComments
+
+`func (o *TunnelRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *TunnelRequest) GetCommentsOk() (*string, bool)`
+
+GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetComments
+
+`func (o *TunnelRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *TunnelRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *TunnelRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *TunnelRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+
+GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTags
+
+`func (o *TunnelRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *TunnelRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *TunnelRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *TunnelRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+
+GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCustomFields
+
+`func (o *TunnelRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *TunnelRequest) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TunnelStatus.md b/docs/TunnelStatus.md
new file mode 100644
index 0000000000..46022ca86c
--- /dev/null
+++ b/docs/TunnelStatus.md
@@ -0,0 +1,82 @@
+# TunnelStatus
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Value** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional]
+**Label** | Pointer to [**TunnelStatusLabel**](TunnelStatusLabel.md) | | [optional]
+
+## Methods
+
+### NewTunnelStatus
+
+`func NewTunnelStatus() *TunnelStatus`
+
+NewTunnelStatus instantiates a new TunnelStatus object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTunnelStatusWithDefaults
+
+`func NewTunnelStatusWithDefaults() *TunnelStatus`
+
+NewTunnelStatusWithDefaults instantiates a new TunnelStatus object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetValue
+
+`func (o *TunnelStatus) GetValue() PatchedWritableTunnelRequestStatus`
+
+GetValue returns the Value field if non-nil, zero value otherwise.
+
+### GetValueOk
+
+`func (o *TunnelStatus) GetValueOk() (*PatchedWritableTunnelRequestStatus, bool)`
+
+GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetValue
+
+`func (o *TunnelStatus) SetValue(v PatchedWritableTunnelRequestStatus)`
+
+SetValue sets Value field to given value.
+
+### HasValue
+
+`func (o *TunnelStatus) HasValue() bool`
+
+HasValue returns a boolean if a field has been set.
+
+### GetLabel
+
+`func (o *TunnelStatus) GetLabel() TunnelStatusLabel`
+
+GetLabel returns the Label field if non-nil, zero value otherwise.
+
+### GetLabelOk
+
+`func (o *TunnelStatus) GetLabelOk() (*TunnelStatusLabel, bool)`
+
+GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLabel
+
+`func (o *TunnelStatus) SetLabel(v TunnelStatusLabel)`
+
+SetLabel sets Label field to given value.
+
+### HasLabel
+
+`func (o *TunnelStatus) HasLabel() bool`
+
+HasLabel returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TunnelStatusLabel.md b/docs/TunnelStatusLabel.md
new file mode 100644
index 0000000000..8bd96d36a2
--- /dev/null
+++ b/docs/TunnelStatusLabel.md
@@ -0,0 +1,15 @@
+# TunnelStatusLabel
+
+## Enum
+
+
+* `PLANNED` (value: `"Planned"`)
+
+* `ACTIVE` (value: `"Active"`)
+
+* `DISABLED` (value: `"Disabled"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TunnelTermination.md b/docs/TunnelTermination.md
new file mode 100644
index 0000000000..01173d39ac
--- /dev/null
+++ b/docs/TunnelTermination.md
@@ -0,0 +1,373 @@
+# TunnelTermination
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **int32** | | [readonly]
+**Url** | **string** | | [readonly]
+**Display** | **string** | | [readonly]
+**Tunnel** | [**NestedTunnel**](NestedTunnel.md) | |
+**Role** | [**TunnelTerminationRole**](TunnelTerminationRole.md) | |
+**TerminationType** | **string** | |
+**TerminationId** | Pointer to **NullableInt64** | | [optional]
+**Termination** | **interface{}** | | [readonly]
+**OutsideIp** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional]
+**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+**Created** | **NullableTime** | | [readonly]
+**LastUpdated** | **NullableTime** | | [readonly]
+
+## Methods
+
+### NewTunnelTermination
+
+`func NewTunnelTermination(id int32, url string, display string, tunnel NestedTunnel, role TunnelTerminationRole, terminationType string, 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,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTunnelTerminationWithDefaults
+
+`func NewTunnelTerminationWithDefaults() *TunnelTermination`
+
+NewTunnelTerminationWithDefaults instantiates a new TunnelTermination object
+This 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 *TunnelTermination) GetId() int32`
+
+GetId returns the Id field if non-nil, zero value otherwise.
+
+### GetIdOk
+
+`func (o *TunnelTermination) 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 *TunnelTermination) SetId(v int32)`
+
+SetId sets Id field to given value.
+
+
+### GetUrl
+
+`func (o *TunnelTermination) GetUrl() string`
+
+GetUrl returns the Url field if non-nil, zero value otherwise.
+
+### GetUrlOk
+
+`func (o *TunnelTermination) 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 *TunnelTermination) SetUrl(v string)`
+
+SetUrl sets Url field to given value.
+
+
+### GetDisplay
+
+`func (o *TunnelTermination) GetDisplay() string`
+
+GetDisplay returns the Display field if non-nil, zero value otherwise.
+
+### GetDisplayOk
+
+`func (o *TunnelTermination) 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 *TunnelTermination) SetDisplay(v string)`
+
+SetDisplay sets Display field to given value.
+
+
+### GetTunnel
+
+`func (o *TunnelTermination) GetTunnel() NestedTunnel`
+
+GetTunnel returns the Tunnel field if non-nil, zero value otherwise.
+
+### GetTunnelOk
+
+`func (o *TunnelTermination) GetTunnelOk() (*NestedTunnel, 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)`
+
+SetTunnel sets Tunnel field to given value.
+
+
+### GetRole
+
+`func (o *TunnelTermination) GetRole() TunnelTerminationRole`
+
+GetRole returns the Role field if non-nil, zero value otherwise.
+
+### GetRoleOk
+
+`func (o *TunnelTermination) GetRoleOk() (*TunnelTerminationRole, bool)`
+
+GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetRole
+
+`func (o *TunnelTermination) SetRole(v TunnelTerminationRole)`
+
+SetRole sets Role field to given value.
+
+
+### GetTerminationType
+
+`func (o *TunnelTermination) GetTerminationType() string`
+
+GetTerminationType returns the TerminationType field if non-nil, zero value otherwise.
+
+### GetTerminationTypeOk
+
+`func (o *TunnelTermination) GetTerminationTypeOk() (*string, bool)`
+
+GetTerminationTypeOk returns a tuple with the TerminationType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTerminationType
+
+`func (o *TunnelTermination) SetTerminationType(v string)`
+
+SetTerminationType sets TerminationType field to given value.
+
+
+### GetTerminationId
+
+`func (o *TunnelTermination) GetTerminationId() int64`
+
+GetTerminationId returns the TerminationId field if non-nil, zero value otherwise.
+
+### GetTerminationIdOk
+
+`func (o *TunnelTermination) GetTerminationIdOk() (*int64, bool)`
+
+GetTerminationIdOk returns a tuple with the TerminationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTerminationId
+
+`func (o *TunnelTermination) SetTerminationId(v int64)`
+
+SetTerminationId sets TerminationId field to given value.
+
+### HasTerminationId
+
+`func (o *TunnelTermination) HasTerminationId() bool`
+
+HasTerminationId returns a boolean if a field has been set.
+
+### SetTerminationIdNil
+
+`func (o *TunnelTermination) SetTerminationIdNil(b bool)`
+
+ SetTerminationIdNil sets the value for TerminationId to be an explicit nil
+
+### UnsetTerminationId
+`func (o *TunnelTermination) UnsetTerminationId()`
+
+UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil
+### GetTermination
+
+`func (o *TunnelTermination) GetTermination() interface{}`
+
+GetTermination returns the Termination field if non-nil, zero value otherwise.
+
+### GetTerminationOk
+
+`func (o *TunnelTermination) GetTerminationOk() (*interface{}, bool)`
+
+GetTerminationOk returns a tuple with the Termination field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTermination
+
+`func (o *TunnelTermination) SetTermination(v interface{})`
+
+SetTermination sets Termination field to given value.
+
+
+### SetTerminationNil
+
+`func (o *TunnelTermination) SetTerminationNil(b bool)`
+
+ SetTerminationNil sets the value for Termination to be an explicit nil
+
+### UnsetTermination
+`func (o *TunnelTermination) UnsetTermination()`
+
+UnsetTermination ensures that no value is present for Termination, not even an explicit nil
+### GetOutsideIp
+
+`func (o *TunnelTermination) GetOutsideIp() NestedIPAddress`
+
+GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise.
+
+### GetOutsideIpOk
+
+`func (o *TunnelTermination) GetOutsideIpOk() (*NestedIPAddress, 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)`
+
+SetOutsideIp sets OutsideIp field to given value.
+
+### HasOutsideIp
+
+`func (o *TunnelTermination) HasOutsideIp() bool`
+
+HasOutsideIp returns a boolean if a field has been set.
+
+### SetOutsideIpNil
+
+`func (o *TunnelTermination) SetOutsideIpNil(b bool)`
+
+ SetOutsideIpNil sets the value for OutsideIp to be an explicit nil
+
+### UnsetOutsideIp
+`func (o *TunnelTermination) UnsetOutsideIp()`
+
+UnsetOutsideIp ensures that no value is present for OutsideIp, not even an explicit nil
+### GetTags
+
+`func (o *TunnelTermination) GetTags() []NestedTag`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *TunnelTermination) 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 *TunnelTermination) SetTags(v []NestedTag)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *TunnelTermination) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *TunnelTermination) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *TunnelTermination) 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 *TunnelTermination) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *TunnelTermination) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+### GetCreated
+
+`func (o *TunnelTermination) GetCreated() time.Time`
+
+GetCreated returns the Created field if non-nil, zero value otherwise.
+
+### GetCreatedOk
+
+`func (o *TunnelTermination) 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 *TunnelTermination) SetCreated(v time.Time)`
+
+SetCreated sets Created field to given value.
+
+
+### SetCreatedNil
+
+`func (o *TunnelTermination) SetCreatedNil(b bool)`
+
+ SetCreatedNil sets the value for Created to be an explicit nil
+
+### UnsetCreated
+`func (o *TunnelTermination) UnsetCreated()`
+
+UnsetCreated ensures that no value is present for Created, not even an explicit nil
+### GetLastUpdated
+
+`func (o *TunnelTermination) GetLastUpdated() time.Time`
+
+GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
+
+### GetLastUpdatedOk
+
+`func (o *TunnelTermination) 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 *TunnelTermination) SetLastUpdated(v time.Time)`
+
+SetLastUpdated sets LastUpdated field to given value.
+
+
+### SetLastUpdatedNil
+
+`func (o *TunnelTermination) SetLastUpdatedNil(b bool)`
+
+ SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
+
+### UnsetLastUpdated
+`func (o *TunnelTermination) 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/TunnelTerminationRequest.md b/docs/TunnelTerminationRequest.md
new file mode 100644
index 0000000000..cb9ae875d6
--- /dev/null
+++ b/docs/TunnelTerminationRequest.md
@@ -0,0 +1,217 @@
+# TunnelTerminationRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Tunnel** | [**NestedTunnelRequest**](NestedTunnelRequest.md) | |
+**Role** | [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | |
+**TerminationType** | **string** | |
+**TerminationId** | Pointer to **NullableInt64** | | [optional]
+**OutsideIp** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewTunnelTerminationRequest
+
+`func NewTunnelTerminationRequest(tunnel NestedTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, ) *TunnelTerminationRequest`
+
+NewTunnelTerminationRequest instantiates a new TunnelTerminationRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTunnelTerminationRequestWithDefaults
+
+`func NewTunnelTerminationRequestWithDefaults() *TunnelTerminationRequest`
+
+NewTunnelTerminationRequestWithDefaults instantiates a new TunnelTerminationRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetTunnel
+
+`func (o *TunnelTerminationRequest) GetTunnel() NestedTunnelRequest`
+
+GetTunnel returns the Tunnel field if non-nil, zero value otherwise.
+
+### GetTunnelOk
+
+`func (o *TunnelTerminationRequest) GetTunnelOk() (*NestedTunnelRequest, 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)`
+
+SetTunnel sets Tunnel field to given value.
+
+
+### GetRole
+
+`func (o *TunnelTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole`
+
+GetRole returns the Role field if non-nil, zero value otherwise.
+
+### GetRoleOk
+
+`func (o *TunnelTerminationRequest) GetRoleOk() (*PatchedWritableTunnelTerminationRequestRole, bool)`
+
+GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetRole
+
+`func (o *TunnelTerminationRequest) SetRole(v PatchedWritableTunnelTerminationRequestRole)`
+
+SetRole sets Role field to given value.
+
+
+### GetTerminationType
+
+`func (o *TunnelTerminationRequest) GetTerminationType() string`
+
+GetTerminationType returns the TerminationType field if non-nil, zero value otherwise.
+
+### GetTerminationTypeOk
+
+`func (o *TunnelTerminationRequest) GetTerminationTypeOk() (*string, bool)`
+
+GetTerminationTypeOk returns a tuple with the TerminationType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTerminationType
+
+`func (o *TunnelTerminationRequest) SetTerminationType(v string)`
+
+SetTerminationType sets TerminationType field to given value.
+
+
+### GetTerminationId
+
+`func (o *TunnelTerminationRequest) GetTerminationId() int64`
+
+GetTerminationId returns the TerminationId field if non-nil, zero value otherwise.
+
+### GetTerminationIdOk
+
+`func (o *TunnelTerminationRequest) GetTerminationIdOk() (*int64, bool)`
+
+GetTerminationIdOk returns a tuple with the TerminationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTerminationId
+
+`func (o *TunnelTerminationRequest) SetTerminationId(v int64)`
+
+SetTerminationId sets TerminationId field to given value.
+
+### HasTerminationId
+
+`func (o *TunnelTerminationRequest) HasTerminationId() bool`
+
+HasTerminationId returns a boolean if a field has been set.
+
+### SetTerminationIdNil
+
+`func (o *TunnelTerminationRequest) SetTerminationIdNil(b bool)`
+
+ SetTerminationIdNil sets the value for TerminationId to be an explicit nil
+
+### UnsetTerminationId
+`func (o *TunnelTerminationRequest) UnsetTerminationId()`
+
+UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil
+### GetOutsideIp
+
+`func (o *TunnelTerminationRequest) GetOutsideIp() NestedIPAddressRequest`
+
+GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise.
+
+### GetOutsideIpOk
+
+`func (o *TunnelTerminationRequest) GetOutsideIpOk() (*NestedIPAddressRequest, 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)`
+
+SetOutsideIp sets OutsideIp field to given value.
+
+### HasOutsideIp
+
+`func (o *TunnelTerminationRequest) HasOutsideIp() bool`
+
+HasOutsideIp returns a boolean if a field has been set.
+
+### SetOutsideIpNil
+
+`func (o *TunnelTerminationRequest) SetOutsideIpNil(b bool)`
+
+ SetOutsideIpNil sets the value for OutsideIp to be an explicit nil
+
+### UnsetOutsideIp
+`func (o *TunnelTerminationRequest) UnsetOutsideIp()`
+
+UnsetOutsideIp ensures that no value is present for OutsideIp, not even an explicit nil
+### GetTags
+
+`func (o *TunnelTerminationRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *TunnelTerminationRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+
+GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTags
+
+`func (o *TunnelTerminationRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *TunnelTerminationRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *TunnelTerminationRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *TunnelTerminationRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+
+GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCustomFields
+
+`func (o *TunnelTerminationRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *TunnelTerminationRequest) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TunnelTerminationRole.md b/docs/TunnelTerminationRole.md
new file mode 100644
index 0000000000..94a38784e1
--- /dev/null
+++ b/docs/TunnelTerminationRole.md
@@ -0,0 +1,82 @@
+# TunnelTerminationRole
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Value** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional]
+**Label** | Pointer to [**TunnelTerminationRoleLabel**](TunnelTerminationRoleLabel.md) | | [optional]
+
+## Methods
+
+### NewTunnelTerminationRole
+
+`func NewTunnelTerminationRole() *TunnelTerminationRole`
+
+NewTunnelTerminationRole instantiates a new TunnelTerminationRole object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTunnelTerminationRoleWithDefaults
+
+`func NewTunnelTerminationRoleWithDefaults() *TunnelTerminationRole`
+
+NewTunnelTerminationRoleWithDefaults instantiates a new TunnelTerminationRole object
+This 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 *TunnelTerminationRole) GetValue() PatchedWritableTunnelTerminationRequestRole`
+
+GetValue returns the Value field if non-nil, zero value otherwise.
+
+### GetValueOk
+
+`func (o *TunnelTerminationRole) GetValueOk() (*PatchedWritableTunnelTerminationRequestRole, 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 *TunnelTerminationRole) SetValue(v PatchedWritableTunnelTerminationRequestRole)`
+
+SetValue sets Value field to given value.
+
+### HasValue
+
+`func (o *TunnelTerminationRole) HasValue() bool`
+
+HasValue returns a boolean if a field has been set.
+
+### GetLabel
+
+`func (o *TunnelTerminationRole) GetLabel() TunnelTerminationRoleLabel`
+
+GetLabel returns the Label field if non-nil, zero value otherwise.
+
+### GetLabelOk
+
+`func (o *TunnelTerminationRole) GetLabelOk() (*TunnelTerminationRoleLabel, 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 *TunnelTerminationRole) SetLabel(v TunnelTerminationRoleLabel)`
+
+SetLabel sets Label field to given value.
+
+### HasLabel
+
+`func (o *TunnelTerminationRole) 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/TunnelTerminationRoleLabel.md b/docs/TunnelTerminationRoleLabel.md
new file mode 100644
index 0000000000..b8988cf02e
--- /dev/null
+++ b/docs/TunnelTerminationRoleLabel.md
@@ -0,0 +1,15 @@
+# TunnelTerminationRoleLabel
+
+## Enum
+
+
+* `PEER` (value: `"Peer"`)
+
+* `HUB` (value: `"Hub"`)
+
+* `SPOKE` (value: `"Spoke"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UsersApi.md b/docs/UsersAPI.md
similarity index 55%
rename from docs/UsersApi.md
rename to docs/UsersAPI.md
index eab83cf158..70d4e583bf 100644
--- a/docs/UsersApi.md
+++ b/docs/UsersAPI.md
@@ -59,23 +59,23 @@ Method | HTTP request | Description
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersConfigRetrieve(context.Background()).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersConfigRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersConfigRetrieve`: map[string]interface{}
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersConfigRetrieve`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersConfigRetrieve(context.Background()).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersConfigRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersConfigRetrieve`: map[string]interface{}
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersConfigRetrieve`: %v\n", resp)
}
```
@@ -120,22 +120,22 @@ Other parameters are passed through a pointer to a apiUsersConfigRetrieveRequest
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- groupRequest := []openapiclient.GroupRequest{*openapiclient.NewGroupRequest("Name_example")} // []GroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.UsersAPI.UsersGroupsBulkDestroy(context.Background()).GroupRequest(groupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ groupRequest := []openapiclient.GroupRequest{*openapiclient.NewGroupRequest("Name_example")} // []GroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.UsersAPI.UsersGroupsBulkDestroy(context.Background()).GroupRequest(groupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -184,24 +184,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- groupRequest := []openapiclient.GroupRequest{*openapiclient.NewGroupRequest("Name_example")} // []GroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersGroupsBulkPartialUpdate(context.Background()).GroupRequest(groupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersGroupsBulkPartialUpdate`: []Group
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsBulkPartialUpdate`: %v\n", resp)
+ groupRequest := []openapiclient.GroupRequest{*openapiclient.NewGroupRequest("Name_example")} // []GroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersGroupsBulkPartialUpdate(context.Background()).GroupRequest(groupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersGroupsBulkPartialUpdate`: []Group
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -250,24 +250,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- groupRequest := []openapiclient.GroupRequest{*openapiclient.NewGroupRequest("Name_example")} // []GroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersGroupsBulkUpdate(context.Background()).GroupRequest(groupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersGroupsBulkUpdate`: []Group
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsBulkUpdate`: %v\n", resp)
+ groupRequest := []openapiclient.GroupRequest{*openapiclient.NewGroupRequest("Name_example")} // []GroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersGroupsBulkUpdate(context.Background()).GroupRequest(groupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersGroupsBulkUpdate`: []Group
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsBulkUpdate`: %v\n", resp)
}
```
@@ -316,24 +316,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- groupRequest := *openapiclient.NewGroupRequest("Name_example") // GroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersGroupsCreate(context.Background()).GroupRequest(groupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersGroupsCreate`: Group
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsCreate`: %v\n", resp)
+ groupRequest := *openapiclient.NewGroupRequest("Name_example") // GroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersGroupsCreate(context.Background()).GroupRequest(groupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersGroupsCreate`: Group
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsCreate`: %v\n", resp)
}
```
@@ -382,22 +382,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.UsersAPI.UsersGroupsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.UsersAPI.UsersGroupsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -450,45 +450,45 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
-
- 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()
- 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)
- }
- // response from `UsersGroupsList`: PaginatedGroupList
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsList`: %v\n", resp)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+
+ 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()
+ 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)
+ }
+ // response from `UsersGroupsList`: PaginatedGroupList
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsList`: %v\n", resp)
}
```
@@ -558,25 +558,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this group.
- patchedGroupRequest := *openapiclient.NewPatchedGroupRequest() // PatchedGroupRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersGroupsPartialUpdate(context.Background(), id).PatchedGroupRequest(patchedGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersGroupsPartialUpdate`: Group
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this group.
+ patchedGroupRequest := *openapiclient.NewPatchedGroupRequest() // PatchedGroupRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersGroupsPartialUpdate(context.Background(), id).PatchedGroupRequest(patchedGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersGroupsPartialUpdate`: Group
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsPartialUpdate`: %v\n", resp)
}
```
@@ -630,24 +630,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersGroupsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersGroupsRetrieve`: Group
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersGroupsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersGroupsRetrieve`: Group
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsRetrieve`: %v\n", resp)
}
```
@@ -700,25 +700,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this group.
- groupRequest := *openapiclient.NewGroupRequest("Name_example") // GroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersGroupsUpdate(context.Background(), id).GroupRequest(groupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersGroupsUpdate`: Group
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this group.
+ groupRequest := *openapiclient.NewGroupRequest("Name_example") // GroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersGroupsUpdate(context.Background(), id).GroupRequest(groupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersGroupsUpdate`: Group
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsUpdate`: %v\n", resp)
}
```
@@ -772,22 +772,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- objectPermissionRequest := []openapiclient.ObjectPermissionRequest{*openapiclient.NewObjectPermissionRequest("Name_example", []string{"ObjectTypes_example"}, []string{"Actions_example"})} // []ObjectPermissionRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.UsersAPI.UsersPermissionsBulkDestroy(context.Background()).ObjectPermissionRequest(objectPermissionRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ objectPermissionRequest := []openapiclient.ObjectPermissionRequest{*openapiclient.NewObjectPermissionRequest("Name_example", []string{"ObjectTypes_example"}, []string{"Actions_example"})} // []ObjectPermissionRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.UsersAPI.UsersPermissionsBulkDestroy(context.Background()).ObjectPermissionRequest(objectPermissionRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -836,24 +836,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- objectPermissionRequest := []openapiclient.ObjectPermissionRequest{*openapiclient.NewObjectPermissionRequest("Name_example", []string{"ObjectTypes_example"}, []string{"Actions_example"})} // []ObjectPermissionRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersPermissionsBulkPartialUpdate(context.Background()).ObjectPermissionRequest(objectPermissionRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersPermissionsBulkPartialUpdate`: []ObjectPermission
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsBulkPartialUpdate`: %v\n", resp)
+ objectPermissionRequest := []openapiclient.ObjectPermissionRequest{*openapiclient.NewObjectPermissionRequest("Name_example", []string{"ObjectTypes_example"}, []string{"Actions_example"})} // []ObjectPermissionRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersPermissionsBulkPartialUpdate(context.Background()).ObjectPermissionRequest(objectPermissionRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersPermissionsBulkPartialUpdate`: []ObjectPermission
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -902,24 +902,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- objectPermissionRequest := []openapiclient.ObjectPermissionRequest{*openapiclient.NewObjectPermissionRequest("Name_example", []string{"ObjectTypes_example"}, []string{"Actions_example"})} // []ObjectPermissionRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersPermissionsBulkUpdate(context.Background()).ObjectPermissionRequest(objectPermissionRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersPermissionsBulkUpdate`: []ObjectPermission
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsBulkUpdate`: %v\n", resp)
+ objectPermissionRequest := []openapiclient.ObjectPermissionRequest{*openapiclient.NewObjectPermissionRequest("Name_example", []string{"ObjectTypes_example"}, []string{"Actions_example"})} // []ObjectPermissionRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersPermissionsBulkUpdate(context.Background()).ObjectPermissionRequest(objectPermissionRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersPermissionsBulkUpdate`: []ObjectPermission
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsBulkUpdate`: %v\n", resp)
}
```
@@ -968,24 +968,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableObjectPermissionRequest := *openapiclient.NewWritableObjectPermissionRequest("Name_example", []string{"ObjectTypes_example"}, []string{"Actions_example"}) // WritableObjectPermissionRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersPermissionsCreate(context.Background()).WritableObjectPermissionRequest(writableObjectPermissionRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersPermissionsCreate`: ObjectPermission
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsCreate`: %v\n", resp)
+ writableObjectPermissionRequest := *openapiclient.NewWritableObjectPermissionRequest("Name_example", []string{"ObjectTypes_example"}, []string{"Actions_example"}) // WritableObjectPermissionRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersPermissionsCreate(context.Background()).WritableObjectPermissionRequest(writableObjectPermissionRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersPermissionsCreate`: ObjectPermission
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsCreate`: %v\n", resp)
}
```
@@ -1034,22 +1034,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this permission.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.UsersAPI.UsersPermissionsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this permission.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.UsersAPI.UsersPermissionsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1102,71 +1102,71 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- canAdd := true // bool | (optional)
- canChange := true // bool | (optional)
- canDelete := true // bool | (optional)
- canView := true // bool | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- 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)
- group := []string{"Inner_example"} // []string | Group (name) (optional)
- groupN := []string{"Inner_example"} // []string | Group (name) (optional)
- groupId := []int32{int32(123)} // []int32 | Group (optional)
- groupIdN := []int32{int32(123)} // []int32 | Group (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- objectTypes := []int32{int32(123)} // []int32 | (optional)
- objectTypesN := []int32{int32(123)} // []int32 | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- user := []string{"Inner_example"} // []string | User (name) (optional)
- userN := []string{"Inner_example"} // []string | User (name) (optional)
- userId := []int32{int32(123)} // []int32 | User (optional)
- userIdN := []int32{int32(123)} // []int32 | User (optional)
-
- 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()
- 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)
- }
- // response from `UsersPermissionsList`: PaginatedObjectPermissionList
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsList`: %v\n", resp)
+ canAdd := true // bool | (optional)
+ canChange := true // bool | (optional)
+ canDelete := true // bool | (optional)
+ canView := true // bool | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ 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)
+ group := []string{"Inner_example"} // []string | Group (name) (optional)
+ groupN := []string{"Inner_example"} // []string | Group (name) (optional)
+ groupId := []int32{int32(123)} // []int32 | Group (optional)
+ groupIdN := []int32{int32(123)} // []int32 | Group (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ objectTypes := []int32{int32(123)} // []int32 | (optional)
+ objectTypesN := []int32{int32(123)} // []int32 | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ user := []string{"Inner_example"} // []string | User (name) (optional)
+ userN := []string{"Inner_example"} // []string | User (name) (optional)
+ userId := []int32{int32(123)} // []int32 | User (optional)
+ userIdN := []int32{int32(123)} // []int32 | User (optional)
+
+ 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()
+ 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)
+ }
+ // response from `UsersPermissionsList`: PaginatedObjectPermissionList
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsList`: %v\n", resp)
}
```
@@ -1262,25 +1262,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this permission.
- patchedWritableObjectPermissionRequest := *openapiclient.NewPatchedWritableObjectPermissionRequest() // PatchedWritableObjectPermissionRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersPermissionsPartialUpdate(context.Background(), id).PatchedWritableObjectPermissionRequest(patchedWritableObjectPermissionRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersPermissionsPartialUpdate`: ObjectPermission
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this permission.
+ patchedWritableObjectPermissionRequest := *openapiclient.NewPatchedWritableObjectPermissionRequest() // PatchedWritableObjectPermissionRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersPermissionsPartialUpdate(context.Background(), id).PatchedWritableObjectPermissionRequest(patchedWritableObjectPermissionRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersPermissionsPartialUpdate`: ObjectPermission
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsPartialUpdate`: %v\n", resp)
}
```
@@ -1334,24 +1334,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this permission.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersPermissionsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersPermissionsRetrieve`: ObjectPermission
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this permission.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersPermissionsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersPermissionsRetrieve`: ObjectPermission
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsRetrieve`: %v\n", resp)
}
```
@@ -1404,25 +1404,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
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 |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersPermissionsUpdate(context.Background(), id).WritableObjectPermissionRequest(writableObjectPermissionRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersPermissionsUpdate`: ObjectPermission
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this permission.
+ writableObjectPermissionRequest := *openapiclient.NewWritableObjectPermissionRequest("Name_example", []string{"ObjectTypes_example"}, []string{"Actions_example"}) // WritableObjectPermissionRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersPermissionsUpdate(context.Background(), id).WritableObjectPermissionRequest(writableObjectPermissionRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersPermissionsUpdate`: ObjectPermission
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsUpdate`: %v\n", resp)
}
```
@@ -1476,22 +1476,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewNestedUserRequest("Username_example"))} // []TokenRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.UsersAPI.UsersTokensBulkDestroy(context.Background()).TokenRequest(tokenRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewNestedUserRequest("Username_example"))} // []TokenRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.UsersAPI.UsersTokensBulkDestroy(context.Background()).TokenRequest(tokenRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1540,24 +1540,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewNestedUserRequest("Username_example"))} // []TokenRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersTokensBulkPartialUpdate(context.Background()).TokenRequest(tokenRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersTokensBulkPartialUpdate`: []Token
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensBulkPartialUpdate`: %v\n", resp)
+ tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewNestedUserRequest("Username_example"))} // []TokenRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersTokensBulkPartialUpdate(context.Background()).TokenRequest(tokenRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersTokensBulkPartialUpdate`: []Token
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensBulkPartialUpdate`: %v\n", resp)
}
```
@@ -1606,24 +1606,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewNestedUserRequest("Username_example"))} // []TokenRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersTokensBulkUpdate(context.Background()).TokenRequest(tokenRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersTokensBulkUpdate`: []Token
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensBulkUpdate`: %v\n", resp)
+ tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewNestedUserRequest("Username_example"))} // []TokenRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersTokensBulkUpdate(context.Background()).TokenRequest(tokenRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersTokensBulkUpdate`: []Token
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensBulkUpdate`: %v\n", resp)
}
```
@@ -1672,24 +1672,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableTokenRequest := *openapiclient.NewWritableTokenRequest(int32(123)) // WritableTokenRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersTokensCreate(context.Background()).WritableTokenRequest(writableTokenRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersTokensCreate`: Token
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensCreate`: %v\n", resp)
+ writableTokenRequest := *openapiclient.NewWritableTokenRequest(int32(123)) // WritableTokenRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersTokensCreate(context.Background()).WritableTokenRequest(writableTokenRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersTokensCreate`: Token
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensCreate`: %v\n", resp)
}
```
@@ -1738,22 +1738,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this token.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.UsersAPI.UsersTokensDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this token.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.UsersAPI.UsersTokensDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1806,68 +1806,68 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- created := time.Now() // time.Time | (optional)
- createdGte := time.Now() // time.Time | (optional)
- createdLte := time.Now() // time.Time | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- expires := time.Now() // time.Time | (optional)
- expiresGte := time.Now() // time.Time | (optional)
- expiresLte := time.Now() // time.Time | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- key := []string{"Inner_example"} // []string | (optional)
- keyEmpty := true // bool | (optional)
- keyIc := []string{"Inner_example"} // []string | (optional)
- keyIe := []string{"Inner_example"} // []string | (optional)
- keyIew := []string{"Inner_example"} // []string | (optional)
- keyIsw := []string{"Inner_example"} // []string | (optional)
- keyN := []string{"Inner_example"} // []string | (optional)
- keyNic := []string{"Inner_example"} // []string | (optional)
- keyNie := []string{"Inner_example"} // []string | (optional)
- keyNiew := []string{"Inner_example"} // []string | (optional)
- keyNisw := []string{"Inner_example"} // []string | (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)
- q := "q_example" // string | Search (optional)
- user := []string{"Inner_example"} // []string | User (name) (optional)
- userN := []string{"Inner_example"} // []string | User (name) (optional)
- userId := []int32{int32(123)} // []int32 | User (optional)
- userIdN := []int32{int32(123)} // []int32 | User (optional)
- writeEnabled := true // bool | (optional)
-
- 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()
- 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)
- }
- // response from `UsersTokensList`: PaginatedTokenList
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensList`: %v\n", resp)
+ created := time.Now() // time.Time | (optional)
+ createdGte := time.Now() // time.Time | (optional)
+ createdLte := time.Now() // time.Time | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ expires := time.Now() // time.Time | (optional)
+ expiresGte := time.Now() // time.Time | (optional)
+ expiresLte := time.Now() // time.Time | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ key := []string{"Inner_example"} // []string | (optional)
+ keyEmpty := true // bool | (optional)
+ keyIc := []string{"Inner_example"} // []string | (optional)
+ keyIe := []string{"Inner_example"} // []string | (optional)
+ keyIew := []string{"Inner_example"} // []string | (optional)
+ keyIsw := []string{"Inner_example"} // []string | (optional)
+ keyN := []string{"Inner_example"} // []string | (optional)
+ keyNic := []string{"Inner_example"} // []string | (optional)
+ keyNie := []string{"Inner_example"} // []string | (optional)
+ keyNiew := []string{"Inner_example"} // []string | (optional)
+ keyNisw := []string{"Inner_example"} // []string | (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)
+ q := "q_example" // string | Search (optional)
+ user := []string{"Inner_example"} // []string | User (name) (optional)
+ userN := []string{"Inner_example"} // []string | User (name) (optional)
+ userId := []int32{int32(123)} // []int32 | User (optional)
+ userIdN := []int32{int32(123)} // []int32 | User (optional)
+ writeEnabled := true // bool | (optional)
+
+ 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()
+ 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)
+ }
+ // response from `UsersTokensList`: PaginatedTokenList
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensList`: %v\n", resp)
}
```
@@ -1959,25 +1959,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this token.
- patchedWritableTokenRequest := *openapiclient.NewPatchedWritableTokenRequest() // PatchedWritableTokenRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersTokensPartialUpdate(context.Background(), id).PatchedWritableTokenRequest(patchedWritableTokenRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersTokensPartialUpdate`: Token
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this token.
+ patchedWritableTokenRequest := *openapiclient.NewPatchedWritableTokenRequest() // PatchedWritableTokenRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersTokensPartialUpdate(context.Background(), id).PatchedWritableTokenRequest(patchedWritableTokenRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersTokensPartialUpdate`: Token
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensPartialUpdate`: %v\n", resp)
}
```
@@ -2031,24 +2031,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- tokenProvisionRequest := *openapiclient.NewTokenProvisionRequest("Username_example", "Password_example") // TokenProvisionRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersTokensProvisionCreate(context.Background()).TokenProvisionRequest(tokenProvisionRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensProvisionCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersTokensProvisionCreate`: TokenProvision
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensProvisionCreate`: %v\n", resp)
+ tokenProvisionRequest := *openapiclient.NewTokenProvisionRequest("Username_example", "Password_example") // TokenProvisionRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersTokensProvisionCreate(context.Background()).TokenProvisionRequest(tokenProvisionRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensProvisionCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersTokensProvisionCreate`: TokenProvision
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensProvisionCreate`: %v\n", resp)
}
```
@@ -2097,24 +2097,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this token.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersTokensRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersTokensRetrieve`: Token
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this token.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersTokensRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersTokensRetrieve`: Token
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensRetrieve`: %v\n", resp)
}
```
@@ -2167,25 +2167,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this token.
- writableTokenRequest := *openapiclient.NewWritableTokenRequest(int32(123)) // WritableTokenRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersTokensUpdate(context.Background(), id).WritableTokenRequest(writableTokenRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersTokensUpdate`: Token
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this token.
+ writableTokenRequest := *openapiclient.NewWritableTokenRequest(int32(123)) // WritableTokenRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersTokensUpdate(context.Background(), id).WritableTokenRequest(writableTokenRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersTokensUpdate`: Token
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensUpdate`: %v\n", resp)
}
```
@@ -2239,22 +2239,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.UsersAPI.UsersUsersBulkDestroy(context.Background()).UserRequest(userRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.UsersAPI.UsersUsersBulkDestroy(context.Background()).UserRequest(userRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -2303,24 +2303,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersUsersBulkPartialUpdate(context.Background()).UserRequest(userRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersUsersBulkPartialUpdate`: []User
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersBulkPartialUpdate`: %v\n", resp)
+ userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersUsersBulkPartialUpdate(context.Background()).UserRequest(userRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersUsersBulkPartialUpdate`: []User
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersBulkPartialUpdate`: %v\n", resp)
}
```
@@ -2369,24 +2369,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersUsersBulkUpdate(context.Background()).UserRequest(userRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersUsersBulkUpdate`: []User
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersBulkUpdate`: %v\n", resp)
+ userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersUsersBulkUpdate(context.Background()).UserRequest(userRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersUsersBulkUpdate`: []User
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersBulkUpdate`: %v\n", resp)
}
```
@@ -2435,24 +2435,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableUserRequest := *openapiclient.NewWritableUserRequest("Username_example", "Password_example") // WritableUserRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersUsersCreate(context.Background()).WritableUserRequest(writableUserRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersUsersCreate`: User
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersCreate`: %v\n", resp)
+ writableUserRequest := *openapiclient.NewWritableUserRequest("Username_example", "Password_example") // WritableUserRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersUsersCreate(context.Background()).WritableUserRequest(writableUserRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersUsersCreate`: User
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersCreate`: %v\n", resp)
}
```
@@ -2501,22 +2501,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this user.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.UsersAPI.UsersUsersDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this user.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.UsersAPI.UsersUsersDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -2569,85 +2569,85 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- email := []string{"Inner_example"} // []string | (optional)
- emailEmpty := true // bool | (optional)
- emailIc := []string{"Inner_example"} // []string | (optional)
- emailIe := []string{"Inner_example"} // []string | (optional)
- emailIew := []string{"Inner_example"} // []string | (optional)
- emailIsw := []string{"Inner_example"} // []string | (optional)
- emailN := []string{"Inner_example"} // []string | (optional)
- emailNic := []string{"Inner_example"} // []string | (optional)
- emailNie := []string{"Inner_example"} // []string | (optional)
- emailNiew := []string{"Inner_example"} // []string | (optional)
- emailNisw := []string{"Inner_example"} // []string | (optional)
- firstName := []string{"Inner_example"} // []string | (optional)
- firstNameEmpty := true // bool | (optional)
- firstNameIc := []string{"Inner_example"} // []string | (optional)
- firstNameIe := []string{"Inner_example"} // []string | (optional)
- firstNameIew := []string{"Inner_example"} // []string | (optional)
- firstNameIsw := []string{"Inner_example"} // []string | (optional)
- firstNameN := []string{"Inner_example"} // []string | (optional)
- firstNameNic := []string{"Inner_example"} // []string | (optional)
- firstNameNie := []string{"Inner_example"} // []string | (optional)
- firstNameNiew := []string{"Inner_example"} // []string | (optional)
- firstNameNisw := []string{"Inner_example"} // []string | (optional)
- group := []string{"Inner_example"} // []string | Group (name) (optional)
- groupN := []string{"Inner_example"} // []string | Group (name) (optional)
- groupId := []int32{int32(123)} // []int32 | Group (optional)
- groupIdN := []int32{int32(123)} // []int32 | Group (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- isActive := true // bool | (optional)
- isStaff := true // bool | (optional)
- isSuperuser := true // bool | (optional)
- lastName := []string{"Inner_example"} // []string | (optional)
- lastNameEmpty := true // bool | (optional)
- lastNameIc := []string{"Inner_example"} // []string | (optional)
- lastNameIe := []string{"Inner_example"} // []string | (optional)
- lastNameIew := []string{"Inner_example"} // []string | (optional)
- lastNameIsw := []string{"Inner_example"} // []string | (optional)
- lastNameN := []string{"Inner_example"} // []string | (optional)
- lastNameNic := []string{"Inner_example"} // []string | (optional)
- lastNameNie := []string{"Inner_example"} // []string | (optional)
- lastNameNiew := []string{"Inner_example"} // []string | (optional)
- lastNameNisw := []string{"Inner_example"} // []string | (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)
- q := "q_example" // string | Search (optional)
- username := []string{"Inner_example"} // []string | (optional)
- usernameEmpty := true // bool | (optional)
- usernameIc := []string{"Inner_example"} // []string | (optional)
- usernameIe := []string{"Inner_example"} // []string | (optional)
- usernameIew := []string{"Inner_example"} // []string | (optional)
- usernameIsw := []string{"Inner_example"} // []string | (optional)
- usernameN := []string{"Inner_example"} // []string | (optional)
- usernameNic := []string{"Inner_example"} // []string | (optional)
- usernameNie := []string{"Inner_example"} // []string | (optional)
- usernameNiew := []string{"Inner_example"} // []string | (optional)
- usernameNisw := []string{"Inner_example"} // []string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersUsersList(context.Background()).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersUsersList`: PaginatedUserList
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersList`: %v\n", resp)
+ email := []string{"Inner_example"} // []string | (optional)
+ emailEmpty := true // bool | (optional)
+ emailIc := []string{"Inner_example"} // []string | (optional)
+ emailIe := []string{"Inner_example"} // []string | (optional)
+ emailIew := []string{"Inner_example"} // []string | (optional)
+ emailIsw := []string{"Inner_example"} // []string | (optional)
+ emailN := []string{"Inner_example"} // []string | (optional)
+ emailNic := []string{"Inner_example"} // []string | (optional)
+ emailNie := []string{"Inner_example"} // []string | (optional)
+ emailNiew := []string{"Inner_example"} // []string | (optional)
+ emailNisw := []string{"Inner_example"} // []string | (optional)
+ firstName := []string{"Inner_example"} // []string | (optional)
+ firstNameEmpty := true // bool | (optional)
+ firstNameIc := []string{"Inner_example"} // []string | (optional)
+ firstNameIe := []string{"Inner_example"} // []string | (optional)
+ firstNameIew := []string{"Inner_example"} // []string | (optional)
+ firstNameIsw := []string{"Inner_example"} // []string | (optional)
+ firstNameN := []string{"Inner_example"} // []string | (optional)
+ firstNameNic := []string{"Inner_example"} // []string | (optional)
+ firstNameNie := []string{"Inner_example"} // []string | (optional)
+ firstNameNiew := []string{"Inner_example"} // []string | (optional)
+ firstNameNisw := []string{"Inner_example"} // []string | (optional)
+ group := []string{"Inner_example"} // []string | Group (name) (optional)
+ groupN := []string{"Inner_example"} // []string | Group (name) (optional)
+ groupId := []int32{int32(123)} // []int32 | Group (optional)
+ groupIdN := []int32{int32(123)} // []int32 | Group (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ isActive := true // bool | (optional)
+ isStaff := true // bool | (optional)
+ isSuperuser := true // bool | (optional)
+ lastName := []string{"Inner_example"} // []string | (optional)
+ lastNameEmpty := true // bool | (optional)
+ lastNameIc := []string{"Inner_example"} // []string | (optional)
+ lastNameIe := []string{"Inner_example"} // []string | (optional)
+ lastNameIew := []string{"Inner_example"} // []string | (optional)
+ lastNameIsw := []string{"Inner_example"} // []string | (optional)
+ lastNameN := []string{"Inner_example"} // []string | (optional)
+ lastNameNic := []string{"Inner_example"} // []string | (optional)
+ lastNameNie := []string{"Inner_example"} // []string | (optional)
+ lastNameNiew := []string{"Inner_example"} // []string | (optional)
+ lastNameNisw := []string{"Inner_example"} // []string | (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)
+ q := "q_example" // string | Search (optional)
+ username := []string{"Inner_example"} // []string | (optional)
+ usernameEmpty := true // bool | (optional)
+ usernameIc := []string{"Inner_example"} // []string | (optional)
+ usernameIe := []string{"Inner_example"} // []string | (optional)
+ usernameIew := []string{"Inner_example"} // []string | (optional)
+ usernameIsw := []string{"Inner_example"} // []string | (optional)
+ usernameN := []string{"Inner_example"} // []string | (optional)
+ usernameNic := []string{"Inner_example"} // []string | (optional)
+ usernameNie := []string{"Inner_example"} // []string | (optional)
+ usernameNiew := []string{"Inner_example"} // []string | (optional)
+ usernameNisw := []string{"Inner_example"} // []string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersUsersList(context.Background()).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersUsersList`: PaginatedUserList
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersList`: %v\n", resp)
}
```
@@ -2757,25 +2757,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this user.
- patchedWritableUserRequest := *openapiclient.NewPatchedWritableUserRequest() // PatchedWritableUserRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersUsersPartialUpdate(context.Background(), id).PatchedWritableUserRequest(patchedWritableUserRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersUsersPartialUpdate`: User
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this user.
+ patchedWritableUserRequest := *openapiclient.NewPatchedWritableUserRequest() // PatchedWritableUserRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersUsersPartialUpdate(context.Background(), id).PatchedWritableUserRequest(patchedWritableUserRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersUsersPartialUpdate`: User
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersPartialUpdate`: %v\n", resp)
}
```
@@ -2829,24 +2829,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this user.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersUsersRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersUsersRetrieve`: User
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this user.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersUsersRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersUsersRetrieve`: User
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersRetrieve`: %v\n", resp)
}
```
@@ -2899,25 +2899,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this user.
- writableUserRequest := *openapiclient.NewWritableUserRequest("Username_example", "Password_example") // WritableUserRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersUsersUpdate(context.Background(), id).WritableUserRequest(writableUserRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UsersUsersUpdate`: User
- fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this user.
+ writableUserRequest := *openapiclient.NewWritableUserRequest("Username_example", "Password_example") // WritableUserRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.UsersAPI.UsersUsersUpdate(context.Background(), id).WritableUserRequest(writableUserRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UsersUsersUpdate`: User
+ fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersUpdate`: %v\n", resp)
}
```
diff --git a/docs/VLANGroup.md b/docs/VLANGroup.md
index de5e3732d9..b6191ca65c 100644
--- a/docs/VLANGroup.md
+++ b/docs/VLANGroup.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**Slug** | **string** | |
**ScopeType** | Pointer to **NullableString** | | [optional]
**ScopeId** | Pointer to **NullableInt32** | | [optional]
-**Scope** | **map[string]interface{}** | | [readonly]
+**Scope** | **interface{}** | | [readonly]
**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional]
**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -26,7 +26,7 @@ Name | Type | Description | Notes
### NewVLANGroup
-`func NewVLANGroup(id int32, url string, display string, name string, slug string, scope map[string]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 int32, utilization string, ) *VLANGroup`
NewVLANGroup instantiates a new VLANGroup object
This constructor will assign default values to properties that have it defined,
@@ -213,20 +213,20 @@ HasScopeId returns a boolean if a field has been set.
UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil
### GetScope
-`func (o *VLANGroup) GetScope() map[string]interface{}`
+`func (o *VLANGroup) GetScope() interface{}`
GetScope returns the Scope field if non-nil, zero value otherwise.
### GetScopeOk
-`func (o *VLANGroup) GetScopeOk() (*map[string]interface{}, bool)`
+`func (o *VLANGroup) GetScopeOk() (*interface{}, bool)`
GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetScope
-`func (o *VLANGroup) SetScope(v map[string]interface{})`
+`func (o *VLANGroup) SetScope(v interface{})`
SetScope sets Scope field to given value.
diff --git a/docs/VLANRequest.md b/docs/VLANRequest.md
index 59e8ec6338..3713f49f5f 100644
--- a/docs/VLANRequest.md
+++ b/docs/VLANRequest.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Vid** | **int32** | Numeric VLAN ID (1-4094) |
**Name** | **string** | |
**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**Status** | Pointer to **string** | * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | [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]
@@ -182,20 +182,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
### GetStatus
-`func (o *VLANRequest) GetStatus() string`
+`func (o *VLANRequest) GetStatus() IPRangeStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *VLANRequest) GetStatusOk() (*string, bool)`
+`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 string)`
+`func (o *VLANRequest) SetStatus(v IPRangeStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/VMInterfaceRequest.md b/docs/VMInterfaceRequest.md
index fdd7617129..89f4444fbd 100644
--- a/docs/VMInterfaceRequest.md
+++ b/docs/VMInterfaceRequest.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
**Mtu** | Pointer to **NullableInt32** | | [optional]
**MacAddress** | Pointer to **NullableString** | | [optional]
**Description** | Pointer to **string** | | [optional]
-**Mode** | Pointer to **string** | * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | [optional]
+**Mode** | Pointer to [**InterfaceModeValue**](InterfaceModeValue.md) | | [optional]
**UntaggedVlan** | Pointer to [**NullableNestedVLANRequest**](NestedVLANRequest.md) | | [optional]
**TaggedVlans** | Pointer to **[]int32** | | [optional]
**Vrf** | Pointer to [**NullableNestedVRFRequest**](NestedVRFRequest.md) | | [optional]
@@ -270,20 +270,20 @@ HasDescription returns a boolean if a field has been set.
### GetMode
-`func (o *VMInterfaceRequest) GetMode() string`
+`func (o *VMInterfaceRequest) GetMode() InterfaceModeValue`
GetMode returns the Mode field if non-nil, zero value otherwise.
### GetModeOk
-`func (o *VMInterfaceRequest) GetModeOk() (*string, bool)`
+`func (o *VMInterfaceRequest) GetModeOk() (*InterfaceModeValue, bool)`
GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMode
-`func (o *VMInterfaceRequest) SetMode(v string)`
+`func (o *VMInterfaceRequest) SetMode(v InterfaceModeValue)`
SetMode sets Mode field to given value.
diff --git a/docs/VirtualDeviceContextRequest.md b/docs/VirtualDeviceContextRequest.md
index 61e5ca0456..692f6664fc 100644
--- a/docs/VirtualDeviceContextRequest.md
+++ b/docs/VirtualDeviceContextRequest.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
**PrimaryIp4** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional]
**PrimaryIp6** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional]
-**Status** | **string** | * `active` - Active * `planned` - Planned * `offline` - Offline |
+**Status** | [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | |
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
### NewVirtualDeviceContextRequest
-`func NewVirtualDeviceContextRequest(name string, device NestedDeviceRequest, status string, ) *VirtualDeviceContextRequest`
+`func NewVirtualDeviceContextRequest(name string, device NestedDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *VirtualDeviceContextRequest`
NewVirtualDeviceContextRequest instantiates a new VirtualDeviceContextRequest object
This constructor will assign default values to properties that have it defined,
@@ -217,20 +217,20 @@ HasPrimaryIp6 returns a boolean if a field has been set.
UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil
### GetStatus
-`func (o *VirtualDeviceContextRequest) GetStatus() string`
+`func (o *VirtualDeviceContextRequest) GetStatus() PatchedWritableVirtualDeviceContextRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *VirtualDeviceContextRequest) GetStatusOk() (*string, bool)`
+`func (o *VirtualDeviceContextRequest) GetStatusOk() (*PatchedWritableVirtualDeviceContextRequestStatus, 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 *VirtualDeviceContextRequest) SetStatus(v string)`
+`func (o *VirtualDeviceContextRequest) SetStatus(v PatchedWritableVirtualDeviceContextRequestStatus)`
SetStatus sets Status field to given value.
diff --git a/docs/VirtualDeviceContextStatus.md b/docs/VirtualDeviceContextStatus.md
index 6891e11b3d..b511e5586b 100644
--- a/docs/VirtualDeviceContextStatus.md
+++ b/docs/VirtualDeviceContextStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `active` - Active * `planned` - Planned * `offline` - Offline | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | [optional]
+**Label** | Pointer to [**VirtualDeviceContextStatusLabel**](VirtualDeviceContextStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *VirtualDeviceContextStatus) GetValue() string`
+`func (o *VirtualDeviceContextStatus) GetValue() PatchedWritableVirtualDeviceContextRequestStatus`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *VirtualDeviceContextStatus) GetValueOk() (*string, bool)`
+`func (o *VirtualDeviceContextStatus) GetValueOk() (*PatchedWritableVirtualDeviceContextRequestStatus, bool)`
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValue
-`func (o *VirtualDeviceContextStatus) SetValue(v string)`
+`func (o *VirtualDeviceContextStatus) SetValue(v PatchedWritableVirtualDeviceContextRequestStatus)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *VirtualDeviceContextStatus) GetLabel() string`
+`func (o *VirtualDeviceContextStatus) GetLabel() VirtualDeviceContextStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *VirtualDeviceContextStatus) GetLabelOk() (*string, bool)`
+`func (o *VirtualDeviceContextStatus) GetLabelOk() (*VirtualDeviceContextStatusLabel, bool)`
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLabel
-`func (o *VirtualDeviceContextStatus) SetLabel(v string)`
+`func (o *VirtualDeviceContextStatus) SetLabel(v VirtualDeviceContextStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/VirtualDeviceContextStatusLabel.md b/docs/VirtualDeviceContextStatusLabel.md
new file mode 100644
index 0000000000..b3de72a3b6
--- /dev/null
+++ b/docs/VirtualDeviceContextStatusLabel.md
@@ -0,0 +1,15 @@
+# VirtualDeviceContextStatusLabel
+
+## Enum
+
+
+* `ACTIVE` (value: `"Active"`)
+
+* `PLANNED` (value: `"Planned"`)
+
+* `OFFLINE` (value: `"Offline"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/VirtualDisk.md b/docs/VirtualDisk.md
new file mode 100644
index 0000000000..0e95395dd0
--- /dev/null
+++ b/docs/VirtualDisk.md
@@ -0,0 +1,275 @@
+# VirtualDisk
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **int32** | | [readonly]
+**Url** | **string** | | [readonly]
+**VirtualMachine** | [**NestedVirtualMachine**](NestedVirtualMachine.md) | |
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Size** | **int32** | |
+**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+**Created** | **NullableTime** | | [readonly]
+**LastUpdated** | **NullableTime** | | [readonly]
+
+## Methods
+
+### NewVirtualDisk
+
+`func NewVirtualDisk(id int32, url string, virtualMachine NestedVirtualMachine, 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,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewVirtualDiskWithDefaults
+
+`func NewVirtualDiskWithDefaults() *VirtualDisk`
+
+NewVirtualDiskWithDefaults instantiates a new VirtualDisk object
+This 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 *VirtualDisk) GetId() int32`
+
+GetId returns the Id field if non-nil, zero value otherwise.
+
+### GetIdOk
+
+`func (o *VirtualDisk) 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 *VirtualDisk) SetId(v int32)`
+
+SetId sets Id field to given value.
+
+
+### GetUrl
+
+`func (o *VirtualDisk) GetUrl() string`
+
+GetUrl returns the Url field if non-nil, zero value otherwise.
+
+### GetUrlOk
+
+`func (o *VirtualDisk) 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 *VirtualDisk) SetUrl(v string)`
+
+SetUrl sets Url field to given value.
+
+
+### GetVirtualMachine
+
+`func (o *VirtualDisk) GetVirtualMachine() NestedVirtualMachine`
+
+GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
+
+### GetVirtualMachineOk
+
+`func (o *VirtualDisk) GetVirtualMachineOk() (*NestedVirtualMachine, 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)`
+
+SetVirtualMachine sets VirtualMachine field to given value.
+
+
+### GetName
+
+`func (o *VirtualDisk) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *VirtualDisk) 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 *VirtualDisk) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *VirtualDisk) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *VirtualDisk) 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 *VirtualDisk) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *VirtualDisk) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetSize
+
+`func (o *VirtualDisk) GetSize() int32`
+
+GetSize returns the Size field if non-nil, zero value otherwise.
+
+### GetSizeOk
+
+`func (o *VirtualDisk) 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 *VirtualDisk) SetSize(v int32)`
+
+SetSize sets Size field to given value.
+
+
+### GetTags
+
+`func (o *VirtualDisk) GetTags() []NestedTag`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *VirtualDisk) 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 *VirtualDisk) SetTags(v []NestedTag)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *VirtualDisk) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *VirtualDisk) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *VirtualDisk) 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 *VirtualDisk) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *VirtualDisk) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+### GetCreated
+
+`func (o *VirtualDisk) GetCreated() time.Time`
+
+GetCreated returns the Created field if non-nil, zero value otherwise.
+
+### GetCreatedOk
+
+`func (o *VirtualDisk) 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 *VirtualDisk) SetCreated(v time.Time)`
+
+SetCreated sets Created field to given value.
+
+
+### SetCreatedNil
+
+`func (o *VirtualDisk) SetCreatedNil(b bool)`
+
+ SetCreatedNil sets the value for Created to be an explicit nil
+
+### UnsetCreated
+`func (o *VirtualDisk) UnsetCreated()`
+
+UnsetCreated ensures that no value is present for Created, not even an explicit nil
+### GetLastUpdated
+
+`func (o *VirtualDisk) GetLastUpdated() time.Time`
+
+GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
+
+### GetLastUpdatedOk
+
+`func (o *VirtualDisk) 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 *VirtualDisk) SetLastUpdated(v time.Time)`
+
+SetLastUpdated sets LastUpdated field to given value.
+
+
+### SetLastUpdatedNil
+
+`func (o *VirtualDisk) SetLastUpdatedNil(b bool)`
+
+ SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
+
+### UnsetLastUpdated
+`func (o *VirtualDisk) 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/VirtualDiskRequest.md b/docs/VirtualDiskRequest.md
new file mode 100644
index 0000000000..3f11889626
--- /dev/null
+++ b/docs/VirtualDiskRequest.md
@@ -0,0 +1,171 @@
+# VirtualDiskRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**VirtualMachine** | [**NestedVirtualMachineRequest**](NestedVirtualMachineRequest.md) | |
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Size** | **int32** | |
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewVirtualDiskRequest
+
+`func NewVirtualDiskRequest(virtualMachine NestedVirtualMachineRequest, name string, size int32, ) *VirtualDiskRequest`
+
+NewVirtualDiskRequest instantiates a new VirtualDiskRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewVirtualDiskRequestWithDefaults
+
+`func NewVirtualDiskRequestWithDefaults() *VirtualDiskRequest`
+
+NewVirtualDiskRequestWithDefaults instantiates a new VirtualDiskRequest object
+This 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 *VirtualDiskRequest) GetVirtualMachine() NestedVirtualMachineRequest`
+
+GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
+
+### GetVirtualMachineOk
+
+`func (o *VirtualDiskRequest) GetVirtualMachineOk() (*NestedVirtualMachineRequest, 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)`
+
+SetVirtualMachine sets VirtualMachine field to given value.
+
+
+### GetName
+
+`func (o *VirtualDiskRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *VirtualDiskRequest) 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 *VirtualDiskRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *VirtualDiskRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *VirtualDiskRequest) 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 *VirtualDiskRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *VirtualDiskRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetSize
+
+`func (o *VirtualDiskRequest) GetSize() int32`
+
+GetSize returns the Size field if non-nil, zero value otherwise.
+
+### GetSizeOk
+
+`func (o *VirtualDiskRequest) 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 *VirtualDiskRequest) SetSize(v int32)`
+
+SetSize sets Size field to given value.
+
+
+### GetTags
+
+`func (o *VirtualDiskRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *VirtualDiskRequest) 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 *VirtualDiskRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *VirtualDiskRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *VirtualDiskRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *VirtualDiskRequest) 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 *VirtualDiskRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *VirtualDiskRequest) 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/VirtualMachineWithConfigContext.md b/docs/VirtualMachineWithConfigContext.md
index a85cc7b605..31a0c58a67 100644
--- a/docs/VirtualMachineWithConfigContext.md
+++ b/docs/VirtualMachineWithConfigContext.md
@@ -23,19 +23,20 @@ Name | Type | Description | Notes
**Disk** | Pointer to **NullableInt32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
-**LocalContextData** | Pointer to **map[string]interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional]
+**LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-**ConfigContext** | **map[string]interface{}** | | [readonly]
+**ConfigContext** | **interface{}** | | [readonly]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
**InterfaceCount** | **int32** | | [readonly]
+**VirtualDiskCount** | **int32** | | [readonly]
## Methods
### NewVirtualMachineWithConfigContext
-`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NestedIPAddress, configContext map[string]interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, ) *VirtualMachineWithConfigContext`
+`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NestedIPAddress, 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,
@@ -612,20 +613,20 @@ HasComments returns a boolean if a field has been set.
### GetLocalContextData
-`func (o *VirtualMachineWithConfigContext) GetLocalContextData() map[string]interface{}`
+`func (o *VirtualMachineWithConfigContext) GetLocalContextData() interface{}`
GetLocalContextData returns the LocalContextData field if non-nil, zero value otherwise.
### GetLocalContextDataOk
-`func (o *VirtualMachineWithConfigContext) GetLocalContextDataOk() (*map[string]interface{}, bool)`
+`func (o *VirtualMachineWithConfigContext) GetLocalContextDataOk() (*interface{}, bool)`
GetLocalContextDataOk returns a tuple with the LocalContextData field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLocalContextData
-`func (o *VirtualMachineWithConfigContext) SetLocalContextData(v map[string]interface{})`
+`func (o *VirtualMachineWithConfigContext) SetLocalContextData(v interface{})`
SetLocalContextData sets LocalContextData field to given value.
@@ -697,20 +698,20 @@ HasCustomFields returns a boolean if a field has been set.
### GetConfigContext
-`func (o *VirtualMachineWithConfigContext) GetConfigContext() map[string]interface{}`
+`func (o *VirtualMachineWithConfigContext) GetConfigContext() interface{}`
GetConfigContext returns the ConfigContext field if non-nil, zero value otherwise.
### GetConfigContextOk
-`func (o *VirtualMachineWithConfigContext) GetConfigContextOk() (*map[string]interface{}, bool)`
+`func (o *VirtualMachineWithConfigContext) GetConfigContextOk() (*interface{}, bool)`
GetConfigContextOk returns a tuple with the ConfigContext field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetConfigContext
-`func (o *VirtualMachineWithConfigContext) SetConfigContext(v map[string]interface{})`
+`func (o *VirtualMachineWithConfigContext) SetConfigContext(v interface{})`
SetConfigContext sets ConfigContext field to given value.
@@ -805,6 +806,26 @@ and a boolean to check if the value has been set.
SetInterfaceCount sets InterfaceCount field to given value.
+### GetVirtualDiskCount
+
+`func (o *VirtualMachineWithConfigContext) GetVirtualDiskCount() int32`
+
+GetVirtualDiskCount returns the VirtualDiskCount field if non-nil, zero value otherwise.
+
+### GetVirtualDiskCountOk
+
+`func (o *VirtualMachineWithConfigContext) GetVirtualDiskCountOk() (*int32, bool)`
+
+GetVirtualDiskCountOk returns a tuple with the VirtualDiskCount field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVirtualDiskCount
+
+`func (o *VirtualMachineWithConfigContext) SetVirtualDiskCount(v int32)`
+
+SetVirtualDiskCount sets VirtualDiskCount 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/VirtualMachineWithConfigContextRequest.md b/docs/VirtualMachineWithConfigContextRequest.md
index f7173d29a0..c7d7e510c8 100644
--- a/docs/VirtualMachineWithConfigContextRequest.md
+++ b/docs/VirtualMachineWithConfigContextRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Status** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | [optional]
+**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]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
**Disk** | Pointer to **NullableInt32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
-**LocalContextData** | Pointer to **map[string]interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [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]
@@ -64,20 +64,20 @@ SetName sets Name field to given value.
### GetStatus
-`func (o *VirtualMachineWithConfigContextRequest) GetStatus() string`
+`func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*string, bool)`
+`func (o *VirtualMachineWithConfigContextRequest) 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 *VirtualMachineWithConfigContextRequest) SetStatus(v string)`
+`func (o *VirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)`
SetStatus sets Status field to given value.
@@ -524,20 +524,20 @@ HasComments returns a boolean if a field has been set.
### GetLocalContextData
-`func (o *VirtualMachineWithConfigContextRequest) GetLocalContextData() map[string]interface{}`
+`func (o *VirtualMachineWithConfigContextRequest) GetLocalContextData() interface{}`
GetLocalContextData returns the LocalContextData field if non-nil, zero value otherwise.
### GetLocalContextDataOk
-`func (o *VirtualMachineWithConfigContextRequest) GetLocalContextDataOk() (*map[string]interface{}, bool)`
+`func (o *VirtualMachineWithConfigContextRequest) GetLocalContextDataOk() (*interface{}, bool)`
GetLocalContextDataOk returns a tuple with the LocalContextData field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLocalContextData
-`func (o *VirtualMachineWithConfigContextRequest) SetLocalContextData(v map[string]interface{})`
+`func (o *VirtualMachineWithConfigContextRequest) SetLocalContextData(v interface{})`
SetLocalContextData sets LocalContextData field to given value.
diff --git a/docs/VirtualizationAPI.md b/docs/VirtualizationAPI.md
new file mode 100644
index 0000000000..0de92f616b
--- /dev/null
+++ b/docs/VirtualizationAPI.md
@@ -0,0 +1,4827 @@
+# \VirtualizationAPI
+
+All URIs are relative to *http://localhost*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**VirtualizationClusterGroupsBulkDestroy**](VirtualizationAPI.md#VirtualizationClusterGroupsBulkDestroy) | **Delete** /api/virtualization/cluster-groups/ |
+[**VirtualizationClusterGroupsBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationClusterGroupsBulkPartialUpdate) | **Patch** /api/virtualization/cluster-groups/ |
+[**VirtualizationClusterGroupsBulkUpdate**](VirtualizationAPI.md#VirtualizationClusterGroupsBulkUpdate) | **Put** /api/virtualization/cluster-groups/ |
+[**VirtualizationClusterGroupsCreate**](VirtualizationAPI.md#VirtualizationClusterGroupsCreate) | **Post** /api/virtualization/cluster-groups/ |
+[**VirtualizationClusterGroupsDestroy**](VirtualizationAPI.md#VirtualizationClusterGroupsDestroy) | **Delete** /api/virtualization/cluster-groups/{id}/ |
+[**VirtualizationClusterGroupsList**](VirtualizationAPI.md#VirtualizationClusterGroupsList) | **Get** /api/virtualization/cluster-groups/ |
+[**VirtualizationClusterGroupsPartialUpdate**](VirtualizationAPI.md#VirtualizationClusterGroupsPartialUpdate) | **Patch** /api/virtualization/cluster-groups/{id}/ |
+[**VirtualizationClusterGroupsRetrieve**](VirtualizationAPI.md#VirtualizationClusterGroupsRetrieve) | **Get** /api/virtualization/cluster-groups/{id}/ |
+[**VirtualizationClusterGroupsUpdate**](VirtualizationAPI.md#VirtualizationClusterGroupsUpdate) | **Put** /api/virtualization/cluster-groups/{id}/ |
+[**VirtualizationClusterTypesBulkDestroy**](VirtualizationAPI.md#VirtualizationClusterTypesBulkDestroy) | **Delete** /api/virtualization/cluster-types/ |
+[**VirtualizationClusterTypesBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationClusterTypesBulkPartialUpdate) | **Patch** /api/virtualization/cluster-types/ |
+[**VirtualizationClusterTypesBulkUpdate**](VirtualizationAPI.md#VirtualizationClusterTypesBulkUpdate) | **Put** /api/virtualization/cluster-types/ |
+[**VirtualizationClusterTypesCreate**](VirtualizationAPI.md#VirtualizationClusterTypesCreate) | **Post** /api/virtualization/cluster-types/ |
+[**VirtualizationClusterTypesDestroy**](VirtualizationAPI.md#VirtualizationClusterTypesDestroy) | **Delete** /api/virtualization/cluster-types/{id}/ |
+[**VirtualizationClusterTypesList**](VirtualizationAPI.md#VirtualizationClusterTypesList) | **Get** /api/virtualization/cluster-types/ |
+[**VirtualizationClusterTypesPartialUpdate**](VirtualizationAPI.md#VirtualizationClusterTypesPartialUpdate) | **Patch** /api/virtualization/cluster-types/{id}/ |
+[**VirtualizationClusterTypesRetrieve**](VirtualizationAPI.md#VirtualizationClusterTypesRetrieve) | **Get** /api/virtualization/cluster-types/{id}/ |
+[**VirtualizationClusterTypesUpdate**](VirtualizationAPI.md#VirtualizationClusterTypesUpdate) | **Put** /api/virtualization/cluster-types/{id}/ |
+[**VirtualizationClustersBulkDestroy**](VirtualizationAPI.md#VirtualizationClustersBulkDestroy) | **Delete** /api/virtualization/clusters/ |
+[**VirtualizationClustersBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationClustersBulkPartialUpdate) | **Patch** /api/virtualization/clusters/ |
+[**VirtualizationClustersBulkUpdate**](VirtualizationAPI.md#VirtualizationClustersBulkUpdate) | **Put** /api/virtualization/clusters/ |
+[**VirtualizationClustersCreate**](VirtualizationAPI.md#VirtualizationClustersCreate) | **Post** /api/virtualization/clusters/ |
+[**VirtualizationClustersDestroy**](VirtualizationAPI.md#VirtualizationClustersDestroy) | **Delete** /api/virtualization/clusters/{id}/ |
+[**VirtualizationClustersList**](VirtualizationAPI.md#VirtualizationClustersList) | **Get** /api/virtualization/clusters/ |
+[**VirtualizationClustersPartialUpdate**](VirtualizationAPI.md#VirtualizationClustersPartialUpdate) | **Patch** /api/virtualization/clusters/{id}/ |
+[**VirtualizationClustersRetrieve**](VirtualizationAPI.md#VirtualizationClustersRetrieve) | **Get** /api/virtualization/clusters/{id}/ |
+[**VirtualizationClustersUpdate**](VirtualizationAPI.md#VirtualizationClustersUpdate) | **Put** /api/virtualization/clusters/{id}/ |
+[**VirtualizationInterfacesBulkDestroy**](VirtualizationAPI.md#VirtualizationInterfacesBulkDestroy) | **Delete** /api/virtualization/interfaces/ |
+[**VirtualizationInterfacesBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationInterfacesBulkPartialUpdate) | **Patch** /api/virtualization/interfaces/ |
+[**VirtualizationInterfacesBulkUpdate**](VirtualizationAPI.md#VirtualizationInterfacesBulkUpdate) | **Put** /api/virtualization/interfaces/ |
+[**VirtualizationInterfacesCreate**](VirtualizationAPI.md#VirtualizationInterfacesCreate) | **Post** /api/virtualization/interfaces/ |
+[**VirtualizationInterfacesDestroy**](VirtualizationAPI.md#VirtualizationInterfacesDestroy) | **Delete** /api/virtualization/interfaces/{id}/ |
+[**VirtualizationInterfacesList**](VirtualizationAPI.md#VirtualizationInterfacesList) | **Get** /api/virtualization/interfaces/ |
+[**VirtualizationInterfacesPartialUpdate**](VirtualizationAPI.md#VirtualizationInterfacesPartialUpdate) | **Patch** /api/virtualization/interfaces/{id}/ |
+[**VirtualizationInterfacesRetrieve**](VirtualizationAPI.md#VirtualizationInterfacesRetrieve) | **Get** /api/virtualization/interfaces/{id}/ |
+[**VirtualizationInterfacesUpdate**](VirtualizationAPI.md#VirtualizationInterfacesUpdate) | **Put** /api/virtualization/interfaces/{id}/ |
+[**VirtualizationVirtualDisksBulkDestroy**](VirtualizationAPI.md#VirtualizationVirtualDisksBulkDestroy) | **Delete** /api/virtualization/virtual-disks/ |
+[**VirtualizationVirtualDisksBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationVirtualDisksBulkPartialUpdate) | **Patch** /api/virtualization/virtual-disks/ |
+[**VirtualizationVirtualDisksBulkUpdate**](VirtualizationAPI.md#VirtualizationVirtualDisksBulkUpdate) | **Put** /api/virtualization/virtual-disks/ |
+[**VirtualizationVirtualDisksCreate**](VirtualizationAPI.md#VirtualizationVirtualDisksCreate) | **Post** /api/virtualization/virtual-disks/ |
+[**VirtualizationVirtualDisksDestroy**](VirtualizationAPI.md#VirtualizationVirtualDisksDestroy) | **Delete** /api/virtualization/virtual-disks/{id}/ |
+[**VirtualizationVirtualDisksList**](VirtualizationAPI.md#VirtualizationVirtualDisksList) | **Get** /api/virtualization/virtual-disks/ |
+[**VirtualizationVirtualDisksPartialUpdate**](VirtualizationAPI.md#VirtualizationVirtualDisksPartialUpdate) | **Patch** /api/virtualization/virtual-disks/{id}/ |
+[**VirtualizationVirtualDisksRetrieve**](VirtualizationAPI.md#VirtualizationVirtualDisksRetrieve) | **Get** /api/virtualization/virtual-disks/{id}/ |
+[**VirtualizationVirtualDisksUpdate**](VirtualizationAPI.md#VirtualizationVirtualDisksUpdate) | **Put** /api/virtualization/virtual-disks/{id}/ |
+[**VirtualizationVirtualMachinesBulkDestroy**](VirtualizationAPI.md#VirtualizationVirtualMachinesBulkDestroy) | **Delete** /api/virtualization/virtual-machines/ |
+[**VirtualizationVirtualMachinesBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationVirtualMachinesBulkPartialUpdate) | **Patch** /api/virtualization/virtual-machines/ |
+[**VirtualizationVirtualMachinesBulkUpdate**](VirtualizationAPI.md#VirtualizationVirtualMachinesBulkUpdate) | **Put** /api/virtualization/virtual-machines/ |
+[**VirtualizationVirtualMachinesCreate**](VirtualizationAPI.md#VirtualizationVirtualMachinesCreate) | **Post** /api/virtualization/virtual-machines/ |
+[**VirtualizationVirtualMachinesDestroy**](VirtualizationAPI.md#VirtualizationVirtualMachinesDestroy) | **Delete** /api/virtualization/virtual-machines/{id}/ |
+[**VirtualizationVirtualMachinesList**](VirtualizationAPI.md#VirtualizationVirtualMachinesList) | **Get** /api/virtualization/virtual-machines/ |
+[**VirtualizationVirtualMachinesPartialUpdate**](VirtualizationAPI.md#VirtualizationVirtualMachinesPartialUpdate) | **Patch** /api/virtualization/virtual-machines/{id}/ |
+[**VirtualizationVirtualMachinesRenderConfigCreate**](VirtualizationAPI.md#VirtualizationVirtualMachinesRenderConfigCreate) | **Post** /api/virtualization/virtual-machines/{id}/render-config/ |
+[**VirtualizationVirtualMachinesRetrieve**](VirtualizationAPI.md#VirtualizationVirtualMachinesRetrieve) | **Get** /api/virtualization/virtual-machines/{id}/ |
+[**VirtualizationVirtualMachinesUpdate**](VirtualizationAPI.md#VirtualizationVirtualMachinesUpdate) | **Put** /api/virtualization/virtual-machines/{id}/ |
+
+
+
+## VirtualizationClusterGroupsBulkDestroy
+
+> VirtualizationClusterGroupsBulkDestroy(ctx).ClusterGroupRequest(clusterGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ clusterGroupRequest := []openapiclient.ClusterGroupRequest{*openapiclient.NewClusterGroupRequest("Name_example", "Slug_example")} // []ClusterGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkDestroy(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **clusterGroupRequest** | [**[]ClusterGroupRequest**](ClusterGroupRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VirtualizationClusterGroupsBulkPartialUpdate
+
+> []ClusterGroup VirtualizationClusterGroupsBulkPartialUpdate(ctx).ClusterGroupRequest(clusterGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ clusterGroupRequest := []openapiclient.ClusterGroupRequest{*openapiclient.NewClusterGroupRequest("Name_example", "Slug_example")} // []ClusterGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkPartialUpdate(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterGroupsBulkPartialUpdate`: []ClusterGroup
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **clusterGroupRequest** | [**[]ClusterGroupRequest**](ClusterGroupRequest.md) | |
+
+### Return type
+
+[**[]ClusterGroup**](ClusterGroup.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)
+
+
+## VirtualizationClusterGroupsBulkUpdate
+
+> []ClusterGroup VirtualizationClusterGroupsBulkUpdate(ctx).ClusterGroupRequest(clusterGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ clusterGroupRequest := []openapiclient.ClusterGroupRequest{*openapiclient.NewClusterGroupRequest("Name_example", "Slug_example")} // []ClusterGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkUpdate(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterGroupsBulkUpdate`: []ClusterGroup
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **clusterGroupRequest** | [**[]ClusterGroupRequest**](ClusterGroupRequest.md) | |
+
+### Return type
+
+[**[]ClusterGroup**](ClusterGroup.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)
+
+
+## VirtualizationClusterGroupsCreate
+
+> ClusterGroup VirtualizationClusterGroupsCreate(ctx).ClusterGroupRequest(clusterGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ clusterGroupRequest := *openapiclient.NewClusterGroupRequest("Name_example", "Slug_example") // ClusterGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsCreate(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterGroupsCreate`: ClusterGroup
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **clusterGroupRequest** | [**ClusterGroupRequest**](ClusterGroupRequest.md) | |
+
+### Return type
+
+[**ClusterGroup**](ClusterGroup.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)
+
+
+## VirtualizationClusterGroupsDestroy
+
+> VirtualizationClusterGroupsDestroy(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 cluster group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 cluster group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsDestroyRequest 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)
+
+
+## VirtualizationClusterGroupsList
+
+> PaginatedClusterGroupList VirtualizationClusterGroupsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterGroupsList`: PaginatedClusterGroupList
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **contact** | **[]int32** | Contact |
+ **contactN** | **[]int32** | Contact |
+ **contactGroup** | **[]int32** | Contact group |
+ **contactGroupN** | **[]int32** | Contact group |
+ **contactRole** | **[]int32** | Contact Role |
+ **contactRoleN** | **[]int32** | Contact Role |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+ **slug** | **[]string** | |
+ **slugEmpty** | **bool** | |
+ **slugIc** | **[]string** | |
+ **slugIe** | **[]string** | |
+ **slugIew** | **[]string** | |
+ **slugIsw** | **[]string** | |
+ **slugN** | **[]string** | |
+ **slugNic** | **[]string** | |
+ **slugNie** | **[]string** | |
+ **slugNiew** | **[]string** | |
+ **slugNisw** | **[]string** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedClusterGroupList**](PaginatedClusterGroupList.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)
+
+
+## VirtualizationClusterGroupsPartialUpdate
+
+> ClusterGroup VirtualizationClusterGroupsPartialUpdate(ctx, id).PatchedClusterGroupRequest(patchedClusterGroupRequest).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 cluster group.
+ patchedClusterGroupRequest := *openapiclient.NewPatchedClusterGroupRequest() // PatchedClusterGroupRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsPartialUpdate(context.Background(), id).PatchedClusterGroupRequest(patchedClusterGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterGroupsPartialUpdate`: ClusterGroup
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsPartialUpdate`: %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 cluster group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedClusterGroupRequest** | [**PatchedClusterGroupRequest**](PatchedClusterGroupRequest.md) | |
+
+### Return type
+
+[**ClusterGroup**](ClusterGroup.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)
+
+
+## VirtualizationClusterGroupsRetrieve
+
+> ClusterGroup VirtualizationClusterGroupsRetrieve(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 cluster group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterGroupsRetrieve`: ClusterGroup
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsRetrieve`: %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 cluster group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**ClusterGroup**](ClusterGroup.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)
+
+
+## VirtualizationClusterGroupsUpdate
+
+> ClusterGroup VirtualizationClusterGroupsUpdate(ctx, id).ClusterGroupRequest(clusterGroupRequest).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 cluster group.
+ clusterGroupRequest := *openapiclient.NewClusterGroupRequest("Name_example", "Slug_example") // ClusterGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsUpdate(context.Background(), id).ClusterGroupRequest(clusterGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterGroupsUpdate`: ClusterGroup
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsUpdate`: %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 cluster group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **clusterGroupRequest** | [**ClusterGroupRequest**](ClusterGroupRequest.md) | |
+
+### Return type
+
+[**ClusterGroup**](ClusterGroup.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)
+
+
+## VirtualizationClusterTypesBulkDestroy
+
+> VirtualizationClusterTypesBulkDestroy(ctx).ClusterTypeRequest(clusterTypeRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ clusterTypeRequest := []openapiclient.ClusterTypeRequest{*openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")} // []ClusterTypeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkDestroy(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterTypesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **clusterTypeRequest** | [**[]ClusterTypeRequest**](ClusterTypeRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VirtualizationClusterTypesBulkPartialUpdate
+
+> []ClusterType VirtualizationClusterTypesBulkPartialUpdate(ctx).ClusterTypeRequest(clusterTypeRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ clusterTypeRequest := []openapiclient.ClusterTypeRequest{*openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")} // []ClusterTypeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkPartialUpdate(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterTypesBulkPartialUpdate`: []ClusterType
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterTypesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **clusterTypeRequest** | [**[]ClusterTypeRequest**](ClusterTypeRequest.md) | |
+
+### Return type
+
+[**[]ClusterType**](ClusterType.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)
+
+
+## VirtualizationClusterTypesBulkUpdate
+
+> []ClusterType VirtualizationClusterTypesBulkUpdate(ctx).ClusterTypeRequest(clusterTypeRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ clusterTypeRequest := []openapiclient.ClusterTypeRequest{*openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")} // []ClusterTypeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkUpdate(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterTypesBulkUpdate`: []ClusterType
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterTypesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **clusterTypeRequest** | [**[]ClusterTypeRequest**](ClusterTypeRequest.md) | |
+
+### Return type
+
+[**[]ClusterType**](ClusterType.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)
+
+
+## VirtualizationClusterTypesCreate
+
+> ClusterType VirtualizationClusterTypesCreate(ctx).ClusterTypeRequest(clusterTypeRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ clusterTypeRequest := *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example") // ClusterTypeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesCreate(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterTypesCreate`: ClusterType
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterTypesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **clusterTypeRequest** | [**ClusterTypeRequest**](ClusterTypeRequest.md) | |
+
+### Return type
+
+[**ClusterType**](ClusterType.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)
+
+
+## VirtualizationClusterTypesDestroy
+
+> VirtualizationClusterTypesDestroy(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 cluster type.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 cluster type. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterTypesDestroyRequest 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)
+
+
+## VirtualizationClusterTypesList
+
+> PaginatedClusterTypeList VirtualizationClusterTypesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterTypesList`: PaginatedClusterTypeList
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterTypesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+ **slug** | **[]string** | |
+ **slugEmpty** | **bool** | |
+ **slugIc** | **[]string** | |
+ **slugIe** | **[]string** | |
+ **slugIew** | **[]string** | |
+ **slugIsw** | **[]string** | |
+ **slugN** | **[]string** | |
+ **slugNic** | **[]string** | |
+ **slugNie** | **[]string** | |
+ **slugNiew** | **[]string** | |
+ **slugNisw** | **[]string** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedClusterTypeList**](PaginatedClusterTypeList.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)
+
+
+## VirtualizationClusterTypesPartialUpdate
+
+> ClusterType VirtualizationClusterTypesPartialUpdate(ctx, id).PatchedClusterTypeRequest(patchedClusterTypeRequest).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 cluster type.
+ patchedClusterTypeRequest := *openapiclient.NewPatchedClusterTypeRequest() // PatchedClusterTypeRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesPartialUpdate(context.Background(), id).PatchedClusterTypeRequest(patchedClusterTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterTypesPartialUpdate`: ClusterType
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesPartialUpdate`: %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 cluster type. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterTypesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedClusterTypeRequest** | [**PatchedClusterTypeRequest**](PatchedClusterTypeRequest.md) | |
+
+### Return type
+
+[**ClusterType**](ClusterType.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)
+
+
+## VirtualizationClusterTypesRetrieve
+
+> ClusterType VirtualizationClusterTypesRetrieve(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 cluster type.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterTypesRetrieve`: ClusterType
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesRetrieve`: %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 cluster type. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterTypesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**ClusterType**](ClusterType.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)
+
+
+## VirtualizationClusterTypesUpdate
+
+> ClusterType VirtualizationClusterTypesUpdate(ctx, id).ClusterTypeRequest(clusterTypeRequest).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 cluster type.
+ clusterTypeRequest := *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example") // ClusterTypeRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesUpdate(context.Background(), id).ClusterTypeRequest(clusterTypeRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClusterTypesUpdate`: ClusterType
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesUpdate`: %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 cluster type. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClusterTypesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **clusterTypeRequest** | [**ClusterTypeRequest**](ClusterTypeRequest.md) | |
+
+### Return type
+
+[**ClusterType**](ClusterType.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)
+
+
+## VirtualizationClustersBulkDestroy
+
+> VirtualizationClustersBulkDestroy(ctx).ClusterRequest(clusterRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewNestedClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkDestroy(context.Background()).ClusterRequest(clusterRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClustersBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **clusterRequest** | [**[]ClusterRequest**](ClusterRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VirtualizationClustersBulkPartialUpdate
+
+> []Cluster VirtualizationClustersBulkPartialUpdate(ctx).ClusterRequest(clusterRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewNestedClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkPartialUpdate(context.Background()).ClusterRequest(clusterRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClustersBulkPartialUpdate`: []Cluster
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClustersBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **clusterRequest** | [**[]ClusterRequest**](ClusterRequest.md) | |
+
+### Return type
+
+[**[]Cluster**](Cluster.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)
+
+
+## VirtualizationClustersBulkUpdate
+
+> []Cluster VirtualizationClustersBulkUpdate(ctx).ClusterRequest(clusterRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewNestedClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkUpdate(context.Background()).ClusterRequest(clusterRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClustersBulkUpdate`: []Cluster
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClustersBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **clusterRequest** | [**[]ClusterRequest**](ClusterRequest.md) | |
+
+### Return type
+
+[**[]Cluster**](Cluster.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)
+
+
+## VirtualizationClustersCreate
+
+> Cluster VirtualizationClustersCreate(ctx).WritableClusterRequest(writableClusterRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", int32(123)) // WritableClusterRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersCreate(context.Background()).WritableClusterRequest(writableClusterRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClustersCreate`: Cluster
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClustersCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableClusterRequest** | [**WritableClusterRequest**](WritableClusterRequest.md) | |
+
+### Return type
+
+[**Cluster**](Cluster.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)
+
+
+## VirtualizationClustersDestroy
+
+> VirtualizationClustersDestroy(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 cluster.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VirtualizationAPI.VirtualizationClustersDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 cluster. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClustersDestroyRequest 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)
+
+
+## VirtualizationClustersList
+
+> PaginatedClusterList VirtualizationClustersList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ 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)
+ group := []string{"Inner_example"} // []string | Parent group (slug) (optional)
+ groupN := []string{"Inner_example"} // []string | Parent group (slug) (optional)
+ groupId := []*int32{int32(123)} // []*int32 | Parent group (ID) (optional)
+ groupIdN := []*int32{int32(123)} // []*int32 | Parent group (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
+ siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ type_ := []string{"Inner_example"} // []string | Cluster type (slug) (optional)
+ typeN := []string{"Inner_example"} // []string | Cluster type (slug) (optional)
+ typeId := []int32{int32(123)} // []int32 | Cluster type (ID) (optional)
+ typeIdN := []int32{int32(123)} // []int32 | Cluster type (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClustersList`: PaginatedClusterList
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClustersListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **contact** | **[]int32** | Contact |
+ **contactN** | **[]int32** | Contact |
+ **contactGroup** | **[]int32** | Contact group |
+ **contactGroupN** | **[]int32** | Contact group |
+ **contactRole** | **[]int32** | Contact Role |
+ **contactRoleN** | **[]int32** | Contact Role |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **group** | **[]string** | Parent group (slug) |
+ **groupN** | **[]string** | Parent group (slug) |
+ **groupId** | **[]int32** | Parent group (ID) |
+ **groupIdN** | **[]int32** | Parent group (ID) |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **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 |
+ **region** | **[]int32** | Region (slug) |
+ **regionN** | **[]int32** | Region (slug) |
+ **regionId** | **[]int32** | Region (ID) |
+ **regionIdN** | **[]int32** | Region (ID) |
+ **site** | **[]string** | Site (slug) |
+ **siteN** | **[]string** | Site (slug) |
+ **siteGroup** | **[]int32** | Site group (slug) |
+ **siteGroupN** | **[]int32** | Site group (slug) |
+ **siteGroupId** | **[]int32** | Site group (ID) |
+ **siteGroupIdN** | **[]int32** | Site group (ID) |
+ **siteId** | **[]int32** | Site (ID) |
+ **siteIdN** | **[]int32** | Site (ID) |
+ **status** | **[]string** | |
+ **statusN** | **[]string** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **tenant** | **[]string** | Tenant (slug) |
+ **tenantN** | **[]string** | Tenant (slug) |
+ **tenantGroup** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupN** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupId** | **[]int32** | Tenant Group (ID) |
+ **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
+ **tenantId** | **[]int32** | Tenant (ID) |
+ **tenantIdN** | **[]int32** | Tenant (ID) |
+ **type_** | **[]string** | Cluster type (slug) |
+ **typeN** | **[]string** | Cluster type (slug) |
+ **typeId** | **[]int32** | Cluster type (ID) |
+ **typeIdN** | **[]int32** | Cluster type (ID) |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedClusterList**](PaginatedClusterList.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)
+
+
+## VirtualizationClustersPartialUpdate
+
+> Cluster VirtualizationClustersPartialUpdate(ctx, id).PatchedWritableClusterRequest(patchedWritableClusterRequest).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 cluster.
+ patchedWritableClusterRequest := *openapiclient.NewPatchedWritableClusterRequest() // PatchedWritableClusterRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersPartialUpdate(context.Background(), id).PatchedWritableClusterRequest(patchedWritableClusterRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClustersPartialUpdate`: Cluster
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersPartialUpdate`: %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 cluster. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClustersPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableClusterRequest** | [**PatchedWritableClusterRequest**](PatchedWritableClusterRequest.md) | |
+
+### Return type
+
+[**Cluster**](Cluster.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)
+
+
+## VirtualizationClustersRetrieve
+
+> Cluster VirtualizationClustersRetrieve(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 cluster.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClustersRetrieve`: Cluster
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersRetrieve`: %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 cluster. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClustersRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**Cluster**](Cluster.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)
+
+
+## VirtualizationClustersUpdate
+
+> Cluster VirtualizationClustersUpdate(ctx, id).WritableClusterRequest(writableClusterRequest).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 cluster.
+ writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", int32(123)) // WritableClusterRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersUpdate(context.Background(), id).WritableClusterRequest(writableClusterRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationClustersUpdate`: Cluster
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersUpdate`: %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 cluster. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationClustersUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableClusterRequest** | [**WritableClusterRequest**](WritableClusterRequest.md) | |
+
+### Return type
+
+[**Cluster**](Cluster.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)
+
+
+## VirtualizationInterfacesBulkDestroy
+
+> VirtualizationInterfacesBulkDestroy(ctx).VMInterfaceRequest(vMInterfaceRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkDestroy(context.Background()).VMInterfaceRequest(vMInterfaceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationInterfacesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vMInterfaceRequest** | [**[]VMInterfaceRequest**](VMInterfaceRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VirtualizationInterfacesBulkPartialUpdate
+
+> []VMInterface VirtualizationInterfacesBulkPartialUpdate(ctx).VMInterfaceRequest(vMInterfaceRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkPartialUpdate(context.Background()).VMInterfaceRequest(vMInterfaceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationInterfacesBulkPartialUpdate`: []VMInterface
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationInterfacesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vMInterfaceRequest** | [**[]VMInterfaceRequest**](VMInterfaceRequest.md) | |
+
+### Return type
+
+[**[]VMInterface**](VMInterface.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)
+
+
+## VirtualizationInterfacesBulkUpdate
+
+> []VMInterface VirtualizationInterfacesBulkUpdate(ctx).VMInterfaceRequest(vMInterfaceRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkUpdate(context.Background()).VMInterfaceRequest(vMInterfaceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationInterfacesBulkUpdate`: []VMInterface
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationInterfacesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vMInterfaceRequest** | [**[]VMInterfaceRequest**](VMInterfaceRequest.md) | |
+
+### Return type
+
+[**[]VMInterface**](VMInterface.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)
+
+
+## VirtualizationInterfacesCreate
+
+> VMInterface VirtualizationInterfacesCreate(ctx).WritableVMInterfaceRequest(writableVMInterfaceRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(int32(123), "Name_example") // WritableVMInterfaceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesCreate(context.Background()).WritableVMInterfaceRequest(writableVMInterfaceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationInterfacesCreate`: VMInterface
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationInterfacesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableVMInterfaceRequest** | [**WritableVMInterfaceRequest**](WritableVMInterfaceRequest.md) | |
+
+### Return type
+
+[**VMInterface**](VMInterface.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)
+
+
+## VirtualizationInterfacesDestroy
+
+> VirtualizationInterfacesDestroy(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 interface.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 interface. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationInterfacesDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ bridgeId := []int32{int32(123)} // []int32 | Bridged interface (ID) (optional)
+ bridgeIdN := []int32{int32(123)} // []int32 | Bridged interface (ID) (optional)
+ cluster := []string{"Inner_example"} // []string | Cluster (optional)
+ clusterN := []string{"Inner_example"} // []string | Cluster (optional)
+ clusterId := []int32{int32(123)} // []int32 | Cluster (ID) (optional)
+ clusterIdN := []int32{int32(123)} // []int32 | Cluster (ID) (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ l2vpn := []*int64{int64(123)} // []*int64 | L2VPN (optional)
+ l2vpnN := []*int64{int64(123)} // []*int64 | L2VPN (optional)
+ l2vpnId := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
+ l2vpnIdN := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ macAddress := []string{"Inner_example"} // []string | (optional)
+ macAddressIc := []string{"Inner_example"} // []string | (optional)
+ macAddressIe := []string{"Inner_example"} // []string | (optional)
+ macAddressIew := []string{"Inner_example"} // []string | (optional)
+ macAddressIsw := []string{"Inner_example"} // []string | (optional)
+ macAddressN := []string{"Inner_example"} // []string | (optional)
+ macAddressNic := []string{"Inner_example"} // []string | (optional)
+ macAddressNie := []string{"Inner_example"} // []string | (optional)
+ macAddressNiew := []string{"Inner_example"} // []string | (optional)
+ macAddressNisw := []string{"Inner_example"} // []string | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ mtu := []int32{int32(123)} // []int32 | (optional)
+ mtuEmpty := true // bool | (optional)
+ mtuGt := []int32{int32(123)} // []int32 | (optional)
+ mtuGte := []int32{int32(123)} // []int32 | (optional)
+ mtuLt := []int32{int32(123)} // []int32 | (optional)
+ mtuLte := []int32{int32(123)} // []int32 | (optional)
+ mtuN := []int32{int32(123)} // []int32 | (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)
+ parentId := []int32{int32(123)} // []int32 | Parent interface (ID) (optional)
+ parentIdN := []int32{int32(123)} // []int32 | Parent interface (ID) (optional)
+ q := "q_example" // string | Search (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualMachine := []string{"Inner_example"} // []string | Virtual machine (optional)
+ virtualMachineN := []string{"Inner_example"} // []string | Virtual machine (optional)
+ virtualMachineId := []int32{int32(123)} // []int32 | Virtual machine (ID) (optional)
+ virtualMachineIdN := []int32{int32(123)} // []int32 | Virtual machine (ID) (optional)
+ vlan := "vlan_example" // string | Assigned VID (optional)
+ vlanId := "vlanId_example" // string | Assigned VLAN (optional)
+ vrf := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
+ vrfN := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
+ vrfId := []int32{int32(123)} // []int32 | VRF (optional)
+ vrfIdN := []int32{int32(123)} // []int32 | VRF (optional)
+
+ 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()
+ 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)
+ }
+ // response from `VirtualizationInterfacesList`: PaginatedVMInterfaceList
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationInterfacesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **bridgeId** | **[]int32** | Bridged interface (ID) |
+ **bridgeIdN** | **[]int32** | Bridged interface (ID) |
+ **cluster** | **[]string** | Cluster |
+ **clusterN** | **[]string** | Cluster |
+ **clusterId** | **[]int32** | Cluster (ID) |
+ **clusterIdN** | **[]int32** | Cluster (ID) |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **enabled** | **bool** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **l2vpn** | **[]int64** | L2VPN |
+ **l2vpnN** | **[]int64** | L2VPN |
+ **l2vpnId** | **[]int32** | L2VPN (ID) |
+ **l2vpnIdN** | **[]int32** | L2VPN (ID) |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **macAddress** | **[]string** | |
+ **macAddressIc** | **[]string** | |
+ **macAddressIe** | **[]string** | |
+ **macAddressIew** | **[]string** | |
+ **macAddressIsw** | **[]string** | |
+ **macAddressN** | **[]string** | |
+ **macAddressNic** | **[]string** | |
+ **macAddressNie** | **[]string** | |
+ **macAddressNiew** | **[]string** | |
+ **macAddressNisw** | **[]string** | |
+ **modifiedByRequest** | **string** | |
+ **mtu** | **[]int32** | |
+ **mtuEmpty** | **bool** | |
+ **mtuGt** | **[]int32** | |
+ **mtuGte** | **[]int32** | |
+ **mtuLt** | **[]int32** | |
+ **mtuLte** | **[]int32** | |
+ **mtuN** | **[]int32** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **parentId** | **[]int32** | Parent interface (ID) |
+ **parentIdN** | **[]int32** | Parent interface (ID) |
+ **q** | **string** | Search |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+ **virtualMachine** | **[]string** | Virtual machine |
+ **virtualMachineN** | **[]string** | Virtual machine |
+ **virtualMachineId** | **[]int32** | Virtual machine (ID) |
+ **virtualMachineIdN** | **[]int32** | Virtual machine (ID) |
+ **vlan** | **string** | Assigned VID |
+ **vlanId** | **string** | Assigned VLAN |
+ **vrf** | **[]string** | VRF (RD) |
+ **vrfN** | **[]string** | VRF (RD) |
+ **vrfId** | **[]int32** | VRF |
+ **vrfIdN** | **[]int32** | VRF |
+
+### Return type
+
+[**PaginatedVMInterfaceList**](PaginatedVMInterfaceList.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)
+
+
+## VirtualizationInterfacesPartialUpdate
+
+> VMInterface VirtualizationInterfacesPartialUpdate(ctx, id).PatchedWritableVMInterfaceRequest(patchedWritableVMInterfaceRequest).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 interface.
+ patchedWritableVMInterfaceRequest := *openapiclient.NewPatchedWritableVMInterfaceRequest() // PatchedWritableVMInterfaceRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesPartialUpdate(context.Background(), id).PatchedWritableVMInterfaceRequest(patchedWritableVMInterfaceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationInterfacesPartialUpdate`: VMInterface
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesPartialUpdate`: %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 interface. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationInterfacesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableVMInterfaceRequest** | [**PatchedWritableVMInterfaceRequest**](PatchedWritableVMInterfaceRequest.md) | |
+
+### Return type
+
+[**VMInterface**](VMInterface.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)
+
+
+## VirtualizationInterfacesRetrieve
+
+> VMInterface VirtualizationInterfacesRetrieve(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 interface.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationInterfacesRetrieve`: VMInterface
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesRetrieve`: %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 interface. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationInterfacesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**VMInterface**](VMInterface.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)
+
+
+## VirtualizationInterfacesUpdate
+
+> VMInterface VirtualizationInterfacesUpdate(ctx, id).WritableVMInterfaceRequest(writableVMInterfaceRequest).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 interface.
+ writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(int32(123), "Name_example") // WritableVMInterfaceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesUpdate(context.Background(), id).WritableVMInterfaceRequest(writableVMInterfaceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationInterfacesUpdate`: VMInterface
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesUpdate`: %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 interface. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationInterfacesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableVMInterfaceRequest** | [**WritableVMInterfaceRequest**](WritableVMInterfaceRequest.md) | |
+
+### Return type
+
+[**VMInterface**](VMInterface.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)
+
+
+## VirtualizationVirtualDisksBulkDestroy
+
+> VirtualizationVirtualDisksBulkDestroy(ctx).VirtualDiskRequest(virtualDiskRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksBulkDestroy(context.Background()).VirtualDiskRequest(virtualDiskRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualDisksBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualDisksBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **virtualDiskRequest** | [**[]VirtualDiskRequest**](VirtualDiskRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VirtualizationVirtualDisksBulkPartialUpdate
+
+> []VirtualDisk VirtualizationVirtualDisksBulkPartialUpdate(ctx).VirtualDiskRequest(virtualDiskRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksBulkPartialUpdate(context.Background()).VirtualDiskRequest(virtualDiskRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualDisksBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationVirtualDisksBulkPartialUpdate`: []VirtualDisk
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualDisksBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualDisksBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **virtualDiskRequest** | [**[]VirtualDiskRequest**](VirtualDiskRequest.md) | |
+
+### Return type
+
+[**[]VirtualDisk**](VirtualDisk.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)
+
+
+## VirtualizationVirtualDisksBulkUpdate
+
+> []VirtualDisk VirtualizationVirtualDisksBulkUpdate(ctx).VirtualDiskRequest(virtualDiskRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksBulkUpdate(context.Background()).VirtualDiskRequest(virtualDiskRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualDisksBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationVirtualDisksBulkUpdate`: []VirtualDisk
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualDisksBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualDisksBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **virtualDiskRequest** | [**[]VirtualDiskRequest**](VirtualDiskRequest.md) | |
+
+### Return type
+
+[**[]VirtualDisk**](VirtualDisk.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)
+
+
+## VirtualizationVirtualDisksCreate
+
+> VirtualDisk VirtualizationVirtualDisksCreate(ctx).WritableVirtualDiskRequest(writableVirtualDiskRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableVirtualDiskRequest := *openapiclient.NewWritableVirtualDiskRequest(int32(123), "Name_example", int32(123)) // WritableVirtualDiskRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksCreate(context.Background()).WritableVirtualDiskRequest(writableVirtualDiskRequest).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)
+ }
+ // response from `VirtualizationVirtualDisksCreate`: VirtualDisk
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualDisksCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualDisksCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableVirtualDiskRequest** | [**WritableVirtualDiskRequest**](WritableVirtualDiskRequest.md) | |
+
+### Return type
+
+[**VirtualDisk**](VirtualDisk.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)
+
+
+## VirtualizationVirtualDisksDestroy
+
+> VirtualizationVirtualDisksDestroy(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 virtual disk.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualDisksDestroy``: %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 virtual disk. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualDisksDestroyRequest 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)
+
+
+## VirtualizationVirtualDisksList
+
+> PaginatedVirtualDiskList VirtualizationVirtualDisksList(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).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ 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)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualMachine := []string{"Inner_example"} // []string | Virtual machine (optional)
+ virtualMachineN := []string{"Inner_example"} // []string | Virtual machine (optional)
+ virtualMachineId := []int32{int32(123)} // []int32 | Virtual machine (ID) (optional)
+ virtualMachineIdN := []int32{int32(123)} // []int32 | Virtual machine (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksList(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).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).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 `VirtualizationAPI.VirtualizationVirtualDisksList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationVirtualDisksList`: PaginatedVirtualDiskList
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualDisksList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualDisksListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+ **size** | **[]int32** | |
+ **sizeEmpty** | **bool** | |
+ **sizeGt** | **[]int32** | |
+ **sizeGte** | **[]int32** | |
+ **sizeLt** | **[]int32** | |
+ **sizeLte** | **[]int32** | |
+ **sizeN** | **[]int32** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+ **virtualMachine** | **[]string** | Virtual machine |
+ **virtualMachineN** | **[]string** | Virtual machine |
+ **virtualMachineId** | **[]int32** | Virtual machine (ID) |
+ **virtualMachineIdN** | **[]int32** | Virtual machine (ID) |
+
+### Return type
+
+[**PaginatedVirtualDiskList**](PaginatedVirtualDiskList.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)
+
+
+## VirtualizationVirtualDisksPartialUpdate
+
+> VirtualDisk VirtualizationVirtualDisksPartialUpdate(ctx, id).PatchedWritableVirtualDiskRequest(patchedWritableVirtualDiskRequest).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 virtual disk.
+ patchedWritableVirtualDiskRequest := *openapiclient.NewPatchedWritableVirtualDiskRequest() // PatchedWritableVirtualDiskRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksPartialUpdate(context.Background(), id).PatchedWritableVirtualDiskRequest(patchedWritableVirtualDiskRequest).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)
+ }
+ // response from `VirtualizationVirtualDisksPartialUpdate`: VirtualDisk
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualDisksPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this virtual disk. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualDisksPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableVirtualDiskRequest** | [**PatchedWritableVirtualDiskRequest**](PatchedWritableVirtualDiskRequest.md) | |
+
+### Return type
+
+[**VirtualDisk**](VirtualDisk.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)
+
+
+## VirtualizationVirtualDisksRetrieve
+
+> VirtualDisk VirtualizationVirtualDisksRetrieve(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 virtual disk.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualDisksRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationVirtualDisksRetrieve`: VirtualDisk
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualDisksRetrieve`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this virtual disk. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualDisksRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**VirtualDisk**](VirtualDisk.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)
+
+
+## VirtualizationVirtualDisksUpdate
+
+> VirtualDisk VirtualizationVirtualDisksUpdate(ctx, id).WritableVirtualDiskRequest(writableVirtualDiskRequest).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 virtual disk.
+ writableVirtualDiskRequest := *openapiclient.NewWritableVirtualDiskRequest(int32(123), "Name_example", int32(123)) // WritableVirtualDiskRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksUpdate(context.Background(), id).WritableVirtualDiskRequest(writableVirtualDiskRequest).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)
+ }
+ // response from `VirtualizationVirtualDisksUpdate`: VirtualDisk
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualDisksUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this virtual disk. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualDisksUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableVirtualDiskRequest** | [**WritableVirtualDiskRequest**](WritableVirtualDiskRequest.md) | |
+
+### Return type
+
+[**VirtualDisk**](VirtualDisk.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)
+
+
+## VirtualizationVirtualMachinesBulkDestroy
+
+> VirtualizationVirtualMachinesBulkDestroy(ctx).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ virtualMachineWithConfigContextRequest := []openapiclient.VirtualMachineWithConfigContextRequest{*openapiclient.NewVirtualMachineWithConfigContextRequest("Name_example")} // []VirtualMachineWithConfigContextRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkDestroy(context.Background()).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **virtualMachineWithConfigContextRequest** | [**[]VirtualMachineWithConfigContextRequest**](VirtualMachineWithConfigContextRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VirtualizationVirtualMachinesBulkPartialUpdate
+
+> []VirtualMachineWithConfigContext VirtualizationVirtualMachinesBulkPartialUpdate(ctx).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ virtualMachineWithConfigContextRequest := []openapiclient.VirtualMachineWithConfigContextRequest{*openapiclient.NewVirtualMachineWithConfigContextRequest("Name_example")} // []VirtualMachineWithConfigContextRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkPartialUpdate(context.Background()).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationVirtualMachinesBulkPartialUpdate`: []VirtualMachineWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **virtualMachineWithConfigContextRequest** | [**[]VirtualMachineWithConfigContextRequest**](VirtualMachineWithConfigContextRequest.md) | |
+
+### Return type
+
+[**[]VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.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)
+
+
+## VirtualizationVirtualMachinesBulkUpdate
+
+> []VirtualMachineWithConfigContext VirtualizationVirtualMachinesBulkUpdate(ctx).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ virtualMachineWithConfigContextRequest := []openapiclient.VirtualMachineWithConfigContextRequest{*openapiclient.NewVirtualMachineWithConfigContextRequest("Name_example")} // []VirtualMachineWithConfigContextRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkUpdate(context.Background()).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationVirtualMachinesBulkUpdate`: []VirtualMachineWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **virtualMachineWithConfigContextRequest** | [**[]VirtualMachineWithConfigContextRequest**](VirtualMachineWithConfigContextRequest.md) | |
+
+### Return type
+
+[**[]VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.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)
+
+
+## VirtualizationVirtualMachinesCreate
+
+> VirtualMachineWithConfigContext VirtualizationVirtualMachinesCreate(ctx).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableVirtualMachineWithConfigContextRequest := *openapiclient.NewWritableVirtualMachineWithConfigContextRequest("Name_example") // WritableVirtualMachineWithConfigContextRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesCreate(context.Background()).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationVirtualMachinesCreate`: VirtualMachineWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableVirtualMachineWithConfigContextRequest** | [**WritableVirtualMachineWithConfigContextRequest**](WritableVirtualMachineWithConfigContextRequest.md) | |
+
+### Return type
+
+[**VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.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)
+
+
+## VirtualizationVirtualMachinesDestroy
+
+> VirtualizationVirtualMachinesDestroy(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 virtual machine.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "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 virtual machine. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ cluster := []string{"Inner_example"} // []string | Cluster (optional)
+ clusterN := []string{"Inner_example"} // []string | Cluster (optional)
+ clusterGroup := []string{"Inner_example"} // []string | Cluster group (slug) (optional)
+ clusterGroupN := []string{"Inner_example"} // []string | Cluster group (slug) (optional)
+ clusterGroupId := []int32{int32(123)} // []int32 | Cluster group (ID) (optional)
+ clusterGroupIdN := []int32{int32(123)} // []int32 | Cluster group (ID) (optional)
+ clusterId := []*int32{int32(123)} // []*int32 | Cluster (ID) (optional)
+ clusterIdN := []*int32{int32(123)} // []*int32 | Cluster (ID) (optional)
+ clusterType := []string{"Inner_example"} // []string | Cluster type (slug) (optional)
+ clusterTypeN := []string{"Inner_example"} // []string | Cluster type (slug) (optional)
+ clusterTypeId := []int32{int32(123)} // []int32 | Cluster type (ID) (optional)
+ clusterTypeIdN := []int32{int32(123)} // []int32 | Cluster type (ID) (optional)
+ configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
+ configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
+ contact := []int32{int32(123)} // []int32 | Contact (optional)
+ contactN := []int32{int32(123)} // []int32 | Contact (optional)
+ contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
+ contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
+ contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ device := []*string{"Inner_example"} // []*string | Device (optional)
+ deviceN := []*string{"Inner_example"} // []*string | Device (optional)
+ deviceId := []*int32{int32(123)} // []*int32 | Device (ID) (optional)
+ deviceIdN := []*int32{int32(123)} // []*int32 | Device (ID) (optional)
+ disk := []int32{int32(123)} // []int32 | (optional)
+ diskEmpty := true // bool | (optional)
+ diskGt := []int32{int32(123)} // []int32 | (optional)
+ diskGte := []int32{int32(123)} // []int32 | (optional)
+ diskLt := []int32{int32(123)} // []int32 | (optional)
+ diskLte := []int32{int32(123)} // []int32 | (optional)
+ diskN := []int32{int32(123)} // []int32 | (optional)
+ hasPrimaryIp := true // bool | Has a primary IP (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ localContextData := true // bool | Has local config context data (optional)
+ macAddress := []string{"Inner_example"} // []string | (optional)
+ macAddressIc := []string{"Inner_example"} // []string | (optional)
+ macAddressIe := []string{"Inner_example"} // []string | (optional)
+ macAddressIew := []string{"Inner_example"} // []string | (optional)
+ macAddressIsw := []string{"Inner_example"} // []string | (optional)
+ macAddressN := []string{"Inner_example"} // []string | (optional)
+ macAddressNic := []string{"Inner_example"} // []string | (optional)
+ macAddressNie := []string{"Inner_example"} // []string | (optional)
+ macAddressNiew := []string{"Inner_example"} // []string | (optional)
+ macAddressNisw := []string{"Inner_example"} // []string | (optional)
+ memory := []int32{int32(123)} // []int32 | (optional)
+ memoryEmpty := true // bool | (optional)
+ memoryGt := []int32{int32(123)} // []int32 | (optional)
+ memoryGte := []int32{int32(123)} // []int32 | (optional)
+ memoryLt := []int32{int32(123)} // []int32 | (optional)
+ memoryLte := []int32{int32(123)} // []int32 | (optional)
+ memoryN := []int32{int32(123)} // []int32 | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ platform := []string{"Inner_example"} // []string | Platform (slug) (optional)
+ platformN := []string{"Inner_example"} // []string | Platform (slug) (optional)
+ platformId := []*int32{int32(123)} // []*int32 | Platform (ID) (optional)
+ platformIdN := []*int32{int32(123)} // []*int32 | Platform (ID) (optional)
+ primaryIp4Id := []int32{int32(123)} // []int32 | Primary IPv4 (ID) (optional)
+ primaryIp4IdN := []int32{int32(123)} // []int32 | Primary IPv4 (ID) (optional)
+ primaryIp6Id := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional)
+ primaryIp6IdN := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional)
+ q := "q_example" // string | Search (optional)
+ region := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
+ regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
+ role := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
+ roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
+ roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
+ site := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
+ siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
+ siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
+ siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
+ siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ vcpus := []float64{float64(123)} // []float64 | (optional)
+ vcpusEmpty := true // bool | (optional)
+ vcpusGt := []float64{float64(123)} // []float64 | (optional)
+ vcpusGte := []float64{float64(123)} // []float64 | (optional)
+ vcpusLt := []float64{float64(123)} // []float64 | (optional)
+ vcpusLte := []float64{float64(123)} // []float64 | (optional)
+ vcpusN := []float64{float64(123)} // []float64 | (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()
+ 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)
+ }
+ // response from `VirtualizationVirtualMachinesList`: PaginatedVirtualMachineWithConfigContextList
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **cluster** | **[]string** | Cluster |
+ **clusterN** | **[]string** | Cluster |
+ **clusterGroup** | **[]string** | Cluster group (slug) |
+ **clusterGroupN** | **[]string** | Cluster group (slug) |
+ **clusterGroupId** | **[]int32** | Cluster group (ID) |
+ **clusterGroupIdN** | **[]int32** | Cluster group (ID) |
+ **clusterId** | **[]int32** | Cluster (ID) |
+ **clusterIdN** | **[]int32** | Cluster (ID) |
+ **clusterType** | **[]string** | Cluster type (slug) |
+ **clusterTypeN** | **[]string** | Cluster type (slug) |
+ **clusterTypeId** | **[]int32** | Cluster type (ID) |
+ **clusterTypeIdN** | **[]int32** | Cluster type (ID) |
+ **configTemplateId** | **[]int32** | Config template (ID) |
+ **configTemplateIdN** | **[]int32** | Config template (ID) |
+ **contact** | **[]int32** | Contact |
+ **contactN** | **[]int32** | Contact |
+ **contactGroup** | **[]int32** | Contact group |
+ **contactGroupN** | **[]int32** | Contact group |
+ **contactRole** | **[]int32** | Contact Role |
+ **contactRoleN** | **[]int32** | Contact Role |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **device** | **[]string** | Device |
+ **deviceN** | **[]string** | Device |
+ **deviceId** | **[]int32** | Device (ID) |
+ **deviceIdN** | **[]int32** | Device (ID) |
+ **disk** | **[]int32** | |
+ **diskEmpty** | **bool** | |
+ **diskGt** | **[]int32** | |
+ **diskGte** | **[]int32** | |
+ **diskLt** | **[]int32** | |
+ **diskLte** | **[]int32** | |
+ **diskN** | **[]int32** | |
+ **hasPrimaryIp** | **bool** | Has a primary IP |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **localContextData** | **bool** | Has local config context data |
+ **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** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **platform** | **[]string** | Platform (slug) |
+ **platformN** | **[]string** | Platform (slug) |
+ **platformId** | **[]int32** | Platform (ID) |
+ **platformIdN** | **[]int32** | Platform (ID) |
+ **primaryIp4Id** | **[]int32** | Primary IPv4 (ID) |
+ **primaryIp4IdN** | **[]int32** | Primary IPv4 (ID) |
+ **primaryIp6Id** | **[]int32** | Primary IPv6 (ID) |
+ **primaryIp6IdN** | **[]int32** | Primary IPv6 (ID) |
+ **q** | **string** | Search |
+ **region** | **[]int32** | Region (slug) |
+ **regionN** | **[]int32** | Region (slug) |
+ **regionId** | **[]int32** | Region (ID) |
+ **regionIdN** | **[]int32** | Region (ID) |
+ **role** | **[]string** | Role (slug) |
+ **roleN** | **[]string** | Role (slug) |
+ **roleId** | **[]int32** | Role (ID) |
+ **roleIdN** | **[]int32** | Role (ID) |
+ **site** | **[]string** | Site (slug) |
+ **siteN** | **[]string** | Site (slug) |
+ **siteGroup** | **[]int32** | Site group (slug) |
+ **siteGroupN** | **[]int32** | Site group (slug) |
+ **siteGroupId** | **[]int32** | Site group (ID) |
+ **siteGroupIdN** | **[]int32** | Site group (ID) |
+ **siteId** | **[]int32** | Site (ID) |
+ **siteIdN** | **[]int32** | Site (ID) |
+ **status** | **[]string** | |
+ **statusN** | **[]string** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **tenant** | **[]string** | Tenant (slug) |
+ **tenantN** | **[]string** | Tenant (slug) |
+ **tenantGroup** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupN** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupId** | **[]int32** | Tenant Group (ID) |
+ **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
+ **tenantId** | **[]int32** | Tenant (ID) |
+ **tenantIdN** | **[]int32** | Tenant (ID) |
+ **updatedByRequest** | **string** | |
+ **vcpus** | **[]float64** | |
+ **vcpusEmpty** | **bool** | |
+ **vcpusGt** | **[]float64** | |
+ **vcpusGte** | **[]float64** | |
+ **vcpusLt** | **[]float64** | |
+ **vcpusLte** | **[]float64** | |
+ **vcpusN** | **[]float64** | |
+
+### Return type
+
+[**PaginatedVirtualMachineWithConfigContextList**](PaginatedVirtualMachineWithConfigContextList.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)
+
+
+## VirtualizationVirtualMachinesPartialUpdate
+
+> VirtualMachineWithConfigContext VirtualizationVirtualMachinesPartialUpdate(ctx, id).PatchedWritableVirtualMachineWithConfigContextRequest(patchedWritableVirtualMachineWithConfigContextRequest).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 virtual machine.
+ patchedWritableVirtualMachineWithConfigContextRequest := *openapiclient.NewPatchedWritableVirtualMachineWithConfigContextRequest() // PatchedWritableVirtualMachineWithConfigContextRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesPartialUpdate(context.Background(), id).PatchedWritableVirtualMachineWithConfigContextRequest(patchedWritableVirtualMachineWithConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationVirtualMachinesPartialUpdate`: VirtualMachineWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this virtual machine. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableVirtualMachineWithConfigContextRequest** | [**PatchedWritableVirtualMachineWithConfigContextRequest**](PatchedWritableVirtualMachineWithConfigContextRequest.md) | |
+
+### Return type
+
+[**VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.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)
+
+
+## VirtualizationVirtualMachinesRenderConfigCreate
+
+> VirtualMachineWithConfigContext VirtualizationVirtualMachinesRenderConfigCreate(ctx, id).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).Format(format).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ id := int32(56) // int32 | A unique integer value identifying this virtual machine.
+ writableVirtualMachineWithConfigContextRequest := *openapiclient.NewWritableVirtualMachineWithConfigContextRequest("Name_example") // WritableVirtualMachineWithConfigContextRequest |
+ format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesRenderConfigCreate(context.Background(), id).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).Format(format).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesRenderConfigCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationVirtualMachinesRenderConfigCreate`: VirtualMachineWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesRenderConfigCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this virtual machine. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesRenderConfigCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableVirtualMachineWithConfigContextRequest** | [**WritableVirtualMachineWithConfigContextRequest**](WritableVirtualMachineWithConfigContextRequest.md) | |
+ **format** | [**DcimDevicesRenderConfigCreateFormatParameter**](DcimDevicesRenderConfigCreateFormatParameter.md) | |
+
+### Return type
+
+[**VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.md)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: application/json, text/plain
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VirtualizationVirtualMachinesRetrieve
+
+> VirtualMachineWithConfigContext VirtualizationVirtualMachinesRetrieve(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 virtual machine.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationVirtualMachinesRetrieve`: VirtualMachineWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesRetrieve`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this virtual machine. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.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)
+
+
+## VirtualizationVirtualMachinesUpdate
+
+> VirtualMachineWithConfigContext VirtualizationVirtualMachinesUpdate(ctx, id).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).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 virtual machine.
+ writableVirtualMachineWithConfigContextRequest := *openapiclient.NewWritableVirtualMachineWithConfigContextRequest("Name_example") // WritableVirtualMachineWithConfigContextRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesUpdate(context.Background(), id).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VirtualizationVirtualMachinesUpdate`: VirtualMachineWithConfigContext
+ fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**id** | **int32** | A unique integer value identifying this virtual machine. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableVirtualMachineWithConfigContextRequest** | [**WritableVirtualMachineWithConfigContextRequest**](WritableVirtualMachineWithConfigContextRequest.md) | |
+
+### Return type
+
+[**VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.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)
+
diff --git a/docs/VirtualizationApi.md b/docs/VirtualizationApi.md
deleted file mode 100644
index eaab81954f..0000000000
--- a/docs/VirtualizationApi.md
+++ /dev/null
@@ -1,3956 +0,0 @@
-# \VirtualizationAPI
-
-All URIs are relative to *http://localhost*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**VirtualizationClusterGroupsBulkDestroy**](VirtualizationAPI.md#VirtualizationClusterGroupsBulkDestroy) | **Delete** /api/virtualization/cluster-groups/ |
-[**VirtualizationClusterGroupsBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationClusterGroupsBulkPartialUpdate) | **Patch** /api/virtualization/cluster-groups/ |
-[**VirtualizationClusterGroupsBulkUpdate**](VirtualizationAPI.md#VirtualizationClusterGroupsBulkUpdate) | **Put** /api/virtualization/cluster-groups/ |
-[**VirtualizationClusterGroupsCreate**](VirtualizationAPI.md#VirtualizationClusterGroupsCreate) | **Post** /api/virtualization/cluster-groups/ |
-[**VirtualizationClusterGroupsDestroy**](VirtualizationAPI.md#VirtualizationClusterGroupsDestroy) | **Delete** /api/virtualization/cluster-groups/{id}/ |
-[**VirtualizationClusterGroupsList**](VirtualizationAPI.md#VirtualizationClusterGroupsList) | **Get** /api/virtualization/cluster-groups/ |
-[**VirtualizationClusterGroupsPartialUpdate**](VirtualizationAPI.md#VirtualizationClusterGroupsPartialUpdate) | **Patch** /api/virtualization/cluster-groups/{id}/ |
-[**VirtualizationClusterGroupsRetrieve**](VirtualizationAPI.md#VirtualizationClusterGroupsRetrieve) | **Get** /api/virtualization/cluster-groups/{id}/ |
-[**VirtualizationClusterGroupsUpdate**](VirtualizationAPI.md#VirtualizationClusterGroupsUpdate) | **Put** /api/virtualization/cluster-groups/{id}/ |
-[**VirtualizationClusterTypesBulkDestroy**](VirtualizationAPI.md#VirtualizationClusterTypesBulkDestroy) | **Delete** /api/virtualization/cluster-types/ |
-[**VirtualizationClusterTypesBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationClusterTypesBulkPartialUpdate) | **Patch** /api/virtualization/cluster-types/ |
-[**VirtualizationClusterTypesBulkUpdate**](VirtualizationAPI.md#VirtualizationClusterTypesBulkUpdate) | **Put** /api/virtualization/cluster-types/ |
-[**VirtualizationClusterTypesCreate**](VirtualizationAPI.md#VirtualizationClusterTypesCreate) | **Post** /api/virtualization/cluster-types/ |
-[**VirtualizationClusterTypesDestroy**](VirtualizationAPI.md#VirtualizationClusterTypesDestroy) | **Delete** /api/virtualization/cluster-types/{id}/ |
-[**VirtualizationClusterTypesList**](VirtualizationAPI.md#VirtualizationClusterTypesList) | **Get** /api/virtualization/cluster-types/ |
-[**VirtualizationClusterTypesPartialUpdate**](VirtualizationAPI.md#VirtualizationClusterTypesPartialUpdate) | **Patch** /api/virtualization/cluster-types/{id}/ |
-[**VirtualizationClusterTypesRetrieve**](VirtualizationAPI.md#VirtualizationClusterTypesRetrieve) | **Get** /api/virtualization/cluster-types/{id}/ |
-[**VirtualizationClusterTypesUpdate**](VirtualizationAPI.md#VirtualizationClusterTypesUpdate) | **Put** /api/virtualization/cluster-types/{id}/ |
-[**VirtualizationClustersBulkDestroy**](VirtualizationAPI.md#VirtualizationClustersBulkDestroy) | **Delete** /api/virtualization/clusters/ |
-[**VirtualizationClustersBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationClustersBulkPartialUpdate) | **Patch** /api/virtualization/clusters/ |
-[**VirtualizationClustersBulkUpdate**](VirtualizationAPI.md#VirtualizationClustersBulkUpdate) | **Put** /api/virtualization/clusters/ |
-[**VirtualizationClustersCreate**](VirtualizationAPI.md#VirtualizationClustersCreate) | **Post** /api/virtualization/clusters/ |
-[**VirtualizationClustersDestroy**](VirtualizationAPI.md#VirtualizationClustersDestroy) | **Delete** /api/virtualization/clusters/{id}/ |
-[**VirtualizationClustersList**](VirtualizationAPI.md#VirtualizationClustersList) | **Get** /api/virtualization/clusters/ |
-[**VirtualizationClustersPartialUpdate**](VirtualizationAPI.md#VirtualizationClustersPartialUpdate) | **Patch** /api/virtualization/clusters/{id}/ |
-[**VirtualizationClustersRetrieve**](VirtualizationAPI.md#VirtualizationClustersRetrieve) | **Get** /api/virtualization/clusters/{id}/ |
-[**VirtualizationClustersUpdate**](VirtualizationAPI.md#VirtualizationClustersUpdate) | **Put** /api/virtualization/clusters/{id}/ |
-[**VirtualizationInterfacesBulkDestroy**](VirtualizationAPI.md#VirtualizationInterfacesBulkDestroy) | **Delete** /api/virtualization/interfaces/ |
-[**VirtualizationInterfacesBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationInterfacesBulkPartialUpdate) | **Patch** /api/virtualization/interfaces/ |
-[**VirtualizationInterfacesBulkUpdate**](VirtualizationAPI.md#VirtualizationInterfacesBulkUpdate) | **Put** /api/virtualization/interfaces/ |
-[**VirtualizationInterfacesCreate**](VirtualizationAPI.md#VirtualizationInterfacesCreate) | **Post** /api/virtualization/interfaces/ |
-[**VirtualizationInterfacesDestroy**](VirtualizationAPI.md#VirtualizationInterfacesDestroy) | **Delete** /api/virtualization/interfaces/{id}/ |
-[**VirtualizationInterfacesList**](VirtualizationAPI.md#VirtualizationInterfacesList) | **Get** /api/virtualization/interfaces/ |
-[**VirtualizationInterfacesPartialUpdate**](VirtualizationAPI.md#VirtualizationInterfacesPartialUpdate) | **Patch** /api/virtualization/interfaces/{id}/ |
-[**VirtualizationInterfacesRetrieve**](VirtualizationAPI.md#VirtualizationInterfacesRetrieve) | **Get** /api/virtualization/interfaces/{id}/ |
-[**VirtualizationInterfacesUpdate**](VirtualizationAPI.md#VirtualizationInterfacesUpdate) | **Put** /api/virtualization/interfaces/{id}/ |
-[**VirtualizationVirtualMachinesBulkDestroy**](VirtualizationAPI.md#VirtualizationVirtualMachinesBulkDestroy) | **Delete** /api/virtualization/virtual-machines/ |
-[**VirtualizationVirtualMachinesBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationVirtualMachinesBulkPartialUpdate) | **Patch** /api/virtualization/virtual-machines/ |
-[**VirtualizationVirtualMachinesBulkUpdate**](VirtualizationAPI.md#VirtualizationVirtualMachinesBulkUpdate) | **Put** /api/virtualization/virtual-machines/ |
-[**VirtualizationVirtualMachinesCreate**](VirtualizationAPI.md#VirtualizationVirtualMachinesCreate) | **Post** /api/virtualization/virtual-machines/ |
-[**VirtualizationVirtualMachinesDestroy**](VirtualizationAPI.md#VirtualizationVirtualMachinesDestroy) | **Delete** /api/virtualization/virtual-machines/{id}/ |
-[**VirtualizationVirtualMachinesList**](VirtualizationAPI.md#VirtualizationVirtualMachinesList) | **Get** /api/virtualization/virtual-machines/ |
-[**VirtualizationVirtualMachinesPartialUpdate**](VirtualizationAPI.md#VirtualizationVirtualMachinesPartialUpdate) | **Patch** /api/virtualization/virtual-machines/{id}/ |
-[**VirtualizationVirtualMachinesRetrieve**](VirtualizationAPI.md#VirtualizationVirtualMachinesRetrieve) | **Get** /api/virtualization/virtual-machines/{id}/ |
-[**VirtualizationVirtualMachinesUpdate**](VirtualizationAPI.md#VirtualizationVirtualMachinesUpdate) | **Put** /api/virtualization/virtual-machines/{id}/ |
-
-
-
-## VirtualizationClusterGroupsBulkDestroy
-
-> VirtualizationClusterGroupsBulkDestroy(ctx).ClusterGroupRequest(clusterGroupRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- clusterGroupRequest := []openapiclient.ClusterGroupRequest{*openapiclient.NewClusterGroupRequest("Name_example", "Slug_example")} // []ClusterGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkDestroy(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **clusterGroupRequest** | [**[]ClusterGroupRequest**](ClusterGroupRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## VirtualizationClusterGroupsBulkPartialUpdate
-
-> []ClusterGroup VirtualizationClusterGroupsBulkPartialUpdate(ctx).ClusterGroupRequest(clusterGroupRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- clusterGroupRequest := []openapiclient.ClusterGroupRequest{*openapiclient.NewClusterGroupRequest("Name_example", "Slug_example")} // []ClusterGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkPartialUpdate(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterGroupsBulkPartialUpdate`: []ClusterGroup
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **clusterGroupRequest** | [**[]ClusterGroupRequest**](ClusterGroupRequest.md) | |
-
-### Return type
-
-[**[]ClusterGroup**](ClusterGroup.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)
-
-
-## VirtualizationClusterGroupsBulkUpdate
-
-> []ClusterGroup VirtualizationClusterGroupsBulkUpdate(ctx).ClusterGroupRequest(clusterGroupRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- clusterGroupRequest := []openapiclient.ClusterGroupRequest{*openapiclient.NewClusterGroupRequest("Name_example", "Slug_example")} // []ClusterGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkUpdate(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterGroupsBulkUpdate`: []ClusterGroup
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **clusterGroupRequest** | [**[]ClusterGroupRequest**](ClusterGroupRequest.md) | |
-
-### Return type
-
-[**[]ClusterGroup**](ClusterGroup.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)
-
-
-## VirtualizationClusterGroupsCreate
-
-> ClusterGroup VirtualizationClusterGroupsCreate(ctx).ClusterGroupRequest(clusterGroupRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- clusterGroupRequest := *openapiclient.NewClusterGroupRequest("Name_example", "Slug_example") // ClusterGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsCreate(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterGroupsCreate`: ClusterGroup
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **clusterGroupRequest** | [**ClusterGroupRequest**](ClusterGroupRequest.md) | |
-
-### Return type
-
-[**ClusterGroup**](ClusterGroup.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)
-
-
-## VirtualizationClusterGroupsDestroy
-
-> VirtualizationClusterGroupsDestroy(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 cluster group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 cluster group. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsDestroyRequest 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)
-
-
-## VirtualizationClusterGroupsList
-
-> PaginatedClusterGroupList VirtualizationClusterGroupsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterGroupsList`: PaginatedClusterGroupList
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **contact** | **[]int32** | Contact |
- **contactN** | **[]int32** | Contact |
- **contactGroup** | **[]int32** | Contact group |
- **contactGroupN** | **[]int32** | Contact group |
- **contactRole** | **[]int32** | Contact Role |
- **contactRoleN** | **[]int32** | Contact Role |
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **nameIe** | **[]string** | |
- **nameIew** | **[]string** | |
- **nameIsw** | **[]string** | |
- **nameN** | **[]string** | |
- **nameNic** | **[]string** | |
- **nameNie** | **[]string** | |
- **nameNiew** | **[]string** | |
- **nameNisw** | **[]string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **q** | **string** | Search |
- **slug** | **[]string** | |
- **slugEmpty** | **bool** | |
- **slugIc** | **[]string** | |
- **slugIe** | **[]string** | |
- **slugIew** | **[]string** | |
- **slugIsw** | **[]string** | |
- **slugN** | **[]string** | |
- **slugNic** | **[]string** | |
- **slugNie** | **[]string** | |
- **slugNiew** | **[]string** | |
- **slugNisw** | **[]string** | |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedClusterGroupList**](PaginatedClusterGroupList.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)
-
-
-## VirtualizationClusterGroupsPartialUpdate
-
-> ClusterGroup VirtualizationClusterGroupsPartialUpdate(ctx, id).PatchedClusterGroupRequest(patchedClusterGroupRequest).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 cluster group.
- patchedClusterGroupRequest := *openapiclient.NewPatchedClusterGroupRequest() // PatchedClusterGroupRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsPartialUpdate(context.Background(), id).PatchedClusterGroupRequest(patchedClusterGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterGroupsPartialUpdate`: ClusterGroup
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsPartialUpdate`: %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 cluster group. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedClusterGroupRequest** | [**PatchedClusterGroupRequest**](PatchedClusterGroupRequest.md) | |
-
-### Return type
-
-[**ClusterGroup**](ClusterGroup.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)
-
-
-## VirtualizationClusterGroupsRetrieve
-
-> ClusterGroup VirtualizationClusterGroupsRetrieve(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 cluster group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterGroupsRetrieve`: ClusterGroup
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsRetrieve`: %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 cluster group. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**ClusterGroup**](ClusterGroup.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)
-
-
-## VirtualizationClusterGroupsUpdate
-
-> ClusterGroup VirtualizationClusterGroupsUpdate(ctx, id).ClusterGroupRequest(clusterGroupRequest).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 cluster group.
- clusterGroupRequest := *openapiclient.NewClusterGroupRequest("Name_example", "Slug_example") // ClusterGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsUpdate(context.Background(), id).ClusterGroupRequest(clusterGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterGroupsUpdate`: ClusterGroup
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsUpdate`: %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 cluster group. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterGroupsUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **clusterGroupRequest** | [**ClusterGroupRequest**](ClusterGroupRequest.md) | |
-
-### Return type
-
-[**ClusterGroup**](ClusterGroup.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)
-
-
-## VirtualizationClusterTypesBulkDestroy
-
-> VirtualizationClusterTypesBulkDestroy(ctx).ClusterTypeRequest(clusterTypeRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- clusterTypeRequest := []openapiclient.ClusterTypeRequest{*openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")} // []ClusterTypeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkDestroy(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterTypesBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **clusterTypeRequest** | [**[]ClusterTypeRequest**](ClusterTypeRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## VirtualizationClusterTypesBulkPartialUpdate
-
-> []ClusterType VirtualizationClusterTypesBulkPartialUpdate(ctx).ClusterTypeRequest(clusterTypeRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- clusterTypeRequest := []openapiclient.ClusterTypeRequest{*openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")} // []ClusterTypeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkPartialUpdate(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterTypesBulkPartialUpdate`: []ClusterType
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterTypesBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **clusterTypeRequest** | [**[]ClusterTypeRequest**](ClusterTypeRequest.md) | |
-
-### Return type
-
-[**[]ClusterType**](ClusterType.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)
-
-
-## VirtualizationClusterTypesBulkUpdate
-
-> []ClusterType VirtualizationClusterTypesBulkUpdate(ctx).ClusterTypeRequest(clusterTypeRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- clusterTypeRequest := []openapiclient.ClusterTypeRequest{*openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")} // []ClusterTypeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkUpdate(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterTypesBulkUpdate`: []ClusterType
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterTypesBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **clusterTypeRequest** | [**[]ClusterTypeRequest**](ClusterTypeRequest.md) | |
-
-### Return type
-
-[**[]ClusterType**](ClusterType.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)
-
-
-## VirtualizationClusterTypesCreate
-
-> ClusterType VirtualizationClusterTypesCreate(ctx).ClusterTypeRequest(clusterTypeRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- clusterTypeRequest := *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example") // ClusterTypeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesCreate(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterTypesCreate`: ClusterType
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterTypesCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **clusterTypeRequest** | [**ClusterTypeRequest**](ClusterTypeRequest.md) | |
-
-### Return type
-
-[**ClusterType**](ClusterType.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)
-
-
-## VirtualizationClusterTypesDestroy
-
-> VirtualizationClusterTypesDestroy(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 cluster type.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 cluster type. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterTypesDestroyRequest 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)
-
-
-## VirtualizationClusterTypesList
-
-> PaginatedClusterTypeList VirtualizationClusterTypesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterTypesList`: PaginatedClusterTypeList
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterTypesListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **nameIe** | **[]string** | |
- **nameIew** | **[]string** | |
- **nameIsw** | **[]string** | |
- **nameN** | **[]string** | |
- **nameNic** | **[]string** | |
- **nameNie** | **[]string** | |
- **nameNiew** | **[]string** | |
- **nameNisw** | **[]string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **q** | **string** | Search |
- **slug** | **[]string** | |
- **slugEmpty** | **bool** | |
- **slugIc** | **[]string** | |
- **slugIe** | **[]string** | |
- **slugIew** | **[]string** | |
- **slugIsw** | **[]string** | |
- **slugN** | **[]string** | |
- **slugNic** | **[]string** | |
- **slugNie** | **[]string** | |
- **slugNiew** | **[]string** | |
- **slugNisw** | **[]string** | |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedClusterTypeList**](PaginatedClusterTypeList.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)
-
-
-## VirtualizationClusterTypesPartialUpdate
-
-> ClusterType VirtualizationClusterTypesPartialUpdate(ctx, id).PatchedClusterTypeRequest(patchedClusterTypeRequest).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 cluster type.
- patchedClusterTypeRequest := *openapiclient.NewPatchedClusterTypeRequest() // PatchedClusterTypeRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesPartialUpdate(context.Background(), id).PatchedClusterTypeRequest(patchedClusterTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterTypesPartialUpdate`: ClusterType
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesPartialUpdate`: %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 cluster type. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterTypesPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedClusterTypeRequest** | [**PatchedClusterTypeRequest**](PatchedClusterTypeRequest.md) | |
-
-### Return type
-
-[**ClusterType**](ClusterType.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)
-
-
-## VirtualizationClusterTypesRetrieve
-
-> ClusterType VirtualizationClusterTypesRetrieve(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 cluster type.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterTypesRetrieve`: ClusterType
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesRetrieve`: %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 cluster type. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterTypesRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**ClusterType**](ClusterType.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)
-
-
-## VirtualizationClusterTypesUpdate
-
-> ClusterType VirtualizationClusterTypesUpdate(ctx, id).ClusterTypeRequest(clusterTypeRequest).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 cluster type.
- clusterTypeRequest := *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example") // ClusterTypeRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesUpdate(context.Background(), id).ClusterTypeRequest(clusterTypeRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClusterTypesUpdate`: ClusterType
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesUpdate`: %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 cluster type. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClusterTypesUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **clusterTypeRequest** | [**ClusterTypeRequest**](ClusterTypeRequest.md) | |
-
-### Return type
-
-[**ClusterType**](ClusterType.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)
-
-
-## VirtualizationClustersBulkDestroy
-
-> VirtualizationClustersBulkDestroy(ctx).ClusterRequest(clusterRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewNestedClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkDestroy(context.Background()).ClusterRequest(clusterRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClustersBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **clusterRequest** | [**[]ClusterRequest**](ClusterRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## VirtualizationClustersBulkPartialUpdate
-
-> []Cluster VirtualizationClustersBulkPartialUpdate(ctx).ClusterRequest(clusterRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewNestedClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkPartialUpdate(context.Background()).ClusterRequest(clusterRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClustersBulkPartialUpdate`: []Cluster
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClustersBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **clusterRequest** | [**[]ClusterRequest**](ClusterRequest.md) | |
-
-### Return type
-
-[**[]Cluster**](Cluster.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)
-
-
-## VirtualizationClustersBulkUpdate
-
-> []Cluster VirtualizationClustersBulkUpdate(ctx).ClusterRequest(clusterRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewNestedClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkUpdate(context.Background()).ClusterRequest(clusterRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClustersBulkUpdate`: []Cluster
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClustersBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **clusterRequest** | [**[]ClusterRequest**](ClusterRequest.md) | |
-
-### Return type
-
-[**[]Cluster**](Cluster.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)
-
-
-## VirtualizationClustersCreate
-
-> Cluster VirtualizationClustersCreate(ctx).WritableClusterRequest(writableClusterRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", int32(123)) // WritableClusterRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersCreate(context.Background()).WritableClusterRequest(writableClusterRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClustersCreate`: Cluster
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClustersCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableClusterRequest** | [**WritableClusterRequest**](WritableClusterRequest.md) | |
-
-### Return type
-
-[**Cluster**](Cluster.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)
-
-
-## VirtualizationClustersDestroy
-
-> VirtualizationClustersDestroy(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 cluster.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.VirtualizationAPI.VirtualizationClustersDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 cluster. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClustersDestroyRequest 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)
-
-
-## VirtualizationClustersList
-
-> PaginatedClusterList VirtualizationClustersList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- 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)
- group := []string{"Inner_example"} // []string | Parent group (slug) (optional)
- groupN := []string{"Inner_example"} // []string | Parent group (slug) (optional)
- groupId := []*int32{int32(123)} // []*int32 | Parent group (ID) (optional)
- groupIdN := []*int32{int32(123)} // []*int32 | Parent group (ID) (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- site := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
- siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- type_ := []string{"Inner_example"} // []string | Cluster type (slug) (optional)
- typeN := []string{"Inner_example"} // []string | Cluster type (slug) (optional)
- typeId := []int32{int32(123)} // []int32 | Cluster type (ID) (optional)
- typeIdN := []int32{int32(123)} // []int32 | Cluster type (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClustersList`: PaginatedClusterList
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClustersListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **contact** | **[]int32** | Contact |
- **contactN** | **[]int32** | Contact |
- **contactGroup** | **[]int32** | Contact group |
- **contactGroupN** | **[]int32** | Contact group |
- **contactRole** | **[]int32** | Contact Role |
- **contactRoleN** | **[]int32** | Contact Role |
- **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** | |
- **group** | **[]string** | Parent group (slug) |
- **groupN** | **[]string** | Parent group (slug) |
- **groupId** | **[]int32** | Parent group (ID) |
- **groupIdN** | **[]int32** | Parent group (ID) |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **modifiedByRequest** | **string** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **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 |
- **region** | **[]int32** | Region (slug) |
- **regionN** | **[]int32** | Region (slug) |
- **regionId** | **[]int32** | Region (ID) |
- **regionIdN** | **[]int32** | Region (ID) |
- **site** | **[]string** | Site (slug) |
- **siteN** | **[]string** | Site (slug) |
- **siteGroup** | **[]int32** | Site group (slug) |
- **siteGroupN** | **[]int32** | Site group (slug) |
- **siteGroupId** | **[]int32** | Site group (ID) |
- **siteGroupIdN** | **[]int32** | Site group (ID) |
- **siteId** | **[]int32** | Site (ID) |
- **siteIdN** | **[]int32** | Site (ID) |
- **status** | **[]string** | |
- **statusN** | **[]string** | |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **tenant** | **[]string** | Tenant (slug) |
- **tenantN** | **[]string** | Tenant (slug) |
- **tenantGroup** | **[]int32** | Tenant Group (slug) |
- **tenantGroupN** | **[]int32** | Tenant Group (slug) |
- **tenantGroupId** | **[]int32** | Tenant Group (ID) |
- **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
- **tenantId** | **[]int32** | Tenant (ID) |
- **tenantIdN** | **[]int32** | Tenant (ID) |
- **type_** | **[]string** | Cluster type (slug) |
- **typeN** | **[]string** | Cluster type (slug) |
- **typeId** | **[]int32** | Cluster type (ID) |
- **typeIdN** | **[]int32** | Cluster type (ID) |
- **updatedByRequest** | **string** | |
-
-### Return type
-
-[**PaginatedClusterList**](PaginatedClusterList.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)
-
-
-## VirtualizationClustersPartialUpdate
-
-> Cluster VirtualizationClustersPartialUpdate(ctx, id).PatchedWritableClusterRequest(patchedWritableClusterRequest).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 cluster.
- patchedWritableClusterRequest := *openapiclient.NewPatchedWritableClusterRequest() // PatchedWritableClusterRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersPartialUpdate(context.Background(), id).PatchedWritableClusterRequest(patchedWritableClusterRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClustersPartialUpdate`: Cluster
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersPartialUpdate`: %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 cluster. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClustersPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableClusterRequest** | [**PatchedWritableClusterRequest**](PatchedWritableClusterRequest.md) | |
-
-### Return type
-
-[**Cluster**](Cluster.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)
-
-
-## VirtualizationClustersRetrieve
-
-> Cluster VirtualizationClustersRetrieve(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 cluster.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClustersRetrieve`: Cluster
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersRetrieve`: %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 cluster. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClustersRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**Cluster**](Cluster.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)
-
-
-## VirtualizationClustersUpdate
-
-> Cluster VirtualizationClustersUpdate(ctx, id).WritableClusterRequest(writableClusterRequest).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 cluster.
- writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", int32(123)) // WritableClusterRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersUpdate(context.Background(), id).WritableClusterRequest(writableClusterRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationClustersUpdate`: Cluster
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersUpdate`: %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 cluster. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationClustersUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableClusterRequest** | [**WritableClusterRequest**](WritableClusterRequest.md) | |
-
-### Return type
-
-[**Cluster**](Cluster.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)
-
-
-## VirtualizationInterfacesBulkDestroy
-
-> VirtualizationInterfacesBulkDestroy(ctx).VMInterfaceRequest(vMInterfaceRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkDestroy(context.Background()).VMInterfaceRequest(vMInterfaceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationInterfacesBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **vMInterfaceRequest** | [**[]VMInterfaceRequest**](VMInterfaceRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## VirtualizationInterfacesBulkPartialUpdate
-
-> []VMInterface VirtualizationInterfacesBulkPartialUpdate(ctx).VMInterfaceRequest(vMInterfaceRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkPartialUpdate(context.Background()).VMInterfaceRequest(vMInterfaceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationInterfacesBulkPartialUpdate`: []VMInterface
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationInterfacesBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **vMInterfaceRequest** | [**[]VMInterfaceRequest**](VMInterfaceRequest.md) | |
-
-### Return type
-
-[**[]VMInterface**](VMInterface.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)
-
-
-## VirtualizationInterfacesBulkUpdate
-
-> []VMInterface VirtualizationInterfacesBulkUpdate(ctx).VMInterfaceRequest(vMInterfaceRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkUpdate(context.Background()).VMInterfaceRequest(vMInterfaceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationInterfacesBulkUpdate`: []VMInterface
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationInterfacesBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **vMInterfaceRequest** | [**[]VMInterfaceRequest**](VMInterfaceRequest.md) | |
-
-### Return type
-
-[**[]VMInterface**](VMInterface.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)
-
-
-## VirtualizationInterfacesCreate
-
-> VMInterface VirtualizationInterfacesCreate(ctx).WritableVMInterfaceRequest(writableVMInterfaceRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(int32(123), "Name_example") // WritableVMInterfaceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesCreate(context.Background()).WritableVMInterfaceRequest(writableVMInterfaceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationInterfacesCreate`: VMInterface
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationInterfacesCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableVMInterfaceRequest** | [**WritableVMInterfaceRequest**](WritableVMInterfaceRequest.md) | |
-
-### Return type
-
-[**VMInterface**](VMInterface.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)
-
-
-## VirtualizationInterfacesDestroy
-
-> VirtualizationInterfacesDestroy(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 interface.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 interface. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationInterfacesDestroyRequest 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)
-
-
-## 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()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- bridgeId := []int32{int32(123)} // []int32 | Bridged interface (ID) (optional)
- bridgeIdN := []int32{int32(123)} // []int32 | Bridged interface (ID) (optional)
- cluster := []string{"Inner_example"} // []string | Cluster (optional)
- clusterN := []string{"Inner_example"} // []string | Cluster (optional)
- clusterId := []int32{int32(123)} // []int32 | Cluster (ID) (optional)
- clusterIdN := []int32{int32(123)} // []int32 | Cluster (ID) (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- 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)
- l2vpn := []*int64{int64(123)} // []*int64 | L2VPN (optional)
- l2vpnN := []*int64{int64(123)} // []*int64 | L2VPN (optional)
- l2vpnId := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
- l2vpnIdN := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- macAddress := []string{"Inner_example"} // []string | (optional)
- macAddressIc := []string{"Inner_example"} // []string | (optional)
- macAddressIe := []string{"Inner_example"} // []string | (optional)
- macAddressIew := []string{"Inner_example"} // []string | (optional)
- macAddressIsw := []string{"Inner_example"} // []string | (optional)
- macAddressN := []string{"Inner_example"} // []string | (optional)
- macAddressNic := []string{"Inner_example"} // []string | (optional)
- macAddressNie := []string{"Inner_example"} // []string | (optional)
- macAddressNiew := []string{"Inner_example"} // []string | (optional)
- macAddressNisw := []string{"Inner_example"} // []string | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- mtu := []int32{int32(123)} // []int32 | (optional)
- mtuEmpty := true // bool | (optional)
- mtuGt := []int32{int32(123)} // []int32 | (optional)
- mtuGte := []int32{int32(123)} // []int32 | (optional)
- mtuLt := []int32{int32(123)} // []int32 | (optional)
- mtuLte := []int32{int32(123)} // []int32 | (optional)
- mtuN := []int32{int32(123)} // []int32 | (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)
- parentId := []int32{int32(123)} // []int32 | Parent interface (ID) (optional)
- parentIdN := []int32{int32(123)} // []int32 | Parent interface (ID) (optional)
- q := "q_example" // string | Search (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- virtualMachine := []string{"Inner_example"} // []string | Virtual machine (optional)
- virtualMachineN := []string{"Inner_example"} // []string | Virtual machine (optional)
- virtualMachineId := []int32{int32(123)} // []int32 | Virtual machine (ID) (optional)
- virtualMachineIdN := []int32{int32(123)} // []int32 | Virtual machine (ID) (optional)
- vlan := "vlan_example" // string | Assigned VID (optional)
- vlanId := "vlanId_example" // string | Assigned VLAN (optional)
- vrf := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
- vrfN := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
- vrfId := []int32{int32(123)} // []int32 | VRF (optional)
- vrfIdN := []int32{int32(123)} // []int32 | VRF (optional)
-
- 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()
- 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)
- }
- // response from `VirtualizationInterfacesList`: PaginatedVMInterfaceList
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationInterfacesListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **bridgeId** | **[]int32** | Bridged interface (ID) |
- **bridgeIdN** | **[]int32** | Bridged interface (ID) |
- **cluster** | **[]string** | Cluster |
- **clusterN** | **[]string** | Cluster |
- **clusterId** | **[]int32** | Cluster (ID) |
- **clusterIdN** | **[]int32** | Cluster (ID) |
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **description** | **[]string** | |
- **descriptionEmpty** | **bool** | |
- **descriptionIc** | **[]string** | |
- **descriptionIe** | **[]string** | |
- **descriptionIew** | **[]string** | |
- **descriptionIsw** | **[]string** | |
- **descriptionN** | **[]string** | |
- **descriptionNic** | **[]string** | |
- **descriptionNie** | **[]string** | |
- **descriptionNiew** | **[]string** | |
- **descriptionNisw** | **[]string** | |
- **enabled** | **bool** | |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **l2vpn** | **[]int64** | L2VPN |
- **l2vpnN** | **[]int64** | L2VPN |
- **l2vpnId** | **[]int32** | L2VPN (ID) |
- **l2vpnIdN** | **[]int32** | L2VPN (ID) |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **macAddress** | **[]string** | |
- **macAddressIc** | **[]string** | |
- **macAddressIe** | **[]string** | |
- **macAddressIew** | **[]string** | |
- **macAddressIsw** | **[]string** | |
- **macAddressN** | **[]string** | |
- **macAddressNic** | **[]string** | |
- **macAddressNie** | **[]string** | |
- **macAddressNiew** | **[]string** | |
- **macAddressNisw** | **[]string** | |
- **modifiedByRequest** | **string** | |
- **mtu** | **[]int32** | |
- **mtuEmpty** | **bool** | |
- **mtuGt** | **[]int32** | |
- **mtuGte** | **[]int32** | |
- **mtuLt** | **[]int32** | |
- **mtuLte** | **[]int32** | |
- **mtuN** | **[]int32** | |
- **name** | **[]string** | |
- **nameEmpty** | **bool** | |
- **nameIc** | **[]string** | |
- **nameIe** | **[]string** | |
- **nameIew** | **[]string** | |
- **nameIsw** | **[]string** | |
- **nameN** | **[]string** | |
- **nameNic** | **[]string** | |
- **nameNie** | **[]string** | |
- **nameNiew** | **[]string** | |
- **nameNisw** | **[]string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **parentId** | **[]int32** | Parent interface (ID) |
- **parentIdN** | **[]int32** | Parent interface (ID) |
- **q** | **string** | Search |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **updatedByRequest** | **string** | |
- **virtualMachine** | **[]string** | Virtual machine |
- **virtualMachineN** | **[]string** | Virtual machine |
- **virtualMachineId** | **[]int32** | Virtual machine (ID) |
- **virtualMachineIdN** | **[]int32** | Virtual machine (ID) |
- **vlan** | **string** | Assigned VID |
- **vlanId** | **string** | Assigned VLAN |
- **vrf** | **[]string** | VRF (RD) |
- **vrfN** | **[]string** | VRF (RD) |
- **vrfId** | **[]int32** | VRF |
- **vrfIdN** | **[]int32** | VRF |
-
-### Return type
-
-[**PaginatedVMInterfaceList**](PaginatedVMInterfaceList.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)
-
-
-## VirtualizationInterfacesPartialUpdate
-
-> VMInterface VirtualizationInterfacesPartialUpdate(ctx, id).PatchedWritableVMInterfaceRequest(patchedWritableVMInterfaceRequest).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 interface.
- patchedWritableVMInterfaceRequest := *openapiclient.NewPatchedWritableVMInterfaceRequest() // PatchedWritableVMInterfaceRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesPartialUpdate(context.Background(), id).PatchedWritableVMInterfaceRequest(patchedWritableVMInterfaceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationInterfacesPartialUpdate`: VMInterface
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesPartialUpdate`: %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 interface. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationInterfacesPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableVMInterfaceRequest** | [**PatchedWritableVMInterfaceRequest**](PatchedWritableVMInterfaceRequest.md) | |
-
-### Return type
-
-[**VMInterface**](VMInterface.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)
-
-
-## VirtualizationInterfacesRetrieve
-
-> VMInterface VirtualizationInterfacesRetrieve(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 interface.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationInterfacesRetrieve`: VMInterface
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesRetrieve`: %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 interface. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationInterfacesRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**VMInterface**](VMInterface.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)
-
-
-## VirtualizationInterfacesUpdate
-
-> VMInterface VirtualizationInterfacesUpdate(ctx, id).WritableVMInterfaceRequest(writableVMInterfaceRequest).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 interface.
- writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(int32(123), "Name_example") // WritableVMInterfaceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesUpdate(context.Background(), id).WritableVMInterfaceRequest(writableVMInterfaceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationInterfacesUpdate`: VMInterface
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesUpdate`: %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 interface. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationInterfacesUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableVMInterfaceRequest** | [**WritableVMInterfaceRequest**](WritableVMInterfaceRequest.md) | |
-
-### Return type
-
-[**VMInterface**](VMInterface.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)
-
-
-## VirtualizationVirtualMachinesBulkDestroy
-
-> VirtualizationVirtualMachinesBulkDestroy(ctx).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- virtualMachineWithConfigContextRequest := []openapiclient.VirtualMachineWithConfigContextRequest{*openapiclient.NewVirtualMachineWithConfigContextRequest("Name_example")} // []VirtualMachineWithConfigContextRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkDestroy(context.Background()).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesBulkDestroyRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **virtualMachineWithConfigContextRequest** | [**[]VirtualMachineWithConfigContextRequest**](VirtualMachineWithConfigContextRequest.md) | |
-
-### Return type
-
- (empty response body)
-
-### Authorization
-
-[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## VirtualizationVirtualMachinesBulkPartialUpdate
-
-> []VirtualMachineWithConfigContext VirtualizationVirtualMachinesBulkPartialUpdate(ctx).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- virtualMachineWithConfigContextRequest := []openapiclient.VirtualMachineWithConfigContextRequest{*openapiclient.NewVirtualMachineWithConfigContextRequest("Name_example")} // []VirtualMachineWithConfigContextRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkPartialUpdate(context.Background()).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationVirtualMachinesBulkPartialUpdate`: []VirtualMachineWithConfigContext
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesBulkPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesBulkPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **virtualMachineWithConfigContextRequest** | [**[]VirtualMachineWithConfigContextRequest**](VirtualMachineWithConfigContextRequest.md) | |
-
-### Return type
-
-[**[]VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.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)
-
-
-## VirtualizationVirtualMachinesBulkUpdate
-
-> []VirtualMachineWithConfigContext VirtualizationVirtualMachinesBulkUpdate(ctx).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- virtualMachineWithConfigContextRequest := []openapiclient.VirtualMachineWithConfigContextRequest{*openapiclient.NewVirtualMachineWithConfigContextRequest("Name_example")} // []VirtualMachineWithConfigContextRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkUpdate(context.Background()).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationVirtualMachinesBulkUpdate`: []VirtualMachineWithConfigContext
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesBulkUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesBulkUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **virtualMachineWithConfigContextRequest** | [**[]VirtualMachineWithConfigContextRequest**](VirtualMachineWithConfigContextRequest.md) | |
-
-### Return type
-
-[**[]VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.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)
-
-
-## VirtualizationVirtualMachinesCreate
-
-> VirtualMachineWithConfigContext VirtualizationVirtualMachinesCreate(ctx).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- writableVirtualMachineWithConfigContextRequest := *openapiclient.NewWritableVirtualMachineWithConfigContextRequest("Name_example") // WritableVirtualMachineWithConfigContextRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesCreate(context.Background()).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationVirtualMachinesCreate`: VirtualMachineWithConfigContext
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesCreate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesCreateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **writableVirtualMachineWithConfigContextRequest** | [**WritableVirtualMachineWithConfigContextRequest**](WritableVirtualMachineWithConfigContextRequest.md) | |
-
-### Return type
-
-[**VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.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)
-
-
-## VirtualizationVirtualMachinesDestroy
-
-> VirtualizationVirtualMachinesDestroy(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 virtual machine.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "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 virtual machine. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesDestroyRequest 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)
-
-
-## 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).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- cluster := []string{"Inner_example"} // []string | Cluster (optional)
- clusterN := []string{"Inner_example"} // []string | Cluster (optional)
- clusterGroup := []string{"Inner_example"} // []string | Cluster group (slug) (optional)
- clusterGroupN := []string{"Inner_example"} // []string | Cluster group (slug) (optional)
- clusterGroupId := []int32{int32(123)} // []int32 | Cluster group (ID) (optional)
- clusterGroupIdN := []int32{int32(123)} // []int32 | Cluster group (ID) (optional)
- clusterId := []*int32{int32(123)} // []*int32 | Cluster (ID) (optional)
- clusterIdN := []*int32{int32(123)} // []*int32 | Cluster (ID) (optional)
- clusterType := []string{"Inner_example"} // []string | Cluster type (slug) (optional)
- clusterTypeN := []string{"Inner_example"} // []string | Cluster type (slug) (optional)
- clusterTypeId := []int32{int32(123)} // []int32 | Cluster type (ID) (optional)
- clusterTypeIdN := []int32{int32(123)} // []int32 | Cluster type (ID) (optional)
- configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
- configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
- contact := []int32{int32(123)} // []int32 | Contact (optional)
- contactN := []int32{int32(123)} // []int32 | Contact (optional)
- contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
- contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional)
- contactRole := []int32{int32(123)} // []int32 | Contact Role (optional)
- contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- device := []*string{"Inner_example"} // []*string | Device (optional)
- deviceN := []*string{"Inner_example"} // []*string | Device (optional)
- deviceId := []*int32{int32(123)} // []*int32 | Device (ID) (optional)
- deviceIdN := []*int32{int32(123)} // []*int32 | Device (ID) (optional)
- disk := []int32{int32(123)} // []int32 | (optional)
- diskEmpty := true // bool | (optional)
- diskGt := []int32{int32(123)} // []int32 | (optional)
- diskGte := []int32{int32(123)} // []int32 | (optional)
- diskLt := []int32{int32(123)} // []int32 | (optional)
- diskLte := []int32{int32(123)} // []int32 | (optional)
- diskN := []int32{int32(123)} // []int32 | (optional)
- hasPrimaryIp := true // bool | Has a primary IP (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- 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)
- localContextData := true // bool | Has local config context data (optional)
- macAddress := []string{"Inner_example"} // []string | (optional)
- macAddressIc := []string{"Inner_example"} // []string | (optional)
- macAddressIe := []string{"Inner_example"} // []string | (optional)
- macAddressIew := []string{"Inner_example"} // []string | (optional)
- macAddressIsw := []string{"Inner_example"} // []string | (optional)
- macAddressN := []string{"Inner_example"} // []string | (optional)
- macAddressNic := []string{"Inner_example"} // []string | (optional)
- macAddressNie := []string{"Inner_example"} // []string | (optional)
- macAddressNiew := []string{"Inner_example"} // []string | (optional)
- macAddressNisw := []string{"Inner_example"} // []string | (optional)
- memory := []int32{int32(123)} // []int32 | (optional)
- memoryEmpty := true // bool | (optional)
- memoryGt := []int32{int32(123)} // []int32 | (optional)
- memoryGte := []int32{int32(123)} // []int32 | (optional)
- memoryLt := []int32{int32(123)} // []int32 | (optional)
- memoryLte := []int32{int32(123)} // []int32 | (optional)
- memoryN := []int32{int32(123)} // []int32 | (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- platform := []string{"Inner_example"} // []string | Platform (slug) (optional)
- platformN := []string{"Inner_example"} // []string | Platform (slug) (optional)
- platformId := []*int32{int32(123)} // []*int32 | Platform (ID) (optional)
- platformIdN := []*int32{int32(123)} // []*int32 | Platform (ID) (optional)
- q := "q_example" // string | Search (optional)
- region := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionN := []int32{int32(123)} // []int32 | Region (slug) (optional)
- regionId := []int32{int32(123)} // []int32 | Region (ID) (optional)
- regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional)
- role := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
- roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
- roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
- site := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteN := []string{"Inner_example"} // []string | Site (slug) (optional)
- siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional)
- siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
- siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
- siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- vcpus := []float64{float64(123)} // []float64 | (optional)
- vcpusEmpty := true // bool | (optional)
- vcpusGt := []float64{float64(123)} // []float64 | (optional)
- vcpusGte := []float64{float64(123)} // []float64 | (optional)
- vcpusLt := []float64{float64(123)} // []float64 | (optional)
- vcpusLte := []float64{float64(123)} // []float64 | (optional)
- vcpusN := []float64{float64(123)} // []float64 | (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).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationVirtualMachinesList`: PaginatedVirtualMachineWithConfigContextList
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **cluster** | **[]string** | Cluster |
- **clusterN** | **[]string** | Cluster |
- **clusterGroup** | **[]string** | Cluster group (slug) |
- **clusterGroupN** | **[]string** | Cluster group (slug) |
- **clusterGroupId** | **[]int32** | Cluster group (ID) |
- **clusterGroupIdN** | **[]int32** | Cluster group (ID) |
- **clusterId** | **[]int32** | Cluster (ID) |
- **clusterIdN** | **[]int32** | Cluster (ID) |
- **clusterType** | **[]string** | Cluster type (slug) |
- **clusterTypeN** | **[]string** | Cluster type (slug) |
- **clusterTypeId** | **[]int32** | Cluster type (ID) |
- **clusterTypeIdN** | **[]int32** | Cluster type (ID) |
- **configTemplateId** | **[]int32** | Config template (ID) |
- **configTemplateIdN** | **[]int32** | Config template (ID) |
- **contact** | **[]int32** | Contact |
- **contactN** | **[]int32** | Contact |
- **contactGroup** | **[]int32** | Contact group |
- **contactGroupN** | **[]int32** | Contact group |
- **contactRole** | **[]int32** | Contact Role |
- **contactRoleN** | **[]int32** | Contact Role |
- **created** | [**[]time.Time**](time.Time.md) | |
- **createdEmpty** | [**[]time.Time**](time.Time.md) | |
- **createdGt** | [**[]time.Time**](time.Time.md) | |
- **createdGte** | [**[]time.Time**](time.Time.md) | |
- **createdLt** | [**[]time.Time**](time.Time.md) | |
- **createdLte** | [**[]time.Time**](time.Time.md) | |
- **createdN** | [**[]time.Time**](time.Time.md) | |
- **createdByRequest** | **string** | |
- **device** | **[]string** | Device |
- **deviceN** | **[]string** | Device |
- **deviceId** | **[]int32** | Device (ID) |
- **deviceIdN** | **[]int32** | Device (ID) |
- **disk** | **[]int32** | |
- **diskEmpty** | **bool** | |
- **diskGt** | **[]int32** | |
- **diskGte** | **[]int32** | |
- **diskLt** | **[]int32** | |
- **diskLte** | **[]int32** | |
- **diskN** | **[]int32** | |
- **hasPrimaryIp** | **bool** | Has a primary IP |
- **id** | **[]int32** | |
- **idEmpty** | **bool** | |
- **idGt** | **[]int32** | |
- **idGte** | **[]int32** | |
- **idLt** | **[]int32** | |
- **idLte** | **[]int32** | |
- **idN** | **[]int32** | |
- **lastUpdated** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
- **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
- **limit** | **int32** | Number of results to return per page. |
- **localContextData** | **bool** | Has local config context data |
- **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** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **platform** | **[]string** | Platform (slug) |
- **platformN** | **[]string** | Platform (slug) |
- **platformId** | **[]int32** | Platform (ID) |
- **platformIdN** | **[]int32** | Platform (ID) |
- **q** | **string** | Search |
- **region** | **[]int32** | Region (slug) |
- **regionN** | **[]int32** | Region (slug) |
- **regionId** | **[]int32** | Region (ID) |
- **regionIdN** | **[]int32** | Region (ID) |
- **role** | **[]string** | Role (slug) |
- **roleN** | **[]string** | Role (slug) |
- **roleId** | **[]int32** | Role (ID) |
- **roleIdN** | **[]int32** | Role (ID) |
- **site** | **[]string** | Site (slug) |
- **siteN** | **[]string** | Site (slug) |
- **siteGroup** | **[]int32** | Site group (slug) |
- **siteGroupN** | **[]int32** | Site group (slug) |
- **siteGroupId** | **[]int32** | Site group (ID) |
- **siteGroupIdN** | **[]int32** | Site group (ID) |
- **siteId** | **[]int32** | Site (ID) |
- **siteIdN** | **[]int32** | Site (ID) |
- **status** | **[]string** | |
- **statusN** | **[]string** | |
- **tag** | **[]string** | |
- **tagN** | **[]string** | |
- **tenant** | **[]string** | Tenant (slug) |
- **tenantN** | **[]string** | Tenant (slug) |
- **tenantGroup** | **[]int32** | Tenant Group (slug) |
- **tenantGroupN** | **[]int32** | Tenant Group (slug) |
- **tenantGroupId** | **[]int32** | Tenant Group (ID) |
- **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
- **tenantId** | **[]int32** | Tenant (ID) |
- **tenantIdN** | **[]int32** | Tenant (ID) |
- **updatedByRequest** | **string** | |
- **vcpus** | **[]float64** | |
- **vcpusEmpty** | **bool** | |
- **vcpusGt** | **[]float64** | |
- **vcpusGte** | **[]float64** | |
- **vcpusLt** | **[]float64** | |
- **vcpusLte** | **[]float64** | |
- **vcpusN** | **[]float64** | |
-
-### Return type
-
-[**PaginatedVirtualMachineWithConfigContextList**](PaginatedVirtualMachineWithConfigContextList.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)
-
-
-## VirtualizationVirtualMachinesPartialUpdate
-
-> VirtualMachineWithConfigContext VirtualizationVirtualMachinesPartialUpdate(ctx, id).PatchedWritableVirtualMachineWithConfigContextRequest(patchedWritableVirtualMachineWithConfigContextRequest).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 virtual machine.
- patchedWritableVirtualMachineWithConfigContextRequest := *openapiclient.NewPatchedWritableVirtualMachineWithConfigContextRequest() // PatchedWritableVirtualMachineWithConfigContextRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesPartialUpdate(context.Background(), id).PatchedWritableVirtualMachineWithConfigContextRequest(patchedWritableVirtualMachineWithConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationVirtualMachinesPartialUpdate`: VirtualMachineWithConfigContext
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesPartialUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this virtual machine. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesPartialUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **patchedWritableVirtualMachineWithConfigContextRequest** | [**PatchedWritableVirtualMachineWithConfigContextRequest**](PatchedWritableVirtualMachineWithConfigContextRequest.md) | |
-
-### Return type
-
-[**VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.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)
-
-
-## VirtualizationVirtualMachinesRetrieve
-
-> VirtualMachineWithConfigContext VirtualizationVirtualMachinesRetrieve(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 virtual machine.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationVirtualMachinesRetrieve`: VirtualMachineWithConfigContext
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesRetrieve`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this virtual machine. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.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)
-
-
-## VirtualizationVirtualMachinesUpdate
-
-> VirtualMachineWithConfigContext VirtualizationVirtualMachinesUpdate(ctx, id).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).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 virtual machine.
- writableVirtualMachineWithConfigContextRequest := *openapiclient.NewWritableVirtualMachineWithConfigContextRequest("Name_example") // WritableVirtualMachineWithConfigContextRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesUpdate(context.Background(), id).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `VirtualizationVirtualMachinesUpdate`: VirtualMachineWithConfigContext
- fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesUpdate`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this virtual machine. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiVirtualizationVirtualMachinesUpdateRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
- **writableVirtualMachineWithConfigContextRequest** | [**WritableVirtualMachineWithConfigContextRequest**](WritableVirtualMachineWithConfigContextRequest.md) | |
-
-### Return type
-
-[**VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.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)
-
diff --git a/docs/VpnAPI.md b/docs/VpnAPI.md
new file mode 100644
index 0000000000..7bd9841ab0
--- /dev/null
+++ b/docs/VpnAPI.md
@@ -0,0 +1,7592 @@
+# \VpnAPI
+
+All URIs are relative to *http://localhost*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**VpnIkePoliciesBulkDestroy**](VpnAPI.md#VpnIkePoliciesBulkDestroy) | **Delete** /api/vpn/ike-policies/ |
+[**VpnIkePoliciesBulkPartialUpdate**](VpnAPI.md#VpnIkePoliciesBulkPartialUpdate) | **Patch** /api/vpn/ike-policies/ |
+[**VpnIkePoliciesBulkUpdate**](VpnAPI.md#VpnIkePoliciesBulkUpdate) | **Put** /api/vpn/ike-policies/ |
+[**VpnIkePoliciesCreate**](VpnAPI.md#VpnIkePoliciesCreate) | **Post** /api/vpn/ike-policies/ |
+[**VpnIkePoliciesDestroy**](VpnAPI.md#VpnIkePoliciesDestroy) | **Delete** /api/vpn/ike-policies/{id}/ |
+[**VpnIkePoliciesList**](VpnAPI.md#VpnIkePoliciesList) | **Get** /api/vpn/ike-policies/ |
+[**VpnIkePoliciesPartialUpdate**](VpnAPI.md#VpnIkePoliciesPartialUpdate) | **Patch** /api/vpn/ike-policies/{id}/ |
+[**VpnIkePoliciesRetrieve**](VpnAPI.md#VpnIkePoliciesRetrieve) | **Get** /api/vpn/ike-policies/{id}/ |
+[**VpnIkePoliciesUpdate**](VpnAPI.md#VpnIkePoliciesUpdate) | **Put** /api/vpn/ike-policies/{id}/ |
+[**VpnIkeProposalsBulkDestroy**](VpnAPI.md#VpnIkeProposalsBulkDestroy) | **Delete** /api/vpn/ike-proposals/ |
+[**VpnIkeProposalsBulkPartialUpdate**](VpnAPI.md#VpnIkeProposalsBulkPartialUpdate) | **Patch** /api/vpn/ike-proposals/ |
+[**VpnIkeProposalsBulkUpdate**](VpnAPI.md#VpnIkeProposalsBulkUpdate) | **Put** /api/vpn/ike-proposals/ |
+[**VpnIkeProposalsCreate**](VpnAPI.md#VpnIkeProposalsCreate) | **Post** /api/vpn/ike-proposals/ |
+[**VpnIkeProposalsDestroy**](VpnAPI.md#VpnIkeProposalsDestroy) | **Delete** /api/vpn/ike-proposals/{id}/ |
+[**VpnIkeProposalsList**](VpnAPI.md#VpnIkeProposalsList) | **Get** /api/vpn/ike-proposals/ |
+[**VpnIkeProposalsPartialUpdate**](VpnAPI.md#VpnIkeProposalsPartialUpdate) | **Patch** /api/vpn/ike-proposals/{id}/ |
+[**VpnIkeProposalsRetrieve**](VpnAPI.md#VpnIkeProposalsRetrieve) | **Get** /api/vpn/ike-proposals/{id}/ |
+[**VpnIkeProposalsUpdate**](VpnAPI.md#VpnIkeProposalsUpdate) | **Put** /api/vpn/ike-proposals/{id}/ |
+[**VpnIpsecPoliciesBulkDestroy**](VpnAPI.md#VpnIpsecPoliciesBulkDestroy) | **Delete** /api/vpn/ipsec-policies/ |
+[**VpnIpsecPoliciesBulkPartialUpdate**](VpnAPI.md#VpnIpsecPoliciesBulkPartialUpdate) | **Patch** /api/vpn/ipsec-policies/ |
+[**VpnIpsecPoliciesBulkUpdate**](VpnAPI.md#VpnIpsecPoliciesBulkUpdate) | **Put** /api/vpn/ipsec-policies/ |
+[**VpnIpsecPoliciesCreate**](VpnAPI.md#VpnIpsecPoliciesCreate) | **Post** /api/vpn/ipsec-policies/ |
+[**VpnIpsecPoliciesDestroy**](VpnAPI.md#VpnIpsecPoliciesDestroy) | **Delete** /api/vpn/ipsec-policies/{id}/ |
+[**VpnIpsecPoliciesList**](VpnAPI.md#VpnIpsecPoliciesList) | **Get** /api/vpn/ipsec-policies/ |
+[**VpnIpsecPoliciesPartialUpdate**](VpnAPI.md#VpnIpsecPoliciesPartialUpdate) | **Patch** /api/vpn/ipsec-policies/{id}/ |
+[**VpnIpsecPoliciesRetrieve**](VpnAPI.md#VpnIpsecPoliciesRetrieve) | **Get** /api/vpn/ipsec-policies/{id}/ |
+[**VpnIpsecPoliciesUpdate**](VpnAPI.md#VpnIpsecPoliciesUpdate) | **Put** /api/vpn/ipsec-policies/{id}/ |
+[**VpnIpsecProfilesBulkDestroy**](VpnAPI.md#VpnIpsecProfilesBulkDestroy) | **Delete** /api/vpn/ipsec-profiles/ |
+[**VpnIpsecProfilesBulkPartialUpdate**](VpnAPI.md#VpnIpsecProfilesBulkPartialUpdate) | **Patch** /api/vpn/ipsec-profiles/ |
+[**VpnIpsecProfilesBulkUpdate**](VpnAPI.md#VpnIpsecProfilesBulkUpdate) | **Put** /api/vpn/ipsec-profiles/ |
+[**VpnIpsecProfilesCreate**](VpnAPI.md#VpnIpsecProfilesCreate) | **Post** /api/vpn/ipsec-profiles/ |
+[**VpnIpsecProfilesDestroy**](VpnAPI.md#VpnIpsecProfilesDestroy) | **Delete** /api/vpn/ipsec-profiles/{id}/ |
+[**VpnIpsecProfilesList**](VpnAPI.md#VpnIpsecProfilesList) | **Get** /api/vpn/ipsec-profiles/ |
+[**VpnIpsecProfilesPartialUpdate**](VpnAPI.md#VpnIpsecProfilesPartialUpdate) | **Patch** /api/vpn/ipsec-profiles/{id}/ |
+[**VpnIpsecProfilesRetrieve**](VpnAPI.md#VpnIpsecProfilesRetrieve) | **Get** /api/vpn/ipsec-profiles/{id}/ |
+[**VpnIpsecProfilesUpdate**](VpnAPI.md#VpnIpsecProfilesUpdate) | **Put** /api/vpn/ipsec-profiles/{id}/ |
+[**VpnIpsecProposalsBulkDestroy**](VpnAPI.md#VpnIpsecProposalsBulkDestroy) | **Delete** /api/vpn/ipsec-proposals/ |
+[**VpnIpsecProposalsBulkPartialUpdate**](VpnAPI.md#VpnIpsecProposalsBulkPartialUpdate) | **Patch** /api/vpn/ipsec-proposals/ |
+[**VpnIpsecProposalsBulkUpdate**](VpnAPI.md#VpnIpsecProposalsBulkUpdate) | **Put** /api/vpn/ipsec-proposals/ |
+[**VpnIpsecProposalsCreate**](VpnAPI.md#VpnIpsecProposalsCreate) | **Post** /api/vpn/ipsec-proposals/ |
+[**VpnIpsecProposalsDestroy**](VpnAPI.md#VpnIpsecProposalsDestroy) | **Delete** /api/vpn/ipsec-proposals/{id}/ |
+[**VpnIpsecProposalsList**](VpnAPI.md#VpnIpsecProposalsList) | **Get** /api/vpn/ipsec-proposals/ |
+[**VpnIpsecProposalsPartialUpdate**](VpnAPI.md#VpnIpsecProposalsPartialUpdate) | **Patch** /api/vpn/ipsec-proposals/{id}/ |
+[**VpnIpsecProposalsRetrieve**](VpnAPI.md#VpnIpsecProposalsRetrieve) | **Get** /api/vpn/ipsec-proposals/{id}/ |
+[**VpnIpsecProposalsUpdate**](VpnAPI.md#VpnIpsecProposalsUpdate) | **Put** /api/vpn/ipsec-proposals/{id}/ |
+[**VpnL2vpnTerminationsBulkDestroy**](VpnAPI.md#VpnL2vpnTerminationsBulkDestroy) | **Delete** /api/vpn/l2vpn-terminations/ |
+[**VpnL2vpnTerminationsBulkPartialUpdate**](VpnAPI.md#VpnL2vpnTerminationsBulkPartialUpdate) | **Patch** /api/vpn/l2vpn-terminations/ |
+[**VpnL2vpnTerminationsBulkUpdate**](VpnAPI.md#VpnL2vpnTerminationsBulkUpdate) | **Put** /api/vpn/l2vpn-terminations/ |
+[**VpnL2vpnTerminationsCreate**](VpnAPI.md#VpnL2vpnTerminationsCreate) | **Post** /api/vpn/l2vpn-terminations/ |
+[**VpnL2vpnTerminationsDestroy**](VpnAPI.md#VpnL2vpnTerminationsDestroy) | **Delete** /api/vpn/l2vpn-terminations/{id}/ |
+[**VpnL2vpnTerminationsList**](VpnAPI.md#VpnL2vpnTerminationsList) | **Get** /api/vpn/l2vpn-terminations/ |
+[**VpnL2vpnTerminationsPartialUpdate**](VpnAPI.md#VpnL2vpnTerminationsPartialUpdate) | **Patch** /api/vpn/l2vpn-terminations/{id}/ |
+[**VpnL2vpnTerminationsRetrieve**](VpnAPI.md#VpnL2vpnTerminationsRetrieve) | **Get** /api/vpn/l2vpn-terminations/{id}/ |
+[**VpnL2vpnTerminationsUpdate**](VpnAPI.md#VpnL2vpnTerminationsUpdate) | **Put** /api/vpn/l2vpn-terminations/{id}/ |
+[**VpnL2vpnsBulkDestroy**](VpnAPI.md#VpnL2vpnsBulkDestroy) | **Delete** /api/vpn/l2vpns/ |
+[**VpnL2vpnsBulkPartialUpdate**](VpnAPI.md#VpnL2vpnsBulkPartialUpdate) | **Patch** /api/vpn/l2vpns/ |
+[**VpnL2vpnsBulkUpdate**](VpnAPI.md#VpnL2vpnsBulkUpdate) | **Put** /api/vpn/l2vpns/ |
+[**VpnL2vpnsCreate**](VpnAPI.md#VpnL2vpnsCreate) | **Post** /api/vpn/l2vpns/ |
+[**VpnL2vpnsDestroy**](VpnAPI.md#VpnL2vpnsDestroy) | **Delete** /api/vpn/l2vpns/{id}/ |
+[**VpnL2vpnsList**](VpnAPI.md#VpnL2vpnsList) | **Get** /api/vpn/l2vpns/ |
+[**VpnL2vpnsPartialUpdate**](VpnAPI.md#VpnL2vpnsPartialUpdate) | **Patch** /api/vpn/l2vpns/{id}/ |
+[**VpnL2vpnsRetrieve**](VpnAPI.md#VpnL2vpnsRetrieve) | **Get** /api/vpn/l2vpns/{id}/ |
+[**VpnL2vpnsUpdate**](VpnAPI.md#VpnL2vpnsUpdate) | **Put** /api/vpn/l2vpns/{id}/ |
+[**VpnTunnelGroupsBulkDestroy**](VpnAPI.md#VpnTunnelGroupsBulkDestroy) | **Delete** /api/vpn/tunnel-groups/ |
+[**VpnTunnelGroupsBulkPartialUpdate**](VpnAPI.md#VpnTunnelGroupsBulkPartialUpdate) | **Patch** /api/vpn/tunnel-groups/ |
+[**VpnTunnelGroupsBulkUpdate**](VpnAPI.md#VpnTunnelGroupsBulkUpdate) | **Put** /api/vpn/tunnel-groups/ |
+[**VpnTunnelGroupsCreate**](VpnAPI.md#VpnTunnelGroupsCreate) | **Post** /api/vpn/tunnel-groups/ |
+[**VpnTunnelGroupsDestroy**](VpnAPI.md#VpnTunnelGroupsDestroy) | **Delete** /api/vpn/tunnel-groups/{id}/ |
+[**VpnTunnelGroupsList**](VpnAPI.md#VpnTunnelGroupsList) | **Get** /api/vpn/tunnel-groups/ |
+[**VpnTunnelGroupsPartialUpdate**](VpnAPI.md#VpnTunnelGroupsPartialUpdate) | **Patch** /api/vpn/tunnel-groups/{id}/ |
+[**VpnTunnelGroupsRetrieve**](VpnAPI.md#VpnTunnelGroupsRetrieve) | **Get** /api/vpn/tunnel-groups/{id}/ |
+[**VpnTunnelGroupsUpdate**](VpnAPI.md#VpnTunnelGroupsUpdate) | **Put** /api/vpn/tunnel-groups/{id}/ |
+[**VpnTunnelTerminationsBulkDestroy**](VpnAPI.md#VpnTunnelTerminationsBulkDestroy) | **Delete** /api/vpn/tunnel-terminations/ |
+[**VpnTunnelTerminationsBulkPartialUpdate**](VpnAPI.md#VpnTunnelTerminationsBulkPartialUpdate) | **Patch** /api/vpn/tunnel-terminations/ |
+[**VpnTunnelTerminationsBulkUpdate**](VpnAPI.md#VpnTunnelTerminationsBulkUpdate) | **Put** /api/vpn/tunnel-terminations/ |
+[**VpnTunnelTerminationsCreate**](VpnAPI.md#VpnTunnelTerminationsCreate) | **Post** /api/vpn/tunnel-terminations/ |
+[**VpnTunnelTerminationsDestroy**](VpnAPI.md#VpnTunnelTerminationsDestroy) | **Delete** /api/vpn/tunnel-terminations/{id}/ |
+[**VpnTunnelTerminationsList**](VpnAPI.md#VpnTunnelTerminationsList) | **Get** /api/vpn/tunnel-terminations/ |
+[**VpnTunnelTerminationsPartialUpdate**](VpnAPI.md#VpnTunnelTerminationsPartialUpdate) | **Patch** /api/vpn/tunnel-terminations/{id}/ |
+[**VpnTunnelTerminationsRetrieve**](VpnAPI.md#VpnTunnelTerminationsRetrieve) | **Get** /api/vpn/tunnel-terminations/{id}/ |
+[**VpnTunnelTerminationsUpdate**](VpnAPI.md#VpnTunnelTerminationsUpdate) | **Put** /api/vpn/tunnel-terminations/{id}/ |
+[**VpnTunnelsBulkDestroy**](VpnAPI.md#VpnTunnelsBulkDestroy) | **Delete** /api/vpn/tunnels/ |
+[**VpnTunnelsBulkPartialUpdate**](VpnAPI.md#VpnTunnelsBulkPartialUpdate) | **Patch** /api/vpn/tunnels/ |
+[**VpnTunnelsBulkUpdate**](VpnAPI.md#VpnTunnelsBulkUpdate) | **Put** /api/vpn/tunnels/ |
+[**VpnTunnelsCreate**](VpnAPI.md#VpnTunnelsCreate) | **Post** /api/vpn/tunnels/ |
+[**VpnTunnelsDestroy**](VpnAPI.md#VpnTunnelsDestroy) | **Delete** /api/vpn/tunnels/{id}/ |
+[**VpnTunnelsList**](VpnAPI.md#VpnTunnelsList) | **Get** /api/vpn/tunnels/ |
+[**VpnTunnelsPartialUpdate**](VpnAPI.md#VpnTunnelsPartialUpdate) | **Patch** /api/vpn/tunnels/{id}/ |
+[**VpnTunnelsRetrieve**](VpnAPI.md#VpnTunnelsRetrieve) | **Get** /api/vpn/tunnels/{id}/ |
+[**VpnTunnelsUpdate**](VpnAPI.md#VpnTunnelsUpdate) | **Put** /api/vpn/tunnels/{id}/ |
+
+
+
+## VpnIkePoliciesBulkDestroy
+
+> VpnIkePoliciesBulkDestroy(ctx).IKEPolicyRequest(iKEPolicyRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnIkePoliciesBulkDestroy(context.Background()).IKEPolicyRequest(iKEPolicyRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkePoliciesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkePoliciesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iKEPolicyRequest** | [**[]IKEPolicyRequest**](IKEPolicyRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VpnIkePoliciesBulkPartialUpdate
+
+> []IKEPolicy VpnIkePoliciesBulkPartialUpdate(ctx).IKEPolicyRequest(iKEPolicyRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkePoliciesBulkPartialUpdate(context.Background()).IKEPolicyRequest(iKEPolicyRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkePoliciesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIkePoliciesBulkPartialUpdate`: []IKEPolicy
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkePoliciesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkePoliciesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iKEPolicyRequest** | [**[]IKEPolicyRequest**](IKEPolicyRequest.md) | |
+
+### Return type
+
+[**[]IKEPolicy**](IKEPolicy.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)
+
+
+## VpnIkePoliciesBulkUpdate
+
+> []IKEPolicy VpnIkePoliciesBulkUpdate(ctx).IKEPolicyRequest(iKEPolicyRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkePoliciesBulkUpdate(context.Background()).IKEPolicyRequest(iKEPolicyRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkePoliciesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIkePoliciesBulkUpdate`: []IKEPolicy
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkePoliciesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkePoliciesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iKEPolicyRequest** | [**[]IKEPolicyRequest**](IKEPolicyRequest.md) | |
+
+### Return type
+
+[**[]IKEPolicy**](IKEPolicy.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)
+
+
+## VpnIkePoliciesCreate
+
+> IKEPolicy VpnIkePoliciesCreate(ctx).WritableIKEPolicyRequest(writableIKEPolicyRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableIKEPolicyRequest := *openapiclient.NewWritableIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_mode_value("aggressive"), []int32{int32(123)}) // WritableIKEPolicyRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkePoliciesCreate(context.Background()).WritableIKEPolicyRequest(writableIKEPolicyRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkePoliciesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIkePoliciesCreate`: IKEPolicy
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkePoliciesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkePoliciesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableIKEPolicyRequest** | [**WritableIKEPolicyRequest**](WritableIKEPolicyRequest.md) | |
+
+### Return type
+
+[**IKEPolicy**](IKEPolicy.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)
+
+
+## VpnIkePoliciesDestroy
+
+> VpnIkePoliciesDestroy(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 IKE policy.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnIkePoliciesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkePoliciesDestroy``: %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 IKE policy. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkePoliciesDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ mode := []string{"Inner_example"} // []string | (optional)
+ modeN := []string{"Inner_example"} // []string | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ presharedKey := "presharedKey_example" // string | (optional)
+ presharedKeyIc := "presharedKeyIc_example" // string | (optional)
+ presharedKeyIe := "presharedKeyIe_example" // string | (optional)
+ presharedKeyIew := "presharedKeyIew_example" // string | (optional)
+ presharedKeyIsw := "presharedKeyIsw_example" // string | (optional)
+ presharedKeyN := "presharedKeyN_example" // string | (optional)
+ presharedKeyNic := "presharedKeyNic_example" // string | (optional)
+ presharedKeyNie := "presharedKeyNie_example" // string | (optional)
+ 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)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ version := []int32{int32(123)} // []int32 | (optional)
+ versionN := []int32{int32(123)} // []int32 | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkePoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).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()
+ 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)
+ }
+ // response from `VpnIkePoliciesList`: PaginatedIKEPolicyList
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkePoliciesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkePoliciesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **mode** | **[]string** | |
+ **modeN** | **[]string** | |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **presharedKey** | **string** | |
+ **presharedKeyIc** | **string** | |
+ **presharedKeyIe** | **string** | |
+ **presharedKeyIew** | **string** | |
+ **presharedKeyIsw** | **string** | |
+ **presharedKeyN** | **string** | |
+ **presharedKeyNic** | **string** | |
+ **presharedKeyNie** | **string** | |
+ **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** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+ **version** | **[]int32** | |
+ **versionN** | **[]int32** | |
+
+### Return type
+
+[**PaginatedIKEPolicyList**](PaginatedIKEPolicyList.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)
+
+
+## VpnIkePoliciesPartialUpdate
+
+> IKEPolicy VpnIkePoliciesPartialUpdate(ctx, id).PatchedWritableIKEPolicyRequest(patchedWritableIKEPolicyRequest).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 IKE policy.
+ patchedWritableIKEPolicyRequest := *openapiclient.NewPatchedWritableIKEPolicyRequest() // PatchedWritableIKEPolicyRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkePoliciesPartialUpdate(context.Background(), id).PatchedWritableIKEPolicyRequest(patchedWritableIKEPolicyRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkePoliciesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIkePoliciesPartialUpdate`: IKEPolicy
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkePoliciesPartialUpdate`: %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 IKE policy. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkePoliciesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableIKEPolicyRequest** | [**PatchedWritableIKEPolicyRequest**](PatchedWritableIKEPolicyRequest.md) | |
+
+### Return type
+
+[**IKEPolicy**](IKEPolicy.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)
+
+
+## VpnIkePoliciesRetrieve
+
+> IKEPolicy VpnIkePoliciesRetrieve(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 IKE policy.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkePoliciesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkePoliciesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIkePoliciesRetrieve`: IKEPolicy
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkePoliciesRetrieve`: %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 IKE policy. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkePoliciesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**IKEPolicy**](IKEPolicy.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)
+
+
+## VpnIkePoliciesUpdate
+
+> IKEPolicy VpnIkePoliciesUpdate(ctx, id).WritableIKEPolicyRequest(writableIKEPolicyRequest).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 IKE policy.
+ writableIKEPolicyRequest := *openapiclient.NewWritableIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_mode_value("aggressive"), []int32{int32(123)}) // WritableIKEPolicyRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkePoliciesUpdate(context.Background(), id).WritableIKEPolicyRequest(writableIKEPolicyRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkePoliciesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIkePoliciesUpdate`: IKEPolicy
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkePoliciesUpdate`: %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 IKE policy. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkePoliciesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableIKEPolicyRequest** | [**WritableIKEPolicyRequest**](WritableIKEPolicyRequest.md) | |
+
+### Return type
+
+[**IKEPolicy**](IKEPolicy.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)
+
+
+## VpnIkeProposalsBulkDestroy
+
+> VpnIkeProposalsBulkDestroy(ctx).IKEProposalRequest(iKEProposalRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnIkeProposalsBulkDestroy(context.Background()).IKEProposalRequest(iKEProposalRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkeProposalsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkeProposalsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iKEProposalRequest** | [**[]IKEProposalRequest**](IKEProposalRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VpnIkeProposalsBulkPartialUpdate
+
+> []IKEProposal VpnIkeProposalsBulkPartialUpdate(ctx).IKEProposalRequest(iKEProposalRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkeProposalsBulkPartialUpdate(context.Background()).IKEProposalRequest(iKEProposalRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkeProposalsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIkeProposalsBulkPartialUpdate`: []IKEProposal
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkeProposalsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkeProposalsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iKEProposalRequest** | [**[]IKEProposalRequest**](IKEProposalRequest.md) | |
+
+### Return type
+
+[**[]IKEProposal**](IKEProposal.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)
+
+
+## VpnIkeProposalsBulkUpdate
+
+> []IKEProposal VpnIkeProposalsBulkUpdate(ctx).IKEProposalRequest(iKEProposalRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkeProposalsBulkUpdate(context.Background()).IKEProposalRequest(iKEProposalRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkeProposalsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIkeProposalsBulkUpdate`: []IKEProposal
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkeProposalsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkeProposalsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iKEProposalRequest** | [**[]IKEProposalRequest**](IKEProposalRequest.md) | |
+
+### Return type
+
+[**[]IKEProposal**](IKEProposal.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)
+
+
+## VpnIkeProposalsCreate
+
+> IKEProposal VpnIkeProposalsCreate(ctx).WritableIKEProposalRequest(writableIKEProposalRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableIKEProposalRequest := *openapiclient.NewWritableIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.PatchedWritableIKEProposalRequest_group(1)) // WritableIKEProposalRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkeProposalsCreate(context.Background()).WritableIKEProposalRequest(writableIKEProposalRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkeProposalsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIkeProposalsCreate`: IKEProposal
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkeProposalsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkeProposalsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableIKEProposalRequest** | [**WritableIKEProposalRequest**](WritableIKEProposalRequest.md) | |
+
+### Return type
+
+[**IKEProposal**](IKEProposal.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)
+
+
+## VpnIkeProposalsDestroy
+
+> VpnIkeProposalsDestroy(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 IKE proposal.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnIkeProposalsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkeProposalsDestroy``: %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 IKE proposal. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkeProposalsDestroyRequest 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)
+
+
+## VpnIkeProposalsList
+
+> PaginatedIKEProposalList VpnIkeProposalsList(ctx).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationMethod(authenticationMethod).AuthenticationMethodN(authenticationMethodN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmN(encryptionAlgorithmN).Group(group).GroupN(groupN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SaLifetime(saLifetime).SaLifetimeEmpty(saLifetimeEmpty).SaLifetimeGt(saLifetimeGt).SaLifetimeGte(saLifetimeGte).SaLifetimeLt(saLifetimeLt).SaLifetimeLte(saLifetimeLte).SaLifetimeN(saLifetimeN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ authenticationAlgorithm := []string{"Inner_example"} // []string | (optional)
+ authenticationAlgorithmN := []string{"Inner_example"} // []string | (optional)
+ authenticationMethod := []string{"Inner_example"} // []string | (optional)
+ authenticationMethodN := []string{"Inner_example"} // []string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ encryptionAlgorithm := []string{"Inner_example"} // []string | (optional)
+ encryptionAlgorithmN := []string{"Inner_example"} // []string | (optional)
+ group := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional)
+ groupN := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ saLifetime := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeEmpty := true // bool | (optional)
+ saLifetimeGt := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeGte := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeLt := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeLte := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeN := []int32{int32(123)} // []int32 | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkeProposalsList(context.Background()).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationMethod(authenticationMethod).AuthenticationMethodN(authenticationMethodN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmN(encryptionAlgorithmN).Group(group).GroupN(groupN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SaLifetime(saLifetime).SaLifetimeEmpty(saLifetimeEmpty).SaLifetimeGt(saLifetimeGt).SaLifetimeGte(saLifetimeGte).SaLifetimeLt(saLifetimeLt).SaLifetimeLte(saLifetimeLte).SaLifetimeN(saLifetimeN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkeProposalsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIkeProposalsList`: PaginatedIKEProposalList
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkeProposalsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkeProposalsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **authenticationAlgorithm** | **[]string** | |
+ **authenticationAlgorithmN** | **[]string** | |
+ **authenticationMethod** | **[]string** | |
+ **authenticationMethodN** | **[]string** | |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **encryptionAlgorithm** | **[]string** | |
+ **encryptionAlgorithmN** | **[]string** | |
+ **group** | **[]int32** | Diffie-Hellman group ID |
+ **groupN** | **[]int32** | Diffie-Hellman group ID |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **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 |
+ **saLifetime** | **[]int32** | |
+ **saLifetimeEmpty** | **bool** | |
+ **saLifetimeGt** | **[]int32** | |
+ **saLifetimeGte** | **[]int32** | |
+ **saLifetimeLt** | **[]int32** | |
+ **saLifetimeLte** | **[]int32** | |
+ **saLifetimeN** | **[]int32** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedIKEProposalList**](PaginatedIKEProposalList.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)
+
+
+## VpnIkeProposalsPartialUpdate
+
+> IKEProposal VpnIkeProposalsPartialUpdate(ctx, id).PatchedWritableIKEProposalRequest(patchedWritableIKEProposalRequest).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 IKE proposal.
+ patchedWritableIKEProposalRequest := *openapiclient.NewPatchedWritableIKEProposalRequest() // PatchedWritableIKEProposalRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkeProposalsPartialUpdate(context.Background(), id).PatchedWritableIKEProposalRequest(patchedWritableIKEProposalRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkeProposalsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIkeProposalsPartialUpdate`: IKEProposal
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkeProposalsPartialUpdate`: %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 IKE proposal. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkeProposalsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableIKEProposalRequest** | [**PatchedWritableIKEProposalRequest**](PatchedWritableIKEProposalRequest.md) | |
+
+### Return type
+
+[**IKEProposal**](IKEProposal.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)
+
+
+## VpnIkeProposalsRetrieve
+
+> IKEProposal VpnIkeProposalsRetrieve(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 IKE proposal.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkeProposalsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkeProposalsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIkeProposalsRetrieve`: IKEProposal
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkeProposalsRetrieve`: %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 IKE proposal. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkeProposalsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**IKEProposal**](IKEProposal.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)
+
+
+## VpnIkeProposalsUpdate
+
+> IKEProposal VpnIkeProposalsUpdate(ctx, id).WritableIKEProposalRequest(writableIKEProposalRequest).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 IKE proposal.
+ writableIKEProposalRequest := *openapiclient.NewWritableIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.PatchedWritableIKEProposalRequest_group(1)) // WritableIKEProposalRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIkeProposalsUpdate(context.Background(), id).WritableIKEProposalRequest(writableIKEProposalRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkeProposalsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIkeProposalsUpdate`: IKEProposal
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIkeProposalsUpdate`: %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 IKE proposal. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIkeProposalsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableIKEProposalRequest** | [**WritableIKEProposalRequest**](WritableIKEProposalRequest.md) | |
+
+### Return type
+
+[**IKEProposal**](IKEProposal.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)
+
+
+## VpnIpsecPoliciesBulkDestroy
+
+> VpnIpsecPoliciesBulkDestroy(ctx).IPSecPolicyRequest(iPSecPolicyRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPSecPolicyRequest := []openapiclient.IPSecPolicyRequest{*openapiclient.NewIPSecPolicyRequest("Name_example")} // []IPSecPolicyRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnIpsecPoliciesBulkDestroy(context.Background()).IPSecPolicyRequest(iPSecPolicyRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecPoliciesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecPoliciesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPSecPolicyRequest** | [**[]IPSecPolicyRequest**](IPSecPolicyRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VpnIpsecPoliciesBulkPartialUpdate
+
+> []IPSecPolicy VpnIpsecPoliciesBulkPartialUpdate(ctx).IPSecPolicyRequest(iPSecPolicyRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPSecPolicyRequest := []openapiclient.IPSecPolicyRequest{*openapiclient.NewIPSecPolicyRequest("Name_example")} // []IPSecPolicyRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesBulkPartialUpdate(context.Background()).IPSecPolicyRequest(iPSecPolicyRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecPoliciesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecPoliciesBulkPartialUpdate`: []IPSecPolicy
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecPoliciesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecPoliciesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPSecPolicyRequest** | [**[]IPSecPolicyRequest**](IPSecPolicyRequest.md) | |
+
+### Return type
+
+[**[]IPSecPolicy**](IPSecPolicy.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)
+
+
+## VpnIpsecPoliciesBulkUpdate
+
+> []IPSecPolicy VpnIpsecPoliciesBulkUpdate(ctx).IPSecPolicyRequest(iPSecPolicyRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPSecPolicyRequest := []openapiclient.IPSecPolicyRequest{*openapiclient.NewIPSecPolicyRequest("Name_example")} // []IPSecPolicyRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesBulkUpdate(context.Background()).IPSecPolicyRequest(iPSecPolicyRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecPoliciesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecPoliciesBulkUpdate`: []IPSecPolicy
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecPoliciesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecPoliciesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPSecPolicyRequest** | [**[]IPSecPolicyRequest**](IPSecPolicyRequest.md) | |
+
+### Return type
+
+[**[]IPSecPolicy**](IPSecPolicy.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)
+
+
+## VpnIpsecPoliciesCreate
+
+> IPSecPolicy VpnIpsecPoliciesCreate(ctx).WritableIPSecPolicyRequest(writableIPSecPolicyRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableIPSecPolicyRequest := *openapiclient.NewWritableIPSecPolicyRequest("Name_example", []int32{int32(123)}) // WritableIPSecPolicyRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesCreate(context.Background()).WritableIPSecPolicyRequest(writableIPSecPolicyRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecPoliciesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecPoliciesCreate`: IPSecPolicy
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecPoliciesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecPoliciesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableIPSecPolicyRequest** | [**WritableIPSecPolicyRequest**](WritableIPSecPolicyRequest.md) | |
+
+### Return type
+
+[**IPSecPolicy**](IPSecPolicy.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)
+
+
+## VpnIpsecPoliciesDestroy
+
+> VpnIpsecPoliciesDestroy(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 IPSec policy.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnIpsecPoliciesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecPoliciesDestroy``: %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 IPSec policy. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecPoliciesDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ 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)
+ 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.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()
+ 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)
+ }
+ // response from `VpnIpsecPoliciesList`: PaginatedIPSecPolicyList
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecPoliciesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecPoliciesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **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** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedIPSecPolicyList**](PaginatedIPSecPolicyList.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)
+
+
+## VpnIpsecPoliciesPartialUpdate
+
+> IPSecPolicy VpnIpsecPoliciesPartialUpdate(ctx, id).PatchedWritableIPSecPolicyRequest(patchedWritableIPSecPolicyRequest).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 IPSec policy.
+ patchedWritableIPSecPolicyRequest := *openapiclient.NewPatchedWritableIPSecPolicyRequest() // PatchedWritableIPSecPolicyRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesPartialUpdate(context.Background(), id).PatchedWritableIPSecPolicyRequest(patchedWritableIPSecPolicyRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecPoliciesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecPoliciesPartialUpdate`: IPSecPolicy
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecPoliciesPartialUpdate`: %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 IPSec policy. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecPoliciesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableIPSecPolicyRequest** | [**PatchedWritableIPSecPolicyRequest**](PatchedWritableIPSecPolicyRequest.md) | |
+
+### Return type
+
+[**IPSecPolicy**](IPSecPolicy.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)
+
+
+## VpnIpsecPoliciesRetrieve
+
+> IPSecPolicy VpnIpsecPoliciesRetrieve(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 IPSec policy.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecPoliciesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecPoliciesRetrieve`: IPSecPolicy
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecPoliciesRetrieve`: %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 IPSec policy. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecPoliciesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**IPSecPolicy**](IPSecPolicy.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)
+
+
+## VpnIpsecPoliciesUpdate
+
+> IPSecPolicy VpnIpsecPoliciesUpdate(ctx, id).WritableIPSecPolicyRequest(writableIPSecPolicyRequest).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 IPSec policy.
+ writableIPSecPolicyRequest := *openapiclient.NewWritableIPSecPolicyRequest("Name_example", []int32{int32(123)}) // WritableIPSecPolicyRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesUpdate(context.Background(), id).WritableIPSecPolicyRequest(writableIPSecPolicyRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecPoliciesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecPoliciesUpdate`: IPSecPolicy
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecPoliciesUpdate`: %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 IPSec policy. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecPoliciesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableIPSecPolicyRequest** | [**WritableIPSecPolicyRequest**](WritableIPSecPolicyRequest.md) | |
+
+### Return type
+
+[**IPSecPolicy**](IPSecPolicy.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)
+
+
+## VpnIpsecProfilesBulkDestroy
+
+> VpnIpsecProfilesBulkDestroy(ctx).IPSecProfileRequest(iPSecProfileRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewNestedIKEPolicyRequest("Name_example"), *openapiclient.NewNestedIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnIpsecProfilesBulkDestroy(context.Background()).IPSecProfileRequest(iPSecProfileRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProfilesBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProfilesBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPSecProfileRequest** | [**[]IPSecProfileRequest**](IPSecProfileRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VpnIpsecProfilesBulkPartialUpdate
+
+> []IPSecProfile VpnIpsecProfilesBulkPartialUpdate(ctx).IPSecProfileRequest(iPSecProfileRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewNestedIKEPolicyRequest("Name_example"), *openapiclient.NewNestedIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecProfilesBulkPartialUpdate(context.Background()).IPSecProfileRequest(iPSecProfileRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProfilesBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecProfilesBulkPartialUpdate`: []IPSecProfile
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProfilesBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProfilesBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPSecProfileRequest** | [**[]IPSecProfileRequest**](IPSecProfileRequest.md) | |
+
+### Return type
+
+[**[]IPSecProfile**](IPSecProfile.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)
+
+
+## VpnIpsecProfilesBulkUpdate
+
+> []IPSecProfile VpnIpsecProfilesBulkUpdate(ctx).IPSecProfileRequest(iPSecProfileRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewNestedIKEPolicyRequest("Name_example"), *openapiclient.NewNestedIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecProfilesBulkUpdate(context.Background()).IPSecProfileRequest(iPSecProfileRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProfilesBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecProfilesBulkUpdate`: []IPSecProfile
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProfilesBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProfilesBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPSecProfileRequest** | [**[]IPSecProfileRequest**](IPSecProfileRequest.md) | |
+
+### Return type
+
+[**[]IPSecProfile**](IPSecProfile.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)
+
+
+## VpnIpsecProfilesCreate
+
+> IPSecProfile VpnIpsecProfilesCreate(ctx).WritableIPSecProfileRequest(writableIPSecProfileRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), int32(123), int32(123)) // WritableIPSecProfileRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecProfilesCreate(context.Background()).WritableIPSecProfileRequest(writableIPSecProfileRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProfilesCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecProfilesCreate`: IPSecProfile
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProfilesCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProfilesCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableIPSecProfileRequest** | [**WritableIPSecProfileRequest**](WritableIPSecProfileRequest.md) | |
+
+### Return type
+
+[**IPSecProfile**](IPSecProfile.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)
+
+
+## VpnIpsecProfilesDestroy
+
+> VpnIpsecProfilesDestroy(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 IPSec profile.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnIpsecProfilesDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProfilesDestroy``: %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 IPSec profile. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProfilesDestroyRequest 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)
+
+
+## VpnIpsecProfilesList
+
+> PaginatedIPSecProfileList VpnIpsecProfilesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ ikePolicy := []string{"Inner_example"} // []string | IKE policy (name) (optional)
+ ikePolicyN := []string{"Inner_example"} // []string | IKE policy (name) (optional)
+ ikePolicyId := []int32{int32(123)} // []int32 | IKE policy (ID) (optional)
+ ikePolicyIdN := []int32{int32(123)} // []int32 | IKE policy (ID) (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)
+ 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)
+ mode := []string{"Inner_example"} // []string | (optional)
+ modeN := []string{"Inner_example"} // []string | (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ 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.VpnAPI.VpnIpsecProfilesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProfilesList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecProfilesList`: PaginatedIPSecProfileList
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProfilesList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProfilesListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **ikePolicy** | **[]string** | IKE policy (name) |
+ **ikePolicyN** | **[]string** | IKE policy (name) |
+ **ikePolicyId** | **[]int32** | IKE policy (ID) |
+ **ikePolicyIdN** | **[]int32** | IKE policy (ID) |
+ **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) | |
+ **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. |
+ **mode** | **[]string** | |
+ **modeN** | **[]string** | |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedIPSecProfileList**](PaginatedIPSecProfileList.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)
+
+
+## VpnIpsecProfilesPartialUpdate
+
+> IPSecProfile VpnIpsecProfilesPartialUpdate(ctx, id).PatchedWritableIPSecProfileRequest(patchedWritableIPSecProfileRequest).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 IPSec profile.
+ patchedWritableIPSecProfileRequest := *openapiclient.NewPatchedWritableIPSecProfileRequest() // PatchedWritableIPSecProfileRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecProfilesPartialUpdate(context.Background(), id).PatchedWritableIPSecProfileRequest(patchedWritableIPSecProfileRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProfilesPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecProfilesPartialUpdate`: IPSecProfile
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProfilesPartialUpdate`: %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 IPSec profile. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProfilesPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableIPSecProfileRequest** | [**PatchedWritableIPSecProfileRequest**](PatchedWritableIPSecProfileRequest.md) | |
+
+### Return type
+
+[**IPSecProfile**](IPSecProfile.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)
+
+
+## VpnIpsecProfilesRetrieve
+
+> IPSecProfile VpnIpsecProfilesRetrieve(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 IPSec profile.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecProfilesRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProfilesRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecProfilesRetrieve`: IPSecProfile
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProfilesRetrieve`: %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 IPSec profile. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProfilesRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**IPSecProfile**](IPSecProfile.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)
+
+
+## VpnIpsecProfilesUpdate
+
+> IPSecProfile VpnIpsecProfilesUpdate(ctx, id).WritableIPSecProfileRequest(writableIPSecProfileRequest).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 IPSec profile.
+ writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), int32(123), int32(123)) // WritableIPSecProfileRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecProfilesUpdate(context.Background(), id).WritableIPSecProfileRequest(writableIPSecProfileRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProfilesUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecProfilesUpdate`: IPSecProfile
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProfilesUpdate`: %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 IPSec profile. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProfilesUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableIPSecProfileRequest** | [**WritableIPSecProfileRequest**](WritableIPSecProfileRequest.md) | |
+
+### Return type
+
+[**IPSecProfile**](IPSecProfile.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)
+
+
+## VpnIpsecProposalsBulkDestroy
+
+> VpnIpsecProposalsBulkDestroy(ctx).IPSecProposalRequest(iPSecProposalRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPSecProposalRequest := []openapiclient.IPSecProposalRequest{*openapiclient.NewIPSecProposalRequest("Name_example", openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"))} // []IPSecProposalRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnIpsecProposalsBulkDestroy(context.Background()).IPSecProposalRequest(iPSecProposalRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProposalsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProposalsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPSecProposalRequest** | [**[]IPSecProposalRequest**](IPSecProposalRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VpnIpsecProposalsBulkPartialUpdate
+
+> []IPSecProposal VpnIpsecProposalsBulkPartialUpdate(ctx).IPSecProposalRequest(iPSecProposalRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPSecProposalRequest := []openapiclient.IPSecProposalRequest{*openapiclient.NewIPSecProposalRequest("Name_example", openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"))} // []IPSecProposalRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecProposalsBulkPartialUpdate(context.Background()).IPSecProposalRequest(iPSecProposalRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProposalsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecProposalsBulkPartialUpdate`: []IPSecProposal
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProposalsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProposalsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPSecProposalRequest** | [**[]IPSecProposalRequest**](IPSecProposalRequest.md) | |
+
+### Return type
+
+[**[]IPSecProposal**](IPSecProposal.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)
+
+
+## VpnIpsecProposalsBulkUpdate
+
+> []IPSecProposal VpnIpsecProposalsBulkUpdate(ctx).IPSecProposalRequest(iPSecProposalRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ iPSecProposalRequest := []openapiclient.IPSecProposalRequest{*openapiclient.NewIPSecProposalRequest("Name_example", openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"))} // []IPSecProposalRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecProposalsBulkUpdate(context.Background()).IPSecProposalRequest(iPSecProposalRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProposalsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecProposalsBulkUpdate`: []IPSecProposal
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProposalsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProposalsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **iPSecProposalRequest** | [**[]IPSecProposalRequest**](IPSecProposalRequest.md) | |
+
+### Return type
+
+[**[]IPSecProposal**](IPSecProposal.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)
+
+
+## VpnIpsecProposalsCreate
+
+> IPSecProposal VpnIpsecProposalsCreate(ctx).WritableIPSecProposalRequest(writableIPSecProposalRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableIPSecProposalRequest := *openapiclient.NewWritableIPSecProposalRequest("Name_example") // WritableIPSecProposalRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecProposalsCreate(context.Background()).WritableIPSecProposalRequest(writableIPSecProposalRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProposalsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecProposalsCreate`: IPSecProposal
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProposalsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProposalsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableIPSecProposalRequest** | [**WritableIPSecProposalRequest**](WritableIPSecProposalRequest.md) | |
+
+### Return type
+
+[**IPSecProposal**](IPSecProposal.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)
+
+
+## VpnIpsecProposalsDestroy
+
+> VpnIpsecProposalsDestroy(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 IPSec proposal.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnIpsecProposalsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProposalsDestroy``: %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 IPSec proposal. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProposalsDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ authenticationAlgorithm := []string{"Inner_example"} // []string | (optional)
+ authenticationAlgorithmN := []string{"Inner_example"} // []string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ encryptionAlgorithm := []string{"Inner_example"} // []string | (optional)
+ encryptionAlgorithmN := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ saLifetimeData := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeDataEmpty := true // bool | (optional)
+ saLifetimeDataGt := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeDataGte := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeDataLt := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeDataLte := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeDataN := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeSeconds := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeSecondsEmpty := true // bool | (optional)
+ saLifetimeSecondsGt := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeSecondsGte := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeSecondsLt := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeSecondsLte := []int32{int32(123)} // []int32 | (optional)
+ saLifetimeSecondsN := []int32{int32(123)} // []int32 | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.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()
+ 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)
+ }
+ // response from `VpnIpsecProposalsList`: PaginatedIPSecProposalList
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProposalsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProposalsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **authenticationAlgorithm** | **[]string** | |
+ **authenticationAlgorithmN** | **[]string** | |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **encryptionAlgorithm** | **[]string** | |
+ **encryptionAlgorithmN** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+ **saLifetimeData** | **[]int32** | |
+ **saLifetimeDataEmpty** | **bool** | |
+ **saLifetimeDataGt** | **[]int32** | |
+ **saLifetimeDataGte** | **[]int32** | |
+ **saLifetimeDataLt** | **[]int32** | |
+ **saLifetimeDataLte** | **[]int32** | |
+ **saLifetimeDataN** | **[]int32** | |
+ **saLifetimeSeconds** | **[]int32** | |
+ **saLifetimeSecondsEmpty** | **bool** | |
+ **saLifetimeSecondsGt** | **[]int32** | |
+ **saLifetimeSecondsGte** | **[]int32** | |
+ **saLifetimeSecondsLt** | **[]int32** | |
+ **saLifetimeSecondsLte** | **[]int32** | |
+ **saLifetimeSecondsN** | **[]int32** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedIPSecProposalList**](PaginatedIPSecProposalList.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)
+
+
+## VpnIpsecProposalsPartialUpdate
+
+> IPSecProposal VpnIpsecProposalsPartialUpdate(ctx, id).PatchedWritableIPSecProposalRequest(patchedWritableIPSecProposalRequest).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 IPSec proposal.
+ patchedWritableIPSecProposalRequest := *openapiclient.NewPatchedWritableIPSecProposalRequest() // PatchedWritableIPSecProposalRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecProposalsPartialUpdate(context.Background(), id).PatchedWritableIPSecProposalRequest(patchedWritableIPSecProposalRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProposalsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecProposalsPartialUpdate`: IPSecProposal
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProposalsPartialUpdate`: %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 IPSec proposal. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProposalsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableIPSecProposalRequest** | [**PatchedWritableIPSecProposalRequest**](PatchedWritableIPSecProposalRequest.md) | |
+
+### Return type
+
+[**IPSecProposal**](IPSecProposal.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)
+
+
+## VpnIpsecProposalsRetrieve
+
+> IPSecProposal VpnIpsecProposalsRetrieve(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 IPSec proposal.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecProposalsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProposalsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecProposalsRetrieve`: IPSecProposal
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProposalsRetrieve`: %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 IPSec proposal. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProposalsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**IPSecProposal**](IPSecProposal.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)
+
+
+## VpnIpsecProposalsUpdate
+
+> IPSecProposal VpnIpsecProposalsUpdate(ctx, id).WritableIPSecProposalRequest(writableIPSecProposalRequest).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 IPSec proposal.
+ writableIPSecProposalRequest := *openapiclient.NewWritableIPSecProposalRequest("Name_example") // WritableIPSecProposalRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnIpsecProposalsUpdate(context.Background(), id).WritableIPSecProposalRequest(writableIPSecProposalRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProposalsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnIpsecProposalsUpdate`: IPSecProposal
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnIpsecProposalsUpdate`: %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 IPSec proposal. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnIpsecProposalsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableIPSecProposalRequest** | [**WritableIPSecProposalRequest**](WritableIPSecProposalRequest.md) | |
+
+### Return type
+
+[**IPSecProposal**](IPSecProposal.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)
+
+
+## VpnL2vpnTerminationsBulkDestroy
+
+> VpnL2vpnTerminationsBulkDestroy(ctx).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewNestedL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnL2vpnTerminationsBulkDestroy(context.Background()).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnTerminationsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnTerminationsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **l2VPNTerminationRequest** | [**[]L2VPNTerminationRequest**](L2VPNTerminationRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VpnL2vpnTerminationsBulkPartialUpdate
+
+> []L2VPNTermination VpnL2vpnTerminationsBulkPartialUpdate(ctx).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewNestedL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsBulkPartialUpdate(context.Background()).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnTerminationsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnL2vpnTerminationsBulkPartialUpdate`: []L2VPNTermination
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnTerminationsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnTerminationsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **l2VPNTerminationRequest** | [**[]L2VPNTerminationRequest**](L2VPNTerminationRequest.md) | |
+
+### Return type
+
+[**[]L2VPNTermination**](L2VPNTermination.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)
+
+
+## VpnL2vpnTerminationsBulkUpdate
+
+> []L2VPNTermination VpnL2vpnTerminationsBulkUpdate(ctx).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewNestedL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsBulkUpdate(context.Background()).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnTerminationsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnL2vpnTerminationsBulkUpdate`: []L2VPNTermination
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnTerminationsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnTerminationsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **l2VPNTerminationRequest** | [**[]L2VPNTerminationRequest**](L2VPNTerminationRequest.md) | |
+
+### Return type
+
+[**[]L2VPNTermination**](L2VPNTermination.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)
+
+
+## VpnL2vpnTerminationsCreate
+
+> L2VPNTermination VpnL2vpnTerminationsCreate(ctx).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableL2VPNTerminationRequest := *openapiclient.NewWritableL2VPNTerminationRequest(int32(123), "AssignedObjectType_example", int64(123)) // WritableL2VPNTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsCreate(context.Background()).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).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)
+ }
+ // response from `VpnL2vpnTerminationsCreate`: L2VPNTermination
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnTerminationsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnTerminationsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableL2VPNTerminationRequest** | [**WritableL2VPNTerminationRequest**](WritableL2VPNTerminationRequest.md) | |
+
+### Return type
+
+[**L2VPNTermination**](L2VPNTermination.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)
+
+
+## VpnL2vpnTerminationsDestroy
+
+> VpnL2vpnTerminationsDestroy(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 L2VPN termination.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnL2vpnTerminationsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnTerminationsDestroy``: %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 L2VPN termination. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnTerminationsDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ 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)
+ 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)
+ 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)
+ 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)
+ interface_ := []string{"Inner_example"} // []string | Interface (name) (optional)
+ interfaceN := []string{"Inner_example"} // []string | Interface (name) (optional)
+ interfaceId := []int32{int32(123)} // []int32 | Interface (ID) (optional)
+ interfaceIdN := []int32{int32(123)} // []int32 | Interface (ID) (optional)
+ l2vpn := []string{"Inner_example"} // []string | L2VPN (slug) (optional)
+ l2vpnN := []string{"Inner_example"} // []string | L2VPN (slug) (optional)
+ l2vpnId := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
+ l2vpnIdN := []int32{int32(123)} // []int32 | L2VPN (ID) (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ region := []string{"Inner_example"} // []string | (optional)
+ regionId := []int32{int32(123)} // []int32 | (optional)
+ site := []string{"Inner_example"} // []string | (optional)
+ siteId := []int32{int32(123)} // []int32 | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ virtualMachine := []string{"Inner_example"} // []string | Virtual machine (name) (optional)
+ virtualMachineN := []string{"Inner_example"} // []string | Virtual machine (name) (optional)
+ virtualMachineId := []int32{int32(123)} // []int32 | Virtual machine (ID) (optional)
+ virtualMachineIdN := []int32{int32(123)} // []int32 | Virtual machine (ID) (optional)
+ vlan := []string{"Inner_example"} // []string | VLAN (name) (optional)
+ vlanN := []string{"Inner_example"} // []string | VLAN (name) (optional)
+ vlanId := []int32{int32(123)} // []int32 | VLAN (ID) (optional)
+ vlanIdN := []int32{int32(123)} // []int32 | VLAN (ID) (optional)
+ vlanVid := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vlanVidEmpty := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vlanVidGt := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vlanVidGte := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vlanVidLt := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vlanVidLte := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vlanVidN := int32(56) // int32 | VLAN number (1-4094) (optional)
+ vminterface := []string{"Inner_example"} // []string | VM interface (name) (optional)
+ vminterfaceN := []string{"Inner_example"} // []string | VM interface (name) (optional)
+ vminterfaceId := []int32{int32(123)} // []int32 | VM Interface (ID) (optional)
+ vminterfaceIdN := []int32{int32(123)} // []int32 | VM Interface (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.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()
+ 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)
+ }
+ // response from `VpnL2vpnTerminationsList`: PaginatedL2VPNTerminationList
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnTerminationsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnTerminationsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **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) | |
+ **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** | |
+ **device** | **[]string** | Device (name) |
+ **deviceN** | **[]string** | Device (name) |
+ **deviceId** | **[]int32** | Device (ID) |
+ **deviceIdN** | **[]int32** | Device (ID) |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **interface_** | **[]string** | Interface (name) |
+ **interfaceN** | **[]string** | Interface (name) |
+ **interfaceId** | **[]int32** | Interface (ID) |
+ **interfaceIdN** | **[]int32** | Interface (ID) |
+ **l2vpn** | **[]string** | L2VPN (slug) |
+ **l2vpnN** | **[]string** | L2VPN (slug) |
+ **l2vpnId** | **[]int32** | L2VPN (ID) |
+ **l2vpnIdN** | **[]int32** | L2VPN (ID) |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+ **region** | **[]string** | |
+ **regionId** | **[]int32** | |
+ **site** | **[]string** | |
+ **siteId** | **[]int32** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+ **virtualMachine** | **[]string** | Virtual machine (name) |
+ **virtualMachineN** | **[]string** | Virtual machine (name) |
+ **virtualMachineId** | **[]int32** | Virtual machine (ID) |
+ **virtualMachineIdN** | **[]int32** | Virtual machine (ID) |
+ **vlan** | **[]string** | VLAN (name) |
+ **vlanN** | **[]string** | VLAN (name) |
+ **vlanId** | **[]int32** | VLAN (ID) |
+ **vlanIdN** | **[]int32** | VLAN (ID) |
+ **vlanVid** | **int32** | VLAN number (1-4094) |
+ **vlanVidEmpty** | **int32** | VLAN number (1-4094) |
+ **vlanVidGt** | **int32** | VLAN number (1-4094) |
+ **vlanVidGte** | **int32** | VLAN number (1-4094) |
+ **vlanVidLt** | **int32** | VLAN number (1-4094) |
+ **vlanVidLte** | **int32** | VLAN number (1-4094) |
+ **vlanVidN** | **int32** | VLAN number (1-4094) |
+ **vminterface** | **[]string** | VM interface (name) |
+ **vminterfaceN** | **[]string** | VM interface (name) |
+ **vminterfaceId** | **[]int32** | VM Interface (ID) |
+ **vminterfaceIdN** | **[]int32** | VM Interface (ID) |
+
+### Return type
+
+[**PaginatedL2VPNTerminationList**](PaginatedL2VPNTerminationList.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)
+
+
+## VpnL2vpnTerminationsPartialUpdate
+
+> L2VPNTermination VpnL2vpnTerminationsPartialUpdate(ctx, id).PatchedWritableL2VPNTerminationRequest(patchedWritableL2VPNTerminationRequest).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 L2VPN termination.
+ patchedWritableL2VPNTerminationRequest := *openapiclient.NewPatchedWritableL2VPNTerminationRequest() // PatchedWritableL2VPNTerminationRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsPartialUpdate(context.Background(), id).PatchedWritableL2VPNTerminationRequest(patchedWritableL2VPNTerminationRequest).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)
+ }
+ // response from `VpnL2vpnTerminationsPartialUpdate`: L2VPNTermination
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnTerminationsPartialUpdate`: %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 L2VPN termination. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnTerminationsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableL2VPNTerminationRequest** | [**PatchedWritableL2VPNTerminationRequest**](PatchedWritableL2VPNTerminationRequest.md) | |
+
+### Return type
+
+[**L2VPNTermination**](L2VPNTermination.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)
+
+
+## VpnL2vpnTerminationsRetrieve
+
+> L2VPNTermination VpnL2vpnTerminationsRetrieve(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 L2VPN termination.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnTerminationsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnL2vpnTerminationsRetrieve`: L2VPNTermination
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnTerminationsRetrieve`: %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 L2VPN termination. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnTerminationsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**L2VPNTermination**](L2VPNTermination.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)
+
+
+## VpnL2vpnTerminationsUpdate
+
+> L2VPNTermination VpnL2vpnTerminationsUpdate(ctx, id).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).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 L2VPN termination.
+ writableL2VPNTerminationRequest := *openapiclient.NewWritableL2VPNTerminationRequest(int32(123), "AssignedObjectType_example", int64(123)) // WritableL2VPNTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsUpdate(context.Background(), id).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).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)
+ }
+ // response from `VpnL2vpnTerminationsUpdate`: L2VPNTermination
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnTerminationsUpdate`: %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 L2VPN termination. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnTerminationsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableL2VPNTerminationRequest** | [**WritableL2VPNTerminationRequest**](WritableL2VPNTerminationRequest.md) | |
+
+### Return type
+
+[**L2VPNTermination**](L2VPNTermination.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)
+
+
+## VpnL2vpnsBulkDestroy
+
+> VpnL2vpnsBulkDestroy(ctx).L2VPNRequest(l2VPNRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ l2VPNRequest := []openapiclient.L2VPNRequest{*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")} // []L2VPNRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnL2vpnsBulkDestroy(context.Background()).L2VPNRequest(l2VPNRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **l2VPNRequest** | [**[]L2VPNRequest**](L2VPNRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VpnL2vpnsBulkPartialUpdate
+
+> []L2VPN VpnL2vpnsBulkPartialUpdate(ctx).L2VPNRequest(l2VPNRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ l2VPNRequest := []openapiclient.L2VPNRequest{*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")} // []L2VPNRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnsBulkPartialUpdate(context.Background()).L2VPNRequest(l2VPNRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnL2vpnsBulkPartialUpdate`: []L2VPN
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **l2VPNRequest** | [**[]L2VPNRequest**](L2VPNRequest.md) | |
+
+### Return type
+
+[**[]L2VPN**](L2VPN.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)
+
+
+## VpnL2vpnsBulkUpdate
+
+> []L2VPN VpnL2vpnsBulkUpdate(ctx).L2VPNRequest(l2VPNRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ l2VPNRequest := []openapiclient.L2VPNRequest{*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")} // []L2VPNRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnsBulkUpdate(context.Background()).L2VPNRequest(l2VPNRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnL2vpnsBulkUpdate`: []L2VPN
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **l2VPNRequest** | [**[]L2VPNRequest**](L2VPNRequest.md) | |
+
+### Return type
+
+[**[]L2VPN**](L2VPN.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)
+
+
+## VpnL2vpnsCreate
+
+> L2VPN VpnL2vpnsCreate(ctx).WritableL2VPNRequest(writableL2VPNRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")) // WritableL2VPNRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnsCreate(context.Background()).WritableL2VPNRequest(writableL2VPNRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnL2vpnsCreate`: L2VPN
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableL2VPNRequest** | [**WritableL2VPNRequest**](WritableL2VPNRequest.md) | |
+
+### Return type
+
+[**L2VPN**](L2VPN.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)
+
+
+## VpnL2vpnsDestroy
+
+> VpnL2vpnsDestroy(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 L2VPN.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnL2vpnsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnsDestroy``: %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 L2VPN. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnsDestroyRequest 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)
+
+
+## VpnL2vpnsList
+
+> PaginatedL2VPNList VpnL2vpnsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ exportTarget := []string{"Inner_example"} // []string | Export target (name) (optional)
+ exportTargetN := []string{"Inner_example"} // []string | Export target (name) (optional)
+ exportTargetId := []int32{int32(123)} // []int32 | Export target (optional)
+ exportTargetIdN := []int32{int32(123)} // []int32 | Export target (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ identifier := []int32{int32(123)} // []int32 | (optional)
+ identifierEmpty := true // bool | (optional)
+ identifierGt := []int32{int32(123)} // []int32 | (optional)
+ identifierGte := []int32{int32(123)} // []int32 | (optional)
+ identifierLt := []int32{int32(123)} // []int32 | (optional)
+ identifierLte := []int32{int32(123)} // []int32 | (optional)
+ identifierN := []int32{int32(123)} // []int32 | (optional)
+ importTarget := []string{"Inner_example"} // []string | Import target (name) (optional)
+ importTargetN := []string{"Inner_example"} // []string | Import target (name) (optional)
+ importTargetId := []int32{int32(123)} // []int32 | Import target (optional)
+ importTargetIdN := []int32{int32(123)} // []int32 | Import target (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ type_ := []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.VpnAPI.VpnL2vpnsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnL2vpnsList`: PaginatedL2VPNList
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **exportTarget** | **[]string** | Export target (name) |
+ **exportTargetN** | **[]string** | Export target (name) |
+ **exportTargetId** | **[]int32** | Export target |
+ **exportTargetIdN** | **[]int32** | Export target |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **identifier** | **[]int32** | |
+ **identifierEmpty** | **bool** | |
+ **identifierGt** | **[]int32** | |
+ **identifierGte** | **[]int32** | |
+ **identifierLt** | **[]int32** | |
+ **identifierLte** | **[]int32** | |
+ **identifierN** | **[]int32** | |
+ **importTarget** | **[]string** | Import target (name) |
+ **importTargetN** | **[]string** | Import target (name) |
+ **importTargetId** | **[]int32** | Import target |
+ **importTargetIdN** | **[]int32** | Import target |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+ **slug** | **[]string** | |
+ **slugEmpty** | **bool** | |
+ **slugIc** | **[]string** | |
+ **slugIe** | **[]string** | |
+ **slugIew** | **[]string** | |
+ **slugIsw** | **[]string** | |
+ **slugN** | **[]string** | |
+ **slugNic** | **[]string** | |
+ **slugNie** | **[]string** | |
+ **slugNiew** | **[]string** | |
+ **slugNisw** | **[]string** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **tenant** | **[]string** | Tenant (slug) |
+ **tenantN** | **[]string** | Tenant (slug) |
+ **tenantGroup** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupN** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupId** | **[]int32** | Tenant Group (ID) |
+ **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
+ **tenantId** | **[]int32** | Tenant (ID) |
+ **tenantIdN** | **[]int32** | Tenant (ID) |
+ **type_** | **[]string** | |
+ **typeN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedL2VPNList**](PaginatedL2VPNList.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)
+
+
+## VpnL2vpnsPartialUpdate
+
+> L2VPN VpnL2vpnsPartialUpdate(ctx, id).PatchedWritableL2VPNRequest(patchedWritableL2VPNRequest).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 L2VPN.
+ patchedWritableL2VPNRequest := *openapiclient.NewPatchedWritableL2VPNRequest() // PatchedWritableL2VPNRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnsPartialUpdate(context.Background(), id).PatchedWritableL2VPNRequest(patchedWritableL2VPNRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnL2vpnsPartialUpdate`: L2VPN
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnsPartialUpdate`: %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 L2VPN. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableL2VPNRequest** | [**PatchedWritableL2VPNRequest**](PatchedWritableL2VPNRequest.md) | |
+
+### Return type
+
+[**L2VPN**](L2VPN.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)
+
+
+## VpnL2vpnsRetrieve
+
+> L2VPN VpnL2vpnsRetrieve(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 L2VPN.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnL2vpnsRetrieve`: L2VPN
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnsRetrieve`: %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 L2VPN. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**L2VPN**](L2VPN.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)
+
+
+## VpnL2vpnsUpdate
+
+> L2VPN VpnL2vpnsUpdate(ctx, id).WritableL2VPNRequest(writableL2VPNRequest).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 L2VPN.
+ writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")) // WritableL2VPNRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnsUpdate(context.Background(), id).WritableL2VPNRequest(writableL2VPNRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnL2vpnsUpdate`: L2VPN
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnL2vpnsUpdate`: %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 L2VPN. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnL2vpnsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableL2VPNRequest** | [**WritableL2VPNRequest**](WritableL2VPNRequest.md) | |
+
+### Return type
+
+[**L2VPN**](L2VPN.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)
+
+
+## VpnTunnelGroupsBulkDestroy
+
+> VpnTunnelGroupsBulkDestroy(ctx).TunnelGroupRequest(tunnelGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ tunnelGroupRequest := []openapiclient.TunnelGroupRequest{*openapiclient.NewTunnelGroupRequest("Name_example", "Slug_example")} // []TunnelGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnTunnelGroupsBulkDestroy(context.Background()).TunnelGroupRequest(tunnelGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelGroupsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelGroupsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **tunnelGroupRequest** | [**[]TunnelGroupRequest**](TunnelGroupRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VpnTunnelGroupsBulkPartialUpdate
+
+> []TunnelGroup VpnTunnelGroupsBulkPartialUpdate(ctx).TunnelGroupRequest(tunnelGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ tunnelGroupRequest := []openapiclient.TunnelGroupRequest{*openapiclient.NewTunnelGroupRequest("Name_example", "Slug_example")} // []TunnelGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelGroupsBulkPartialUpdate(context.Background()).TunnelGroupRequest(tunnelGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelGroupsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelGroupsBulkPartialUpdate`: []TunnelGroup
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelGroupsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelGroupsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **tunnelGroupRequest** | [**[]TunnelGroupRequest**](TunnelGroupRequest.md) | |
+
+### Return type
+
+[**[]TunnelGroup**](TunnelGroup.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)
+
+
+## VpnTunnelGroupsBulkUpdate
+
+> []TunnelGroup VpnTunnelGroupsBulkUpdate(ctx).TunnelGroupRequest(tunnelGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ tunnelGroupRequest := []openapiclient.TunnelGroupRequest{*openapiclient.NewTunnelGroupRequest("Name_example", "Slug_example")} // []TunnelGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelGroupsBulkUpdate(context.Background()).TunnelGroupRequest(tunnelGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelGroupsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelGroupsBulkUpdate`: []TunnelGroup
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelGroupsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelGroupsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **tunnelGroupRequest** | [**[]TunnelGroupRequest**](TunnelGroupRequest.md) | |
+
+### Return type
+
+[**[]TunnelGroup**](TunnelGroup.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)
+
+
+## VpnTunnelGroupsCreate
+
+> TunnelGroup VpnTunnelGroupsCreate(ctx).TunnelGroupRequest(tunnelGroupRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ tunnelGroupRequest := *openapiclient.NewTunnelGroupRequest("Name_example", "Slug_example") // TunnelGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelGroupsCreate(context.Background()).TunnelGroupRequest(tunnelGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelGroupsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelGroupsCreate`: TunnelGroup
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelGroupsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelGroupsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **tunnelGroupRequest** | [**TunnelGroupRequest**](TunnelGroupRequest.md) | |
+
+### Return type
+
+[**TunnelGroup**](TunnelGroup.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)
+
+
+## VpnTunnelGroupsDestroy
+
+> VpnTunnelGroupsDestroy(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 tunnel group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnTunnelGroupsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelGroupsDestroy``: %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 tunnel group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelGroupsDestroyRequest 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)
+
+
+## VpnTunnelGroupsList
+
+> PaginatedTunnelGroupList VpnTunnelGroupsList(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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelGroupsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelGroupsList`: PaginatedTunnelGroupList
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelGroupsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelGroupsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **nameIe** | **[]string** | |
+ **nameIew** | **[]string** | |
+ **nameIsw** | **[]string** | |
+ **nameN** | **[]string** | |
+ **nameNic** | **[]string** | |
+ **nameNie** | **[]string** | |
+ **nameNiew** | **[]string** | |
+ **nameNisw** | **[]string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
+ **slug** | **[]string** | |
+ **slugEmpty** | **bool** | |
+ **slugIc** | **[]string** | |
+ **slugIe** | **[]string** | |
+ **slugIew** | **[]string** | |
+ **slugIsw** | **[]string** | |
+ **slugN** | **[]string** | |
+ **slugNic** | **[]string** | |
+ **slugNie** | **[]string** | |
+ **slugNiew** | **[]string** | |
+ **slugNisw** | **[]string** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedTunnelGroupList**](PaginatedTunnelGroupList.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)
+
+
+## VpnTunnelGroupsPartialUpdate
+
+> TunnelGroup VpnTunnelGroupsPartialUpdate(ctx, id).PatchedTunnelGroupRequest(patchedTunnelGroupRequest).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 tunnel group.
+ patchedTunnelGroupRequest := *openapiclient.NewPatchedTunnelGroupRequest() // PatchedTunnelGroupRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelGroupsPartialUpdate(context.Background(), id).PatchedTunnelGroupRequest(patchedTunnelGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelGroupsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelGroupsPartialUpdate`: TunnelGroup
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelGroupsPartialUpdate`: %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 tunnel group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelGroupsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedTunnelGroupRequest** | [**PatchedTunnelGroupRequest**](PatchedTunnelGroupRequest.md) | |
+
+### Return type
+
+[**TunnelGroup**](TunnelGroup.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)
+
+
+## VpnTunnelGroupsRetrieve
+
+> TunnelGroup VpnTunnelGroupsRetrieve(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 tunnel group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelGroupsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelGroupsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelGroupsRetrieve`: TunnelGroup
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelGroupsRetrieve`: %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 tunnel group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelGroupsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**TunnelGroup**](TunnelGroup.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)
+
+
+## VpnTunnelGroupsUpdate
+
+> TunnelGroup VpnTunnelGroupsUpdate(ctx, id).TunnelGroupRequest(tunnelGroupRequest).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 tunnel group.
+ tunnelGroupRequest := *openapiclient.NewTunnelGroupRequest("Name_example", "Slug_example") // TunnelGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelGroupsUpdate(context.Background(), id).TunnelGroupRequest(tunnelGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelGroupsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelGroupsUpdate`: TunnelGroup
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelGroupsUpdate`: %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 tunnel group. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelGroupsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **tunnelGroupRequest** | [**TunnelGroupRequest**](TunnelGroupRequest.md) | |
+
+### Return type
+
+[**TunnelGroup**](TunnelGroup.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)
+
+
+## VpnTunnelTerminationsBulkDestroy
+
+> VpnTunnelTerminationsBulkDestroy(ctx).TunnelTerminationRequest(tunnelTerminationRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewNestedTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example")} // []TunnelTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnTunnelTerminationsBulkDestroy(context.Background()).TunnelTerminationRequest(tunnelTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelTerminationsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelTerminationsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **tunnelTerminationRequest** | [**[]TunnelTerminationRequest**](TunnelTerminationRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VpnTunnelTerminationsBulkPartialUpdate
+
+> []TunnelTermination VpnTunnelTerminationsBulkPartialUpdate(ctx).TunnelTerminationRequest(tunnelTerminationRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewNestedTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example")} // []TunnelTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelTerminationsBulkPartialUpdate(context.Background()).TunnelTerminationRequest(tunnelTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelTerminationsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelTerminationsBulkPartialUpdate`: []TunnelTermination
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelTerminationsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelTerminationsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **tunnelTerminationRequest** | [**[]TunnelTerminationRequest**](TunnelTerminationRequest.md) | |
+
+### Return type
+
+[**[]TunnelTermination**](TunnelTermination.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)
+
+
+## VpnTunnelTerminationsBulkUpdate
+
+> []TunnelTermination VpnTunnelTerminationsBulkUpdate(ctx).TunnelTerminationRequest(tunnelTerminationRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewNestedTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example")} // []TunnelTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelTerminationsBulkUpdate(context.Background()).TunnelTerminationRequest(tunnelTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelTerminationsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelTerminationsBulkUpdate`: []TunnelTermination
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelTerminationsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelTerminationsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **tunnelTerminationRequest** | [**[]TunnelTerminationRequest**](TunnelTerminationRequest.md) | |
+
+### Return type
+
+[**[]TunnelTermination**](TunnelTermination.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)
+
+
+## VpnTunnelTerminationsCreate
+
+> TunnelTermination VpnTunnelTerminationsCreate(ctx).WritableTunnelTerminationRequest(writableTunnelTerminationRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(int32(123), "TerminationType_example") // WritableTunnelTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelTerminationsCreate(context.Background()).WritableTunnelTerminationRequest(writableTunnelTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelTerminationsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelTerminationsCreate`: TunnelTermination
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelTerminationsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelTerminationsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableTunnelTerminationRequest** | [**WritableTunnelTerminationRequest**](WritableTunnelTerminationRequest.md) | |
+
+### Return type
+
+[**TunnelTermination**](TunnelTermination.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)
+
+
+## VpnTunnelTerminationsDestroy
+
+> VpnTunnelTerminationsDestroy(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 tunnel termination.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnTunnelTerminationsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelTerminationsDestroy``: %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 tunnel termination. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelTerminationsDestroyRequest 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)
+
+
+## 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()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ 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)
+ interface_ := []string{"Inner_example"} // []string | Interface (name) (optional)
+ interfaceN := []string{"Inner_example"} // []string | Interface (name) (optional)
+ interfaceId := []int32{int32(123)} // []int32 | Interface (ID) (optional)
+ interfaceIdN := []int32{int32(123)} // []int32 | Interface (ID) (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ 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)
+ outsideIpId := []int32{int32(123)} // []int32 | Outside IP (ID) (optional)
+ outsideIpIdN := []int32{int32(123)} // []int32 | Outside IP (ID) (optional)
+ q := "q_example" // string | Search (optional)
+ role := []string{"Inner_example"} // []string | (optional)
+ roleN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ terminationType := "terminationType_example" // string | (optional)
+ terminationTypeN := "terminationTypeN_example" // string | (optional)
+ tunnel := []string{"Inner_example"} // []string | Tunnel (name) (optional)
+ tunnelN := []string{"Inner_example"} // []string | Tunnel (name) (optional)
+ tunnelId := []int32{int32(123)} // []int32 | Tunnel (ID) (optional)
+ tunnelIdN := []int32{int32(123)} // []int32 | Tunnel (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ vminterface := []string{"Inner_example"} // []string | VM interface (name) (optional)
+ vminterfaceN := []string{"Inner_example"} // []string | VM interface (name) (optional)
+ vminterfaceId := []int32{int32(123)} // []int32 | VM interface (ID) (optional)
+ vminterfaceIdN := []int32{int32(123)} // []int32 | VM interface (ID) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.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()
+ 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)
+ }
+ // response from `VpnTunnelTerminationsList`: PaginatedTunnelTerminationList
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelTerminationsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelTerminationsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **interface_** | **[]string** | Interface (name) |
+ **interfaceN** | **[]string** | Interface (name) |
+ **interfaceId** | **[]int32** | Interface (ID) |
+ **interfaceIdN** | **[]int32** | Interface (ID) |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **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. |
+ **outsideIpId** | **[]int32** | Outside IP (ID) |
+ **outsideIpIdN** | **[]int32** | Outside IP (ID) |
+ **q** | **string** | Search |
+ **role** | **[]string** | |
+ **roleN** | **[]string** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **terminationType** | **string** | |
+ **terminationTypeN** | **string** | |
+ **tunnel** | **[]string** | Tunnel (name) |
+ **tunnelN** | **[]string** | Tunnel (name) |
+ **tunnelId** | **[]int32** | Tunnel (ID) |
+ **tunnelIdN** | **[]int32** | Tunnel (ID) |
+ **updatedByRequest** | **string** | |
+ **vminterface** | **[]string** | VM interface (name) |
+ **vminterfaceN** | **[]string** | VM interface (name) |
+ **vminterfaceId** | **[]int32** | VM interface (ID) |
+ **vminterfaceIdN** | **[]int32** | VM interface (ID) |
+
+### Return type
+
+[**PaginatedTunnelTerminationList**](PaginatedTunnelTerminationList.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)
+
+
+## VpnTunnelTerminationsPartialUpdate
+
+> TunnelTermination VpnTunnelTerminationsPartialUpdate(ctx, id).PatchedWritableTunnelTerminationRequest(patchedWritableTunnelTerminationRequest).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 tunnel termination.
+ patchedWritableTunnelTerminationRequest := *openapiclient.NewPatchedWritableTunnelTerminationRequest() // PatchedWritableTunnelTerminationRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelTerminationsPartialUpdate(context.Background(), id).PatchedWritableTunnelTerminationRequest(patchedWritableTunnelTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelTerminationsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelTerminationsPartialUpdate`: TunnelTermination
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelTerminationsPartialUpdate`: %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 tunnel termination. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelTerminationsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableTunnelTerminationRequest** | [**PatchedWritableTunnelTerminationRequest**](PatchedWritableTunnelTerminationRequest.md) | |
+
+### Return type
+
+[**TunnelTermination**](TunnelTermination.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)
+
+
+## VpnTunnelTerminationsRetrieve
+
+> TunnelTermination VpnTunnelTerminationsRetrieve(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 tunnel termination.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelTerminationsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelTerminationsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelTerminationsRetrieve`: TunnelTermination
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelTerminationsRetrieve`: %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 tunnel termination. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelTerminationsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**TunnelTermination**](TunnelTermination.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)
+
+
+## VpnTunnelTerminationsUpdate
+
+> TunnelTermination VpnTunnelTerminationsUpdate(ctx, id).WritableTunnelTerminationRequest(writableTunnelTerminationRequest).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 tunnel termination.
+ writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(int32(123), "TerminationType_example") // WritableTunnelTerminationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelTerminationsUpdate(context.Background(), id).WritableTunnelTerminationRequest(writableTunnelTerminationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelTerminationsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelTerminationsUpdate`: TunnelTermination
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelTerminationsUpdate`: %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 tunnel termination. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelTerminationsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableTunnelTerminationRequest** | [**WritableTunnelTerminationRequest**](WritableTunnelTerminationRequest.md) | |
+
+### Return type
+
+[**TunnelTermination**](TunnelTermination.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)
+
+
+## VpnTunnelsBulkDestroy
+
+> VpnTunnelsBulkDestroy(ctx).TunnelRequest(tunnelRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), *openapiclient.NewNestedTunnelGroupRequest("Name_example", "Slug_example"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnTunnelsBulkDestroy(context.Background()).TunnelRequest(tunnelRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelsBulkDestroyRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **tunnelRequest** | [**[]TunnelRequest**](TunnelRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, multipart/form-data
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## VpnTunnelsBulkPartialUpdate
+
+> []Tunnel VpnTunnelsBulkPartialUpdate(ctx).TunnelRequest(tunnelRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), *openapiclient.NewNestedTunnelGroupRequest("Name_example", "Slug_example"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelsBulkPartialUpdate(context.Background()).TunnelRequest(tunnelRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelsBulkPartialUpdate`: []Tunnel
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelsBulkPartialUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelsBulkPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **tunnelRequest** | [**[]TunnelRequest**](TunnelRequest.md) | |
+
+### Return type
+
+[**[]Tunnel**](Tunnel.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)
+
+
+## VpnTunnelsBulkUpdate
+
+> []Tunnel VpnTunnelsBulkUpdate(ctx).TunnelRequest(tunnelRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), *openapiclient.NewNestedTunnelGroupRequest("Name_example", "Slug_example"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelsBulkUpdate(context.Background()).TunnelRequest(tunnelRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelsBulkUpdate`: []Tunnel
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelsBulkUpdate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelsBulkUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **tunnelRequest** | [**[]TunnelRequest**](TunnelRequest.md) | |
+
+### Return type
+
+[**[]Tunnel**](Tunnel.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)
+
+
+## VpnTunnelsCreate
+
+> Tunnel VpnTunnelsCreate(ctx).WritableTunnelRequest(writableTunnelRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+func main() {
+ writableTunnelRequest := *openapiclient.NewWritableTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport")) // WritableTunnelRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelsCreate(context.Background()).WritableTunnelRequest(writableTunnelRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelsCreate`: Tunnel
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelsCreate`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelsCreateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **writableTunnelRequest** | [**WritableTunnelRequest**](WritableTunnelRequest.md) | |
+
+### Return type
+
+[**Tunnel**](Tunnel.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)
+
+
+## VpnTunnelsDestroy
+
+> VpnTunnelsDestroy(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 tunnel.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.VpnAPI.VpnTunnelsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelsDestroy``: %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 tunnel. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelsDestroyRequest 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)
+
+
+## VpnTunnelsList
+
+> PaginatedTunnelList VpnTunnelsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Encapsulation(encapsulation).EncapsulationN(encapsulationN).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProfile(ipsecProfile).IpsecProfileN(ipsecProfileN).IpsecProfileId(ipsecProfileId).IpsecProfileIdN(ipsecProfileIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TunnelId(tunnelId).TunnelIdEmpty(tunnelIdEmpty).TunnelIdGt(tunnelIdGt).TunnelIdGte(tunnelIdGte).TunnelIdLt(tunnelIdLt).TunnelIdLte(tunnelIdLte).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Execute()
+
+
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+)
+
+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)
+ encapsulation := []string{"Inner_example"} // []string | (optional)
+ encapsulationN := []string{"Inner_example"} // []string | (optional)
+ group := []string{"Inner_example"} // []string | Tunnel group (slug) (optional)
+ groupN := []string{"Inner_example"} // []string | Tunnel group (slug) (optional)
+ groupId := []*int32{int32(123)} // []*int32 | Tunnel group (ID) (optional)
+ groupIdN := []*int32{int32(123)} // []*int32 | Tunnel group (ID) (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ ipsecProfile := []string{"Inner_example"} // []string | IPSec profile (name) (optional)
+ ipsecProfileN := []string{"Inner_example"} // []string | IPSec profile (name) (optional)
+ ipsecProfileId := []*int32{int32(123)} // []*int32 | IPSec profile (ID) (optional)
+ ipsecProfileIdN := []*int32{int32(123)} // []*int32 | IPSec profile (ID) (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ 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)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tunnelId := []int32{int32(123)} // []int32 | (optional)
+ tunnelIdEmpty := true // bool | (optional)
+ tunnelIdGt := []int32{int32(123)} // []int32 | (optional)
+ tunnelIdGte := []int32{int32(123)} // []int32 | (optional)
+ tunnelIdLt := []int32{int32(123)} // []int32 | (optional)
+ tunnelIdLte := []int32{int32(123)} // []int32 | (optional)
+ tunnelIdN := []int32{int32(123)} // []int32 | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Encapsulation(encapsulation).EncapsulationN(encapsulationN).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProfile(ipsecProfile).IpsecProfileN(ipsecProfileN).IpsecProfileId(ipsecProfileId).IpsecProfileIdN(ipsecProfileIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TunnelId(tunnelId).TunnelIdEmpty(tunnelIdEmpty).TunnelIdGt(tunnelIdGt).TunnelIdGte(tunnelIdGte).TunnelIdLt(tunnelIdLt).TunnelIdLte(tunnelIdLte).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelsList`: PaginatedTunnelList
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelsList`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelsListRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
+ **description** | **[]string** | |
+ **descriptionEmpty** | **bool** | |
+ **descriptionIc** | **[]string** | |
+ **descriptionIe** | **[]string** | |
+ **descriptionIew** | **[]string** | |
+ **descriptionIsw** | **[]string** | |
+ **descriptionN** | **[]string** | |
+ **descriptionNic** | **[]string** | |
+ **descriptionNie** | **[]string** | |
+ **descriptionNiew** | **[]string** | |
+ **descriptionNisw** | **[]string** | |
+ **encapsulation** | **[]string** | |
+ **encapsulationN** | **[]string** | |
+ **group** | **[]string** | Tunnel group (slug) |
+ **groupN** | **[]string** | Tunnel group (slug) |
+ **groupId** | **[]int32** | Tunnel group (ID) |
+ **groupIdN** | **[]int32** | Tunnel group (ID) |
+ **id** | **[]int32** | |
+ **idEmpty** | **bool** | |
+ **idGt** | **[]int32** | |
+ **idGte** | **[]int32** | |
+ **idLt** | **[]int32** | |
+ **idLte** | **[]int32** | |
+ **idN** | **[]int32** | |
+ **ipsecProfile** | **[]string** | IPSec profile (name) |
+ **ipsecProfileN** | **[]string** | IPSec profile (name) |
+ **ipsecProfileId** | **[]int32** | IPSec profile (ID) |
+ **ipsecProfileIdN** | **[]int32** | IPSec profile (ID) |
+ **lastUpdated** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
+ **limit** | **int32** | Number of results to return per page. |
+ **modifiedByRequest** | **string** | |
+ **name** | **[]string** | |
+ **nameEmpty** | **bool** | |
+ **nameIc** | **[]string** | |
+ **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 |
+ **status** | **[]string** | |
+ **statusN** | **[]string** | |
+ **tag** | **[]string** | |
+ **tagN** | **[]string** | |
+ **tenant** | **[]string** | Tenant (slug) |
+ **tenantN** | **[]string** | Tenant (slug) |
+ **tenantGroup** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupN** | **[]int32** | Tenant Group (slug) |
+ **tenantGroupId** | **[]int32** | Tenant Group (ID) |
+ **tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
+ **tenantId** | **[]int32** | Tenant (ID) |
+ **tenantIdN** | **[]int32** | Tenant (ID) |
+ **tunnelId** | **[]int32** | |
+ **tunnelIdEmpty** | **bool** | |
+ **tunnelIdGt** | **[]int32** | |
+ **tunnelIdGte** | **[]int32** | |
+ **tunnelIdLt** | **[]int32** | |
+ **tunnelIdLte** | **[]int32** | |
+ **tunnelIdN** | **[]int32** | |
+ **updatedByRequest** | **string** | |
+
+### Return type
+
+[**PaginatedTunnelList**](PaginatedTunnelList.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)
+
+
+## VpnTunnelsPartialUpdate
+
+> Tunnel VpnTunnelsPartialUpdate(ctx, id).PatchedWritableTunnelRequest(patchedWritableTunnelRequest).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 tunnel.
+ patchedWritableTunnelRequest := *openapiclient.NewPatchedWritableTunnelRequest() // PatchedWritableTunnelRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelsPartialUpdate(context.Background(), id).PatchedWritableTunnelRequest(patchedWritableTunnelRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelsPartialUpdate`: Tunnel
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelsPartialUpdate`: %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 tunnel. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelsPartialUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **patchedWritableTunnelRequest** | [**PatchedWritableTunnelRequest**](PatchedWritableTunnelRequest.md) | |
+
+### Return type
+
+[**Tunnel**](Tunnel.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)
+
+
+## VpnTunnelsRetrieve
+
+> Tunnel VpnTunnelsRetrieve(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 tunnel.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelsRetrieve`: Tunnel
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelsRetrieve`: %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 tunnel. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelsRetrieveRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**Tunnel**](Tunnel.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)
+
+
+## VpnTunnelsUpdate
+
+> Tunnel VpnTunnelsUpdate(ctx, id).WritableTunnelRequest(writableTunnelRequest).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 tunnel.
+ writableTunnelRequest := *openapiclient.NewWritableTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport")) // WritableTunnelRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.VpnAPI.VpnTunnelsUpdate(context.Background(), id).WritableTunnelRequest(writableTunnelRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `VpnTunnelsUpdate`: Tunnel
+ fmt.Fprintf(os.Stdout, "Response from `VpnAPI.VpnTunnelsUpdate`: %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 tunnel. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiVpnTunnelsUpdateRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **writableTunnelRequest** | [**WritableTunnelRequest**](WritableTunnelRequest.md) | |
+
+### Return type
+
+[**Tunnel**](Tunnel.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)
+
diff --git a/docs/Webhook.md b/docs/Webhook.md
index 57f0abf4d6..146995485d 100644
--- a/docs/Webhook.md
+++ b/docs/Webhook.md
@@ -7,21 +7,14 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**ContentTypes** | **[]string** | |
**Name** | **string** | |
-**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional]
-**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional]
-**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional]
-**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional]
-**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional]
+**Description** | Pointer to **string** | | [optional]
**PayloadUrl** | **string** | This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body. |
-**Enabled** | Pointer to **bool** | | [optional]
-**HttpMethod** | Pointer to **string** | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE | [optional]
+**HttpMethod** | Pointer to [**PatchedWebhookRequestHttpMethod**](PatchedWebhookRequestHttpMethod.md) | | [optional]
**HttpContentType** | Pointer to **string** | The complete list of official content types is available <a href=\"https://www.iana.org/assignments/media-types/media-types.xhtml\">here</a>. | [optional]
**AdditionalHeaders** | Pointer to **string** | User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format <code>Name: Value</code>. Jinja2 template processing is supported with the same context as the request body (below). | [optional]
**BodyTemplate** | Pointer to **string** | Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: <code>event</code>, <code>model</code>, <code>timestamp</code>, <code>username</code>, <code>request_id</code>, and <code>data</code>. | [optional]
**Secret** | Pointer to **string** | When provided, the request will include a <code>X-Hook-Signature</code> header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. | [optional]
-**Conditions** | Pointer to **map[string]interface{}** | A set of conditions which determine whether the webhook will be generated. | [optional]
**SslVerification** | Pointer to **bool** | Enable SSL certificate verification. Disable with caution! | [optional]
**CaFilePath** | Pointer to **NullableString** | The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -33,7 +26,7 @@ Name | Type | Description | Notes
### NewWebhook
-`func NewWebhook(id int32, url string, display string, contentTypes []string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime, ) *Webhook`
+`func NewWebhook(id int32, url string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime, ) *Webhook`
NewWebhook instantiates a new Webhook object
This constructor will assign default values to properties that have it defined,
@@ -108,26 +101,6 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetContentTypes
-
-`func (o *Webhook) GetContentTypes() []string`
-
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
-
-### GetContentTypesOk
-
-`func (o *Webhook) 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 *Webhook) SetContentTypes(v []string)`
-
-SetContentTypes sets ContentTypes field to given value.
-
-
### GetName
`func (o *Webhook) GetName() string`
@@ -148,130 +121,30 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
-### GetTypeCreate
-
-`func (o *Webhook) GetTypeCreate() bool`
-
-GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise.
-
-### GetTypeCreateOk
-
-`func (o *Webhook) GetTypeCreateOk() (*bool, bool)`
-
-GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTypeCreate
-
-`func (o *Webhook) SetTypeCreate(v bool)`
-
-SetTypeCreate sets TypeCreate field to given value.
-
-### HasTypeCreate
-
-`func (o *Webhook) HasTypeCreate() bool`
-
-HasTypeCreate returns a boolean if a field has been set.
-
-### GetTypeUpdate
+### GetDescription
-`func (o *Webhook) GetTypeUpdate() bool`
+`func (o *Webhook) GetDescription() string`
-GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise.
+GetDescription returns the Description field if non-nil, zero value otherwise.
-### GetTypeUpdateOk
+### GetDescriptionOk
-`func (o *Webhook) GetTypeUpdateOk() (*bool, bool)`
+`func (o *Webhook) GetDescriptionOk() (*string, bool)`
-GetTypeUpdateOk returns a tuple with the TypeUpdate 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.
-### SetTypeUpdate
+### SetDescription
-`func (o *Webhook) SetTypeUpdate(v bool)`
+`func (o *Webhook) SetDescription(v string)`
-SetTypeUpdate sets TypeUpdate field to given value.
-
-### HasTypeUpdate
-
-`func (o *Webhook) HasTypeUpdate() bool`
-
-HasTypeUpdate returns a boolean if a field has been set.
-
-### GetTypeDelete
-
-`func (o *Webhook) GetTypeDelete() bool`
-
-GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise.
-
-### GetTypeDeleteOk
-
-`func (o *Webhook) GetTypeDeleteOk() (*bool, bool)`
-
-GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTypeDelete
-
-`func (o *Webhook) SetTypeDelete(v bool)`
-
-SetTypeDelete sets TypeDelete field to given value.
-
-### HasTypeDelete
-
-`func (o *Webhook) HasTypeDelete() bool`
-
-HasTypeDelete returns a boolean if a field has been set.
-
-### GetTypeJobStart
-
-`func (o *Webhook) GetTypeJobStart() bool`
-
-GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise.
-
-### GetTypeJobStartOk
-
-`func (o *Webhook) GetTypeJobStartOk() (*bool, bool)`
-
-GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
+SetDescription sets Description field to given value.
-### SetTypeJobStart
+### HasDescription
-`func (o *Webhook) SetTypeJobStart(v bool)`
+`func (o *Webhook) HasDescription() bool`
-SetTypeJobStart sets TypeJobStart field to given value.
-
-### HasTypeJobStart
-
-`func (o *Webhook) HasTypeJobStart() bool`
-
-HasTypeJobStart returns a boolean if a field has been set.
-
-### GetTypeJobEnd
-
-`func (o *Webhook) GetTypeJobEnd() bool`
-
-GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise.
-
-### GetTypeJobEndOk
-
-`func (o *Webhook) GetTypeJobEndOk() (*bool, bool)`
-
-GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTypeJobEnd
-
-`func (o *Webhook) SetTypeJobEnd(v bool)`
-
-SetTypeJobEnd sets TypeJobEnd field to given value.
-
-### HasTypeJobEnd
-
-`func (o *Webhook) HasTypeJobEnd() bool`
-
-HasTypeJobEnd returns a boolean if a field has been set.
+HasDescription returns a boolean if a field has been set.
### GetPayloadUrl
@@ -293,47 +166,22 @@ and a boolean to check if the value has been set.
SetPayloadUrl sets PayloadUrl field to given value.
-### GetEnabled
-
-`func (o *Webhook) GetEnabled() bool`
-
-GetEnabled returns the Enabled field if non-nil, zero value otherwise.
-
-### GetEnabledOk
-
-`func (o *Webhook) 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 *Webhook) SetEnabled(v bool)`
-
-SetEnabled sets Enabled field to given value.
-
-### HasEnabled
-
-`func (o *Webhook) HasEnabled() bool`
-
-HasEnabled returns a boolean if a field has been set.
-
### GetHttpMethod
-`func (o *Webhook) GetHttpMethod() string`
+`func (o *Webhook) GetHttpMethod() PatchedWebhookRequestHttpMethod`
GetHttpMethod returns the HttpMethod field if non-nil, zero value otherwise.
### GetHttpMethodOk
-`func (o *Webhook) GetHttpMethodOk() (*string, bool)`
+`func (o *Webhook) GetHttpMethodOk() (*PatchedWebhookRequestHttpMethod, bool)`
GetHttpMethodOk returns a tuple with the HttpMethod field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetHttpMethod
-`func (o *Webhook) SetHttpMethod(v string)`
+`func (o *Webhook) SetHttpMethod(v PatchedWebhookRequestHttpMethod)`
SetHttpMethod sets HttpMethod field to given value.
@@ -443,41 +291,6 @@ SetSecret sets Secret field to given value.
HasSecret returns a boolean if a field has been set.
-### GetConditions
-
-`func (o *Webhook) GetConditions() map[string]interface{}`
-
-GetConditions returns the Conditions field if non-nil, zero value otherwise.
-
-### GetConditionsOk
-
-`func (o *Webhook) GetConditionsOk() (*map[string]interface{}, bool)`
-
-GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetConditions
-
-`func (o *Webhook) SetConditions(v map[string]interface{})`
-
-SetConditions sets Conditions field to given value.
-
-### HasConditions
-
-`func (o *Webhook) HasConditions() bool`
-
-HasConditions returns a boolean if a field has been set.
-
-### SetConditionsNil
-
-`func (o *Webhook) SetConditionsNil(b bool)`
-
- SetConditionsNil sets the value for Conditions to be an explicit nil
-
-### UnsetConditions
-`func (o *Webhook) UnsetConditions()`
-
-UnsetConditions ensures that no value is present for Conditions, not even an explicit nil
### GetSslVerification
`func (o *Webhook) GetSslVerification() bool`
diff --git a/docs/WebhookRequest.md b/docs/WebhookRequest.md
index d6c9bd9b2b..c5ca3a92c0 100644
--- a/docs/WebhookRequest.md
+++ b/docs/WebhookRequest.md
@@ -4,21 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | **[]string** | |
**Name** | **string** | |
-**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional]
-**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional]
-**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional]
-**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional]
-**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional]
+**Description** | Pointer to **string** | | [optional]
**PayloadUrl** | **string** | This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body. |
-**Enabled** | Pointer to **bool** | | [optional]
-**HttpMethod** | Pointer to **string** | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE | [optional]
+**HttpMethod** | Pointer to [**PatchedWebhookRequestHttpMethod**](PatchedWebhookRequestHttpMethod.md) | | [optional]
**HttpContentType** | Pointer to **string** | The complete list of official content types is available <a href=\"https://www.iana.org/assignments/media-types/media-types.xhtml\">here</a>. | [optional]
**AdditionalHeaders** | Pointer to **string** | User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format <code>Name: Value</code>. Jinja2 template processing is supported with the same context as the request body (below). | [optional]
**BodyTemplate** | Pointer to **string** | Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: <code>event</code>, <code>model</code>, <code>timestamp</code>, <code>username</code>, <code>request_id</code>, and <code>data</code>. | [optional]
**Secret** | Pointer to **string** | When provided, the request will include a <code>X-Hook-Signature</code> header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. | [optional]
-**Conditions** | Pointer to **map[string]interface{}** | A set of conditions which determine whether the webhook will be generated. | [optional]
**SslVerification** | Pointer to **bool** | Enable SSL certificate verification. Disable with caution! | [optional]
**CaFilePath** | Pointer to **NullableString** | The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -28,7 +21,7 @@ Name | Type | Description | Notes
### NewWebhookRequest
-`func NewWebhookRequest(contentTypes []string, name string, payloadUrl string, ) *WebhookRequest`
+`func NewWebhookRequest(name string, payloadUrl string, ) *WebhookRequest`
NewWebhookRequest instantiates a new WebhookRequest object
This constructor will assign default values to properties that have it defined,
@@ -43,26 +36,6 @@ NewWebhookRequestWithDefaults instantiates a new WebhookRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentTypes
-
-`func (o *WebhookRequest) GetContentTypes() []string`
-
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
-
-### GetContentTypesOk
-
-`func (o *WebhookRequest) 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 *WebhookRequest) SetContentTypes(v []string)`
-
-SetContentTypes sets ContentTypes field to given value.
-
-
### GetName
`func (o *WebhookRequest) GetName() string`
@@ -83,130 +56,30 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
-### GetTypeCreate
-
-`func (o *WebhookRequest) GetTypeCreate() bool`
-
-GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise.
-
-### GetTypeCreateOk
-
-`func (o *WebhookRequest) GetTypeCreateOk() (*bool, bool)`
-
-GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTypeCreate
-
-`func (o *WebhookRequest) SetTypeCreate(v bool)`
-
-SetTypeCreate sets TypeCreate field to given value.
-
-### HasTypeCreate
-
-`func (o *WebhookRequest) HasTypeCreate() bool`
-
-HasTypeCreate returns a boolean if a field has been set.
-
-### GetTypeUpdate
+### GetDescription
-`func (o *WebhookRequest) GetTypeUpdate() bool`
+`func (o *WebhookRequest) GetDescription() string`
-GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise.
+GetDescription returns the Description field if non-nil, zero value otherwise.
-### GetTypeUpdateOk
+### GetDescriptionOk
-`func (o *WebhookRequest) GetTypeUpdateOk() (*bool, bool)`
+`func (o *WebhookRequest) GetDescriptionOk() (*string, bool)`
-GetTypeUpdateOk returns a tuple with the TypeUpdate 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.
-### SetTypeUpdate
+### SetDescription
-`func (o *WebhookRequest) SetTypeUpdate(v bool)`
+`func (o *WebhookRequest) SetDescription(v string)`
-SetTypeUpdate sets TypeUpdate field to given value.
-
-### HasTypeUpdate
-
-`func (o *WebhookRequest) HasTypeUpdate() bool`
-
-HasTypeUpdate returns a boolean if a field has been set.
-
-### GetTypeDelete
-
-`func (o *WebhookRequest) GetTypeDelete() bool`
-
-GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise.
-
-### GetTypeDeleteOk
-
-`func (o *WebhookRequest) GetTypeDeleteOk() (*bool, bool)`
-
-GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTypeDelete
-
-`func (o *WebhookRequest) SetTypeDelete(v bool)`
-
-SetTypeDelete sets TypeDelete field to given value.
-
-### HasTypeDelete
-
-`func (o *WebhookRequest) HasTypeDelete() bool`
-
-HasTypeDelete returns a boolean if a field has been set.
-
-### GetTypeJobStart
-
-`func (o *WebhookRequest) GetTypeJobStart() bool`
-
-GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise.
-
-### GetTypeJobStartOk
-
-`func (o *WebhookRequest) GetTypeJobStartOk() (*bool, bool)`
-
-GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
+SetDescription sets Description field to given value.
-### SetTypeJobStart
+### HasDescription
-`func (o *WebhookRequest) SetTypeJobStart(v bool)`
+`func (o *WebhookRequest) HasDescription() bool`
-SetTypeJobStart sets TypeJobStart field to given value.
-
-### HasTypeJobStart
-
-`func (o *WebhookRequest) HasTypeJobStart() bool`
-
-HasTypeJobStart returns a boolean if a field has been set.
-
-### GetTypeJobEnd
-
-`func (o *WebhookRequest) GetTypeJobEnd() bool`
-
-GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise.
-
-### GetTypeJobEndOk
-
-`func (o *WebhookRequest) GetTypeJobEndOk() (*bool, bool)`
-
-GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTypeJobEnd
-
-`func (o *WebhookRequest) SetTypeJobEnd(v bool)`
-
-SetTypeJobEnd sets TypeJobEnd field to given value.
-
-### HasTypeJobEnd
-
-`func (o *WebhookRequest) HasTypeJobEnd() bool`
-
-HasTypeJobEnd returns a boolean if a field has been set.
+HasDescription returns a boolean if a field has been set.
### GetPayloadUrl
@@ -228,47 +101,22 @@ and a boolean to check if the value has been set.
SetPayloadUrl sets PayloadUrl field to given value.
-### GetEnabled
-
-`func (o *WebhookRequest) GetEnabled() bool`
-
-GetEnabled returns the Enabled field if non-nil, zero value otherwise.
-
-### GetEnabledOk
-
-`func (o *WebhookRequest) 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 *WebhookRequest) SetEnabled(v bool)`
-
-SetEnabled sets Enabled field to given value.
-
-### HasEnabled
-
-`func (o *WebhookRequest) HasEnabled() bool`
-
-HasEnabled returns a boolean if a field has been set.
-
### GetHttpMethod
-`func (o *WebhookRequest) GetHttpMethod() string`
+`func (o *WebhookRequest) GetHttpMethod() PatchedWebhookRequestHttpMethod`
GetHttpMethod returns the HttpMethod field if non-nil, zero value otherwise.
### GetHttpMethodOk
-`func (o *WebhookRequest) GetHttpMethodOk() (*string, bool)`
+`func (o *WebhookRequest) GetHttpMethodOk() (*PatchedWebhookRequestHttpMethod, bool)`
GetHttpMethodOk returns a tuple with the HttpMethod field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetHttpMethod
-`func (o *WebhookRequest) SetHttpMethod(v string)`
+`func (o *WebhookRequest) SetHttpMethod(v PatchedWebhookRequestHttpMethod)`
SetHttpMethod sets HttpMethod field to given value.
@@ -378,41 +226,6 @@ SetSecret sets Secret field to given value.
HasSecret returns a boolean if a field has been set.
-### GetConditions
-
-`func (o *WebhookRequest) GetConditions() map[string]interface{}`
-
-GetConditions returns the Conditions field if non-nil, zero value otherwise.
-
-### GetConditionsOk
-
-`func (o *WebhookRequest) GetConditionsOk() (*map[string]interface{}, bool)`
-
-GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetConditions
-
-`func (o *WebhookRequest) SetConditions(v map[string]interface{})`
-
-SetConditions sets Conditions field to given value.
-
-### HasConditions
-
-`func (o *WebhookRequest) HasConditions() bool`
-
-HasConditions returns a boolean if a field has been set.
-
-### SetConditionsNil
-
-`func (o *WebhookRequest) SetConditionsNil(b bool)`
-
- SetConditionsNil sets the value for Conditions to be an explicit nil
-
-### UnsetConditions
-`func (o *WebhookRequest) UnsetConditions()`
-
-UnsetConditions ensures that no value is present for Conditions, not even an explicit nil
### GetSslVerification
`func (o *WebhookRequest) GetSslVerification() bool`
diff --git a/docs/WirelessApi.md b/docs/WirelessAPI.md
similarity index 53%
rename from docs/WirelessApi.md
rename to docs/WirelessAPI.md
index 5de13abf82..0e2ae6f4cc 100644
--- a/docs/WirelessApi.md
+++ b/docs/WirelessAPI.md
@@ -48,22 +48,22 @@ Method | HTTP request | Description
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- wirelessLANGroupRequest := []openapiclient.WirelessLANGroupRequest{*openapiclient.NewWirelessLANGroupRequest("Name_example", "Slug_example")} // []WirelessLANGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkDestroy(context.Background()).WirelessLANGroupRequest(wirelessLANGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ wirelessLANGroupRequest := []openapiclient.WirelessLANGroupRequest{*openapiclient.NewWirelessLANGroupRequest("Name_example", "Slug_example")} // []WirelessLANGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkDestroy(context.Background()).WirelessLANGroupRequest(wirelessLANGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -112,24 +112,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- wirelessLANGroupRequest := []openapiclient.WirelessLANGroupRequest{*openapiclient.NewWirelessLANGroupRequest("Name_example", "Slug_example")} // []WirelessLANGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkPartialUpdate(context.Background()).WirelessLANGroupRequest(wirelessLANGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLanGroupsBulkPartialUpdate`: []WirelessLANGroup
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsBulkPartialUpdate`: %v\n", resp)
+ wirelessLANGroupRequest := []openapiclient.WirelessLANGroupRequest{*openapiclient.NewWirelessLANGroupRequest("Name_example", "Slug_example")} // []WirelessLANGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkPartialUpdate(context.Background()).WirelessLANGroupRequest(wirelessLANGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLanGroupsBulkPartialUpdate`: []WirelessLANGroup
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsBulkPartialUpdate`: %v\n", resp)
}
```
@@ -178,24 +178,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- wirelessLANGroupRequest := []openapiclient.WirelessLANGroupRequest{*openapiclient.NewWirelessLANGroupRequest("Name_example", "Slug_example")} // []WirelessLANGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkUpdate(context.Background()).WirelessLANGroupRequest(wirelessLANGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLanGroupsBulkUpdate`: []WirelessLANGroup
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsBulkUpdate`: %v\n", resp)
+ wirelessLANGroupRequest := []openapiclient.WirelessLANGroupRequest{*openapiclient.NewWirelessLANGroupRequest("Name_example", "Slug_example")} // []WirelessLANGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkUpdate(context.Background()).WirelessLANGroupRequest(wirelessLANGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLanGroupsBulkUpdate`: []WirelessLANGroup
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsBulkUpdate`: %v\n", resp)
}
```
@@ -244,24 +244,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableWirelessLANGroupRequest := *openapiclient.NewWritableWirelessLANGroupRequest("Name_example", "Slug_example") // WritableWirelessLANGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsCreate(context.Background()).WritableWirelessLANGroupRequest(writableWirelessLANGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLanGroupsCreate`: WirelessLANGroup
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsCreate`: %v\n", resp)
+ writableWirelessLANGroupRequest := *openapiclient.NewWritableWirelessLANGroupRequest("Name_example", "Slug_example") // WritableWirelessLANGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsCreate(context.Background()).WritableWirelessLANGroupRequest(writableWirelessLANGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLanGroupsCreate`: WirelessLANGroup
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsCreate`: %v\n", resp)
}
```
@@ -310,22 +310,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this wireless LAN group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this wireless LAN group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -378,91 +378,91 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- name := []string{"Inner_example"} // []string | (optional)
- nameEmpty := true // bool | (optional)
- nameIc := []string{"Inner_example"} // []string | (optional)
- nameIe := []string{"Inner_example"} // []string | (optional)
- nameIew := []string{"Inner_example"} // []string | (optional)
- nameIsw := []string{"Inner_example"} // []string | (optional)
- nameN := []string{"Inner_example"} // []string | (optional)
- nameNic := []string{"Inner_example"} // []string | (optional)
- nameNie := []string{"Inner_example"} // []string | (optional)
- nameNiew := []string{"Inner_example"} // []string | (optional)
- nameNisw := []string{"Inner_example"} // []string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- parent := []string{"Inner_example"} // []string | (optional)
- parentN := []string{"Inner_example"} // []string | (optional)
- parentId := []*int32{int32(123)} // []*int32 | (optional)
- parentIdN := []*int32{int32(123)} // []*int32 | (optional)
- q := "q_example" // string | Search (optional)
- slug := []string{"Inner_example"} // []string | (optional)
- slugEmpty := true // bool | (optional)
- slugIc := []string{"Inner_example"} // []string | (optional)
- slugIe := []string{"Inner_example"} // []string | (optional)
- slugIew := []string{"Inner_example"} // []string | (optional)
- slugIsw := []string{"Inner_example"} // []string | (optional)
- slugN := []string{"Inner_example"} // []string | (optional)
- slugNic := []string{"Inner_example"} // []string | (optional)
- slugNie := []string{"Inner_example"} // []string | (optional)
- slugNiew := []string{"Inner_example"} // []string | (optional)
- slugNisw := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLanGroupsList`: PaginatedWirelessLANGroupList
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsList`: %v\n", resp)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ name := []string{"Inner_example"} // []string | (optional)
+ nameEmpty := true // bool | (optional)
+ nameIc := []string{"Inner_example"} // []string | (optional)
+ nameIe := []string{"Inner_example"} // []string | (optional)
+ nameIew := []string{"Inner_example"} // []string | (optional)
+ nameIsw := []string{"Inner_example"} // []string | (optional)
+ nameN := []string{"Inner_example"} // []string | (optional)
+ nameNic := []string{"Inner_example"} // []string | (optional)
+ nameNie := []string{"Inner_example"} // []string | (optional)
+ nameNiew := []string{"Inner_example"} // []string | (optional)
+ nameNisw := []string{"Inner_example"} // []string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ parent := []string{"Inner_example"} // []string | (optional)
+ parentN := []string{"Inner_example"} // []string | (optional)
+ parentId := []*int32{int32(123)} // []*int32 | (optional)
+ parentIdN := []*int32{int32(123)} // []*int32 | (optional)
+ q := "q_example" // string | Search (optional)
+ slug := []string{"Inner_example"} // []string | (optional)
+ slugEmpty := true // bool | (optional)
+ slugIc := []string{"Inner_example"} // []string | (optional)
+ slugIe := []string{"Inner_example"} // []string | (optional)
+ slugIew := []string{"Inner_example"} // []string | (optional)
+ slugIsw := []string{"Inner_example"} // []string | (optional)
+ slugN := []string{"Inner_example"} // []string | (optional)
+ slugNic := []string{"Inner_example"} // []string | (optional)
+ slugNie := []string{"Inner_example"} // []string | (optional)
+ slugNiew := []string{"Inner_example"} // []string | (optional)
+ slugNisw := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLanGroupsList`: PaginatedWirelessLANGroupList
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsList`: %v\n", resp)
}
```
@@ -577,25 +577,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this wireless LAN group.
- patchedWritableWirelessLANGroupRequest := *openapiclient.NewPatchedWritableWirelessLANGroupRequest() // PatchedWritableWirelessLANGroupRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsPartialUpdate(context.Background(), id).PatchedWritableWirelessLANGroupRequest(patchedWritableWirelessLANGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLanGroupsPartialUpdate`: WirelessLANGroup
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this wireless LAN group.
+ patchedWritableWirelessLANGroupRequest := *openapiclient.NewPatchedWritableWirelessLANGroupRequest() // PatchedWritableWirelessLANGroupRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsPartialUpdate(context.Background(), id).PatchedWritableWirelessLANGroupRequest(patchedWritableWirelessLANGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLanGroupsPartialUpdate`: WirelessLANGroup
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsPartialUpdate`: %v\n", resp)
}
```
@@ -649,24 +649,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this wireless LAN group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLanGroupsRetrieve`: WirelessLANGroup
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this wireless LAN group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLanGroupsRetrieve`: WirelessLANGroup
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsRetrieve`: %v\n", resp)
}
```
@@ -719,25 +719,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this wireless LAN group.
- writableWirelessLANGroupRequest := *openapiclient.NewWritableWirelessLANGroupRequest("Name_example", "Slug_example") // WritableWirelessLANGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsUpdate(context.Background(), id).WritableWirelessLANGroupRequest(writableWirelessLANGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLanGroupsUpdate`: WirelessLANGroup
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this wireless LAN group.
+ writableWirelessLANGroupRequest := *openapiclient.NewWritableWirelessLANGroupRequest("Name_example", "Slug_example") // WritableWirelessLANGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsUpdate(context.Background(), id).WritableWirelessLANGroupRequest(writableWirelessLANGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLanGroupsUpdate`: WirelessLANGroup
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsUpdate`: %v\n", resp)
}
```
@@ -791,22 +791,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- wirelessLANRequest := []openapiclient.WirelessLANRequest{*openapiclient.NewWirelessLANRequest("Ssid_example")} // []WirelessLANRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.WirelessAPI.WirelessWirelessLansBulkDestroy(context.Background()).WirelessLANRequest(wirelessLANRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ wirelessLANRequest := []openapiclient.WirelessLANRequest{*openapiclient.NewWirelessLANRequest("Ssid_example")} // []WirelessLANRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.WirelessAPI.WirelessWirelessLansBulkDestroy(context.Background()).WirelessLANRequest(wirelessLANRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -855,24 +855,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- wirelessLANRequest := []openapiclient.WirelessLANRequest{*openapiclient.NewWirelessLANRequest("Ssid_example")} // []WirelessLANRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansBulkPartialUpdate(context.Background()).WirelessLANRequest(wirelessLANRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLansBulkPartialUpdate`: []WirelessLAN
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansBulkPartialUpdate`: %v\n", resp)
+ wirelessLANRequest := []openapiclient.WirelessLANRequest{*openapiclient.NewWirelessLANRequest("Ssid_example")} // []WirelessLANRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansBulkPartialUpdate(context.Background()).WirelessLANRequest(wirelessLANRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLansBulkPartialUpdate`: []WirelessLAN
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansBulkPartialUpdate`: %v\n", resp)
}
```
@@ -921,24 +921,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- wirelessLANRequest := []openapiclient.WirelessLANRequest{*openapiclient.NewWirelessLANRequest("Ssid_example")} // []WirelessLANRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansBulkUpdate(context.Background()).WirelessLANRequest(wirelessLANRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLansBulkUpdate`: []WirelessLAN
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansBulkUpdate`: %v\n", resp)
+ wirelessLANRequest := []openapiclient.WirelessLANRequest{*openapiclient.NewWirelessLANRequest("Ssid_example")} // []WirelessLANRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansBulkUpdate(context.Background()).WirelessLANRequest(wirelessLANRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLansBulkUpdate`: []WirelessLAN
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansBulkUpdate`: %v\n", resp)
}
```
@@ -987,24 +987,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableWirelessLANRequest := *openapiclient.NewWritableWirelessLANRequest("Ssid_example") // WritableWirelessLANRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansCreate(context.Background()).WritableWirelessLANRequest(writableWirelessLANRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLansCreate`: WirelessLAN
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansCreate`: %v\n", resp)
+ writableWirelessLANRequest := *openapiclient.NewWritableWirelessLANRequest("Ssid_example") // WritableWirelessLANRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansCreate(context.Background()).WritableWirelessLANRequest(writableWirelessLANRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLansCreate`: WirelessLAN
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansCreate`: %v\n", resp)
}
```
@@ -1053,22 +1053,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this wireless LAN.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.WirelessAPI.WirelessWirelessLansDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this wireless LAN.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.WirelessAPI.WirelessWirelessLansDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1121,107 +1121,107 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- authCipher := []string{"Inner_example"} // []string | (optional)
- authCipherN := []string{"Inner_example"} // []string | (optional)
- authPsk := []string{"Inner_example"} // []string | (optional)
- authPskEmpty := true // bool | (optional)
- authPskIc := []string{"Inner_example"} // []string | (optional)
- authPskIe := []string{"Inner_example"} // []string | (optional)
- authPskIew := []string{"Inner_example"} // []string | (optional)
- authPskIsw := []string{"Inner_example"} // []string | (optional)
- authPskN := []string{"Inner_example"} // []string | (optional)
- authPskNic := []string{"Inner_example"} // []string | (optional)
- authPskNie := []string{"Inner_example"} // []string | (optional)
- authPskNiew := []string{"Inner_example"} // []string | (optional)
- authPskNisw := []string{"Inner_example"} // []string | (optional)
- authType := []string{"Inner_example"} // []string | (optional)
- authTypeN := []string{"Inner_example"} // []string | (optional)
- 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)
- group := []int32{int32(123)} // []int32 | (optional)
- groupN := []int32{int32(123)} // []int32 | (optional)
- groupId := []int32{int32(123)} // []int32 | (optional)
- groupIdN := []int32{int32(123)} // []int32 | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- ssid := []string{"Inner_example"} // []string | (optional)
- ssidEmpty := true // bool | (optional)
- ssidIc := []string{"Inner_example"} // []string | (optional)
- ssidIe := []string{"Inner_example"} // []string | (optional)
- ssidIew := []string{"Inner_example"} // []string | (optional)
- ssidIsw := []string{"Inner_example"} // []string | (optional)
- ssidN := []string{"Inner_example"} // []string | (optional)
- ssidNic := []string{"Inner_example"} // []string | (optional)
- ssidNie := []string{"Inner_example"} // []string | (optional)
- ssidNiew := []string{"Inner_example"} // []string | (optional)
- ssidNisw := []string{"Inner_example"} // []string | (optional)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- vlanId := []*int32{int32(123)} // []*int32 | (optional)
- vlanIdN := []*int32{int32(123)} // []*int32 | (optional)
-
- 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()
- 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)
- }
- // response from `WirelessWirelessLansList`: PaginatedWirelessLANList
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansList`: %v\n", resp)
+ authCipher := []string{"Inner_example"} // []string | (optional)
+ authCipherN := []string{"Inner_example"} // []string | (optional)
+ authPsk := []string{"Inner_example"} // []string | (optional)
+ authPskEmpty := true // bool | (optional)
+ authPskIc := []string{"Inner_example"} // []string | (optional)
+ authPskIe := []string{"Inner_example"} // []string | (optional)
+ authPskIew := []string{"Inner_example"} // []string | (optional)
+ authPskIsw := []string{"Inner_example"} // []string | (optional)
+ authPskN := []string{"Inner_example"} // []string | (optional)
+ authPskNic := []string{"Inner_example"} // []string | (optional)
+ authPskNie := []string{"Inner_example"} // []string | (optional)
+ authPskNiew := []string{"Inner_example"} // []string | (optional)
+ authPskNisw := []string{"Inner_example"} // []string | (optional)
+ authType := []string{"Inner_example"} // []string | (optional)
+ authTypeN := []string{"Inner_example"} // []string | (optional)
+ 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)
+ group := []int32{int32(123)} // []int32 | (optional)
+ groupN := []int32{int32(123)} // []int32 | (optional)
+ groupId := []int32{int32(123)} // []int32 | (optional)
+ groupIdN := []int32{int32(123)} // []int32 | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ ssid := []string{"Inner_example"} // []string | (optional)
+ ssidEmpty := true // bool | (optional)
+ ssidIc := []string{"Inner_example"} // []string | (optional)
+ ssidIe := []string{"Inner_example"} // []string | (optional)
+ ssidIew := []string{"Inner_example"} // []string | (optional)
+ ssidIsw := []string{"Inner_example"} // []string | (optional)
+ ssidN := []string{"Inner_example"} // []string | (optional)
+ ssidNic := []string{"Inner_example"} // []string | (optional)
+ ssidNie := []string{"Inner_example"} // []string | (optional)
+ ssidNiew := []string{"Inner_example"} // []string | (optional)
+ ssidNisw := []string{"Inner_example"} // []string | (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ vlanId := []*int32{int32(123)} // []*int32 | (optional)
+ vlanIdN := []*int32{int32(123)} // []*int32 | (optional)
+
+ 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()
+ 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)
+ }
+ // response from `WirelessWirelessLansList`: PaginatedWirelessLANList
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansList`: %v\n", resp)
}
```
@@ -1352,25 +1352,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this wireless LAN.
- patchedWritableWirelessLANRequest := *openapiclient.NewPatchedWritableWirelessLANRequest() // PatchedWritableWirelessLANRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansPartialUpdate(context.Background(), id).PatchedWritableWirelessLANRequest(patchedWritableWirelessLANRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLansPartialUpdate`: WirelessLAN
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this wireless LAN.
+ patchedWritableWirelessLANRequest := *openapiclient.NewPatchedWritableWirelessLANRequest() // PatchedWritableWirelessLANRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansPartialUpdate(context.Background(), id).PatchedWritableWirelessLANRequest(patchedWritableWirelessLANRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLansPartialUpdate`: WirelessLAN
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansPartialUpdate`: %v\n", resp)
}
```
@@ -1424,24 +1424,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this wireless LAN.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLansRetrieve`: WirelessLAN
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this wireless LAN.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLansRetrieve`: WirelessLAN
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansRetrieve`: %v\n", resp)
}
```
@@ -1494,25 +1494,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this wireless LAN.
- writableWirelessLANRequest := *openapiclient.NewWritableWirelessLANRequest("Ssid_example") // WritableWirelessLANRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansUpdate(context.Background(), id).WritableWirelessLANRequest(writableWirelessLANRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLansUpdate`: WirelessLAN
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this wireless LAN.
+ writableWirelessLANRequest := *openapiclient.NewWritableWirelessLANRequest("Ssid_example") // WritableWirelessLANRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansUpdate(context.Background(), id).WritableWirelessLANRequest(writableWirelessLANRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLansUpdate`: WirelessLAN
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansUpdate`: %v\n", resp)
}
```
@@ -1566,22 +1566,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewNestedInterfaceRequest("Name_example"), *openapiclient.NewNestedInterfaceRequest("Name_example"))} // []WirelessLinkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkDestroy(context.Background()).WirelessLinkRequest(wirelessLinkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksBulkDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewNestedInterfaceRequest("Name_example"), *openapiclient.NewNestedInterfaceRequest("Name_example"))} // []WirelessLinkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkDestroy(context.Background()).WirelessLinkRequest(wirelessLinkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksBulkDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1630,24 +1630,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewNestedInterfaceRequest("Name_example"), *openapiclient.NewNestedInterfaceRequest("Name_example"))} // []WirelessLinkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkPartialUpdate(context.Background()).WirelessLinkRequest(wirelessLinkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksBulkPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLinksBulkPartialUpdate`: []WirelessLink
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksBulkPartialUpdate`: %v\n", resp)
+ wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewNestedInterfaceRequest("Name_example"), *openapiclient.NewNestedInterfaceRequest("Name_example"))} // []WirelessLinkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkPartialUpdate(context.Background()).WirelessLinkRequest(wirelessLinkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLinksBulkPartialUpdate`: []WirelessLink
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksBulkPartialUpdate`: %v\n", resp)
}
```
@@ -1696,24 +1696,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewNestedInterfaceRequest("Name_example"), *openapiclient.NewNestedInterfaceRequest("Name_example"))} // []WirelessLinkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkUpdate(context.Background()).WirelessLinkRequest(wirelessLinkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksBulkUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLinksBulkUpdate`: []WirelessLink
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksBulkUpdate`: %v\n", resp)
+ wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewNestedInterfaceRequest("Name_example"), *openapiclient.NewNestedInterfaceRequest("Name_example"))} // []WirelessLinkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkUpdate(context.Background()).WirelessLinkRequest(wirelessLinkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLinksBulkUpdate`: []WirelessLink
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksBulkUpdate`: %v\n", resp)
}
```
@@ -1762,24 +1762,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(int32(123), int32(123)) // WritableWirelessLinkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksCreate(context.Background()).WritableWirelessLinkRequest(writableWirelessLinkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksCreate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLinksCreate`: WirelessLink
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksCreate`: %v\n", resp)
+ writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(int32(123), int32(123)) // WritableWirelessLinkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksCreate(context.Background()).WritableWirelessLinkRequest(writableWirelessLinkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLinksCreate`: WirelessLink
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksCreate`: %v\n", resp)
}
```
@@ -1828,22 +1828,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this wireless link.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.WirelessAPI.WirelessWirelessLinksDestroy(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksDestroy``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ id := int32(56) // int32 | A unique integer value identifying this wireless link.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.WirelessAPI.WirelessWirelessLinksDestroy(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -1896,115 +1896,115 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- authCipher := []string{"Inner_example"} // []string | (optional)
- authCipherN := []string{"Inner_example"} // []string | (optional)
- authPsk := []string{"Inner_example"} // []string | (optional)
- authPskEmpty := true // bool | (optional)
- authPskIc := []string{"Inner_example"} // []string | (optional)
- authPskIe := []string{"Inner_example"} // []string | (optional)
- authPskIew := []string{"Inner_example"} // []string | (optional)
- authPskIsw := []string{"Inner_example"} // []string | (optional)
- authPskN := []string{"Inner_example"} // []string | (optional)
- authPskNic := []string{"Inner_example"} // []string | (optional)
- authPskNie := []string{"Inner_example"} // []string | (optional)
- authPskNiew := []string{"Inner_example"} // []string | (optional)
- authPskNisw := []string{"Inner_example"} // []string | (optional)
- authType := []string{"Inner_example"} // []string | (optional)
- authTypeN := []string{"Inner_example"} // []string | (optional)
- created := []time.Time{time.Now()} // []time.Time | (optional)
- createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- createdGt := []time.Time{time.Now()} // []time.Time | (optional)
- createdGte := []time.Time{time.Now()} // []time.Time | (optional)
- createdLt := []time.Time{time.Now()} // []time.Time | (optional)
- createdLte := []time.Time{time.Now()} // []time.Time | (optional)
- createdN := []time.Time{time.Now()} // []time.Time | (optional)
- createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
- idGt := []int32{int32(123)} // []int32 | (optional)
- idGte := []int32{int32(123)} // []int32 | (optional)
- idLt := []int32{int32(123)} // []int32 | (optional)
- idLte := []int32{int32(123)} // []int32 | (optional)
- idN := []int32{int32(123)} // []int32 | (optional)
- interfaceAId := []int32{int32(123)} // []int32 | (optional)
- interfaceAIdEmpty := []int32{int32(123)} // []int32 | (optional)
- interfaceAIdGt := []int32{int32(123)} // []int32 | (optional)
- interfaceAIdGte := []int32{int32(123)} // []int32 | (optional)
- interfaceAIdLt := []int32{int32(123)} // []int32 | (optional)
- interfaceAIdLte := []int32{int32(123)} // []int32 | (optional)
- interfaceAIdN := []int32{int32(123)} // []int32 | (optional)
- interfaceBId := []int32{int32(123)} // []int32 | (optional)
- interfaceBIdEmpty := []int32{int32(123)} // []int32 | (optional)
- interfaceBIdGt := []int32{int32(123)} // []int32 | (optional)
- interfaceBIdGte := []int32{int32(123)} // []int32 | (optional)
- interfaceBIdLt := []int32{int32(123)} // []int32 | (optional)
- interfaceBIdLte := []int32{int32(123)} // []int32 | (optional)
- interfaceBIdN := []int32{int32(123)} // []int32 | (optional)
- lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
- lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
- limit := int32(56) // int32 | Number of results to return per page. (optional)
- modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
- offset := int32(56) // int32 | The initial index from which to return the results. (optional)
- ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
- q := "q_example" // string | Search (optional)
- ssid := []string{"Inner_example"} // []string | (optional)
- ssidEmpty := true // bool | (optional)
- ssidIc := []string{"Inner_example"} // []string | (optional)
- ssidIe := []string{"Inner_example"} // []string | (optional)
- ssidIew := []string{"Inner_example"} // []string | (optional)
- ssidIsw := []string{"Inner_example"} // []string | (optional)
- ssidN := []string{"Inner_example"} // []string | (optional)
- ssidNic := []string{"Inner_example"} // []string | (optional)
- ssidNie := []string{"Inner_example"} // []string | (optional)
- ssidNiew := []string{"Inner_example"} // []string | (optional)
- ssidNisw := []string{"Inner_example"} // []string | (optional)
- status := []string{"Inner_example"} // []string | (optional)
- statusN := []string{"Inner_example"} // []string | (optional)
- tag := []string{"Inner_example"} // []string | (optional)
- tagN := []string{"Inner_example"} // []string | (optional)
- tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
- tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
- tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
- tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdEmpty(interfaceAIdEmpty).InterfaceAIdGt(interfaceAIdGt).InterfaceAIdGte(interfaceAIdGte).InterfaceAIdLt(interfaceAIdLt).InterfaceAIdLte(interfaceAIdLte).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdEmpty(interfaceBIdEmpty).InterfaceBIdGt(interfaceBIdGt).InterfaceBIdGte(interfaceBIdGte).InterfaceBIdLt(interfaceBIdLt).InterfaceBIdLte(interfaceBIdLte).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLinksList`: PaginatedWirelessLinkList
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksList`: %v\n", resp)
+ authCipher := []string{"Inner_example"} // []string | (optional)
+ authCipherN := []string{"Inner_example"} // []string | (optional)
+ authPsk := []string{"Inner_example"} // []string | (optional)
+ authPskEmpty := true // bool | (optional)
+ authPskIc := []string{"Inner_example"} // []string | (optional)
+ authPskIe := []string{"Inner_example"} // []string | (optional)
+ authPskIew := []string{"Inner_example"} // []string | (optional)
+ authPskIsw := []string{"Inner_example"} // []string | (optional)
+ authPskN := []string{"Inner_example"} // []string | (optional)
+ authPskNic := []string{"Inner_example"} // []string | (optional)
+ authPskNie := []string{"Inner_example"} // []string | (optional)
+ authPskNiew := []string{"Inner_example"} // []string | (optional)
+ authPskNisw := []string{"Inner_example"} // []string | (optional)
+ authType := []string{"Inner_example"} // []string | (optional)
+ authTypeN := []string{"Inner_example"} // []string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ description := []string{"Inner_example"} // []string | (optional)
+ descriptionEmpty := true // bool | (optional)
+ descriptionIc := []string{"Inner_example"} // []string | (optional)
+ descriptionIe := []string{"Inner_example"} // []string | (optional)
+ descriptionIew := []string{"Inner_example"} // []string | (optional)
+ descriptionIsw := []string{"Inner_example"} // []string | (optional)
+ descriptionN := []string{"Inner_example"} // []string | (optional)
+ descriptionNic := []string{"Inner_example"} // []string | (optional)
+ descriptionNie := []string{"Inner_example"} // []string | (optional)
+ descriptionNiew := []string{"Inner_example"} // []string | (optional)
+ descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ id := []int32{int32(123)} // []int32 | (optional)
+ idEmpty := true // bool | (optional)
+ idGt := []int32{int32(123)} // []int32 | (optional)
+ idGte := []int32{int32(123)} // []int32 | (optional)
+ idLt := []int32{int32(123)} // []int32 | (optional)
+ idLte := []int32{int32(123)} // []int32 | (optional)
+ idN := []int32{int32(123)} // []int32 | (optional)
+ interfaceAId := []int32{int32(123)} // []int32 | (optional)
+ interfaceAIdEmpty := []int32{int32(123)} // []int32 | (optional)
+ interfaceAIdGt := []int32{int32(123)} // []int32 | (optional)
+ interfaceAIdGte := []int32{int32(123)} // []int32 | (optional)
+ interfaceAIdLt := []int32{int32(123)} // []int32 | (optional)
+ interfaceAIdLte := []int32{int32(123)} // []int32 | (optional)
+ interfaceAIdN := []int32{int32(123)} // []int32 | (optional)
+ interfaceBId := []int32{int32(123)} // []int32 | (optional)
+ interfaceBIdEmpty := []int32{int32(123)} // []int32 | (optional)
+ interfaceBIdGt := []int32{int32(123)} // []int32 | (optional)
+ interfaceBIdGte := []int32{int32(123)} // []int32 | (optional)
+ interfaceBIdLt := []int32{int32(123)} // []int32 | (optional)
+ interfaceBIdLte := []int32{int32(123)} // []int32 | (optional)
+ interfaceBIdN := []int32{int32(123)} // []int32 | (optional)
+ lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional)
+ limit := int32(56) // int32 | Number of results to return per page. (optional)
+ modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ offset := int32(56) // int32 | The initial index from which to return the results. (optional)
+ ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ q := "q_example" // string | Search (optional)
+ ssid := []string{"Inner_example"} // []string | (optional)
+ ssidEmpty := true // bool | (optional)
+ ssidIc := []string{"Inner_example"} // []string | (optional)
+ ssidIe := []string{"Inner_example"} // []string | (optional)
+ ssidIew := []string{"Inner_example"} // []string | (optional)
+ ssidIsw := []string{"Inner_example"} // []string | (optional)
+ ssidN := []string{"Inner_example"} // []string | (optional)
+ ssidNic := []string{"Inner_example"} // []string | (optional)
+ ssidNie := []string{"Inner_example"} // []string | (optional)
+ ssidNiew := []string{"Inner_example"} // []string | (optional)
+ ssidNisw := []string{"Inner_example"} // []string | (optional)
+ status := []string{"Inner_example"} // []string | (optional)
+ statusN := []string{"Inner_example"} // []string | (optional)
+ tag := []string{"Inner_example"} // []string | (optional)
+ tagN := []string{"Inner_example"} // []string | (optional)
+ tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional)
+ tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional)
+ tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
+ tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdEmpty(interfaceAIdEmpty).InterfaceAIdGt(interfaceAIdGt).InterfaceAIdGte(interfaceAIdGte).InterfaceAIdLt(interfaceAIdLt).InterfaceAIdLte(interfaceAIdLte).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdEmpty(interfaceBIdEmpty).InterfaceBIdGt(interfaceBIdGt).InterfaceBIdGte(interfaceBIdGte).InterfaceBIdLt(interfaceBIdLt).InterfaceBIdLte(interfaceBIdLte).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksList``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLinksList`: PaginatedWirelessLinkList
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksList`: %v\n", resp)
}
```
@@ -2143,25 +2143,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this wireless link.
- patchedWritableWirelessLinkRequest := *openapiclient.NewPatchedWritableWirelessLinkRequest() // PatchedWritableWirelessLinkRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksPartialUpdate(context.Background(), id).PatchedWritableWirelessLinkRequest(patchedWritableWirelessLinkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksPartialUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLinksPartialUpdate`: WirelessLink
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksPartialUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this wireless link.
+ patchedWritableWirelessLinkRequest := *openapiclient.NewPatchedWritableWirelessLinkRequest() // PatchedWritableWirelessLinkRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksPartialUpdate(context.Background(), id).PatchedWritableWirelessLinkRequest(patchedWritableWirelessLinkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLinksPartialUpdate`: WirelessLink
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksPartialUpdate`: %v\n", resp)
}
```
@@ -2215,24 +2215,24 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this wireless link.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLinksRetrieve`: WirelessLink
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksRetrieve`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this wireless link.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksRetrieve(context.Background(), id).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksRetrieve``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLinksRetrieve`: WirelessLink
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksRetrieve`: %v\n", resp)
}
```
@@ -2285,25 +2285,25 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/netbox-community/go-netbox/v3"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this wireless link.
- writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(int32(123), int32(123)) // WritableWirelessLinkRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksUpdate(context.Background(), id).WritableWirelessLinkRequest(writableWirelessLinkRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksUpdate``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `WirelessWirelessLinksUpdate`: WirelessLink
- fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksUpdate`: %v\n", resp)
+ id := int32(56) // int32 | A unique integer value identifying this wireless link.
+ writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(int32(123), int32(123)) // WritableWirelessLinkRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksUpdate(context.Background(), id).WritableWirelessLinkRequest(writableWirelessLinkRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `WirelessWirelessLinksUpdate`: WirelessLink
+ fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksUpdate`: %v\n", resp)
}
```
diff --git a/docs/WirelessChannel.md b/docs/WirelessChannel.md
new file mode 100644
index 0000000000..1b80adfcbd
--- /dev/null
+++ b/docs/WirelessChannel.md
@@ -0,0 +1,405 @@
+# WirelessChannel
+
+## Enum
+
+
+* `_2_4G_1_2412_22` (value: `"2.4g-1-2412-22"`)
+
+* `_2_4G_2_2417_22` (value: `"2.4g-2-2417-22"`)
+
+* `_2_4G_3_2422_22` (value: `"2.4g-3-2422-22"`)
+
+* `_2_4G_4_2427_22` (value: `"2.4g-4-2427-22"`)
+
+* `_2_4G_5_2432_22` (value: `"2.4g-5-2432-22"`)
+
+* `_2_4G_6_2437_22` (value: `"2.4g-6-2437-22"`)
+
+* `_2_4G_7_2442_22` (value: `"2.4g-7-2442-22"`)
+
+* `_2_4G_8_2447_22` (value: `"2.4g-8-2447-22"`)
+
+* `_2_4G_9_2452_22` (value: `"2.4g-9-2452-22"`)
+
+* `_2_4G_10_2457_22` (value: `"2.4g-10-2457-22"`)
+
+* `_2_4G_11_2462_22` (value: `"2.4g-11-2462-22"`)
+
+* `_2_4G_12_2467_22` (value: `"2.4g-12-2467-22"`)
+
+* `_2_4G_13_2472_22` (value: `"2.4g-13-2472-22"`)
+
+* `_5G_32_5160_20` (value: `"5g-32-5160-20"`)
+
+* `_5G_34_5170_40` (value: `"5g-34-5170-40"`)
+
+* `_5G_36_5180_20` (value: `"5g-36-5180-20"`)
+
+* `_5G_38_5190_40` (value: `"5g-38-5190-40"`)
+
+* `_5G_40_5200_20` (value: `"5g-40-5200-20"`)
+
+* `_5G_42_5210_80` (value: `"5g-42-5210-80"`)
+
+* `_5G_44_5220_20` (value: `"5g-44-5220-20"`)
+
+* `_5G_46_5230_40` (value: `"5g-46-5230-40"`)
+
+* `_5G_48_5240_20` (value: `"5g-48-5240-20"`)
+
+* `_5G_50_5250_160` (value: `"5g-50-5250-160"`)
+
+* `_5G_52_5260_20` (value: `"5g-52-5260-20"`)
+
+* `_5G_54_5270_40` (value: `"5g-54-5270-40"`)
+
+* `_5G_56_5280_20` (value: `"5g-56-5280-20"`)
+
+* `_5G_58_5290_80` (value: `"5g-58-5290-80"`)
+
+* `_5G_60_5300_20` (value: `"5g-60-5300-20"`)
+
+* `_5G_62_5310_40` (value: `"5g-62-5310-40"`)
+
+* `_5G_64_5320_20` (value: `"5g-64-5320-20"`)
+
+* `_5G_100_5500_20` (value: `"5g-100-5500-20"`)
+
+* `_5G_102_5510_40` (value: `"5g-102-5510-40"`)
+
+* `_5G_104_5520_20` (value: `"5g-104-5520-20"`)
+
+* `_5G_106_5530_80` (value: `"5g-106-5530-80"`)
+
+* `_5G_108_5540_20` (value: `"5g-108-5540-20"`)
+
+* `_5G_110_5550_40` (value: `"5g-110-5550-40"`)
+
+* `_5G_112_5560_20` (value: `"5g-112-5560-20"`)
+
+* `_5G_114_5570_160` (value: `"5g-114-5570-160"`)
+
+* `_5G_116_5580_20` (value: `"5g-116-5580-20"`)
+
+* `_5G_118_5590_40` (value: `"5g-118-5590-40"`)
+
+* `_5G_120_5600_20` (value: `"5g-120-5600-20"`)
+
+* `_5G_122_5610_80` (value: `"5g-122-5610-80"`)
+
+* `_5G_124_5620_20` (value: `"5g-124-5620-20"`)
+
+* `_5G_126_5630_40` (value: `"5g-126-5630-40"`)
+
+* `_5G_128_5640_20` (value: `"5g-128-5640-20"`)
+
+* `_5G_132_5660_20` (value: `"5g-132-5660-20"`)
+
+* `_5G_134_5670_40` (value: `"5g-134-5670-40"`)
+
+* `_5G_136_5680_20` (value: `"5g-136-5680-20"`)
+
+* `_5G_138_5690_80` (value: `"5g-138-5690-80"`)
+
+* `_5G_140_5700_20` (value: `"5g-140-5700-20"`)
+
+* `_5G_142_5710_40` (value: `"5g-142-5710-40"`)
+
+* `_5G_144_5720_20` (value: `"5g-144-5720-20"`)
+
+* `_5G_149_5745_20` (value: `"5g-149-5745-20"`)
+
+* `_5G_151_5755_40` (value: `"5g-151-5755-40"`)
+
+* `_5G_153_5765_20` (value: `"5g-153-5765-20"`)
+
+* `_5G_155_5775_80` (value: `"5g-155-5775-80"`)
+
+* `_5G_157_5785_20` (value: `"5g-157-5785-20"`)
+
+* `_5G_159_5795_40` (value: `"5g-159-5795-40"`)
+
+* `_5G_161_5805_20` (value: `"5g-161-5805-20"`)
+
+* `_5G_163_5815_160` (value: `"5g-163-5815-160"`)
+
+* `_5G_165_5825_20` (value: `"5g-165-5825-20"`)
+
+* `_5G_167_5835_40` (value: `"5g-167-5835-40"`)
+
+* `_5G_169_5845_20` (value: `"5g-169-5845-20"`)
+
+* `_5G_171_5855_80` (value: `"5g-171-5855-80"`)
+
+* `_5G_173_5865_20` (value: `"5g-173-5865-20"`)
+
+* `_5G_175_5875_40` (value: `"5g-175-5875-40"`)
+
+* `_5G_177_5885_20` (value: `"5g-177-5885-20"`)
+
+* `_6G_1_5955_20` (value: `"6g-1-5955-20"`)
+
+* `_6G_3_5965_40` (value: `"6g-3-5965-40"`)
+
+* `_6G_5_5975_20` (value: `"6g-5-5975-20"`)
+
+* `_6G_7_5985_80` (value: `"6g-7-5985-80"`)
+
+* `_6G_9_5995_20` (value: `"6g-9-5995-20"`)
+
+* `_6G_11_6005_40` (value: `"6g-11-6005-40"`)
+
+* `_6G_13_6015_20` (value: `"6g-13-6015-20"`)
+
+* `_6G_15_6025_160` (value: `"6g-15-6025-160"`)
+
+* `_6G_17_6035_20` (value: `"6g-17-6035-20"`)
+
+* `_6G_19_6045_40` (value: `"6g-19-6045-40"`)
+
+* `_6G_21_6055_20` (value: `"6g-21-6055-20"`)
+
+* `_6G_23_6065_80` (value: `"6g-23-6065-80"`)
+
+* `_6G_25_6075_20` (value: `"6g-25-6075-20"`)
+
+* `_6G_27_6085_40` (value: `"6g-27-6085-40"`)
+
+* `_6G_29_6095_20` (value: `"6g-29-6095-20"`)
+
+* `_6G_31_6105_320` (value: `"6g-31-6105-320"`)
+
+* `_6G_33_6115_20` (value: `"6g-33-6115-20"`)
+
+* `_6G_35_6125_40` (value: `"6g-35-6125-40"`)
+
+* `_6G_37_6135_20` (value: `"6g-37-6135-20"`)
+
+* `_6G_39_6145_80` (value: `"6g-39-6145-80"`)
+
+* `_6G_41_6155_20` (value: `"6g-41-6155-20"`)
+
+* `_6G_43_6165_40` (value: `"6g-43-6165-40"`)
+
+* `_6G_45_6175_20` (value: `"6g-45-6175-20"`)
+
+* `_6G_47_6185_160` (value: `"6g-47-6185-160"`)
+
+* `_6G_49_6195_20` (value: `"6g-49-6195-20"`)
+
+* `_6G_51_6205_40` (value: `"6g-51-6205-40"`)
+
+* `_6G_53_6215_20` (value: `"6g-53-6215-20"`)
+
+* `_6G_55_6225_80` (value: `"6g-55-6225-80"`)
+
+* `_6G_57_6235_20` (value: `"6g-57-6235-20"`)
+
+* `_6G_59_6245_40` (value: `"6g-59-6245-40"`)
+
+* `_6G_61_6255_20` (value: `"6g-61-6255-20"`)
+
+* `_6G_65_6275_20` (value: `"6g-65-6275-20"`)
+
+* `_6G_67_6285_40` (value: `"6g-67-6285-40"`)
+
+* `_6G_69_6295_20` (value: `"6g-69-6295-20"`)
+
+* `_6G_71_6305_80` (value: `"6g-71-6305-80"`)
+
+* `_6G_73_6315_20` (value: `"6g-73-6315-20"`)
+
+* `_6G_75_6325_40` (value: `"6g-75-6325-40"`)
+
+* `_6G_77_6335_20` (value: `"6g-77-6335-20"`)
+
+* `_6G_79_6345_160` (value: `"6g-79-6345-160"`)
+
+* `_6G_81_6355_20` (value: `"6g-81-6355-20"`)
+
+* `_6G_83_6365_40` (value: `"6g-83-6365-40"`)
+
+* `_6G_85_6375_20` (value: `"6g-85-6375-20"`)
+
+* `_6G_87_6385_80` (value: `"6g-87-6385-80"`)
+
+* `_6G_89_6395_20` (value: `"6g-89-6395-20"`)
+
+* `_6G_91_6405_40` (value: `"6g-91-6405-40"`)
+
+* `_6G_93_6415_20` (value: `"6g-93-6415-20"`)
+
+* `_6G_95_6425_320` (value: `"6g-95-6425-320"`)
+
+* `_6G_97_6435_20` (value: `"6g-97-6435-20"`)
+
+* `_6G_99_6445_40` (value: `"6g-99-6445-40"`)
+
+* `_6G_101_6455_20` (value: `"6g-101-6455-20"`)
+
+* `_6G_103_6465_80` (value: `"6g-103-6465-80"`)
+
+* `_6G_105_6475_20` (value: `"6g-105-6475-20"`)
+
+* `_6G_107_6485_40` (value: `"6g-107-6485-40"`)
+
+* `_6G_109_6495_20` (value: `"6g-109-6495-20"`)
+
+* `_6G_111_6505_160` (value: `"6g-111-6505-160"`)
+
+* `_6G_113_6515_20` (value: `"6g-113-6515-20"`)
+
+* `_6G_115_6525_40` (value: `"6g-115-6525-40"`)
+
+* `_6G_117_6535_20` (value: `"6g-117-6535-20"`)
+
+* `_6G_119_6545_80` (value: `"6g-119-6545-80"`)
+
+* `_6G_121_6555_20` (value: `"6g-121-6555-20"`)
+
+* `_6G_123_6565_40` (value: `"6g-123-6565-40"`)
+
+* `_6G_125_6575_20` (value: `"6g-125-6575-20"`)
+
+* `_6G_129_6595_20` (value: `"6g-129-6595-20"`)
+
+* `_6G_131_6605_40` (value: `"6g-131-6605-40"`)
+
+* `_6G_133_6615_20` (value: `"6g-133-6615-20"`)
+
+* `_6G_135_6625_80` (value: `"6g-135-6625-80"`)
+
+* `_6G_137_6635_20` (value: `"6g-137-6635-20"`)
+
+* `_6G_139_6645_40` (value: `"6g-139-6645-40"`)
+
+* `_6G_141_6655_20` (value: `"6g-141-6655-20"`)
+
+* `_6G_143_6665_160` (value: `"6g-143-6665-160"`)
+
+* `_6G_145_6675_20` (value: `"6g-145-6675-20"`)
+
+* `_6G_147_6685_40` (value: `"6g-147-6685-40"`)
+
+* `_6G_149_6695_20` (value: `"6g-149-6695-20"`)
+
+* `_6G_151_6705_80` (value: `"6g-151-6705-80"`)
+
+* `_6G_153_6715_20` (value: `"6g-153-6715-20"`)
+
+* `_6G_155_6725_40` (value: `"6g-155-6725-40"`)
+
+* `_6G_157_6735_20` (value: `"6g-157-6735-20"`)
+
+* `_6G_159_6745_320` (value: `"6g-159-6745-320"`)
+
+* `_6G_161_6755_20` (value: `"6g-161-6755-20"`)
+
+* `_6G_163_6765_40` (value: `"6g-163-6765-40"`)
+
+* `_6G_165_6775_20` (value: `"6g-165-6775-20"`)
+
+* `_6G_167_6785_80` (value: `"6g-167-6785-80"`)
+
+* `_6G_169_6795_20` (value: `"6g-169-6795-20"`)
+
+* `_6G_171_6805_40` (value: `"6g-171-6805-40"`)
+
+* `_6G_173_6815_20` (value: `"6g-173-6815-20"`)
+
+* `_6G_175_6825_160` (value: `"6g-175-6825-160"`)
+
+* `_6G_177_6835_20` (value: `"6g-177-6835-20"`)
+
+* `_6G_179_6845_40` (value: `"6g-179-6845-40"`)
+
+* `_6G_181_6855_20` (value: `"6g-181-6855-20"`)
+
+* `_6G_183_6865_80` (value: `"6g-183-6865-80"`)
+
+* `_6G_185_6875_20` (value: `"6g-185-6875-20"`)
+
+* `_6G_187_6885_40` (value: `"6g-187-6885-40"`)
+
+* `_6G_189_6895_20` (value: `"6g-189-6895-20"`)
+
+* `_6G_193_6915_20` (value: `"6g-193-6915-20"`)
+
+* `_6G_195_6925_40` (value: `"6g-195-6925-40"`)
+
+* `_6G_197_6935_20` (value: `"6g-197-6935-20"`)
+
+* `_6G_199_6945_80` (value: `"6g-199-6945-80"`)
+
+* `_6G_201_6955_20` (value: `"6g-201-6955-20"`)
+
+* `_6G_203_6965_40` (value: `"6g-203-6965-40"`)
+
+* `_6G_205_6975_20` (value: `"6g-205-6975-20"`)
+
+* `_6G_207_6985_160` (value: `"6g-207-6985-160"`)
+
+* `_6G_209_6995_20` (value: `"6g-209-6995-20"`)
+
+* `_6G_211_7005_40` (value: `"6g-211-7005-40"`)
+
+* `_6G_213_7015_20` (value: `"6g-213-7015-20"`)
+
+* `_6G_215_7025_80` (value: `"6g-215-7025-80"`)
+
+* `_6G_217_7035_20` (value: `"6g-217-7035-20"`)
+
+* `_6G_219_7045_40` (value: `"6g-219-7045-40"`)
+
+* `_6G_221_7055_20` (value: `"6g-221-7055-20"`)
+
+* `_6G_225_7075_20` (value: `"6g-225-7075-20"`)
+
+* `_6G_227_7085_40` (value: `"6g-227-7085-40"`)
+
+* `_6G_229_7095_20` (value: `"6g-229-7095-20"`)
+
+* `_6G_233_7115_20` (value: `"6g-233-7115-20"`)
+
+* `_60G_1_58320_2160` (value: `"60g-1-58320-2160"`)
+
+* `_60G_2_60480_2160` (value: `"60g-2-60480-2160"`)
+
+* `_60G_3_62640_2160` (value: `"60g-3-62640-2160"`)
+
+* `_60G_4_64800_2160` (value: `"60g-4-64800-2160"`)
+
+* `_60G_5_66960_2160` (value: `"60g-5-66960-2160"`)
+
+* `_60G_6_69120_2160` (value: `"60g-6-69120-2160"`)
+
+* `_60G_9_59400_4320` (value: `"60g-9-59400-4320"`)
+
+* `_60G_10_61560_4320` (value: `"60g-10-61560-4320"`)
+
+* `_60G_11_63720_4320` (value: `"60g-11-63720-4320"`)
+
+* `_60G_12_65880_4320` (value: `"60g-12-65880-4320"`)
+
+* `_60G_13_68040_4320` (value: `"60g-13-68040-4320"`)
+
+* `_60G_17_60480_6480` (value: `"60g-17-60480-6480"`)
+
+* `_60G_18_62640_6480` (value: `"60g-18-62640-6480"`)
+
+* `_60G_19_64800_6480` (value: `"60g-19-64800-6480"`)
+
+* `_60G_20_66960_6480` (value: `"60g-20-66960-6480"`)
+
+* `_60G_25_61560_6480` (value: `"60g-25-61560-6480"`)
+
+* `_60G_26_63720_6480` (value: `"60g-26-63720-6480"`)
+
+* `_60G_27_65880_6480` (value: `"60g-27-65880-6480"`)
+
+* `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/WirelessLANAuthCipher.md b/docs/WirelessLANAuthCipher.md
index e9cc11d5d1..4256fdb8c1 100644
--- a/docs/WirelessLANAuthCipher.md
+++ b/docs/WirelessLANAuthCipher.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional]
+**Label** | Pointer to [**WirelessLANAuthCipherLabel**](WirelessLANAuthCipherLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *WirelessLANAuthCipher) GetValue() string`
+`func (o *WirelessLANAuthCipher) GetValue() WirelessLANAuthCipherValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *WirelessLANAuthCipher) GetValueOk() (*string, bool)`
+`func (o *WirelessLANAuthCipher) GetValueOk() (*WirelessLANAuthCipherValue, 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 *WirelessLANAuthCipher) SetValue(v string)`
+`func (o *WirelessLANAuthCipher) SetValue(v WirelessLANAuthCipherValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *WirelessLANAuthCipher) GetLabel() string`
+`func (o *WirelessLANAuthCipher) GetLabel() WirelessLANAuthCipherLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *WirelessLANAuthCipher) GetLabelOk() (*string, bool)`
+`func (o *WirelessLANAuthCipher) GetLabelOk() (*WirelessLANAuthCipherLabel, 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 *WirelessLANAuthCipher) SetLabel(v string)`
+`func (o *WirelessLANAuthCipher) SetLabel(v WirelessLANAuthCipherLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/WirelessLANAuthCipherLabel.md b/docs/WirelessLANAuthCipherLabel.md
new file mode 100644
index 0000000000..7f2359eeda
--- /dev/null
+++ b/docs/WirelessLANAuthCipherLabel.md
@@ -0,0 +1,15 @@
+# WirelessLANAuthCipherLabel
+
+## Enum
+
+
+* `AUTO` (value: `"Auto"`)
+
+* `TKIP` (value: `"TKIP"`)
+
+* `AES` (value: `"AES"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/WirelessLANAuthCipherValue.md b/docs/WirelessLANAuthCipherValue.md
new file mode 100644
index 0000000000..a5c1406757
--- /dev/null
+++ b/docs/WirelessLANAuthCipherValue.md
@@ -0,0 +1,17 @@
+# WirelessLANAuthCipherValue
+
+## Enum
+
+
+* `AUTO` (value: `"auto"`)
+
+* `TKIP` (value: `"tkip"`)
+
+* `AES` (value: `"aes"`)
+
+* `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/WirelessLANAuthType.md b/docs/WirelessLANAuthType.md
index 03f4e0f452..d64e962d38 100644
--- a/docs/WirelessLANAuthType.md
+++ b/docs/WirelessLANAuthType.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional]
+**Label** | Pointer to [**WirelessLANAuthTypeLabel**](WirelessLANAuthTypeLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *WirelessLANAuthType) GetValue() string`
+`func (o *WirelessLANAuthType) GetValue() WirelessLANAuthTypeValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *WirelessLANAuthType) GetValueOk() (*string, bool)`
+`func (o *WirelessLANAuthType) GetValueOk() (*WirelessLANAuthTypeValue, bool)`
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValue
-`func (o *WirelessLANAuthType) SetValue(v string)`
+`func (o *WirelessLANAuthType) SetValue(v WirelessLANAuthTypeValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *WirelessLANAuthType) GetLabel() string`
+`func (o *WirelessLANAuthType) GetLabel() WirelessLANAuthTypeLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *WirelessLANAuthType) GetLabelOk() (*string, bool)`
+`func (o *WirelessLANAuthType) GetLabelOk() (*WirelessLANAuthTypeLabel, bool)`
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLabel
-`func (o *WirelessLANAuthType) SetLabel(v string)`
+`func (o *WirelessLANAuthType) SetLabel(v WirelessLANAuthTypeLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/WirelessLANAuthTypeLabel.md b/docs/WirelessLANAuthTypeLabel.md
new file mode 100644
index 0000000000..bbe49e67ec
--- /dev/null
+++ b/docs/WirelessLANAuthTypeLabel.md
@@ -0,0 +1,17 @@
+# WirelessLANAuthTypeLabel
+
+## Enum
+
+
+* `OPEN` (value: `"Open"`)
+
+* `WEP` (value: `"WEP"`)
+
+* `WPA_PERSONAL__PSK` (value: `"WPA Personal (PSK)"`)
+
+* `WPA_ENTERPRISE` (value: `"WPA Enterprise"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/WirelessLANAuthTypeValue.md b/docs/WirelessLANAuthTypeValue.md
new file mode 100644
index 0000000000..66236a78b6
--- /dev/null
+++ b/docs/WirelessLANAuthTypeValue.md
@@ -0,0 +1,19 @@
+# WirelessLANAuthTypeValue
+
+## Enum
+
+
+* `OPEN` (value: `"open"`)
+
+* `WEP` (value: `"wep"`)
+
+* `WPA_PERSONAL` (value: `"wpa-personal"`)
+
+* `WPA_ENTERPRISE` (value: `"wpa-enterprise"`)
+
+* `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/WirelessLANRequest.md b/docs/WirelessLANRequest.md
index b588e9dcf6..51a2d35f5f 100644
--- a/docs/WirelessLANRequest.md
+++ b/docs/WirelessLANRequest.md
@@ -7,11 +7,11 @@ Name | Type | Description | Notes
**Ssid** | **string** | |
**Description** | Pointer to **string** | | [optional]
**Group** | Pointer to [**NullableNestedWirelessLANGroupRequest**](NestedWirelessLANGroupRequest.md) | | [optional]
-**Status** | Pointer to **string** | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated | [optional]
+**Status** | Pointer to [**WirelessLANStatusValue**](WirelessLANStatusValue.md) | | [optional]
**Vlan** | Pointer to [**NullableNestedVLANRequest**](NestedVLANRequest.md) | | [optional]
**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**AuthType** | Pointer to **string** | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | [optional]
-**AuthCipher** | Pointer to **string** | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | [optional]
+**AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional]
+**AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional]
**AuthPsk** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -118,20 +118,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 *WirelessLANRequest) GetStatus() string`
+`func (o *WirelessLANRequest) GetStatus() WirelessLANStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WirelessLANRequest) GetStatusOk() (*string, bool)`
+`func (o *WirelessLANRequest) GetStatusOk() (*WirelessLANStatusValue, 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 *WirelessLANRequest) SetStatus(v string)`
+`func (o *WirelessLANRequest) SetStatus(v WirelessLANStatusValue)`
SetStatus sets Status field to given value.
@@ -213,20 +213,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
### GetAuthType
-`func (o *WirelessLANRequest) GetAuthType() string`
+`func (o *WirelessLANRequest) GetAuthType() WirelessLANAuthTypeValue`
GetAuthType returns the AuthType field if non-nil, zero value otherwise.
### GetAuthTypeOk
-`func (o *WirelessLANRequest) GetAuthTypeOk() (*string, bool)`
+`func (o *WirelessLANRequest) GetAuthTypeOk() (*WirelessLANAuthTypeValue, 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 *WirelessLANRequest) SetAuthType(v string)`
+`func (o *WirelessLANRequest) SetAuthType(v WirelessLANAuthTypeValue)`
SetAuthType sets AuthType field to given value.
@@ -238,20 +238,20 @@ HasAuthType returns a boolean if a field has been set.
### GetAuthCipher
-`func (o *WirelessLANRequest) GetAuthCipher() string`
+`func (o *WirelessLANRequest) GetAuthCipher() WirelessLANAuthCipherValue`
GetAuthCipher returns the AuthCipher field if non-nil, zero value otherwise.
### GetAuthCipherOk
-`func (o *WirelessLANRequest) GetAuthCipherOk() (*string, bool)`
+`func (o *WirelessLANRequest) GetAuthCipherOk() (*WirelessLANAuthCipherValue, bool)`
GetAuthCipherOk returns a tuple with the AuthCipher field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAuthCipher
-`func (o *WirelessLANRequest) SetAuthCipher(v string)`
+`func (o *WirelessLANRequest) SetAuthCipher(v WirelessLANAuthCipherValue)`
SetAuthCipher sets AuthCipher field to given value.
diff --git a/docs/WirelessLANStatus.md b/docs/WirelessLANStatus.md
index c39a8f6eb1..01518b6c23 100644
--- a/docs/WirelessLANStatus.md
+++ b/docs/WirelessLANStatus.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to **string** | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated | [optional]
-**Label** | Pointer to **string** | | [optional]
+**Value** | Pointer to [**WirelessLANStatusValue**](WirelessLANStatusValue.md) | | [optional]
+**Label** | Pointer to [**WirelessLANStatusLabel**](WirelessLANStatusLabel.md) | | [optional]
## Methods
@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetValue
-`func (o *WirelessLANStatus) GetValue() string`
+`func (o *WirelessLANStatus) GetValue() WirelessLANStatusValue`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *WirelessLANStatus) GetValueOk() (*string, bool)`
+`func (o *WirelessLANStatus) GetValueOk() (*WirelessLANStatusValue, 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 *WirelessLANStatus) SetValue(v string)`
+`func (o *WirelessLANStatus) SetValue(v WirelessLANStatusValue)`
SetValue sets Value field to given value.
@@ -53,20 +53,20 @@ HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *WirelessLANStatus) GetLabel() string`
+`func (o *WirelessLANStatus) GetLabel() WirelessLANStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *WirelessLANStatus) GetLabelOk() (*string, bool)`
+`func (o *WirelessLANStatus) GetLabelOk() (*WirelessLANStatusLabel, 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 *WirelessLANStatus) SetLabel(v string)`
+`func (o *WirelessLANStatus) SetLabel(v WirelessLANStatusLabel)`
SetLabel sets Label field to given value.
diff --git a/docs/WirelessLANStatusLabel.md b/docs/WirelessLANStatusLabel.md
new file mode 100644
index 0000000000..000fcd7004
--- /dev/null
+++ b/docs/WirelessLANStatusLabel.md
@@ -0,0 +1,17 @@
+# WirelessLANStatusLabel
+
+## Enum
+
+
+* `ACTIVE` (value: `"Active"`)
+
+* `RESERVED` (value: `"Reserved"`)
+
+* `DISABLED` (value: `"Disabled"`)
+
+* `DEPRECATED` (value: `"Deprecated"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/WirelessLANStatusValue.md b/docs/WirelessLANStatusValue.md
new file mode 100644
index 0000000000..72bea0a510
--- /dev/null
+++ b/docs/WirelessLANStatusValue.md
@@ -0,0 +1,19 @@
+# WirelessLANStatusValue
+
+## Enum
+
+
+* `ACTIVE` (value: `"active"`)
+
+* `RESERVED` (value: `"reserved"`)
+
+* `DISABLED` (value: `"disabled"`)
+
+* `DEPRECATED` (value: `"deprecated"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/WirelessLinkRequest.md b/docs/WirelessLinkRequest.md
index e0af59498a..da465df7f4 100644
--- a/docs/WirelessLinkRequest.md
+++ b/docs/WirelessLinkRequest.md
@@ -7,10 +7,10 @@ Name | Type | Description | Notes
**InterfaceA** | [**NestedInterfaceRequest**](NestedInterfaceRequest.md) | |
**InterfaceB** | [**NestedInterfaceRequest**](NestedInterfaceRequest.md) | |
**Ssid** | Pointer to **string** | | [optional]
-**Status** | Pointer to **string** | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | [optional]
+**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional]
**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**AuthType** | Pointer to **string** | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | [optional]
-**AuthCipher** | Pointer to **string** | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | [optional]
+**AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional]
+**AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional]
**AuthPsk** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -103,20 +103,20 @@ HasSsid returns a boolean if a field has been set.
### GetStatus
-`func (o *WirelessLinkRequest) GetStatus() string`
+`func (o *WirelessLinkRequest) GetStatus() CableStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WirelessLinkRequest) GetStatusOk() (*string, bool)`
+`func (o *WirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *WirelessLinkRequest) SetStatus(v string)`
+`func (o *WirelessLinkRequest) SetStatus(v CableStatusValue)`
SetStatus sets Status field to given value.
@@ -163,20 +163,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
### GetAuthType
-`func (o *WirelessLinkRequest) GetAuthType() string`
+`func (o *WirelessLinkRequest) GetAuthType() WirelessLANAuthTypeValue`
GetAuthType returns the AuthType field if non-nil, zero value otherwise.
### GetAuthTypeOk
-`func (o *WirelessLinkRequest) GetAuthTypeOk() (*string, bool)`
+`func (o *WirelessLinkRequest) GetAuthTypeOk() (*WirelessLANAuthTypeValue, 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 *WirelessLinkRequest) SetAuthType(v string)`
+`func (o *WirelessLinkRequest) SetAuthType(v WirelessLANAuthTypeValue)`
SetAuthType sets AuthType field to given value.
@@ -188,20 +188,20 @@ HasAuthType returns a boolean if a field has been set.
### GetAuthCipher
-`func (o *WirelessLinkRequest) GetAuthCipher() string`
+`func (o *WirelessLinkRequest) GetAuthCipher() WirelessLANAuthCipherValue`
GetAuthCipher returns the AuthCipher field if non-nil, zero value otherwise.
### GetAuthCipherOk
-`func (o *WirelessLinkRequest) GetAuthCipherOk() (*string, bool)`
+`func (o *WirelessLinkRequest) GetAuthCipherOk() (*WirelessLANAuthCipherValue, bool)`
GetAuthCipherOk returns a tuple with the AuthCipher field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAuthCipher
-`func (o *WirelessLinkRequest) SetAuthCipher(v string)`
+`func (o *WirelessLinkRequest) SetAuthCipher(v WirelessLANAuthCipherValue)`
SetAuthCipher sets AuthCipher field to given value.
diff --git a/docs/WirelessRole.md b/docs/WirelessRole.md
new file mode 100644
index 0000000000..19ed006f82
--- /dev/null
+++ b/docs/WirelessRole.md
@@ -0,0 +1,15 @@
+# WirelessRole
+
+## Enum
+
+
+* `AP` (value: `"ap"`)
+
+* `STATION` (value: `"station"`)
+
+* `EMPTY` (value: `""`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/WritableCableRequest.md b/docs/WritableCableRequest.md
index a81818cd8c..21d6a9195a 100644
--- a/docs/WritableCableRequest.md
+++ b/docs/WritableCableRequest.md
@@ -4,15 +4,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Type** | Pointer to **string** | * `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 | [optional]
+**Type** | Pointer to [**CableType**](CableType.md) | | [optional]
**ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional]
**BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional]
-**Status** | Pointer to **string** | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | [optional]
+**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
**Label** | Pointer to **string** | | [optional]
**Color** | Pointer to **string** | | [optional]
**Length** | Pointer to **NullableFloat64** | | [optional]
-**LengthUnit** | Pointer to **string** | * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches | [optional]
+**LengthUnit** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.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() string`
+`func (o *WritableCableRequest) GetType() CableType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableCableRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableCableRequest) GetTypeOk() (*CableType, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *WritableCableRequest) SetType(v string)`
+`func (o *WritableCableRequest) SetType(v CableType)`
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() string`
+`func (o *WritableCableRequest) GetStatus() CableStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableCableRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableCableRequest) GetStatusOk() (*CableStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *WritableCableRequest) SetStatus(v string)`
+`func (o *WritableCableRequest) SetStatus(v CableStatusValue)`
SetStatus sets Status 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() string`
+`func (o *WritableCableRequest) GetLengthUnit() CableLengthUnitValue`
GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise.
### GetLengthUnitOk
-`func (o *WritableCableRequest) GetLengthUnitOk() (*string, bool)`
+`func (o *WritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, 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 string)`
+`func (o *WritableCableRequest) SetLengthUnit(v CableLengthUnitValue)`
SetLengthUnit sets LengthUnit field to given value.
diff --git a/docs/WritableCircuitRequest.md b/docs/WritableCircuitRequest.md
index 3bc8167f90..c88c10bab5 100644
--- a/docs/WritableCircuitRequest.md
+++ b/docs/WritableCircuitRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Provider** | **int32** | |
**ProviderAccount** | Pointer to **NullableInt32** | | [optional]
**Type** | **int32** | |
-**Status** | Pointer to **string** | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned | [optional]
+**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
**InstallDate** | Pointer to **NullableString** | | [optional]
**TerminationDate** | Pointer to **NullableString** | | [optional]
@@ -134,20 +134,20 @@ SetType sets Type field to given value.
### GetStatus
-`func (o *WritableCircuitRequest) GetStatus() string`
+`func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableCircuitRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *WritableCircuitRequest) SetStatus(v string)`
+`func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/WritableCircuitTerminationRequest.md b/docs/WritableCircuitTerminationRequest.md
index 90be08f869..86d3063bba 100644
--- a/docs/WritableCircuitTerminationRequest.md
+++ b/docs/WritableCircuitTerminationRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Circuit** | **int32** | |
-**TermSide** | **string** | * `A` - A * `Z` - Z |
+**TermSide** | [**Termination**](Termination.md) | |
**Site** | Pointer to **NullableInt32** | | [optional]
**ProviderNetwork** | Pointer to **NullableInt32** | | [optional]
**PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional]
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
### NewWritableCircuitTerminationRequest
-`func NewWritableCircuitTerminationRequest(circuit int32, termSide string, ) *WritableCircuitTerminationRequest`
+`func NewWritableCircuitTerminationRequest(circuit int32, termSide Termination, ) *WritableCircuitTerminationRequest`
NewWritableCircuitTerminationRequest instantiates a new WritableCircuitTerminationRequest object
This constructor will assign default values to properties that have it defined,
@@ -58,20 +58,20 @@ SetCircuit sets Circuit field to given value.
### GetTermSide
-`func (o *WritableCircuitTerminationRequest) GetTermSide() string`
+`func (o *WritableCircuitTerminationRequest) GetTermSide() Termination`
GetTermSide returns the TermSide field if non-nil, zero value otherwise.
### GetTermSideOk
-`func (o *WritableCircuitTerminationRequest) GetTermSideOk() (*string, bool)`
+`func (o *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) SetTermSide(v string)`
+`func (o *WritableCircuitTerminationRequest) SetTermSide(v Termination)`
SetTermSide sets TermSide field to given value.
diff --git a/docs/WritableClusterRequest.md b/docs/WritableClusterRequest.md
index 73cd29010f..4db694059b 100644
--- a/docs/WritableClusterRequest.md
+++ b/docs/WritableClusterRequest.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Name** | **string** | |
**Type** | **int32** | |
**Group** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline | [optional]
+**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
**Site** | Pointer to **NullableInt32** | | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -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() string`
+`func (o *WritableClusterRequest) GetStatus() ClusterStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableClusterRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *WritableClusterRequest) SetStatus(v string)`
+`func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/WritableConfigContextRequest.md b/docs/WritableConfigContextRequest.md
index c5d57632ce..07c9605b2f 100644
--- a/docs/WritableConfigContextRequest.md
+++ b/docs/WritableConfigContextRequest.md
@@ -22,13 +22,13 @@ Name | Type | Description | Notes
**Tenants** | Pointer to **[]int32** | | [optional]
**Tags** | Pointer to **[]string** | | [optional]
**DataSource** | Pointer to **NullableInt32** | Remote data source | [optional]
-**Data** | **map[string]interface{}** | |
+**Data** | **interface{}** | |
## Methods
### NewWritableConfigContextRequest
-`func NewWritableConfigContextRequest(name string, data map[string]interface{}, ) *WritableConfigContextRequest`
+`func NewWritableConfigContextRequest(name string, data interface{}, ) *WritableConfigContextRequest`
NewWritableConfigContextRequest instantiates a new WritableConfigContextRequest object
This constructor will assign default values to properties that have it defined,
@@ -500,24 +500,34 @@ HasDataSource returns a boolean if a field has been set.
UnsetDataSource ensures that no value is present for DataSource, not even an explicit nil
### GetData
-`func (o *WritableConfigContextRequest) GetData() map[string]interface{}`
+`func (o *WritableConfigContextRequest) GetData() interface{}`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *WritableConfigContextRequest) GetDataOk() (*map[string]interface{}, bool)`
+`func (o *WritableConfigContextRequest) 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 map[string]interface{})`
+`func (o *WritableConfigContextRequest) SetData(v interface{})`
SetData sets Data field to given value.
+### SetDataNil
+
+`func (o *WritableConfigContextRequest) SetDataNil(b bool)`
+
+ SetDataNil sets the value for Data to be an explicit nil
+
+### UnsetData
+`func (o *WritableConfigContextRequest) 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/WritableConfigTemplateRequest.md b/docs/WritableConfigTemplateRequest.md
index 667e9f2fbd..b9b78d225a 100644
--- a/docs/WritableConfigTemplateRequest.md
+++ b/docs/WritableConfigTemplateRequest.md
@@ -6,9 +6,10 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Description** | Pointer to **string** | | [optional]
-**EnvironmentParams** | Pointer to **map[string]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]
+**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
@@ -77,20 +78,20 @@ HasDescription returns a boolean if a field has been set.
### GetEnvironmentParams
-`func (o *WritableConfigTemplateRequest) GetEnvironmentParams() map[string]interface{}`
+`func (o *WritableConfigTemplateRequest) GetEnvironmentParams() interface{}`
GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise.
### GetEnvironmentParamsOk
-`func (o *WritableConfigTemplateRequest) GetEnvironmentParamsOk() (*map[string]interface{}, bool)`
+`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 map[string]interface{})`
+`func (o *WritableConfigTemplateRequest) SetEnvironmentParams(v interface{})`
SetEnvironmentParams sets EnvironmentParams field to given value.
@@ -165,6 +166,41 @@ HasDataSource returns a boolean if a field has been set.
`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`
diff --git a/docs/WritableConsolePortRequest.md b/docs/WritableConsolePortRequest.md
index e307be9c04..957defb857 100644
--- a/docs/WritableConsolePortRequest.md
+++ b/docs/WritableConsolePortRequest.md
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | 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 | [optional]
-**Speed** | Pointer to **NullableInt32** | 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]
+**Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional]
+**Speed** | Pointer to [**NullablePatchedWritableConsolePortRequestSpeed**](PatchedWritableConsolePortRequestSpeed.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -136,20 +136,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritableConsolePortRequest) GetType() string`
+`func (o *WritableConsolePortRequest) GetType() PatchedWritableConsolePortRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableConsolePortRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableConsolePortRequest) GetTypeOk() (*PatchedWritableConsolePortRequestType, 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 *WritableConsolePortRequest) SetType(v string)`
+`func (o *WritableConsolePortRequest) SetType(v PatchedWritableConsolePortRequestType)`
SetType sets Type field to given value.
@@ -161,20 +161,20 @@ HasType returns a boolean if a field has been set.
### GetSpeed
-`func (o *WritableConsolePortRequest) GetSpeed() int32`
+`func (o *WritableConsolePortRequest) GetSpeed() PatchedWritableConsolePortRequestSpeed`
GetSpeed returns the Speed field if non-nil, zero value otherwise.
### GetSpeedOk
-`func (o *WritableConsolePortRequest) GetSpeedOk() (*int32, bool)`
+`func (o *WritableConsolePortRequest) GetSpeedOk() (*PatchedWritableConsolePortRequestSpeed, bool)`
GetSpeedOk returns a tuple with the Speed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSpeed
-`func (o *WritableConsolePortRequest) SetSpeed(v int32)`
+`func (o *WritableConsolePortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed)`
SetSpeed sets Speed field to given value.
diff --git a/docs/WritableConsolePortTemplateRequest.md b/docs/WritableConsolePortTemplateRequest.md
index 9cc215d871..d0dac4622c 100644
--- a/docs/WritableConsolePortTemplateRequest.md
+++ b/docs/WritableConsolePortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**ModuleType** | 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]
-**Type** | Pointer to **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional]
+**Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
## Methods
@@ -147,20 +147,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritableConsolePortTemplateRequest) GetType() string`
+`func (o *WritableConsolePortTemplateRequest) GetType() ConsolePortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableConsolePortTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableConsolePortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *WritableConsolePortTemplateRequest) SetType(v string)`
+`func (o *WritableConsolePortTemplateRequest) SetType(v ConsolePortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/WritableConsoleServerPortRequest.md b/docs/WritableConsoleServerPortRequest.md
index a2c320a9ee..581d956700 100644
--- a/docs/WritableConsoleServerPortRequest.md
+++ b/docs/WritableConsoleServerPortRequest.md
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | 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 | [optional]
-**Speed** | Pointer to **NullableInt32** | 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]
+**Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional]
+**Speed** | Pointer to [**NullablePatchedWritableConsolePortRequestSpeed**](PatchedWritableConsolePortRequestSpeed.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -136,20 +136,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritableConsoleServerPortRequest) GetType() string`
+`func (o *WritableConsoleServerPortRequest) GetType() PatchedWritableConsolePortRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableConsoleServerPortRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableConsoleServerPortRequest) GetTypeOk() (*PatchedWritableConsolePortRequestType, 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 *WritableConsoleServerPortRequest) SetType(v string)`
+`func (o *WritableConsoleServerPortRequest) SetType(v PatchedWritableConsolePortRequestType)`
SetType sets Type field to given value.
@@ -161,20 +161,20 @@ HasType returns a boolean if a field has been set.
### GetSpeed
-`func (o *WritableConsoleServerPortRequest) GetSpeed() int32`
+`func (o *WritableConsoleServerPortRequest) GetSpeed() PatchedWritableConsolePortRequestSpeed`
GetSpeed returns the Speed field if non-nil, zero value otherwise.
### GetSpeedOk
-`func (o *WritableConsoleServerPortRequest) GetSpeedOk() (*int32, bool)`
+`func (o *WritableConsoleServerPortRequest) GetSpeedOk() (*PatchedWritableConsolePortRequestSpeed, bool)`
GetSpeedOk returns a tuple with the Speed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSpeed
-`func (o *WritableConsoleServerPortRequest) SetSpeed(v int32)`
+`func (o *WritableConsoleServerPortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed)`
SetSpeed sets Speed field to given value.
diff --git a/docs/WritableConsoleServerPortTemplateRequest.md b/docs/WritableConsoleServerPortTemplateRequest.md
index b1a3c5732e..e74aa5a450 100644
--- a/docs/WritableConsoleServerPortTemplateRequest.md
+++ b/docs/WritableConsoleServerPortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**ModuleType** | 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]
-**Type** | Pointer to **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional]
+**Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
## Methods
@@ -147,20 +147,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritableConsoleServerPortTemplateRequest) GetType() string`
+`func (o *WritableConsoleServerPortTemplateRequest) GetType() ConsolePortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableConsoleServerPortTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableConsoleServerPortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *WritableConsoleServerPortTemplateRequest) SetType(v string)`
+`func (o *WritableConsoleServerPortTemplateRequest) SetType(v ConsolePortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/WritableContactAssignmentRequest.md b/docs/WritableContactAssignmentRequest.md
index 4a78233676..ad94445958 100644
--- a/docs/WritableContactAssignmentRequest.md
+++ b/docs/WritableContactAssignmentRequest.md
@@ -8,8 +8,9 @@ Name | Type | Description | Notes
**ObjectId** | **int64** | |
**Contact** | **int32** | |
**Role** | **int32** | |
-**Priority** | Pointer to **string** | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | [optional]
+**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
## Methods
@@ -112,20 +113,20 @@ SetRole sets Role field to given value.
### GetPriority
-`func (o *WritableContactAssignmentRequest) GetPriority() string`
+`func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue`
GetPriority returns the Priority field if non-nil, zero value otherwise.
### GetPriorityOk
-`func (o *WritableContactAssignmentRequest) GetPriorityOk() (*string, bool)`
+`func (o *WritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)`
GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPriority
-`func (o *WritableContactAssignmentRequest) SetPriority(v string)`
+`func (o *WritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)`
SetPriority sets Priority field to given value.
@@ -160,6 +161,31 @@ SetTags sets Tags field to given value.
HasTags returns a boolean if a field has been set.
+### GetCustomFields
+
+`func (o *WritableContactAssignmentRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *WritableContactAssignmentRequest) 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 *WritableContactAssignmentRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *WritableContactAssignmentRequest) 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/WritableCustomFieldChoiceSetRequest.md b/docs/WritableCustomFieldChoiceSetRequest.md
index a8c8f7eefb..a72139552c 100644
--- a/docs/WritableCustomFieldChoiceSetRequest.md
+++ b/docs/WritableCustomFieldChoiceSetRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Description** | Pointer to **string** | | [optional]
-**BaseChoices** | Pointer to **string** | Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) | [optional]
+**BaseChoices** | Pointer to [**PatchedWritableCustomFieldChoiceSetRequestBaseChoices**](PatchedWritableCustomFieldChoiceSetRequestBaseChoices.md) | | [optional]
**ExtraChoices** | Pointer to **[][]string** | | [optional]
**OrderAlphabetically** | Pointer to **bool** | Choices are automatically ordered alphabetically | [optional]
@@ -76,20 +76,20 @@ HasDescription returns a boolean if a field has been set.
### GetBaseChoices
-`func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoices() string`
+`func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoices() PatchedWritableCustomFieldChoiceSetRequestBaseChoices`
GetBaseChoices returns the BaseChoices field if non-nil, zero value otherwise.
### GetBaseChoicesOk
-`func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoicesOk() (*string, bool)`
+`func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoicesOk() (*PatchedWritableCustomFieldChoiceSetRequestBaseChoices, bool)`
GetBaseChoicesOk returns a tuple with the BaseChoices field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBaseChoices
-`func (o *WritableCustomFieldChoiceSetRequest) SetBaseChoices(v string)`
+`func (o *WritableCustomFieldChoiceSetRequest) SetBaseChoices(v PatchedWritableCustomFieldChoiceSetRequestBaseChoices)`
SetBaseChoices sets BaseChoices field to given value.
diff --git a/docs/WritableCustomFieldRequest.md b/docs/WritableCustomFieldRequest.md
index 86610460e4..4154b7264f 100644
--- a/docs/WritableCustomFieldRequest.md
+++ b/docs/WritableCustomFieldRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ContentTypes** | **[]string** | |
-**Type** | Pointer to **string** | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | [optional]
+**Type** | Pointer to [**PatchedWritableCustomFieldRequestType**](PatchedWritableCustomFieldRequestType.md) | | [optional]
**ObjectType** | Pointer to **string** | | [optional]
**Name** | **string** | Internal field name |
**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional]
@@ -13,13 +13,14 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional]
**SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional]
-**FilterLogic** | Pointer to **string** | Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact | [optional]
-**UiVisibility** | Pointer to **string** | Specifies the visibility of custom field in the UI * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) | [optional]
+**FilterLogic** | Pointer to [**PatchedWritableCustomFieldRequestFilterLogic**](PatchedWritableCustomFieldRequestFilterLogic.md) | | [optional]
+**UiVisible** | Pointer to [**PatchedWritableCustomFieldRequestUiVisible**](PatchedWritableCustomFieldRequestUiVisible.md) | | [optional]
+**UiEditable** | Pointer to [**PatchedWritableCustomFieldRequestUiEditable**](PatchedWritableCustomFieldRequestUiEditable.md) | | [optional]
**IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional]
-**Default** | Pointer to **map[string]interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional]
+**Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional]
**Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional]
-**ValidationMinimum** | Pointer to **NullableInt32** | Minimum allowed value (for numeric fields) | [optional]
-**ValidationMaximum** | Pointer to **NullableInt32** | Maximum allowed value (for numeric fields) | [optional]
+**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]
@@ -64,20 +65,20 @@ SetContentTypes sets ContentTypes field to given value.
### GetType
-`func (o *WritableCustomFieldRequest) GetType() string`
+`func (o *WritableCustomFieldRequest) GetType() PatchedWritableCustomFieldRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableCustomFieldRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableCustomFieldRequest) GetTypeOk() (*PatchedWritableCustomFieldRequestType, 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 *WritableCustomFieldRequest) SetType(v string)`
+`func (o *WritableCustomFieldRequest) SetType(v PatchedWritableCustomFieldRequestType)`
SetType sets Type field to given value.
@@ -259,20 +260,20 @@ HasSearchWeight returns a boolean if a field has been set.
### GetFilterLogic
-`func (o *WritableCustomFieldRequest) GetFilterLogic() string`
+`func (o *WritableCustomFieldRequest) GetFilterLogic() PatchedWritableCustomFieldRequestFilterLogic`
GetFilterLogic returns the FilterLogic field if non-nil, zero value otherwise.
### GetFilterLogicOk
-`func (o *WritableCustomFieldRequest) GetFilterLogicOk() (*string, bool)`
+`func (o *WritableCustomFieldRequest) GetFilterLogicOk() (*PatchedWritableCustomFieldRequestFilterLogic, bool)`
GetFilterLogicOk returns a tuple with the FilterLogic field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFilterLogic
-`func (o *WritableCustomFieldRequest) SetFilterLogic(v string)`
+`func (o *WritableCustomFieldRequest) SetFilterLogic(v PatchedWritableCustomFieldRequestFilterLogic)`
SetFilterLogic sets FilterLogic field to given value.
@@ -282,30 +283,55 @@ SetFilterLogic sets FilterLogic field to given value.
HasFilterLogic returns a boolean if a field has been set.
-### GetUiVisibility
+### GetUiVisible
-`func (o *WritableCustomFieldRequest) GetUiVisibility() string`
+`func (o *WritableCustomFieldRequest) GetUiVisible() PatchedWritableCustomFieldRequestUiVisible`
-GetUiVisibility returns the UiVisibility field if non-nil, zero value otherwise.
+GetUiVisible returns the UiVisible field if non-nil, zero value otherwise.
-### GetUiVisibilityOk
+### GetUiVisibleOk
-`func (o *WritableCustomFieldRequest) GetUiVisibilityOk() (*string, bool)`
+`func (o *WritableCustomFieldRequest) GetUiVisibleOk() (*PatchedWritableCustomFieldRequestUiVisible, bool)`
-GetUiVisibilityOk returns a tuple with the UiVisibility field if it's non-nil, zero value otherwise
+GetUiVisibleOk returns a tuple with the UiVisible field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetUiVisibility
+### SetUiVisible
-`func (o *WritableCustomFieldRequest) SetUiVisibility(v string)`
+`func (o *WritableCustomFieldRequest) SetUiVisible(v PatchedWritableCustomFieldRequestUiVisible)`
-SetUiVisibility sets UiVisibility field to given value.
+SetUiVisible sets UiVisible field to given value.
-### HasUiVisibility
+### HasUiVisible
-`func (o *WritableCustomFieldRequest) HasUiVisibility() bool`
+`func (o *WritableCustomFieldRequest) HasUiVisible() bool`
-HasUiVisibility returns a boolean if a field has been set.
+HasUiVisible returns a boolean if a field has been set.
+
+### GetUiEditable
+
+`func (o *WritableCustomFieldRequest) GetUiEditable() PatchedWritableCustomFieldRequestUiEditable`
+
+GetUiEditable returns the UiEditable field if non-nil, zero value otherwise.
+
+### GetUiEditableOk
+
+`func (o *WritableCustomFieldRequest) GetUiEditableOk() (*PatchedWritableCustomFieldRequestUiEditable, bool)`
+
+GetUiEditableOk returns a tuple with the UiEditable field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetUiEditable
+
+`func (o *WritableCustomFieldRequest) SetUiEditable(v PatchedWritableCustomFieldRequestUiEditable)`
+
+SetUiEditable sets UiEditable field to given value.
+
+### HasUiEditable
+
+`func (o *WritableCustomFieldRequest) HasUiEditable() bool`
+
+HasUiEditable returns a boolean if a field has been set.
### GetIsCloneable
@@ -334,20 +360,20 @@ HasIsCloneable returns a boolean if a field has been set.
### GetDefault
-`func (o *WritableCustomFieldRequest) GetDefault() map[string]interface{}`
+`func (o *WritableCustomFieldRequest) GetDefault() interface{}`
GetDefault returns the Default field if non-nil, zero value otherwise.
### GetDefaultOk
-`func (o *WritableCustomFieldRequest) GetDefaultOk() (*map[string]interface{}, bool)`
+`func (o *WritableCustomFieldRequest) GetDefaultOk() (*interface{}, bool)`
GetDefaultOk returns a tuple with the Default field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDefault
-`func (o *WritableCustomFieldRequest) SetDefault(v map[string]interface{})`
+`func (o *WritableCustomFieldRequest) SetDefault(v interface{})`
SetDefault sets Default field to given value.
@@ -394,20 +420,20 @@ HasWeight returns a boolean if a field has been set.
### GetValidationMinimum
-`func (o *WritableCustomFieldRequest) GetValidationMinimum() int32`
+`func (o *WritableCustomFieldRequest) GetValidationMinimum() int64`
GetValidationMinimum returns the ValidationMinimum field if non-nil, zero value otherwise.
### GetValidationMinimumOk
-`func (o *WritableCustomFieldRequest) GetValidationMinimumOk() (*int32, bool)`
+`func (o *WritableCustomFieldRequest) GetValidationMinimumOk() (*int64, bool)`
GetValidationMinimumOk returns a tuple with the ValidationMinimum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValidationMinimum
-`func (o *WritableCustomFieldRequest) SetValidationMinimum(v int32)`
+`func (o *WritableCustomFieldRequest) SetValidationMinimum(v int64)`
SetValidationMinimum sets ValidationMinimum field to given value.
@@ -429,20 +455,20 @@ HasValidationMinimum returns a boolean if a field has been set.
UnsetValidationMinimum ensures that no value is present for ValidationMinimum, not even an explicit nil
### GetValidationMaximum
-`func (o *WritableCustomFieldRequest) GetValidationMaximum() int32`
+`func (o *WritableCustomFieldRequest) GetValidationMaximum() int64`
GetValidationMaximum returns the ValidationMaximum field if non-nil, zero value otherwise.
### GetValidationMaximumOk
-`func (o *WritableCustomFieldRequest) GetValidationMaximumOk() (*int32, bool)`
+`func (o *WritableCustomFieldRequest) GetValidationMaximumOk() (*int64, bool)`
GetValidationMaximumOk returns a tuple with the ValidationMaximum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValidationMaximum
-`func (o *WritableCustomFieldRequest) SetValidationMaximum(v int32)`
+`func (o *WritableCustomFieldRequest) SetValidationMaximum(v int64)`
SetValidationMaximum sets ValidationMaximum field to given value.
diff --git a/docs/WritableDataSourceRequest.md b/docs/WritableDataSourceRequest.md
index f3ddd7a84b..ca313d4a80 100644
--- a/docs/WritableDataSourceRequest.md
+++ b/docs/WritableDataSourceRequest.md
@@ -5,19 +5,19 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Type** | Pointer to **string** | * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3 | [optional]
+**Type** | **string** | |
**SourceUrl** | **string** | |
**Enabled** | Pointer to **bool** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
-**Parameters** | Pointer to **map[string]interface{}** | | [optional]
+**Parameters** | Pointer to **interface{}** | | [optional]
**IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional]
## Methods
### NewWritableDataSourceRequest
-`func NewWritableDataSourceRequest(name string, sourceUrl string, ) *WritableDataSourceRequest`
+`func NewWritableDataSourceRequest(name string, type_ string, sourceUrl string, ) *WritableDataSourceRequest`
NewWritableDataSourceRequest instantiates a new WritableDataSourceRequest object
This constructor will assign default values to properties that have it defined,
@@ -71,11 +71,6 @@ and a boolean to check if the value has been set.
SetType sets Type field to given value.
-### HasType
-
-`func (o *WritableDataSourceRequest) HasType() bool`
-
-HasType returns a boolean if a field has been set.
### GetSourceUrl
@@ -174,20 +169,20 @@ HasComments returns a boolean if a field has been set.
### GetParameters
-`func (o *WritableDataSourceRequest) GetParameters() map[string]interface{}`
+`func (o *WritableDataSourceRequest) GetParameters() interface{}`
GetParameters returns the Parameters field if non-nil, zero value otherwise.
### GetParametersOk
-`func (o *WritableDataSourceRequest) GetParametersOk() (*map[string]interface{}, bool)`
+`func (o *WritableDataSourceRequest) 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 *WritableDataSourceRequest) SetParameters(v map[string]interface{})`
+`func (o *WritableDataSourceRequest) SetParameters(v interface{})`
SetParameters sets Parameters field to given value.
diff --git a/docs/WritableDeviceTypeRequest.md b/docs/WritableDeviceTypeRequest.md
index 28e59b8246..dd426c7a02 100644
--- a/docs/WritableDeviceTypeRequest.md
+++ b/docs/WritableDeviceTypeRequest.md
@@ -10,11 +10,12 @@ Name | Type | Description | Notes
**Slug** | **string** | |
**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional]
**UHeight** | Pointer to **float64** | | [optional] [default to 1.0]
-**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces | [optional]
-**SubdeviceRole** | Pointer to **string** | 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]
-**Airflow** | Pointer to **string** | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | [optional]
+**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]
+**Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional]
**Weight** | Pointer to **NullableFloat64** | | [optional]
-**WeightUnit** | Pointer to **string** | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | [optional]
+**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional]
**FrontImage** | Pointer to ***os.File** | | [optional]
**RearImage** | Pointer to ***os.File** | | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -186,6 +187,31 @@ SetUHeight sets UHeight field to given value.
HasUHeight returns a boolean if a field has been set.
+### GetExcludeFromUtilization
+
+`func (o *WritableDeviceTypeRequest) GetExcludeFromUtilization() bool`
+
+GetExcludeFromUtilization returns the ExcludeFromUtilization field if non-nil, zero value otherwise.
+
+### GetExcludeFromUtilizationOk
+
+`func (o *WritableDeviceTypeRequest) 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 *WritableDeviceTypeRequest) SetExcludeFromUtilization(v bool)`
+
+SetExcludeFromUtilization sets ExcludeFromUtilization field to given value.
+
+### HasExcludeFromUtilization
+
+`func (o *WritableDeviceTypeRequest) HasExcludeFromUtilization() bool`
+
+HasExcludeFromUtilization returns a boolean if a field has been set.
+
### GetIsFullDepth
`func (o *WritableDeviceTypeRequest) GetIsFullDepth() bool`
@@ -213,20 +239,20 @@ HasIsFullDepth returns a boolean if a field has been set.
### GetSubdeviceRole
-`func (o *WritableDeviceTypeRequest) GetSubdeviceRole() string`
+`func (o *WritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus`
GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise.
### GetSubdeviceRoleOk
-`func (o *WritableDeviceTypeRequest) GetSubdeviceRoleOk() (*string, bool)`
+`func (o *WritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus, 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 string)`
+`func (o *WritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus)`
SetSubdeviceRole sets SubdeviceRole field to given value.
@@ -238,20 +264,20 @@ HasSubdeviceRole returns a boolean if a field has been set.
### GetAirflow
-`func (o *WritableDeviceTypeRequest) GetAirflow() string`
+`func (o *WritableDeviceTypeRequest) GetAirflow() DeviceAirflowValue`
GetAirflow returns the Airflow field if non-nil, zero value otherwise.
### GetAirflowOk
-`func (o *WritableDeviceTypeRequest) GetAirflowOk() (*string, bool)`
+`func (o *WritableDeviceTypeRequest) GetAirflowOk() (*DeviceAirflowValue, bool)`
GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAirflow
-`func (o *WritableDeviceTypeRequest) SetAirflow(v string)`
+`func (o *WritableDeviceTypeRequest) SetAirflow(v DeviceAirflowValue)`
SetAirflow sets Airflow field to given value.
@@ -298,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() string`
+`func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*string, bool)`
+`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, 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 string)`
+`func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)`
SetWeightUnit sets WeightUnit field to given value.
diff --git a/docs/WritableDeviceWithConfigContextRequest.md b/docs/WritableDeviceWithConfigContextRequest.md
index 901643299d..dd7d324f9a 100644
--- a/docs/WritableDeviceWithConfigContextRequest.md
+++ b/docs/WritableDeviceWithConfigContextRequest.md
@@ -15,11 +15,11 @@ Name | Type | Description | Notes
**Location** | Pointer to **NullableInt32** | | [optional]
**Rack** | Pointer to **NullableInt32** | | [optional]
**Position** | Pointer to **NullableFloat64** | | [optional]
-**Face** | Pointer to **string** | * `front` - Front * `rear` - Rear | [optional]
+**Face** | Pointer to [**RackFace**](RackFace.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 **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | [optional]
-**Airflow** | Pointer to **string** | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | [optional]
+**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]
@@ -30,7 +30,7 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**ConfigTemplate** | Pointer to **NullableInt32** | | [optional]
-**LocalContextData** | Pointer to **map[string]interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional]
+**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]
@@ -385,20 +385,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 *WritableDeviceWithConfigContextRequest) GetFace() string`
+`func (o *WritableDeviceWithConfigContextRequest) GetFace() RackFace`
GetFace returns the Face field if non-nil, zero value otherwise.
### GetFaceOk
-`func (o *WritableDeviceWithConfigContextRequest) GetFaceOk() (*string, bool)`
+`func (o *WritableDeviceWithConfigContextRequest) GetFaceOk() (*RackFace, 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 string)`
+`func (o *WritableDeviceWithConfigContextRequest) SetFace(v RackFace)`
SetFace sets Face field to given value.
@@ -480,20 +480,20 @@ HasLongitude returns a boolean if a field has been set.
UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil
### GetStatus
-`func (o *WritableDeviceWithConfigContextRequest) GetStatus() string`
+`func (o *WritableDeviceWithConfigContextRequest) GetStatus() DeviceStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableDeviceWithConfigContextRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableDeviceWithConfigContextRequest) GetStatusOk() (*DeviceStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *WritableDeviceWithConfigContextRequest) SetStatus(v string)`
+`func (o *WritableDeviceWithConfigContextRequest) SetStatus(v DeviceStatusValue)`
SetStatus sets Status field to given value.
@@ -505,20 +505,20 @@ HasStatus returns a boolean if a field has been set.
### GetAirflow
-`func (o *WritableDeviceWithConfigContextRequest) GetAirflow() string`
+`func (o *WritableDeviceWithConfigContextRequest) GetAirflow() DeviceAirflowValue`
GetAirflow returns the Airflow field if non-nil, zero value otherwise.
### GetAirflowOk
-`func (o *WritableDeviceWithConfigContextRequest) GetAirflowOk() (*string, bool)`
+`func (o *WritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceAirflowValue, bool)`
GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAirflow
-`func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v string)`
+`func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue)`
SetAirflow sets Airflow field to given value.
@@ -860,20 +860,20 @@ HasConfigTemplate returns a boolean if a field has been set.
UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
### GetLocalContextData
-`func (o *WritableDeviceWithConfigContextRequest) GetLocalContextData() map[string]interface{}`
+`func (o *WritableDeviceWithConfigContextRequest) GetLocalContextData() interface{}`
GetLocalContextData returns the LocalContextData field if non-nil, zero value otherwise.
### GetLocalContextDataOk
-`func (o *WritableDeviceWithConfigContextRequest) GetLocalContextDataOk() (*map[string]interface{}, bool)`
+`func (o *WritableDeviceWithConfigContextRequest) GetLocalContextDataOk() (*interface{}, bool)`
GetLocalContextDataOk returns a tuple with the LocalContextData field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLocalContextData
-`func (o *WritableDeviceWithConfigContextRequest) SetLocalContextData(v map[string]interface{})`
+`func (o *WritableDeviceWithConfigContextRequest) SetLocalContextData(v interface{})`
SetLocalContextData sets LocalContextData field to given value.
diff --git a/docs/WritableEventRuleRequest.md b/docs/WritableEventRuleRequest.md
new file mode 100644
index 0000000000..490fc9ccf5
--- /dev/null
+++ b/docs/WritableEventRuleRequest.md
@@ -0,0 +1,425 @@
+# WritableEventRuleRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ContentTypes** | **[]string** | |
+**Name** | **string** | |
+**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional]
+**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional]
+**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional]
+**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional]
+**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional]
+**Enabled** | Pointer to **bool** | | [optional]
+**Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional]
+**ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional]
+**ActionObjectType** | **string** | |
+**ActionObjectId** | Pointer to **NullableInt64** | | [optional]
+**Description** | Pointer to **string** | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+
+## Methods
+
+### NewWritableEventRuleRequest
+
+`func NewWritableEventRuleRequest(contentTypes []string, name string, actionObjectType string, ) *WritableEventRuleRequest`
+
+NewWritableEventRuleRequest instantiates a new WritableEventRuleRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewWritableEventRuleRequestWithDefaults
+
+`func NewWritableEventRuleRequestWithDefaults() *WritableEventRuleRequest`
+
+NewWritableEventRuleRequestWithDefaults instantiates a new WritableEventRuleRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetContentTypes
+
+`func (o *WritableEventRuleRequest) GetContentTypes() []string`
+
+GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+
+### GetContentTypesOk
+
+`func (o *WritableEventRuleRequest) 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 *WritableEventRuleRequest) SetContentTypes(v []string)`
+
+SetContentTypes sets ContentTypes field to given value.
+
+
+### GetName
+
+`func (o *WritableEventRuleRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *WritableEventRuleRequest) GetNameOk() (*string, bool)`
+
+GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetName
+
+`func (o *WritableEventRuleRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetTypeCreate
+
+`func (o *WritableEventRuleRequest) GetTypeCreate() bool`
+
+GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise.
+
+### GetTypeCreateOk
+
+`func (o *WritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)`
+
+GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeCreate
+
+`func (o *WritableEventRuleRequest) SetTypeCreate(v bool)`
+
+SetTypeCreate sets TypeCreate field to given value.
+
+### HasTypeCreate
+
+`func (o *WritableEventRuleRequest) HasTypeCreate() bool`
+
+HasTypeCreate returns a boolean if a field has been set.
+
+### GetTypeUpdate
+
+`func (o *WritableEventRuleRequest) GetTypeUpdate() bool`
+
+GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise.
+
+### GetTypeUpdateOk
+
+`func (o *WritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)`
+
+GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeUpdate
+
+`func (o *WritableEventRuleRequest) SetTypeUpdate(v bool)`
+
+SetTypeUpdate sets TypeUpdate field to given value.
+
+### HasTypeUpdate
+
+`func (o *WritableEventRuleRequest) HasTypeUpdate() bool`
+
+HasTypeUpdate returns a boolean if a field has been set.
+
+### GetTypeDelete
+
+`func (o *WritableEventRuleRequest) GetTypeDelete() bool`
+
+GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise.
+
+### GetTypeDeleteOk
+
+`func (o *WritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)`
+
+GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeDelete
+
+`func (o *WritableEventRuleRequest) SetTypeDelete(v bool)`
+
+SetTypeDelete sets TypeDelete field to given value.
+
+### HasTypeDelete
+
+`func (o *WritableEventRuleRequest) HasTypeDelete() bool`
+
+HasTypeDelete returns a boolean if a field has been set.
+
+### GetTypeJobStart
+
+`func (o *WritableEventRuleRequest) GetTypeJobStart() bool`
+
+GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise.
+
+### GetTypeJobStartOk
+
+`func (o *WritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)`
+
+GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeJobStart
+
+`func (o *WritableEventRuleRequest) SetTypeJobStart(v bool)`
+
+SetTypeJobStart sets TypeJobStart field to given value.
+
+### HasTypeJobStart
+
+`func (o *WritableEventRuleRequest) HasTypeJobStart() bool`
+
+HasTypeJobStart returns a boolean if a field has been set.
+
+### GetTypeJobEnd
+
+`func (o *WritableEventRuleRequest) GetTypeJobEnd() bool`
+
+GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise.
+
+### GetTypeJobEndOk
+
+`func (o *WritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)`
+
+GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTypeJobEnd
+
+`func (o *WritableEventRuleRequest) SetTypeJobEnd(v bool)`
+
+SetTypeJobEnd sets TypeJobEnd field to given value.
+
+### HasTypeJobEnd
+
+`func (o *WritableEventRuleRequest) HasTypeJobEnd() bool`
+
+HasTypeJobEnd returns a boolean if a field has been set.
+
+### GetEnabled
+
+`func (o *WritableEventRuleRequest) GetEnabled() bool`
+
+GetEnabled returns the Enabled field if non-nil, zero value otherwise.
+
+### GetEnabledOk
+
+`func (o *WritableEventRuleRequest) GetEnabledOk() (*bool, bool)`
+
+GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEnabled
+
+`func (o *WritableEventRuleRequest) SetEnabled(v bool)`
+
+SetEnabled sets Enabled field to given value.
+
+### HasEnabled
+
+`func (o *WritableEventRuleRequest) HasEnabled() bool`
+
+HasEnabled returns a boolean if a field has been set.
+
+### GetConditions
+
+`func (o *WritableEventRuleRequest) GetConditions() interface{}`
+
+GetConditions returns the Conditions field if non-nil, zero value otherwise.
+
+### GetConditionsOk
+
+`func (o *WritableEventRuleRequest) GetConditionsOk() (*interface{}, bool)`
+
+GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetConditions
+
+`func (o *WritableEventRuleRequest) SetConditions(v interface{})`
+
+SetConditions sets Conditions field to given value.
+
+### HasConditions
+
+`func (o *WritableEventRuleRequest) HasConditions() bool`
+
+HasConditions returns a boolean if a field has been set.
+
+### SetConditionsNil
+
+`func (o *WritableEventRuleRequest) SetConditionsNil(b bool)`
+
+ SetConditionsNil sets the value for Conditions to be an explicit nil
+
+### UnsetConditions
+`func (o *WritableEventRuleRequest) UnsetConditions()`
+
+UnsetConditions ensures that no value is present for Conditions, not even an explicit nil
+### GetActionType
+
+`func (o *WritableEventRuleRequest) GetActionType() EventRuleActionTypeValue`
+
+GetActionType returns the ActionType field if non-nil, zero value otherwise.
+
+### GetActionTypeOk
+
+`func (o *WritableEventRuleRequest) GetActionTypeOk() (*EventRuleActionTypeValue, bool)`
+
+GetActionTypeOk returns a tuple with the ActionType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActionType
+
+`func (o *WritableEventRuleRequest) SetActionType(v EventRuleActionTypeValue)`
+
+SetActionType sets ActionType field to given value.
+
+### HasActionType
+
+`func (o *WritableEventRuleRequest) HasActionType() bool`
+
+HasActionType returns a boolean if a field has been set.
+
+### GetActionObjectType
+
+`func (o *WritableEventRuleRequest) GetActionObjectType() string`
+
+GetActionObjectType returns the ActionObjectType field if non-nil, zero value otherwise.
+
+### GetActionObjectTypeOk
+
+`func (o *WritableEventRuleRequest) GetActionObjectTypeOk() (*string, bool)`
+
+GetActionObjectTypeOk returns a tuple with the ActionObjectType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActionObjectType
+
+`func (o *WritableEventRuleRequest) SetActionObjectType(v string)`
+
+SetActionObjectType sets ActionObjectType field to given value.
+
+
+### GetActionObjectId
+
+`func (o *WritableEventRuleRequest) GetActionObjectId() int64`
+
+GetActionObjectId returns the ActionObjectId field if non-nil, zero value otherwise.
+
+### GetActionObjectIdOk
+
+`func (o *WritableEventRuleRequest) GetActionObjectIdOk() (*int64, bool)`
+
+GetActionObjectIdOk returns a tuple with the ActionObjectId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActionObjectId
+
+`func (o *WritableEventRuleRequest) SetActionObjectId(v int64)`
+
+SetActionObjectId sets ActionObjectId field to given value.
+
+### HasActionObjectId
+
+`func (o *WritableEventRuleRequest) HasActionObjectId() bool`
+
+HasActionObjectId returns a boolean if a field has been set.
+
+### SetActionObjectIdNil
+
+`func (o *WritableEventRuleRequest) SetActionObjectIdNil(b bool)`
+
+ SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil
+
+### UnsetActionObjectId
+`func (o *WritableEventRuleRequest) UnsetActionObjectId()`
+
+UnsetActionObjectId ensures that no value is present for ActionObjectId, not even an explicit nil
+### GetDescription
+
+`func (o *WritableEventRuleRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *WritableEventRuleRequest) GetDescriptionOk() (*string, bool)`
+
+GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDescription
+
+`func (o *WritableEventRuleRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *WritableEventRuleRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *WritableEventRuleRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *WritableEventRuleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+
+GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCustomFields
+
+`func (o *WritableEventRuleRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *WritableEventRuleRequest) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *WritableEventRuleRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *WritableEventRuleRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+
+GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTags
+
+`func (o *WritableEventRuleRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *WritableEventRuleRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/WritableFrontPortRequest.md b/docs/WritableFrontPortRequest.md
index c824554ffb..4325888a81 100644
--- a/docs/WritableFrontPortRequest.md
+++ b/docs/WritableFrontPortRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other |
+**Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | |
**Color** | Pointer to **string** | | [optional]
**RearPort** | **int32** | |
**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional]
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
### NewWritableFrontPortRequest
-`func NewWritableFrontPortRequest(device int32, name string, type_ string, rearPort int32, ) *WritableFrontPortRequest`
+`func NewWritableFrontPortRequest(device int32, 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,
@@ -138,20 +138,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritableFrontPortRequest) GetType() string`
+`func (o *WritableFrontPortRequest) GetType() FrontPortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableFrontPortRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableFrontPortRequest) 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 *WritableFrontPortRequest) SetType(v string)`
+`func (o *WritableFrontPortRequest) SetType(v FrontPortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/WritableFrontPortTemplateRequest.md b/docs/WritableFrontPortTemplateRequest.md
index 47cb673415..21d85353bc 100644
--- a/docs/WritableFrontPortTemplateRequest.md
+++ b/docs/WritableFrontPortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**ModuleType** | 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]
-**Type** | **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other |
+**Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | |
**Color** | Pointer to **string** | | [optional]
**RearPort** | **int32** | |
**RearPortPosition** | Pointer to **int32** | | [optional]
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
### NewWritableFrontPortTemplateRequest
-`func NewWritableFrontPortTemplateRequest(name string, type_ string, rearPort int32, ) *WritableFrontPortTemplateRequest`
+`func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort int32, ) *WritableFrontPortTemplateRequest`
NewWritableFrontPortTemplateRequest instantiates a new WritableFrontPortTemplateRequest object
This constructor will assign default values to properties that have it defined,
@@ -150,20 +150,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritableFrontPortTemplateRequest) GetType() string`
+`func (o *WritableFrontPortTemplateRequest) GetType() FrontPortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableFrontPortTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableFrontPortTemplateRequest) 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 *WritableFrontPortTemplateRequest) SetType(v string)`
+`func (o *WritableFrontPortTemplateRequest) SetType(v FrontPortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/WritableIKEPolicyRequest.md b/docs/WritableIKEPolicyRequest.md
new file mode 100644
index 0000000000..91944ac967
--- /dev/null
+++ b/docs/WritableIKEPolicyRequest.md
@@ -0,0 +1,249 @@
+# WritableIKEPolicyRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Version** | Pointer to [**PatchedWritableIKEPolicyRequestVersion**](PatchedWritableIKEPolicyRequestVersion.md) | | [optional]
+**Mode** | [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | |
+**Proposals** | **[]int32** | |
+**PresharedKey** | Pointer to **string** | | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewWritableIKEPolicyRequest
+
+`func NewWritableIKEPolicyRequest(name string, mode IKEPolicyModeValue, proposals []int32, ) *WritableIKEPolicyRequest`
+
+NewWritableIKEPolicyRequest instantiates a new WritableIKEPolicyRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewWritableIKEPolicyRequestWithDefaults
+
+`func NewWritableIKEPolicyRequestWithDefaults() *WritableIKEPolicyRequest`
+
+NewWritableIKEPolicyRequestWithDefaults instantiates a new WritableIKEPolicyRequest object
+This 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 *WritableIKEPolicyRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *WritableIKEPolicyRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *WritableIKEPolicyRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetVersion
+
+`func (o *WritableIKEPolicyRequest) GetVersion() PatchedWritableIKEPolicyRequestVersion`
+
+GetVersion returns the Version field if non-nil, zero value otherwise.
+
+### GetVersionOk
+
+`func (o *WritableIKEPolicyRequest) GetVersionOk() (*PatchedWritableIKEPolicyRequestVersion, bool)`
+
+GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVersion
+
+`func (o *WritableIKEPolicyRequest) SetVersion(v PatchedWritableIKEPolicyRequestVersion)`
+
+SetVersion sets Version field to given value.
+
+### HasVersion
+
+`func (o *WritableIKEPolicyRequest) HasVersion() bool`
+
+HasVersion returns a boolean if a field has been set.
+
+### GetMode
+
+`func (o *WritableIKEPolicyRequest) GetMode() IKEPolicyModeValue`
+
+GetMode returns the Mode field if non-nil, zero value otherwise.
+
+### GetModeOk
+
+`func (o *WritableIKEPolicyRequest) GetModeOk() (*IKEPolicyModeValue, bool)`
+
+GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetMode
+
+`func (o *WritableIKEPolicyRequest) SetMode(v IKEPolicyModeValue)`
+
+SetMode sets Mode field to given value.
+
+
+### GetProposals
+
+`func (o *WritableIKEPolicyRequest) GetProposals() []int32`
+
+GetProposals returns the Proposals field if non-nil, zero value otherwise.
+
+### GetProposalsOk
+
+`func (o *WritableIKEPolicyRequest) GetProposalsOk() (*[]int32, bool)`
+
+GetProposalsOk returns a tuple with the Proposals field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetProposals
+
+`func (o *WritableIKEPolicyRequest) SetProposals(v []int32)`
+
+SetProposals sets Proposals field to given value.
+
+
+### GetPresharedKey
+
+`func (o *WritableIKEPolicyRequest) GetPresharedKey() string`
+
+GetPresharedKey returns the PresharedKey field if non-nil, zero value otherwise.
+
+### GetPresharedKeyOk
+
+`func (o *WritableIKEPolicyRequest) GetPresharedKeyOk() (*string, bool)`
+
+GetPresharedKeyOk returns a tuple with the PresharedKey field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPresharedKey
+
+`func (o *WritableIKEPolicyRequest) SetPresharedKey(v string)`
+
+SetPresharedKey sets PresharedKey field to given value.
+
+### HasPresharedKey
+
+`func (o *WritableIKEPolicyRequest) HasPresharedKey() bool`
+
+HasPresharedKey returns a boolean if a field has been set.
+
+### GetComments
+
+`func (o *WritableIKEPolicyRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *WritableIKEPolicyRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *WritableIKEPolicyRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *WritableIKEPolicyRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *WritableIKEPolicyRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *WritableIKEPolicyRequest) 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/WritableIKEProposalRequest.md b/docs/WritableIKEProposalRequest.md
new file mode 100644
index 0000000000..bfebdf2c0d
--- /dev/null
+++ b/docs/WritableIKEProposalRequest.md
@@ -0,0 +1,280 @@
+# WritableIKEProposalRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**AuthenticationMethod** | [**IKEProposalAuthenticationMethodValue**](IKEProposalAuthenticationMethodValue.md) | |
+**EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | |
+**AuthenticationAlgorithm** | Pointer to [**PatchedWritableIKEProposalRequestAuthenticationAlgorithm**](PatchedWritableIKEProposalRequestAuthenticationAlgorithm.md) | | [optional]
+**Group** | [**PatchedWritableIKEProposalRequestGroup**](PatchedWritableIKEProposalRequestGroup.md) | |
+**SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewWritableIKEProposalRequest
+
+`func NewWritableIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, group PatchedWritableIKEProposalRequestGroup, ) *WritableIKEProposalRequest`
+
+NewWritableIKEProposalRequest instantiates a new WritableIKEProposalRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewWritableIKEProposalRequestWithDefaults
+
+`func NewWritableIKEProposalRequestWithDefaults() *WritableIKEProposalRequest`
+
+NewWritableIKEProposalRequestWithDefaults instantiates a new WritableIKEProposalRequest object
+This 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 *WritableIKEProposalRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *WritableIKEProposalRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *WritableIKEProposalRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetAuthenticationMethod
+
+`func (o *WritableIKEProposalRequest) GetAuthenticationMethod() IKEProposalAuthenticationMethodValue`
+
+GetAuthenticationMethod returns the AuthenticationMethod field if non-nil, zero value otherwise.
+
+### GetAuthenticationMethodOk
+
+`func (o *WritableIKEProposalRequest) GetAuthenticationMethodOk() (*IKEProposalAuthenticationMethodValue, bool)`
+
+GetAuthenticationMethodOk returns a tuple with the AuthenticationMethod field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAuthenticationMethod
+
+`func (o *WritableIKEProposalRequest) SetAuthenticationMethod(v IKEProposalAuthenticationMethodValue)`
+
+SetAuthenticationMethod sets AuthenticationMethod field to given value.
+
+
+### GetEncryptionAlgorithm
+
+`func (o *WritableIKEProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue`
+
+GetEncryptionAlgorithm returns the EncryptionAlgorithm field if non-nil, zero value otherwise.
+
+### GetEncryptionAlgorithmOk
+
+`func (o *WritableIKEProposalRequest) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithmValue, bool)`
+
+GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEncryptionAlgorithm
+
+`func (o *WritableIKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithmValue)`
+
+SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value.
+
+
+### GetAuthenticationAlgorithm
+
+`func (o *WritableIKEProposalRequest) GetAuthenticationAlgorithm() PatchedWritableIKEProposalRequestAuthenticationAlgorithm`
+
+GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field if non-nil, zero value otherwise.
+
+### GetAuthenticationAlgorithmOk
+
+`func (o *WritableIKEProposalRequest) GetAuthenticationAlgorithmOk() (*PatchedWritableIKEProposalRequestAuthenticationAlgorithm, bool)`
+
+GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAuthenticationAlgorithm
+
+`func (o *WritableIKEProposalRequest) SetAuthenticationAlgorithm(v PatchedWritableIKEProposalRequestAuthenticationAlgorithm)`
+
+SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value.
+
+### HasAuthenticationAlgorithm
+
+`func (o *WritableIKEProposalRequest) HasAuthenticationAlgorithm() bool`
+
+HasAuthenticationAlgorithm returns a boolean if a field has been set.
+
+### GetGroup
+
+`func (o *WritableIKEProposalRequest) GetGroup() PatchedWritableIKEProposalRequestGroup`
+
+GetGroup returns the Group field if non-nil, zero value otherwise.
+
+### GetGroupOk
+
+`func (o *WritableIKEProposalRequest) GetGroupOk() (*PatchedWritableIKEProposalRequestGroup, 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 *WritableIKEProposalRequest) SetGroup(v PatchedWritableIKEProposalRequestGroup)`
+
+SetGroup sets Group field to given value.
+
+
+### GetSaLifetime
+
+`func (o *WritableIKEProposalRequest) GetSaLifetime() int32`
+
+GetSaLifetime returns the SaLifetime field if non-nil, zero value otherwise.
+
+### GetSaLifetimeOk
+
+`func (o *WritableIKEProposalRequest) GetSaLifetimeOk() (*int32, bool)`
+
+GetSaLifetimeOk returns a tuple with the SaLifetime field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSaLifetime
+
+`func (o *WritableIKEProposalRequest) SetSaLifetime(v int32)`
+
+SetSaLifetime sets SaLifetime field to given value.
+
+### HasSaLifetime
+
+`func (o *WritableIKEProposalRequest) HasSaLifetime() bool`
+
+HasSaLifetime returns a boolean if a field has been set.
+
+### SetSaLifetimeNil
+
+`func (o *WritableIKEProposalRequest) SetSaLifetimeNil(b bool)`
+
+ SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil
+
+### UnsetSaLifetime
+`func (o *WritableIKEProposalRequest) UnsetSaLifetime()`
+
+UnsetSaLifetime ensures that no value is present for SaLifetime, not even an explicit nil
+### GetComments
+
+`func (o *WritableIKEProposalRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *WritableIKEProposalRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *WritableIKEProposalRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *WritableIKEProposalRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *WritableIKEProposalRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *WritableIKEProposalRequest) 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/WritableIPAddressRequest.md b/docs/WritableIPAddressRequest.md
index 8ef55dc3b8..9ce55aa930 100644
--- a/docs/WritableIPAddressRequest.md
+++ b/docs/WritableIPAddressRequest.md
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
**Address** | **string** | |
**Vrf** | Pointer to **NullableInt32** | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC | [optional]
-**Role** | Pointer to **string** | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP | [optional]
+**Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional]
+**Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional]
**AssignedObjectType** | Pointer to **NullableString** | | [optional]
**AssignedObjectId** | Pointer to **NullableInt64** | | [optional]
**NatInside** | Pointer to **NullableInt32** | The IP for which this address is the \"outside\" IP | [optional]
@@ -129,20 +129,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
### GetStatus
-`func (o *WritableIPAddressRequest) GetStatus() string`
+`func (o *WritableIPAddressRequest) GetStatus() PatchedWritableIPAddressRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableIPAddressRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableIPAddressRequest) GetStatusOk() (*PatchedWritableIPAddressRequestStatus, 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 *WritableIPAddressRequest) SetStatus(v string)`
+`func (o *WritableIPAddressRequest) SetStatus(v PatchedWritableIPAddressRequestStatus)`
SetStatus sets Status field to given value.
@@ -154,20 +154,20 @@ HasStatus returns a boolean if a field has been set.
### GetRole
-`func (o *WritableIPAddressRequest) GetRole() string`
+`func (o *WritableIPAddressRequest) GetRole() PatchedWritableIPAddressRequestRole`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *WritableIPAddressRequest) GetRoleOk() (*string, bool)`
+`func (o *WritableIPAddressRequest) GetRoleOk() (*PatchedWritableIPAddressRequestRole, 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 *WritableIPAddressRequest) SetRole(v string)`
+`func (o *WritableIPAddressRequest) SetRole(v PatchedWritableIPAddressRequestRole)`
SetRole sets Role field to given value.
diff --git a/docs/WritableIPRangeRequest.md b/docs/WritableIPRangeRequest.md
index 84039c4e9f..ad02173664 100644
--- a/docs/WritableIPRangeRequest.md
+++ b/docs/WritableIPRangeRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**EndAddress** | **string** | |
**Vrf** | Pointer to **NullableInt32** | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | [optional]
+**Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional]
**Role** | Pointer to **NullableInt32** | The primary function of this range | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -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
### GetStatus
-`func (o *WritableIPRangeRequest) GetStatus() string`
+`func (o *WritableIPRangeRequest) GetStatus() PatchedWritableIPRangeRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableIPRangeRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableIPRangeRequest) GetStatusOk() (*PatchedWritableIPRangeRequestStatus, 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 *WritableIPRangeRequest) SetStatus(v string)`
+`func (o *WritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeRequestStatus)`
SetStatus sets Status field to given value.
diff --git a/docs/WritableIPSecPolicyRequest.md b/docs/WritableIPSecPolicyRequest.md
new file mode 100644
index 0000000000..cdf842cad4
--- /dev/null
+++ b/docs/WritableIPSecPolicyRequest.md
@@ -0,0 +1,212 @@
+# WritableIPSecPolicyRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Proposals** | **[]int32** | |
+**PfsGroup** | Pointer to [**NullablePatchedWritableIPSecPolicyRequestPfsGroup**](PatchedWritableIPSecPolicyRequestPfsGroup.md) | | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewWritableIPSecPolicyRequest
+
+`func NewWritableIPSecPolicyRequest(name string, proposals []int32, ) *WritableIPSecPolicyRequest`
+
+NewWritableIPSecPolicyRequest instantiates a new WritableIPSecPolicyRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewWritableIPSecPolicyRequestWithDefaults
+
+`func NewWritableIPSecPolicyRequestWithDefaults() *WritableIPSecPolicyRequest`
+
+NewWritableIPSecPolicyRequestWithDefaults instantiates a new WritableIPSecPolicyRequest object
+This 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 *WritableIPSecPolicyRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *WritableIPSecPolicyRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *WritableIPSecPolicyRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetProposals
+
+`func (o *WritableIPSecPolicyRequest) GetProposals() []int32`
+
+GetProposals returns the Proposals field if non-nil, zero value otherwise.
+
+### GetProposalsOk
+
+`func (o *WritableIPSecPolicyRequest) GetProposalsOk() (*[]int32, bool)`
+
+GetProposalsOk returns a tuple with the Proposals field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetProposals
+
+`func (o *WritableIPSecPolicyRequest) SetProposals(v []int32)`
+
+SetProposals sets Proposals field to given value.
+
+
+### GetPfsGroup
+
+`func (o *WritableIPSecPolicyRequest) GetPfsGroup() PatchedWritableIPSecPolicyRequestPfsGroup`
+
+GetPfsGroup returns the PfsGroup field if non-nil, zero value otherwise.
+
+### GetPfsGroupOk
+
+`func (o *WritableIPSecPolicyRequest) GetPfsGroupOk() (*PatchedWritableIPSecPolicyRequestPfsGroup, bool)`
+
+GetPfsGroupOk returns a tuple with the PfsGroup field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPfsGroup
+
+`func (o *WritableIPSecPolicyRequest) SetPfsGroup(v PatchedWritableIPSecPolicyRequestPfsGroup)`
+
+SetPfsGroup sets PfsGroup field to given value.
+
+### HasPfsGroup
+
+`func (o *WritableIPSecPolicyRequest) HasPfsGroup() bool`
+
+HasPfsGroup returns a boolean if a field has been set.
+
+### SetPfsGroupNil
+
+`func (o *WritableIPSecPolicyRequest) SetPfsGroupNil(b bool)`
+
+ SetPfsGroupNil sets the value for PfsGroup to be an explicit nil
+
+### UnsetPfsGroup
+`func (o *WritableIPSecPolicyRequest) UnsetPfsGroup()`
+
+UnsetPfsGroup ensures that no value is present for PfsGroup, not even an explicit nil
+### GetComments
+
+`func (o *WritableIPSecPolicyRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *WritableIPSecPolicyRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *WritableIPSecPolicyRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *WritableIPSecPolicyRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *WritableIPSecPolicyRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *WritableIPSecPolicyRequest) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/WritableIPSecProfileRequest.md b/docs/WritableIPSecProfileRequest.md
new file mode 100644
index 0000000000..ce40885292
--- /dev/null
+++ b/docs/WritableIPSecProfileRequest.md
@@ -0,0 +1,218 @@
+# WritableIPSecProfileRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Mode** | [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | |
+**IkePolicy** | **int32** | |
+**IpsecPolicy** | **int32** | |
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewWritableIPSecProfileRequest
+
+`func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy int32, ipsecPolicy int32, ) *WritableIPSecProfileRequest`
+
+NewWritableIPSecProfileRequest instantiates a new WritableIPSecProfileRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewWritableIPSecProfileRequestWithDefaults
+
+`func NewWritableIPSecProfileRequestWithDefaults() *WritableIPSecProfileRequest`
+
+NewWritableIPSecProfileRequestWithDefaults instantiates a new WritableIPSecProfileRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetName
+
+`func (o *WritableIPSecProfileRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *WritableIPSecProfileRequest) GetNameOk() (*string, bool)`
+
+GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetName
+
+`func (o *WritableIPSecProfileRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *WritableIPSecProfileRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *WritableIPSecProfileRequest) GetDescriptionOk() (*string, bool)`
+
+GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDescription
+
+`func (o *WritableIPSecProfileRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *WritableIPSecProfileRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetMode
+
+`func (o *WritableIPSecProfileRequest) GetMode() IPSecProfileModeValue`
+
+GetMode returns the Mode field if non-nil, zero value otherwise.
+
+### GetModeOk
+
+`func (o *WritableIPSecProfileRequest) GetModeOk() (*IPSecProfileModeValue, bool)`
+
+GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetMode
+
+`func (o *WritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue)`
+
+SetMode sets Mode field to given value.
+
+
+### GetIkePolicy
+
+`func (o *WritableIPSecProfileRequest) GetIkePolicy() int32`
+
+GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise.
+
+### GetIkePolicyOk
+
+`func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*int32, 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)`
+
+SetIkePolicy sets IkePolicy field to given value.
+
+
+### GetIpsecPolicy
+
+`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() int32`
+
+GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise.
+
+### GetIpsecPolicyOk
+
+`func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*int32, 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)`
+
+SetIpsecPolicy sets IpsecPolicy field to given value.
+
+
+### GetComments
+
+`func (o *WritableIPSecProfileRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *WritableIPSecProfileRequest) GetCommentsOk() (*string, bool)`
+
+GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetComments
+
+`func (o *WritableIPSecProfileRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *WritableIPSecProfileRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *WritableIPSecProfileRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *WritableIPSecProfileRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+
+GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTags
+
+`func (o *WritableIPSecProfileRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *WritableIPSecProfileRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *WritableIPSecProfileRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *WritableIPSecProfileRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+
+GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCustomFields
+
+`func (o *WritableIPSecProfileRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *WritableIPSecProfileRequest) HasCustomFields() bool`
+
+HasCustomFields returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/WritableIPSecProposalRequest.md b/docs/WritableIPSecProposalRequest.md
new file mode 100644
index 0000000000..fc980c784e
--- /dev/null
+++ b/docs/WritableIPSecProposalRequest.md
@@ -0,0 +1,279 @@
+# WritableIPSecProposalRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**EncryptionAlgorithm** | Pointer to [**Encryption**](Encryption.md) | | [optional]
+**AuthenticationAlgorithm** | Pointer to [**Authentication**](Authentication.md) | | [optional]
+**SaLifetimeSeconds** | Pointer to **NullableInt32** | Security association lifetime (seconds) | [optional]
+**SaLifetimeData** | Pointer to **NullableInt32** | Security association lifetime (in kilobytes) | [optional]
+**Comments** | Pointer to **string** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewWritableIPSecProposalRequest
+
+`func NewWritableIPSecProposalRequest(name string, ) *WritableIPSecProposalRequest`
+
+NewWritableIPSecProposalRequest instantiates a new WritableIPSecProposalRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewWritableIPSecProposalRequestWithDefaults
+
+`func NewWritableIPSecProposalRequestWithDefaults() *WritableIPSecProposalRequest`
+
+NewWritableIPSecProposalRequestWithDefaults instantiates a new WritableIPSecProposalRequest object
+This 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 *WritableIPSecProposalRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *WritableIPSecProposalRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *WritableIPSecProposalRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetEncryptionAlgorithm
+
+`func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption`
+
+GetEncryptionAlgorithm returns the EncryptionAlgorithm field if non-nil, zero value otherwise.
+
+### GetEncryptionAlgorithmOk
+
+`func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption, bool)`
+
+GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEncryptionAlgorithm
+
+`func (o *WritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption)`
+
+SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value.
+
+### HasEncryptionAlgorithm
+
+`func (o *WritableIPSecProposalRequest) HasEncryptionAlgorithm() bool`
+
+HasEncryptionAlgorithm returns a boolean if a field has been set.
+
+### GetAuthenticationAlgorithm
+
+`func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication`
+
+GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field if non-nil, zero value otherwise.
+
+### GetAuthenticationAlgorithmOk
+
+`func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication, bool)`
+
+GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAuthenticationAlgorithm
+
+`func (o *WritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication)`
+
+SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value.
+
+### HasAuthenticationAlgorithm
+
+`func (o *WritableIPSecProposalRequest) HasAuthenticationAlgorithm() bool`
+
+HasAuthenticationAlgorithm returns a boolean if a field has been set.
+
+### GetSaLifetimeSeconds
+
+`func (o *WritableIPSecProposalRequest) GetSaLifetimeSeconds() int32`
+
+GetSaLifetimeSeconds returns the SaLifetimeSeconds field if non-nil, zero value otherwise.
+
+### GetSaLifetimeSecondsOk
+
+`func (o *WritableIPSecProposalRequest) GetSaLifetimeSecondsOk() (*int32, bool)`
+
+GetSaLifetimeSecondsOk returns a tuple with the SaLifetimeSeconds field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSaLifetimeSeconds
+
+`func (o *WritableIPSecProposalRequest) SetSaLifetimeSeconds(v int32)`
+
+SetSaLifetimeSeconds sets SaLifetimeSeconds field to given value.
+
+### HasSaLifetimeSeconds
+
+`func (o *WritableIPSecProposalRequest) HasSaLifetimeSeconds() bool`
+
+HasSaLifetimeSeconds returns a boolean if a field has been set.
+
+### SetSaLifetimeSecondsNil
+
+`func (o *WritableIPSecProposalRequest) SetSaLifetimeSecondsNil(b bool)`
+
+ SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil
+
+### UnsetSaLifetimeSeconds
+`func (o *WritableIPSecProposalRequest) UnsetSaLifetimeSeconds()`
+
+UnsetSaLifetimeSeconds ensures that no value is present for SaLifetimeSeconds, not even an explicit nil
+### GetSaLifetimeData
+
+`func (o *WritableIPSecProposalRequest) GetSaLifetimeData() int32`
+
+GetSaLifetimeData returns the SaLifetimeData field if non-nil, zero value otherwise.
+
+### GetSaLifetimeDataOk
+
+`func (o *WritableIPSecProposalRequest) GetSaLifetimeDataOk() (*int32, bool)`
+
+GetSaLifetimeDataOk returns a tuple with the SaLifetimeData field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSaLifetimeData
+
+`func (o *WritableIPSecProposalRequest) SetSaLifetimeData(v int32)`
+
+SetSaLifetimeData sets SaLifetimeData field to given value.
+
+### HasSaLifetimeData
+
+`func (o *WritableIPSecProposalRequest) HasSaLifetimeData() bool`
+
+HasSaLifetimeData returns a boolean if a field has been set.
+
+### SetSaLifetimeDataNil
+
+`func (o *WritableIPSecProposalRequest) SetSaLifetimeDataNil(b bool)`
+
+ SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil
+
+### UnsetSaLifetimeData
+`func (o *WritableIPSecProposalRequest) UnsetSaLifetimeData()`
+
+UnsetSaLifetimeData ensures that no value is present for SaLifetimeData, not even an explicit nil
+### GetComments
+
+`func (o *WritableIPSecProposalRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *WritableIPSecProposalRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *WritableIPSecProposalRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *WritableIPSecProposalRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *WritableIPSecProposalRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *WritableIPSecProposalRequest) 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/WritableInterfaceRequest.md b/docs/WritableInterfaceRequest.md
index ae2e387449..0fbfc9652e 100644
--- a/docs/WritableInterfaceRequest.md
+++ b/docs/WritableInterfaceRequest.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other |
+**Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | |
**Enabled** | Pointer to **bool** | | [optional]
**Parent** | Pointer to **NullableInt32** | | [optional]
**Bridge** | Pointer to **NullableInt32** | | [optional]
@@ -17,15 +17,15 @@ Name | Type | Description | Notes
**Mtu** | Pointer to **NullableInt32** | | [optional]
**MacAddress** | Pointer to **NullableString** | | [optional]
**Speed** | Pointer to **NullableInt32** | | [optional]
-**Duplex** | Pointer to **NullableString** | * `half` - Half * `full` - Full * `auto` - Auto | [optional]
+**Duplex** | Pointer to [**NullableInterfaceRequestDuplex**](InterfaceRequestDuplex.md) | | [optional]
**Wwn** | Pointer to **NullableString** | | [optional]
**MgmtOnly** | Pointer to **bool** | This interface is used only for out-of-band management | [optional]
**Description** | Pointer to **string** | | [optional]
-**Mode** | Pointer to **string** | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | [optional]
-**RfRole** | Pointer to **string** | * `ap` - Access point * `station` - Station | [optional]
-**RfChannel** | Pointer to **string** | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) | [optional]
-**PoeMode** | Pointer to **string** | * `pd` - PD * `pse` - PSE | [optional]
-**PoeType** | Pointer to **string** | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | [optional]
+**Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional]
+**RfRole** | Pointer to [**WirelessRole**](WirelessRole.md) | | [optional]
+**RfChannel** | Pointer to [**WirelessChannel**](WirelessChannel.md) | | [optional]
+**PoeMode** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional]
+**PoeType** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional]
**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]
@@ -41,7 +41,7 @@ Name | Type | Description | Notes
### NewWritableInterfaceRequest
-`func NewWritableInterfaceRequest(device int32, vdcs []int32, name string, type_ string, ) *WritableInterfaceRequest`
+`func NewWritableInterfaceRequest(device int32, vdcs []int32, name string, type_ InterfaceTypeValue, ) *WritableInterfaceRequest`
NewWritableInterfaceRequest instantiates a new WritableInterfaceRequest object
This constructor will assign default values to properties that have it defined,
@@ -178,20 +178,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritableInterfaceRequest) GetType() string`
+`func (o *WritableInterfaceRequest) GetType() InterfaceTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableInterfaceRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableInterfaceRequest) GetTypeOk() (*InterfaceTypeValue, 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 *WritableInterfaceRequest) SetType(v string)`
+`func (o *WritableInterfaceRequest) SetType(v InterfaceTypeValue)`
SetType sets Type field to given value.
@@ -433,20 +433,20 @@ HasSpeed returns a boolean if a field has been set.
UnsetSpeed ensures that no value is present for Speed, not even an explicit nil
### GetDuplex
-`func (o *WritableInterfaceRequest) GetDuplex() string`
+`func (o *WritableInterfaceRequest) GetDuplex() InterfaceRequestDuplex`
GetDuplex returns the Duplex field if non-nil, zero value otherwise.
### GetDuplexOk
-`func (o *WritableInterfaceRequest) GetDuplexOk() (*string, bool)`
+`func (o *WritableInterfaceRequest) GetDuplexOk() (*InterfaceRequestDuplex, bool)`
GetDuplexOk returns a tuple with the Duplex field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDuplex
-`func (o *WritableInterfaceRequest) SetDuplex(v string)`
+`func (o *WritableInterfaceRequest) SetDuplex(v InterfaceRequestDuplex)`
SetDuplex sets Duplex field to given value.
@@ -553,20 +553,20 @@ HasDescription returns a boolean if a field has been set.
### GetMode
-`func (o *WritableInterfaceRequest) GetMode() string`
+`func (o *WritableInterfaceRequest) GetMode() PatchedWritableInterfaceRequestMode`
GetMode returns the Mode field if non-nil, zero value otherwise.
### GetModeOk
-`func (o *WritableInterfaceRequest) GetModeOk() (*string, bool)`
+`func (o *WritableInterfaceRequest) GetModeOk() (*PatchedWritableInterfaceRequestMode, bool)`
GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMode
-`func (o *WritableInterfaceRequest) SetMode(v string)`
+`func (o *WritableInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode)`
SetMode sets Mode field to given value.
@@ -578,20 +578,20 @@ HasMode returns a boolean if a field has been set.
### GetRfRole
-`func (o *WritableInterfaceRequest) GetRfRole() string`
+`func (o *WritableInterfaceRequest) GetRfRole() WirelessRole`
GetRfRole returns the RfRole field if non-nil, zero value otherwise.
### GetRfRoleOk
-`func (o *WritableInterfaceRequest) GetRfRoleOk() (*string, bool)`
+`func (o *WritableInterfaceRequest) GetRfRoleOk() (*WirelessRole, bool)`
GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRfRole
-`func (o *WritableInterfaceRequest) SetRfRole(v string)`
+`func (o *WritableInterfaceRequest) SetRfRole(v WirelessRole)`
SetRfRole sets RfRole field to given value.
@@ -603,20 +603,20 @@ HasRfRole returns a boolean if a field has been set.
### GetRfChannel
-`func (o *WritableInterfaceRequest) GetRfChannel() string`
+`func (o *WritableInterfaceRequest) GetRfChannel() WirelessChannel`
GetRfChannel returns the RfChannel field if non-nil, zero value otherwise.
### GetRfChannelOk
-`func (o *WritableInterfaceRequest) GetRfChannelOk() (*string, bool)`
+`func (o *WritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel, bool)`
GetRfChannelOk returns a tuple with the RfChannel field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRfChannel
-`func (o *WritableInterfaceRequest) SetRfChannel(v string)`
+`func (o *WritableInterfaceRequest) SetRfChannel(v WirelessChannel)`
SetRfChannel sets RfChannel field to given value.
@@ -628,20 +628,20 @@ HasRfChannel returns a boolean if a field has been set.
### GetPoeMode
-`func (o *WritableInterfaceRequest) GetPoeMode() string`
+`func (o *WritableInterfaceRequest) GetPoeMode() InterfacePoeModeValue`
GetPoeMode returns the PoeMode field if non-nil, zero value otherwise.
### GetPoeModeOk
-`func (o *WritableInterfaceRequest) GetPoeModeOk() (*string, bool)`
+`func (o *WritableInterfaceRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool)`
GetPoeModeOk returns a tuple with the PoeMode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPoeMode
-`func (o *WritableInterfaceRequest) SetPoeMode(v string)`
+`func (o *WritableInterfaceRequest) SetPoeMode(v InterfacePoeModeValue)`
SetPoeMode sets PoeMode field to given value.
@@ -653,20 +653,20 @@ HasPoeMode returns a boolean if a field has been set.
### GetPoeType
-`func (o *WritableInterfaceRequest) GetPoeType() string`
+`func (o *WritableInterfaceRequest) GetPoeType() InterfacePoeTypeValue`
GetPoeType returns the PoeType field if non-nil, zero value otherwise.
### GetPoeTypeOk
-`func (o *WritableInterfaceRequest) GetPoeTypeOk() (*string, bool)`
+`func (o *WritableInterfaceRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool)`
GetPoeTypeOk returns a tuple with the PoeType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPoeType
-`func (o *WritableInterfaceRequest) SetPoeType(v string)`
+`func (o *WritableInterfaceRequest) SetPoeType(v InterfacePoeTypeValue)`
SetPoeType sets PoeType field to given value.
diff --git a/docs/WritableInterfaceTemplateRequest.md b/docs/WritableInterfaceTemplateRequest.md
index e571ebc9ec..8a34a9a266 100644
--- a/docs/WritableInterfaceTemplateRequest.md
+++ b/docs/WritableInterfaceTemplateRequest.md
@@ -8,20 +8,20 @@ Name | Type | Description | Notes
**ModuleType** | 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]
-**Type** | **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other |
+**Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | |
**Enabled** | Pointer to **bool** | | [optional]
**MgmtOnly** | Pointer to **bool** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Bridge** | Pointer to **NullableInt32** | | [optional]
-**PoeMode** | Pointer to **string** | * `pd` - PD * `pse` - PSE | [optional]
-**PoeType** | Pointer to **string** | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | [optional]
-**RfRole** | Pointer to **string** | * `ap` - Access point * `station` - Station | [optional]
+**PoeMode** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional]
+**PoeType** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional]
+**RfRole** | Pointer to [**WirelessRole**](WirelessRole.md) | | [optional]
## Methods
### NewWritableInterfaceTemplateRequest
-`func NewWritableInterfaceTemplateRequest(name string, type_ string, ) *WritableInterfaceTemplateRequest`
+`func NewWritableInterfaceTemplateRequest(name string, type_ InterfaceTypeValue, ) *WritableInterfaceTemplateRequest`
NewWritableInterfaceTemplateRequest instantiates a new WritableInterfaceTemplateRequest object
This constructor will assign default values to properties that have it defined,
@@ -153,20 +153,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritableInterfaceTemplateRequest) GetType() string`
+`func (o *WritableInterfaceTemplateRequest) GetType() InterfaceTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableInterfaceTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableInterfaceTemplateRequest) GetTypeOk() (*InterfaceTypeValue, 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 *WritableInterfaceTemplateRequest) SetType(v string)`
+`func (o *WritableInterfaceTemplateRequest) SetType(v InterfaceTypeValue)`
SetType sets Type field to given value.
@@ -283,20 +283,20 @@ HasBridge returns a boolean if a field has been set.
UnsetBridge ensures that no value is present for Bridge, not even an explicit nil
### GetPoeMode
-`func (o *WritableInterfaceTemplateRequest) GetPoeMode() string`
+`func (o *WritableInterfaceTemplateRequest) GetPoeMode() InterfacePoeModeValue`
GetPoeMode returns the PoeMode field if non-nil, zero value otherwise.
### GetPoeModeOk
-`func (o *WritableInterfaceTemplateRequest) GetPoeModeOk() (*string, bool)`
+`func (o *WritableInterfaceTemplateRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool)`
GetPoeModeOk returns a tuple with the PoeMode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPoeMode
-`func (o *WritableInterfaceTemplateRequest) SetPoeMode(v string)`
+`func (o *WritableInterfaceTemplateRequest) SetPoeMode(v InterfacePoeModeValue)`
SetPoeMode sets PoeMode field to given value.
@@ -308,20 +308,20 @@ HasPoeMode returns a boolean if a field has been set.
### GetPoeType
-`func (o *WritableInterfaceTemplateRequest) GetPoeType() string`
+`func (o *WritableInterfaceTemplateRequest) GetPoeType() InterfacePoeTypeValue`
GetPoeType returns the PoeType field if non-nil, zero value otherwise.
### GetPoeTypeOk
-`func (o *WritableInterfaceTemplateRequest) GetPoeTypeOk() (*string, bool)`
+`func (o *WritableInterfaceTemplateRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool)`
GetPoeTypeOk returns a tuple with the PoeType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPoeType
-`func (o *WritableInterfaceTemplateRequest) SetPoeType(v string)`
+`func (o *WritableInterfaceTemplateRequest) SetPoeType(v InterfacePoeTypeValue)`
SetPoeType sets PoeType field to given value.
@@ -333,20 +333,20 @@ HasPoeType returns a boolean if a field has been set.
### GetRfRole
-`func (o *WritableInterfaceTemplateRequest) GetRfRole() string`
+`func (o *WritableInterfaceTemplateRequest) GetRfRole() WirelessRole`
GetRfRole returns the RfRole field if non-nil, zero value otherwise.
### GetRfRoleOk
-`func (o *WritableInterfaceTemplateRequest) GetRfRoleOk() (*string, bool)`
+`func (o *WritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole, bool)`
GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRfRole
-`func (o *WritableInterfaceTemplateRequest) SetRfRole(v string)`
+`func (o *WritableInterfaceTemplateRequest) SetRfRole(v WirelessRole)`
SetRfRole sets RfRole field to given value.
diff --git a/docs/WritableJournalEntryRequest.md b/docs/WritableJournalEntryRequest.md
index d79b5c1a0b..df8cb5d61f 100644
--- a/docs/WritableJournalEntryRequest.md
+++ b/docs/WritableJournalEntryRequest.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**AssignedObjectType** | **string** | |
**AssignedObjectId** | **int64** | |
**CreatedBy** | Pointer to **NullableInt32** | | [optional]
-**Kind** | Pointer to **string** | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger | [optional]
+**Kind** | Pointer to [**JournalEntryKindValue**](JournalEntryKindValue.md) | | [optional]
**Comments** | **string** | |
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -108,20 +108,20 @@ HasCreatedBy returns a boolean if a field has been set.
UnsetCreatedBy ensures that no value is present for CreatedBy, not even an explicit nil
### GetKind
-`func (o *WritableJournalEntryRequest) GetKind() string`
+`func (o *WritableJournalEntryRequest) GetKind() JournalEntryKindValue`
GetKind returns the Kind field if non-nil, zero value otherwise.
### GetKindOk
-`func (o *WritableJournalEntryRequest) GetKindOk() (*string, bool)`
+`func (o *WritableJournalEntryRequest) GetKindOk() (*JournalEntryKindValue, bool)`
GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetKind
-`func (o *WritableJournalEntryRequest) SetKind(v string)`
+`func (o *WritableJournalEntryRequest) SetKind(v JournalEntryKindValue)`
SetKind sets Kind field to given value.
diff --git a/docs/WritableL2VPNRequest.md b/docs/WritableL2VPNRequest.md
index 8dd755a9ef..0c68065c30 100644
--- a/docs/WritableL2VPNRequest.md
+++ b/docs/WritableL2VPNRequest.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Identifier** | Pointer to **NullableInt64** | | [optional]
**Name** | **string** | |
**Slug** | **string** | |
-**Type** | **string** | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree |
+**Type** | [**L2VPNTypeValue**](L2VPNTypeValue.md) | |
**ImportTargets** | Pointer to **[]int32** | | [optional]
**ExportTargets** | Pointer to **[]int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
### NewWritableL2VPNRequest
-`func NewWritableL2VPNRequest(name string, slug string, type_ string, ) *WritableL2VPNRequest`
+`func NewWritableL2VPNRequest(name string, slug string, type_ L2VPNTypeValue, ) *WritableL2VPNRequest`
NewWritableL2VPNRequest instantiates a new WritableL2VPNRequest object
This constructor will assign default values to properties that have it defined,
@@ -112,20 +112,20 @@ SetSlug sets Slug field to given value.
### GetType
-`func (o *WritableL2VPNRequest) GetType() string`
+`func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableL2VPNRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableL2VPNRequest) 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 *WritableL2VPNRequest) SetType(v string)`
+`func (o *WritableL2VPNRequest) SetType(v L2VPNTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/WritableLocationRequest.md b/docs/WritableLocationRequest.md
index 6f6df502dc..7e79b2c9f2 100644
--- a/docs/WritableLocationRequest.md
+++ b/docs/WritableLocationRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Slug** | **string** | |
**Site** | **int32** | |
**Parent** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | [optional]
+**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -130,20 +130,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() string`
+`func (o *WritableLocationRequest) GetStatus() LocationStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableLocationRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *WritableLocationRequest) SetStatus(v string)`
+`func (o *WritableLocationRequest) SetStatus(v LocationStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/WritableModuleRequest.md b/docs/WritableModuleRequest.md
index 7a209a1c3a..6cd07159a1 100644
--- a/docs/WritableModuleRequest.md
+++ b/docs/WritableModuleRequest.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Device** | **int32** | |
**ModuleBay** | **int32** | |
**ModuleType** | **int32** | |
-**Status** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | [optional]
+**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]
@@ -96,20 +96,20 @@ SetModuleType sets ModuleType field to given value.
### GetStatus
-`func (o *WritableModuleRequest) GetStatus() string`
+`func (o *WritableModuleRequest) GetStatus() ModuleStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableModuleRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableModuleRequest) 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 *WritableModuleRequest) SetStatus(v string)`
+`func (o *WritableModuleRequest) SetStatus(v ModuleStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/WritableModuleTypeRequest.md b/docs/WritableModuleTypeRequest.md
index e1856157b8..c7bf71d7c5 100644
--- a/docs/WritableModuleTypeRequest.md
+++ b/docs/WritableModuleTypeRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Model** | **string** | |
**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional]
**Weight** | Pointer to **NullableFloat64** | | [optional]
-**WeightUnit** | Pointer to **string** | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | [optional]
+**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -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() string`
+`func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*string, bool)`
+`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, 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 string)`
+`func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)`
SetWeightUnit sets WeightUnit field to given value.
diff --git a/docs/WritableObjectPermissionRequest.md b/docs/WritableObjectPermissionRequest.md
index ecd621d9f4..612632bebd 100644
--- a/docs/WritableObjectPermissionRequest.md
+++ b/docs/WritableObjectPermissionRequest.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**Groups** | Pointer to **[]int32** | | [optional]
**Users** | Pointer to **[]int32** | | [optional]
**Actions** | **[]string** | The list of actions granted by this permission |
-**Constraints** | Pointer to **map[string]interface{}** | Queryset filter matching the applicable objects of the selected type(s) | [optional]
+**Constraints** | Pointer to **interface{}** | Queryset filter matching the applicable objects of the selected type(s) | [optional]
## Methods
@@ -194,20 +194,20 @@ SetActions sets Actions field to given value.
### GetConstraints
-`func (o *WritableObjectPermissionRequest) GetConstraints() map[string]interface{}`
+`func (o *WritableObjectPermissionRequest) GetConstraints() interface{}`
GetConstraints returns the Constraints field if non-nil, zero value otherwise.
### GetConstraintsOk
-`func (o *WritableObjectPermissionRequest) GetConstraintsOk() (*map[string]interface{}, bool)`
+`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 map[string]interface{})`
+`func (o *WritableObjectPermissionRequest) SetConstraints(v interface{})`
SetConstraints sets Constraints field to given value.
diff --git a/docs/WritablePowerFeedRequest.md b/docs/WritablePowerFeedRequest.md
index a1cbf896a7..79db21d600 100644
--- a/docs/WritablePowerFeedRequest.md
+++ b/docs/WritablePowerFeedRequest.md
@@ -7,10 +7,10 @@ Name | Type | Description | Notes
**PowerPanel** | **int32** | |
**Rack** | Pointer to **NullableInt32** | | [optional]
**Name** | **string** | |
-**Status** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed | [optional]
-**Type** | Pointer to **string** | * `primary` - Primary * `redundant` - Redundant | [optional]
-**Supply** | Pointer to **string** | * `ac` - AC * `dc` - DC | [optional]
-**Phase** | Pointer to **string** | * `single-phase` - Single phase * `three-phase` - Three-phase | [optional]
+**Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional]
+**Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional]
+**Supply** | Pointer to [**PatchedWritablePowerFeedRequestSupply**](PatchedWritablePowerFeedRequestSupply.md) | | [optional]
+**Phase** | Pointer to [**PatchedWritablePowerFeedRequestPhase**](PatchedWritablePowerFeedRequestPhase.md) | | [optional]
**Voltage** | Pointer to **int32** | | [optional]
**Amperage** | Pointer to **int32** | | [optional]
**MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional]
@@ -117,20 +117,20 @@ SetName sets Name field to given value.
### GetStatus
-`func (o *WritablePowerFeedRequest) GetStatus() string`
+`func (o *WritablePowerFeedRequest) GetStatus() PatchedWritablePowerFeedRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritablePowerFeedRequest) GetStatusOk() (*string, bool)`
+`func (o *WritablePowerFeedRequest) GetStatusOk() (*PatchedWritablePowerFeedRequestStatus, 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 *WritablePowerFeedRequest) SetStatus(v string)`
+`func (o *WritablePowerFeedRequest) SetStatus(v PatchedWritablePowerFeedRequestStatus)`
SetStatus sets Status field to given value.
@@ -142,20 +142,20 @@ HasStatus returns a boolean if a field has been set.
### GetType
-`func (o *WritablePowerFeedRequest) GetType() string`
+`func (o *WritablePowerFeedRequest) GetType() PatchedWritablePowerFeedRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritablePowerFeedRequest) GetTypeOk() (*string, bool)`
+`func (o *WritablePowerFeedRequest) GetTypeOk() (*PatchedWritablePowerFeedRequestType, 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 *WritablePowerFeedRequest) SetType(v string)`
+`func (o *WritablePowerFeedRequest) SetType(v PatchedWritablePowerFeedRequestType)`
SetType sets Type field to given value.
@@ -167,20 +167,20 @@ HasType returns a boolean if a field has been set.
### GetSupply
-`func (o *WritablePowerFeedRequest) GetSupply() string`
+`func (o *WritablePowerFeedRequest) GetSupply() PatchedWritablePowerFeedRequestSupply`
GetSupply returns the Supply field if non-nil, zero value otherwise.
### GetSupplyOk
-`func (o *WritablePowerFeedRequest) GetSupplyOk() (*string, bool)`
+`func (o *WritablePowerFeedRequest) GetSupplyOk() (*PatchedWritablePowerFeedRequestSupply, bool)`
GetSupplyOk returns a tuple with the Supply field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSupply
-`func (o *WritablePowerFeedRequest) SetSupply(v string)`
+`func (o *WritablePowerFeedRequest) SetSupply(v PatchedWritablePowerFeedRequestSupply)`
SetSupply sets Supply field to given value.
@@ -192,20 +192,20 @@ HasSupply returns a boolean if a field has been set.
### GetPhase
-`func (o *WritablePowerFeedRequest) GetPhase() string`
+`func (o *WritablePowerFeedRequest) GetPhase() PatchedWritablePowerFeedRequestPhase`
GetPhase returns the Phase field if non-nil, zero value otherwise.
### GetPhaseOk
-`func (o *WritablePowerFeedRequest) GetPhaseOk() (*string, bool)`
+`func (o *WritablePowerFeedRequest) GetPhaseOk() (*PatchedWritablePowerFeedRequestPhase, bool)`
GetPhaseOk returns a tuple with the Phase field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPhase
-`func (o *WritablePowerFeedRequest) SetPhase(v string)`
+`func (o *WritablePowerFeedRequest) SetPhase(v PatchedWritablePowerFeedRequestPhase)`
SetPhase sets Phase field to given value.
diff --git a/docs/WritablePowerOutletRequest.md b/docs/WritablePowerOutletRequest.md
index 3b58a97023..cf0c827fb1 100644
--- a/docs/WritablePowerOutletRequest.md
+++ b/docs/WritablePowerOutletRequest.md
@@ -8,9 +8,9 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | 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 | [optional]
+**Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional]
**PowerPort** | Pointer to **NullableInt32** | | [optional]
-**FeedLeg** | Pointer to **string** | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | [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]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -137,20 +137,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritablePowerOutletRequest) GetType() string`
+`func (o *WritablePowerOutletRequest) GetType() PatchedWritablePowerOutletRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritablePowerOutletRequest) GetTypeOk() (*string, bool)`
+`func (o *WritablePowerOutletRequest) GetTypeOk() (*PatchedWritablePowerOutletRequestType, 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 *WritablePowerOutletRequest) SetType(v string)`
+`func (o *WritablePowerOutletRequest) SetType(v PatchedWritablePowerOutletRequestType)`
SetType sets Type field to given value.
@@ -197,20 +197,20 @@ HasPowerPort returns a boolean if a field has been set.
UnsetPowerPort ensures that no value is present for PowerPort, not even an explicit nil
### GetFeedLeg
-`func (o *WritablePowerOutletRequest) GetFeedLeg() string`
+`func (o *WritablePowerOutletRequest) GetFeedLeg() PatchedWritablePowerOutletRequestFeedLeg`
GetFeedLeg returns the FeedLeg field if non-nil, zero value otherwise.
### GetFeedLegOk
-`func (o *WritablePowerOutletRequest) GetFeedLegOk() (*string, bool)`
+`func (o *WritablePowerOutletRequest) GetFeedLegOk() (*PatchedWritablePowerOutletRequestFeedLeg, bool)`
GetFeedLegOk returns a tuple with the FeedLeg field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFeedLeg
-`func (o *WritablePowerOutletRequest) SetFeedLeg(v string)`
+`func (o *WritablePowerOutletRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg)`
SetFeedLeg sets FeedLeg field to given value.
diff --git a/docs/WritablePowerOutletTemplateRequest.md b/docs/WritablePowerOutletTemplateRequest.md
index 4d2bf121a8..58870e1bdc 100644
--- a/docs/WritablePowerOutletTemplateRequest.md
+++ b/docs/WritablePowerOutletTemplateRequest.md
@@ -8,9 +8,9 @@ Name | Type | Description | Notes
**ModuleType** | 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]
-**Type** | Pointer to **string** | * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional]
+**Type** | Pointer to [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional]
**PowerPort** | Pointer to **NullableInt32** | | [optional]
-**FeedLeg** | Pointer to **string** | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | [optional]
+**FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
## Methods
@@ -149,20 +149,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritablePowerOutletTemplateRequest) GetType() string`
+`func (o *WritablePowerOutletTemplateRequest) GetType() PatchedWritablePowerOutletTemplateRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritablePowerOutletTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *WritablePowerOutletTemplateRequest) GetTypeOk() (*PatchedWritablePowerOutletTemplateRequestType, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *WritablePowerOutletTemplateRequest) SetType(v string)`
+`func (o *WritablePowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType)`
SetType sets Type field to given value.
@@ -209,20 +209,20 @@ HasPowerPort returns a boolean if a field has been set.
UnsetPowerPort ensures that no value is present for PowerPort, not even an explicit nil
### GetFeedLeg
-`func (o *WritablePowerOutletTemplateRequest) GetFeedLeg() string`
+`func (o *WritablePowerOutletTemplateRequest) GetFeedLeg() PatchedWritablePowerOutletRequestFeedLeg`
GetFeedLeg returns the FeedLeg field if non-nil, zero value otherwise.
### GetFeedLegOk
-`func (o *WritablePowerOutletTemplateRequest) GetFeedLegOk() (*string, bool)`
+`func (o *WritablePowerOutletTemplateRequest) GetFeedLegOk() (*PatchedWritablePowerOutletRequestFeedLeg, bool)`
GetFeedLegOk returns a tuple with the FeedLeg field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFeedLeg
-`func (o *WritablePowerOutletTemplateRequest) SetFeedLeg(v string)`
+`func (o *WritablePowerOutletTemplateRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg)`
SetFeedLeg sets FeedLeg field to given value.
diff --git a/docs/WritablePowerPortRequest.md b/docs/WritablePowerPortRequest.md
index 872cf6edbe..51ff7698bf 100644
--- a/docs/WritablePowerPortRequest.md
+++ b/docs/WritablePowerPortRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to **string** | 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 | [optional]
+**Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional]
**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional]
**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -137,20 +137,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritablePowerPortRequest) GetType() string`
+`func (o *WritablePowerPortRequest) GetType() PatchedWritablePowerPortRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritablePowerPortRequest) GetTypeOk() (*string, bool)`
+`func (o *WritablePowerPortRequest) GetTypeOk() (*PatchedWritablePowerPortRequestType, 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 *WritablePowerPortRequest) SetType(v string)`
+`func (o *WritablePowerPortRequest) SetType(v PatchedWritablePowerPortRequestType)`
SetType sets Type field to given value.
diff --git a/docs/WritablePowerPortTemplateRequest.md b/docs/WritablePowerPortTemplateRequest.md
index c2f752e779..3ff357cee1 100644
--- a/docs/WritablePowerPortTemplateRequest.md
+++ b/docs/WritablePowerPortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**ModuleType** | 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]
-**Type** | Pointer to **string** | * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional]
+**Type** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional]
**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional]
**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -149,20 +149,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritablePowerPortTemplateRequest) GetType() string`
+`func (o *WritablePowerPortTemplateRequest) GetType() PatchedWritablePowerPortTemplateRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritablePowerPortTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *WritablePowerPortTemplateRequest) GetTypeOk() (*PatchedWritablePowerPortTemplateRequestType, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *WritablePowerPortTemplateRequest) SetType(v string)`
+`func (o *WritablePowerPortTemplateRequest) SetType(v PatchedWritablePowerPortTemplateRequestType)`
SetType sets Type field to given value.
diff --git a/docs/WritablePrefixRequest.md b/docs/WritablePrefixRequest.md
index 528799b9c5..2698f83e7c 100644
--- a/docs/WritablePrefixRequest.md
+++ b/docs/WritablePrefixRequest.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Vrf** | Pointer to **NullableInt32** | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
**Vlan** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | [optional]
+**Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional]
**Role** | Pointer to **NullableInt32** | The primary function of this prefix | [optional]
**IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional]
**MarkUtilized** | Pointer to **bool** | Treat as 100% utilized | [optional]
@@ -199,20 +199,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
### GetStatus
-`func (o *WritablePrefixRequest) GetStatus() string`
+`func (o *WritablePrefixRequest) GetStatus() PatchedWritablePrefixRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritablePrefixRequest) GetStatusOk() (*string, bool)`
+`func (o *WritablePrefixRequest) GetStatusOk() (*PatchedWritablePrefixRequestStatus, 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 *WritablePrefixRequest) SetStatus(v string)`
+`func (o *WritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestStatus)`
SetStatus sets Status field to given value.
diff --git a/docs/WritableRackRequest.md b/docs/WritableRackRequest.md
index 8f578dbd88..0f0ba02f5d 100644
--- a/docs/WritableRackRequest.md
+++ b/docs/WritableRackRequest.md
@@ -9,21 +9,21 @@ Name | Type | Description | Notes
**Site** | **int32** | |
**Location** | Pointer to **NullableInt32** | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated | [optional]
+**Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional]
**Role** | Pointer to **NullableInt32** | Functional role | [optional]
**Serial** | Pointer to **string** | | [optional]
**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional]
-**Type** | Pointer to **string** | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | [optional]
-**Width** | Pointer to **int32** | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | [optional]
+**Type** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional]
+**Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional]
**UHeight** | Pointer to **int32** | Height in rack units | [optional]
**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional]
**Weight** | Pointer to **NullableFloat64** | | [optional]
**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional]
-**WeightUnit** | Pointer to **string** | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | [optional]
+**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.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 **string** | * `mm` - Millimeters * `in` - Inches | [optional]
+**OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional]
**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -196,20 +196,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
### GetStatus
-`func (o *WritableRackRequest) GetStatus() string`
+`func (o *WritableRackRequest) GetStatus() PatchedWritableRackRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableRackRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableRackRequest) 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 *WritableRackRequest) SetStatus(v string)`
+`func (o *WritableRackRequest) SetStatus(v PatchedWritableRackRequestStatus)`
SetStatus sets Status field to given value.
@@ -316,20 +316,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
### GetType
-`func (o *WritableRackRequest) GetType() string`
+`func (o *WritableRackRequest) GetType() PatchedWritableRackRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableRackRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, 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 *WritableRackRequest) SetType(v string)`
+`func (o *WritableRackRequest) SetType(v PatchedWritableRackRequestType)`
SetType sets Type field to given value.
@@ -341,20 +341,20 @@ HasType returns a boolean if a field has been set.
### GetWidth
-`func (o *WritableRackRequest) GetWidth() int32`
+`func (o *WritableRackRequest) GetWidth() PatchedWritableRackRequestWidth`
GetWidth returns the Width field if non-nil, zero value otherwise.
### GetWidthOk
-`func (o *WritableRackRequest) GetWidthOk() (*int32, bool)`
+`func (o *WritableRackRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool)`
GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetWidth
-`func (o *WritableRackRequest) SetWidth(v int32)`
+`func (o *WritableRackRequest) SetWidth(v PatchedWritableRackRequestWidth)`
SetWidth sets Width 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() string`
+`func (o *WritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *WritableRackRequest) GetWeightUnitOk() (*string, bool)`
+`func (o *WritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, 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 string)`
+`func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)`
SetWeightUnit sets WeightUnit field to given value.
@@ -606,20 +606,20 @@ HasOuterDepth returns a boolean if a field has been set.
UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil
### GetOuterUnit
-`func (o *WritableRackRequest) GetOuterUnit() string`
+`func (o *WritableRackRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit`
GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise.
### GetOuterUnitOk
-`func (o *WritableRackRequest) GetOuterUnitOk() (*string, bool)`
+`func (o *WritableRackRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool)`
GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetOuterUnit
-`func (o *WritableRackRequest) SetOuterUnit(v string)`
+`func (o *WritableRackRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit)`
SetOuterUnit sets OuterUnit field to given value.
diff --git a/docs/WritableRearPortRequest.md b/docs/WritableRearPortRequest.md
index 6f62bce278..e7b8aff29b 100644
--- a/docs/WritableRearPortRequest.md
+++ b/docs/WritableRearPortRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Module** | Pointer to **NullableInt32** | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other |
+**Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | |
**Color** | Pointer to **string** | | [optional]
**Positions** | Pointer to **int32** | Number of front ports which may be mapped | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
### NewWritableRearPortRequest
-`func NewWritableRearPortRequest(device int32, name string, type_ string, ) *WritableRearPortRequest`
+`func NewWritableRearPortRequest(device int32, name string, type_ FrontPortTypeValue, ) *WritableRearPortRequest`
NewWritableRearPortRequest instantiates a new WritableRearPortRequest object
This constructor will assign default values to properties that have it defined,
@@ -137,20 +137,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritableRearPortRequest) GetType() string`
+`func (o *WritableRearPortRequest) GetType() FrontPortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableRearPortRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableRearPortRequest) 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 *WritableRearPortRequest) SetType(v string)`
+`func (o *WritableRearPortRequest) SetType(v FrontPortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/WritableRearPortTemplateRequest.md b/docs/WritableRearPortTemplateRequest.md
index 55713cf511..cb079e5dbf 100644
--- a/docs/WritableRearPortTemplateRequest.md
+++ b/docs/WritableRearPortTemplateRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**ModuleType** | 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]
-**Type** | **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other |
+**Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | |
**Color** | Pointer to **string** | | [optional]
**Positions** | Pointer to **int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
### NewWritableRearPortTemplateRequest
-`func NewWritableRearPortTemplateRequest(name string, type_ string, ) *WritableRearPortTemplateRequest`
+`func NewWritableRearPortTemplateRequest(name string, type_ FrontPortTypeValue, ) *WritableRearPortTemplateRequest`
NewWritableRearPortTemplateRequest instantiates a new WritableRearPortTemplateRequest object
This constructor will assign default values to properties that have it defined,
@@ -149,20 +149,20 @@ HasLabel returns a boolean if a field has been set.
### GetType
-`func (o *WritableRearPortTemplateRequest) GetType() string`
+`func (o *WritableRearPortTemplateRequest) GetType() FrontPortTypeValue`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableRearPortTemplateRequest) GetTypeOk() (*string, bool)`
+`func (o *WritableRearPortTemplateRequest) 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 *WritableRearPortTemplateRequest) SetType(v string)`
+`func (o *WritableRearPortTemplateRequest) SetType(v FrontPortTypeValue)`
SetType sets Type field to given value.
diff --git a/docs/WritableServiceRequest.md b/docs/WritableServiceRequest.md
index 4d33770816..380181a292 100644
--- a/docs/WritableServiceRequest.md
+++ b/docs/WritableServiceRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**VirtualMachine** | Pointer to **NullableInt32** | | [optional]
**Name** | **string** | |
**Ports** | **[]int32** | |
-**Protocol** | **string** | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP |
+**Protocol** | [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | |
**Ipaddresses** | Pointer to **[]int32** | The specific IP addresses (if any) to which this service is bound | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
### NewWritableServiceRequest
-`func NewWritableServiceRequest(name string, ports []int32, protocol string, ) *WritableServiceRequest`
+`func NewWritableServiceRequest(name string, ports []int32, protocol PatchedWritableServiceRequestProtocol, ) *WritableServiceRequest`
NewWritableServiceRequest instantiates a new WritableServiceRequest object
This constructor will assign default values to properties that have it defined,
@@ -146,20 +146,20 @@ SetPorts sets Ports field to given value.
### GetProtocol
-`func (o *WritableServiceRequest) GetProtocol() string`
+`func (o *WritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
### GetProtocolOk
-`func (o *WritableServiceRequest) GetProtocolOk() (*string, bool)`
+`func (o *WritableServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetProtocol
-`func (o *WritableServiceRequest) SetProtocol(v string)`
+`func (o *WritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
SetProtocol sets Protocol field to given value.
diff --git a/docs/WritableServiceTemplateRequest.md b/docs/WritableServiceTemplateRequest.md
index a17d83fa77..59fff1ae02 100644
--- a/docs/WritableServiceTemplateRequest.md
+++ b/docs/WritableServiceTemplateRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Ports** | **[]int32** | |
-**Protocol** | **string** | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP |
+**Protocol** | [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | |
**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 string, ) *WritableServiceTemplateRequest`
+`func NewWritableServiceTemplateRequest(name string, ports []int32, protocol PatchedWritableServiceRequestProtocol, ) *WritableServiceTemplateRequest`
NewWritableServiceTemplateRequest instantiates a new WritableServiceTemplateRequest object
This constructor will assign default values to properties that have it defined,
@@ -73,20 +73,20 @@ SetPorts sets Ports field to given value.
### GetProtocol
-`func (o *WritableServiceTemplateRequest) GetProtocol() string`
+`func (o *WritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
### GetProtocolOk
-`func (o *WritableServiceTemplateRequest) GetProtocolOk() (*string, bool)`
+`func (o *WritableServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetProtocol
-`func (o *WritableServiceTemplateRequest) SetProtocol(v string)`
+`func (o *WritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
SetProtocol sets Protocol field to given value.
diff --git a/docs/WritableSiteRequest.md b/docs/WritableSiteRequest.md
index 0738929814..f6deeeeaa0 100644
--- a/docs/WritableSiteRequest.md
+++ b/docs/WritableSiteRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | Full name of the site |
**Slug** | **string** | |
-**Status** | Pointer to **string** | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | [optional]
+**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional]
**Region** | Pointer to **NullableInt32** | | [optional]
**Group** | Pointer to **NullableInt32** | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
@@ -83,20 +83,20 @@ SetSlug sets Slug field to given value.
### GetStatus
-`func (o *WritableSiteRequest) GetStatus() string`
+`func (o *WritableSiteRequest) GetStatus() LocationStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableSiteRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *WritableSiteRequest) SetStatus(v string)`
+`func (o *WritableSiteRequest) SetStatus(v LocationStatusValue)`
SetStatus sets Status field to given value.
diff --git a/docs/WritableTunnelRequest.md b/docs/WritableTunnelRequest.md
new file mode 100644
index 0000000000..b27b1e8725
--- /dev/null
+++ b/docs/WritableTunnelRequest.md
@@ -0,0 +1,346 @@
+# WritableTunnelRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Status** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional]
+**Group** | Pointer to **NullableInt32** | | [optional]
+**Encapsulation** | [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | |
+**IpsecProfile** | Pointer to **NullableInt32** | | [optional]
+**Tenant** | Pointer to **NullableInt32** | | [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
+
+### NewWritableTunnelRequest
+
+`func NewWritableTunnelRequest(name string, encapsulation PatchedWritableTunnelRequestEncapsulation, ) *WritableTunnelRequest`
+
+NewWritableTunnelRequest instantiates a new WritableTunnelRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewWritableTunnelRequestWithDefaults
+
+`func NewWritableTunnelRequestWithDefaults() *WritableTunnelRequest`
+
+NewWritableTunnelRequestWithDefaults instantiates a new WritableTunnelRequest object
+This 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 *WritableTunnelRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetStatus
+
+`func (o *WritableTunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus`
+
+GetStatus returns the Status field if non-nil, zero value otherwise.
+
+### GetStatusOk
+
+`func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus)`
+
+SetStatus sets Status field to given value.
+
+### HasStatus
+
+`func (o *WritableTunnelRequest) HasStatus() bool`
+
+HasStatus returns a boolean if a field has been set.
+
+### GetGroup
+
+`func (o *WritableTunnelRequest) GetGroup() int32`
+
+GetGroup returns the Group field if non-nil, zero value otherwise.
+
+### GetGroupOk
+
+`func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) SetGroup(v int32)`
+
+SetGroup sets Group field to given value.
+
+### HasGroup
+
+`func (o *WritableTunnelRequest) HasGroup() bool`
+
+HasGroup returns a boolean if a field has been set.
+
+### SetGroupNil
+
+`func (o *WritableTunnelRequest) SetGroupNil(b bool)`
+
+ SetGroupNil sets the value for Group to be an explicit nil
+
+### UnsetGroup
+`func (o *WritableTunnelRequest) UnsetGroup()`
+
+UnsetGroup ensures that no value is present for Group, not even an explicit nil
+### GetEncapsulation
+
+`func (o *WritableTunnelRequest) GetEncapsulation() PatchedWritableTunnelRequestEncapsulation`
+
+GetEncapsulation returns the Encapsulation field if non-nil, zero value otherwise.
+
+### GetEncapsulationOk
+
+`func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestEncapsulation)`
+
+SetEncapsulation sets Encapsulation field to given value.
+
+
+### GetIpsecProfile
+
+`func (o *WritableTunnelRequest) GetIpsecProfile() int32`
+
+GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise.
+
+### GetIpsecProfileOk
+
+`func (o *WritableTunnelRequest) GetIpsecProfileOk() (*int32, 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)`
+
+SetIpsecProfile sets IpsecProfile field to given value.
+
+### HasIpsecProfile
+
+`func (o *WritableTunnelRequest) HasIpsecProfile() bool`
+
+HasIpsecProfile returns a boolean if a field has been set.
+
+### SetIpsecProfileNil
+
+`func (o *WritableTunnelRequest) SetIpsecProfileNil(b bool)`
+
+ SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil
+
+### UnsetIpsecProfile
+`func (o *WritableTunnelRequest) UnsetIpsecProfile()`
+
+UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil
+### GetTenant
+
+`func (o *WritableTunnelRequest) GetTenant() int32`
+
+GetTenant returns the Tenant field if non-nil, zero value otherwise.
+
+### GetTenantOk
+
+`func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) SetTenant(v int32)`
+
+SetTenant sets Tenant field to given value.
+
+### HasTenant
+
+`func (o *WritableTunnelRequest) HasTenant() bool`
+
+HasTenant returns a boolean if a field has been set.
+
+### SetTenantNil
+
+`func (o *WritableTunnelRequest) SetTenantNil(b bool)`
+
+ SetTenantNil sets the value for Tenant to be an explicit nil
+
+### UnsetTenant
+`func (o *WritableTunnelRequest) UnsetTenant()`
+
+UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
+### GetTunnelId
+
+`func (o *WritableTunnelRequest) GetTunnelId() int64`
+
+GetTunnelId returns the TunnelId field if non-nil, zero value otherwise.
+
+### GetTunnelIdOk
+
+`func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) SetTunnelId(v int64)`
+
+SetTunnelId sets TunnelId field to given value.
+
+### HasTunnelId
+
+`func (o *WritableTunnelRequest) HasTunnelId() bool`
+
+HasTunnelId returns a boolean if a field has been set.
+
+### SetTunnelIdNil
+
+`func (o *WritableTunnelRequest) SetTunnelIdNil(b bool)`
+
+ SetTunnelIdNil sets the value for TunnelId to be an explicit nil
+
+### UnsetTunnelId
+`func (o *WritableTunnelRequest) UnsetTunnelId()`
+
+UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil
+### GetDescription
+
+`func (o *WritableTunnelRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *WritableTunnelRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetComments
+
+`func (o *WritableTunnelRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *WritableTunnelRequest) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *WritableTunnelRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *WritableTunnelRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *WritableTunnelRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *WritableTunnelRequest) 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/WritableTunnelTerminationRequest.md b/docs/WritableTunnelTerminationRequest.md
new file mode 100644
index 0000000000..a651d37294
--- /dev/null
+++ b/docs/WritableTunnelTerminationRequest.md
@@ -0,0 +1,222 @@
+# WritableTunnelTerminationRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Tunnel** | **int32** | |
+**Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional]
+**TerminationType** | **string** | |
+**TerminationId** | Pointer to **NullableInt64** | | [optional]
+**OutsideIp** | Pointer to **NullableInt32** | | [optional]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+
+## Methods
+
+### NewWritableTunnelTerminationRequest
+
+`func NewWritableTunnelTerminationRequest(tunnel int32, terminationType string, ) *WritableTunnelTerminationRequest`
+
+NewWritableTunnelTerminationRequest instantiates a new WritableTunnelTerminationRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewWritableTunnelTerminationRequestWithDefaults
+
+`func NewWritableTunnelTerminationRequestWithDefaults() *WritableTunnelTerminationRequest`
+
+NewWritableTunnelTerminationRequestWithDefaults instantiates a new WritableTunnelTerminationRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetTunnel
+
+`func (o *WritableTunnelTerminationRequest) GetTunnel() int32`
+
+GetTunnel returns the Tunnel field if non-nil, zero value otherwise.
+
+### GetTunnelOk
+
+`func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*int32, 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)`
+
+SetTunnel sets Tunnel field to given value.
+
+
+### GetRole
+
+`func (o *WritableTunnelTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole`
+
+GetRole returns the Role field if non-nil, zero value otherwise.
+
+### GetRoleOk
+
+`func (o *WritableTunnelTerminationRequest) GetRoleOk() (*PatchedWritableTunnelTerminationRequestRole, bool)`
+
+GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetRole
+
+`func (o *WritableTunnelTerminationRequest) SetRole(v PatchedWritableTunnelTerminationRequestRole)`
+
+SetRole sets Role field to given value.
+
+### HasRole
+
+`func (o *WritableTunnelTerminationRequest) HasRole() bool`
+
+HasRole returns a boolean if a field has been set.
+
+### GetTerminationType
+
+`func (o *WritableTunnelTerminationRequest) GetTerminationType() string`
+
+GetTerminationType returns the TerminationType field if non-nil, zero value otherwise.
+
+### GetTerminationTypeOk
+
+`func (o *WritableTunnelTerminationRequest) GetTerminationTypeOk() (*string, bool)`
+
+GetTerminationTypeOk returns a tuple with the TerminationType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTerminationType
+
+`func (o *WritableTunnelTerminationRequest) SetTerminationType(v string)`
+
+SetTerminationType sets TerminationType field to given value.
+
+
+### GetTerminationId
+
+`func (o *WritableTunnelTerminationRequest) GetTerminationId() int64`
+
+GetTerminationId returns the TerminationId field if non-nil, zero value otherwise.
+
+### GetTerminationIdOk
+
+`func (o *WritableTunnelTerminationRequest) GetTerminationIdOk() (*int64, bool)`
+
+GetTerminationIdOk returns a tuple with the TerminationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTerminationId
+
+`func (o *WritableTunnelTerminationRequest) SetTerminationId(v int64)`
+
+SetTerminationId sets TerminationId field to given value.
+
+### HasTerminationId
+
+`func (o *WritableTunnelTerminationRequest) HasTerminationId() bool`
+
+HasTerminationId returns a boolean if a field has been set.
+
+### SetTerminationIdNil
+
+`func (o *WritableTunnelTerminationRequest) SetTerminationIdNil(b bool)`
+
+ SetTerminationIdNil sets the value for TerminationId to be an explicit nil
+
+### UnsetTerminationId
+`func (o *WritableTunnelTerminationRequest) UnsetTerminationId()`
+
+UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil
+### GetOutsideIp
+
+`func (o *WritableTunnelTerminationRequest) GetOutsideIp() int32`
+
+GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise.
+
+### GetOutsideIpOk
+
+`func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*int32, 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)`
+
+SetOutsideIp sets OutsideIp field to given value.
+
+### HasOutsideIp
+
+`func (o *WritableTunnelTerminationRequest) HasOutsideIp() bool`
+
+HasOutsideIp returns a boolean if a field has been set.
+
+### SetOutsideIpNil
+
+`func (o *WritableTunnelTerminationRequest) SetOutsideIpNil(b bool)`
+
+ SetOutsideIpNil sets the value for OutsideIp to be an explicit nil
+
+### UnsetOutsideIp
+`func (o *WritableTunnelTerminationRequest) UnsetOutsideIp()`
+
+UnsetOutsideIp ensures that no value is present for OutsideIp, not even an explicit nil
+### GetTags
+
+`func (o *WritableTunnelTerminationRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *WritableTunnelTerminationRequest) 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 *WritableTunnelTerminationRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *WritableTunnelTerminationRequest) HasTags() bool`
+
+HasTags returns a boolean if a field has been set.
+
+### GetCustomFields
+
+`func (o *WritableTunnelTerminationRequest) GetCustomFields() map[string]interface{}`
+
+GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
+
+### GetCustomFieldsOk
+
+`func (o *WritableTunnelTerminationRequest) 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 *WritableTunnelTerminationRequest) SetCustomFields(v map[string]interface{})`
+
+SetCustomFields sets CustomFields field to given value.
+
+### HasCustomFields
+
+`func (o *WritableTunnelTerminationRequest) 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/WritableVLANRequest.md b/docs/WritableVLANRequest.md
index 5cdc8c47e2..9eed9ed9f7 100644
--- a/docs/WritableVLANRequest.md
+++ b/docs/WritableVLANRequest.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Vid** | **int32** | Numeric VLAN ID (1-4094) |
**Name** | **string** | |
**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | [optional]
+**Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional]
**Role** | Pointer to **NullableInt32** | The primary function of this VLAN | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -182,20 +182,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
### GetStatus
-`func (o *WritableVLANRequest) GetStatus() string`
+`func (o *WritableVLANRequest) GetStatus() PatchedWritableVLANRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableVLANRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableVLANRequest) GetStatusOk() (*PatchedWritableVLANRequestStatus, 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 *WritableVLANRequest) SetStatus(v string)`
+`func (o *WritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatus)`
SetStatus sets Status field to given value.
diff --git a/docs/WritableVMInterfaceRequest.md b/docs/WritableVMInterfaceRequest.md
index 4e151f8f78..c8fc4dfb98 100644
--- a/docs/WritableVMInterfaceRequest.md
+++ b/docs/WritableVMInterfaceRequest.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
**Mtu** | Pointer to **NullableInt32** | | [optional]
**MacAddress** | Pointer to **NullableString** | | [optional]
**Description** | Pointer to **string** | | [optional]
-**Mode** | Pointer to **string** | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | [optional]
+**Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional]
**UntaggedVlan** | Pointer to **NullableInt32** | | [optional]
**TaggedVlans** | Pointer to **[]int32** | | [optional]
**Vrf** | Pointer to **NullableInt32** | | [optional]
@@ -270,20 +270,20 @@ HasDescription returns a boolean if a field has been set.
### GetMode
-`func (o *WritableVMInterfaceRequest) GetMode() string`
+`func (o *WritableVMInterfaceRequest) GetMode() PatchedWritableInterfaceRequestMode`
GetMode returns the Mode field if non-nil, zero value otherwise.
### GetModeOk
-`func (o *WritableVMInterfaceRequest) GetModeOk() (*string, bool)`
+`func (o *WritableVMInterfaceRequest) GetModeOk() (*PatchedWritableInterfaceRequestMode, bool)`
GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMode
-`func (o *WritableVMInterfaceRequest) SetMode(v string)`
+`func (o *WritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode)`
SetMode sets Mode field to given value.
diff --git a/docs/WritableVirtualDeviceContextRequest.md b/docs/WritableVirtualDeviceContextRequest.md
index 88886eec07..b4a959a8eb 100644
--- a/docs/WritableVirtualDeviceContextRequest.md
+++ b/docs/WritableVirtualDeviceContextRequest.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
**Tenant** | Pointer to **NullableInt32** | | [optional]
**PrimaryIp4** | Pointer to **NullableInt32** | | [optional]
**PrimaryIp6** | Pointer to **NullableInt32** | | [optional]
-**Status** | **string** | * `active` - Active * `planned` - Planned * `offline` - Offline |
+**Status** | [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | |
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
### NewWritableVirtualDeviceContextRequest
-`func NewWritableVirtualDeviceContextRequest(name string, status string, ) *WritableVirtualDeviceContextRequest`
+`func NewWritableVirtualDeviceContextRequest(name string, status PatchedWritableVirtualDeviceContextRequestStatus, ) *WritableVirtualDeviceContextRequest`
NewWritableVirtualDeviceContextRequest instantiates a new WritableVirtualDeviceContextRequest object
This constructor will assign default values to properties that have it defined,
@@ -232,20 +232,20 @@ HasPrimaryIp6 returns a boolean if a field has been set.
UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil
### GetStatus
-`func (o *WritableVirtualDeviceContextRequest) GetStatus() string`
+`func (o *WritableVirtualDeviceContextRequest) GetStatus() PatchedWritableVirtualDeviceContextRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableVirtualDeviceContextRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableVirtualDeviceContextRequest) GetStatusOk() (*PatchedWritableVirtualDeviceContextRequestStatus, 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 *WritableVirtualDeviceContextRequest) SetStatus(v string)`
+`func (o *WritableVirtualDeviceContextRequest) SetStatus(v PatchedWritableVirtualDeviceContextRequestStatus)`
SetStatus sets Status field to given value.
diff --git a/docs/WritableVirtualDiskRequest.md b/docs/WritableVirtualDiskRequest.md
new file mode 100644
index 0000000000..cee5d1729d
--- /dev/null
+++ b/docs/WritableVirtualDiskRequest.md
@@ -0,0 +1,171 @@
+# 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 3d3a03b160..5138957514 100644
--- a/docs/WritableVirtualMachineWithConfigContextRequest.md
+++ b/docs/WritableVirtualMachineWithConfigContextRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Status** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | [optional]
+**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional]
**Site** | Pointer to **NullableInt32** | | [optional]
**Cluster** | Pointer to **NullableInt32** | | [optional]
**Device** | Pointer to **NullableInt32** | | [optional]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
**Disk** | Pointer to **NullableInt32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
-**LocalContextData** | Pointer to **map[string]interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [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]
@@ -64,20 +64,20 @@ SetName sets Name field to given value.
### GetStatus
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() string`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) 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 *WritableVirtualMachineWithConfigContextRequest) SetStatus(v string)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)`
SetStatus sets Status field to given value.
@@ -524,20 +524,20 @@ HasComments returns a boolean if a field has been set.
### GetLocalContextData
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetLocalContextData() map[string]interface{}`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetLocalContextData() interface{}`
GetLocalContextData returns the LocalContextData field if non-nil, zero value otherwise.
### GetLocalContextDataOk
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetLocalContextDataOk() (*map[string]interface{}, bool)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetLocalContextDataOk() (*interface{}, bool)`
GetLocalContextDataOk returns a tuple with the LocalContextData field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLocalContextData
-`func (o *WritableVirtualMachineWithConfigContextRequest) SetLocalContextData(v map[string]interface{})`
+`func (o *WritableVirtualMachineWithConfigContextRequest) SetLocalContextData(v interface{})`
SetLocalContextData sets LocalContextData field to given value.
diff --git a/docs/WritableWirelessLANRequest.md b/docs/WritableWirelessLANRequest.md
index fac3e9396b..9096d03b32 100644
--- a/docs/WritableWirelessLANRequest.md
+++ b/docs/WritableWirelessLANRequest.md
@@ -7,11 +7,11 @@ Name | Type | Description | Notes
**Ssid** | **string** | |
**Description** | Pointer to **string** | | [optional]
**Group** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to **string** | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated | [optional]
+**Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional]
**Vlan** | Pointer to **NullableInt32** | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
-**AuthType** | Pointer to **string** | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | [optional]
-**AuthCipher** | Pointer to **string** | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | [optional]
+**AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional]
+**AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional]
**AuthPsk** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -118,20 +118,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 *WritableWirelessLANRequest) GetStatus() string`
+`func (o *WritableWirelessLANRequest) GetStatus() PatchedWritableWirelessLANRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableWirelessLANRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableWirelessLANRequest) GetStatusOk() (*PatchedWritableWirelessLANRequestStatus, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *WritableWirelessLANRequest) SetStatus(v string)`
+`func (o *WritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessLANRequestStatus)`
SetStatus sets Status field to given value.
@@ -213,20 +213,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
### GetAuthType
-`func (o *WritableWirelessLANRequest) GetAuthType() string`
+`func (o *WritableWirelessLANRequest) GetAuthType() AuthenticationType1`
GetAuthType returns the AuthType field if non-nil, zero value otherwise.
### GetAuthTypeOk
-`func (o *WritableWirelessLANRequest) GetAuthTypeOk() (*string, bool)`
+`func (o *WritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType1, bool)`
GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAuthType
-`func (o *WritableWirelessLANRequest) SetAuthType(v string)`
+`func (o *WritableWirelessLANRequest) SetAuthType(v AuthenticationType1)`
SetAuthType sets AuthType field to given value.
@@ -238,20 +238,20 @@ HasAuthType returns a boolean if a field has been set.
### GetAuthCipher
-`func (o *WritableWirelessLANRequest) GetAuthCipher() string`
+`func (o *WritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher`
GetAuthCipher returns the AuthCipher field if non-nil, zero value otherwise.
### GetAuthCipherOk
-`func (o *WritableWirelessLANRequest) GetAuthCipherOk() (*string, bool)`
+`func (o *WritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher, bool)`
GetAuthCipherOk returns a tuple with the AuthCipher field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAuthCipher
-`func (o *WritableWirelessLANRequest) SetAuthCipher(v string)`
+`func (o *WritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher)`
SetAuthCipher sets AuthCipher field to given value.
diff --git a/docs/WritableWirelessLinkRequest.md b/docs/WritableWirelessLinkRequest.md
index 3b83b99aa1..96ec8345b1 100644
--- a/docs/WritableWirelessLinkRequest.md
+++ b/docs/WritableWirelessLinkRequest.md
@@ -7,10 +7,10 @@ Name | Type | Description | Notes
**InterfaceA** | **int32** | |
**InterfaceB** | **int32** | |
**Ssid** | Pointer to **string** | | [optional]
-**Status** | Pointer to **string** | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | [optional]
+**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional]
**Tenant** | Pointer to **NullableInt32** | | [optional]
-**AuthType** | Pointer to **string** | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | [optional]
-**AuthCipher** | Pointer to **string** | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | [optional]
+**AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional]
+**AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional]
**AuthPsk** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -103,20 +103,20 @@ HasSsid returns a boolean if a field has been set.
### GetStatus
-`func (o *WritableWirelessLinkRequest) GetStatus() string`
+`func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableWirelessLinkRequest) GetStatusOk() (*string, bool)`
+`func (o *WritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
-`func (o *WritableWirelessLinkRequest) SetStatus(v string)`
+`func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue)`
SetStatus sets Status field to given value.
@@ -163,20 +163,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
### GetAuthType
-`func (o *WritableWirelessLinkRequest) GetAuthType() string`
+`func (o *WritableWirelessLinkRequest) GetAuthType() AuthenticationType1`
GetAuthType returns the AuthType field if non-nil, zero value otherwise.
### GetAuthTypeOk
-`func (o *WritableWirelessLinkRequest) GetAuthTypeOk() (*string, bool)`
+`func (o *WritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType1, bool)`
GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAuthType
-`func (o *WritableWirelessLinkRequest) SetAuthType(v string)`
+`func (o *WritableWirelessLinkRequest) SetAuthType(v AuthenticationType1)`
SetAuthType sets AuthType field to given value.
@@ -188,20 +188,20 @@ HasAuthType returns a boolean if a field has been set.
### GetAuthCipher
-`func (o *WritableWirelessLinkRequest) GetAuthCipher() string`
+`func (o *WritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher`
GetAuthCipher returns the AuthCipher field if non-nil, zero value otherwise.
### GetAuthCipherOk
-`func (o *WritableWirelessLinkRequest) GetAuthCipherOk() (*string, bool)`
+`func (o *WritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher, bool)`
GetAuthCipherOk returns a tuple with the AuthCipher field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAuthCipher
-`func (o *WritableWirelessLinkRequest) SetAuthCipher(v string)`
+`func (o *WritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher)`
SetAuthCipher sets AuthCipher field to given value.
diff --git a/main.go b/main.go
new file mode 100644
index 0000000000..94f97df21d
--- /dev/null
+++ b/main.go
@@ -0,0 +1,16 @@
+package netbox
+
+import (
+ "fmt"
+)
+
+const authHeaderName = "Authorization"
+const authHeaderFormat = "Token %v"
+
+func NewAPIClientFor(host string, token string) *APIClient {
+ cfg := NewConfiguration()
+ cfg.Servers[0].URL = host
+ cfg.DefaultHeader[authHeaderName] = fmt.Sprintf(authHeaderFormat, token)
+
+ return NewAPIClient(cfg)
+}
diff --git a/model_aggregate.go b/model_aggregate.go
index 152bb2abd9..86a4f8e411 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -518,10 +519,38 @@ func (o Aggregate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Aggregate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Aggregate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "prefix",
+ "rir",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varAggregate := _Aggregate{}
- err = json.Unmarshal(bytes, &varAggregate)
+ err = json.Unmarshal(data, &varAggregate)
if err != nil {
return err
@@ -531,7 +560,7 @@ func (o *Aggregate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_aggregate_family.go b/model_aggregate_family.go
index 3036c96561..31b2ba021b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &AggregateFamily{}
// AggregateFamily struct for AggregateFamily
type AggregateFamily struct {
- // * `4` - IPv4 * `6` - IPv6
- Value *int32 `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *AggregateFamilyValue `json:"value,omitempty"`
+ Label *AggregateFamilyLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewAggregateFamilyWithDefaults() *AggregateFamily {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *AggregateFamily) GetValue() int32 {
+func (o *AggregateFamily) GetValue() AggregateFamilyValue {
if o == nil || IsNil(o.Value) {
- var ret int32
+ var ret AggregateFamilyValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *AggregateFamily) GetValue() int32 {
// 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 *AggregateFamily) GetValueOk() (*int32, bool) {
+func (o *AggregateFamily) GetValueOk() (*AggregateFamilyValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *AggregateFamily) HasValue() bool {
return false
}
-// SetValue gets a reference to the given int32 and assigns it to the Value field.
-func (o *AggregateFamily) SetValue(v int32) {
+// SetValue gets a reference to the given AggregateFamilyValue and assigns it to the Value field.
+func (o *AggregateFamily) SetValue(v AggregateFamilyValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *AggregateFamily) GetLabel() string {
+func (o *AggregateFamily) GetLabel() AggregateFamilyLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret AggregateFamilyLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *AggregateFamily) 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 *AggregateFamily) GetLabelOk() (*string, bool) {
+func (o *AggregateFamily) GetLabelOk() (*AggregateFamilyLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *AggregateFamily) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *AggregateFamily) SetLabel(v string) {
+// SetLabel gets a reference to the given AggregateFamilyLabel and assigns it to the Label field.
+func (o *AggregateFamily) SetLabel(v AggregateFamilyLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o AggregateFamily) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *AggregateFamily) UnmarshalJSON(bytes []byte) (err error) {
+func (o *AggregateFamily) UnmarshalJSON(data []byte) (err error) {
varAggregateFamily := _AggregateFamily{}
- err = json.Unmarshal(bytes, &varAggregateFamily)
+ err = json.Unmarshal(data, &varAggregateFamily)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *AggregateFamily) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_aggregate_family_label.go b/model_aggregate_family_label.go
new file mode 100644
index 0000000000..c649cea195
--- /dev/null
+++ b/model_aggregate_family_label.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// AggregateFamilyLabel the model 'AggregateFamilyLabel'
+type AggregateFamilyLabel string
+
+// List of Aggregate_family_label
+const (
+ AGGREGATEFAMILYLABEL_IPV4 AggregateFamilyLabel = "IPv4"
+ AGGREGATEFAMILYLABEL_IPV6 AggregateFamilyLabel = "IPv6"
+)
+
+// All allowed values of AggregateFamilyLabel enum
+var AllowedAggregateFamilyLabelEnumValues = []AggregateFamilyLabel{
+ "IPv4",
+ "IPv6",
+}
+
+func (v *AggregateFamilyLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := AggregateFamilyLabel(value)
+ for _, existing := range AllowedAggregateFamilyLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid AggregateFamilyLabel", value)
+}
+
+// NewAggregateFamilyLabelFromValue returns a pointer to a valid AggregateFamilyLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewAggregateFamilyLabelFromValue(v string) (*AggregateFamilyLabel, error) {
+ ev := AggregateFamilyLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for AggregateFamilyLabel: valid values are %v", v, AllowedAggregateFamilyLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v AggregateFamilyLabel) IsValid() bool {
+ for _, existing := range AllowedAggregateFamilyLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Aggregate_family_label value
+func (v AggregateFamilyLabel) Ptr() *AggregateFamilyLabel {
+ return &v
+}
+
+type NullableAggregateFamilyLabel struct {
+ value *AggregateFamilyLabel
+ isSet bool
+}
+
+func (v NullableAggregateFamilyLabel) Get() *AggregateFamilyLabel {
+ return v.value
+}
+
+func (v *NullableAggregateFamilyLabel) Set(val *AggregateFamilyLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableAggregateFamilyLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableAggregateFamilyLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableAggregateFamilyLabel(val *AggregateFamilyLabel) *NullableAggregateFamilyLabel {
+ return &NullableAggregateFamilyLabel{value: val, isSet: true}
+}
+
+func (v NullableAggregateFamilyLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableAggregateFamilyLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_aggregate_family_value.go b/model_aggregate_family_value.go
new file mode 100644
index 0000000000..ed32808a12
--- /dev/null
+++ b/model_aggregate_family_value.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// AggregateFamilyValue * `4` - IPv4 * `6` - IPv6
+type AggregateFamilyValue int32
+
+// List of Aggregate_family_value
+const (
+ AGGREGATEFAMILYVALUE__4 AggregateFamilyValue = 4
+ AGGREGATEFAMILYVALUE__6 AggregateFamilyValue = 6
+)
+
+// All allowed values of AggregateFamilyValue enum
+var AllowedAggregateFamilyValueEnumValues = []AggregateFamilyValue{
+ 4,
+ 6,
+}
+
+func (v *AggregateFamilyValue) UnmarshalJSON(src []byte) error {
+ var value int32
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := AggregateFamilyValue(value)
+ for _, existing := range AllowedAggregateFamilyValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid AggregateFamilyValue", value)
+}
+
+// NewAggregateFamilyValueFromValue returns a pointer to a valid AggregateFamilyValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewAggregateFamilyValueFromValue(v int32) (*AggregateFamilyValue, error) {
+ ev := AggregateFamilyValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for AggregateFamilyValue: valid values are %v", v, AllowedAggregateFamilyValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v AggregateFamilyValue) IsValid() bool {
+ for _, existing := range AllowedAggregateFamilyValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Aggregate_family_value value
+func (v AggregateFamilyValue) Ptr() *AggregateFamilyValue {
+ return &v
+}
+
+type NullableAggregateFamilyValue struct {
+ value *AggregateFamilyValue
+ isSet bool
+}
+
+func (v NullableAggregateFamilyValue) Get() *AggregateFamilyValue {
+ return v.value
+}
+
+func (v *NullableAggregateFamilyValue) Set(val *AggregateFamilyValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableAggregateFamilyValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableAggregateFamilyValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableAggregateFamilyValue(val *AggregateFamilyValue) *NullableAggregateFamilyValue {
+ return &NullableAggregateFamilyValue{value: val, isSet: true}
+}
+
+func (v NullableAggregateFamilyValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableAggregateFamilyValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_aggregate_request.go b/model_aggregate_request.go
index ccf6a964cb..a05313c176 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 AggregateRequest type satisfies the MappedNullable interface at compile time
@@ -351,10 +352,32 @@ func (o AggregateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *AggregateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *AggregateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "prefix",
+ "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)
+ }
+ }
+
varAggregateRequest := _AggregateRequest{}
- err = json.Unmarshal(bytes, &varAggregateRequest)
+ err = json.Unmarshal(data, &varAggregateRequest)
if err != nil {
return err
@@ -364,7 +387,7 @@ func (o *AggregateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "prefix")
delete(additionalProperties, "rir")
delete(additionalProperties, "tenant")
diff --git a/model_asn.go b/model_asn.go
index 054d328fae..493e8648c6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -519,10 +520,38 @@ func (o ASN) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ASN) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ASN) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "site_count",
+ "provider_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)
+ }
+ }
+
varASN := _ASN{}
- err = json.Unmarshal(bytes, &varASN)
+ err = json.Unmarshal(data, &varASN)
if err != nil {
return err
@@ -532,7 +561,7 @@ func (o *ASN) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_asn_range.go b/model_asn_range.go
index 2ee7b8f0c9..d7d1c1fbd4 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -516,10 +517,41 @@ func (o ASNRange) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ASNRange) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ASNRange) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "rir",
+ "start",
+ "end",
+ "created",
+ "last_updated",
+ "asn_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)
+ }
+ }
+
varASNRange := _ASNRange{}
- err = json.Unmarshal(bytes, &varASNRange)
+ err = json.Unmarshal(data, &varASNRange)
if err != nil {
return err
@@ -529,7 +561,7 @@ func (o *ASNRange) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_asn_range_request.go b/model_asn_range_request.go
index b6eec0a470..ec13658d77 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ASNRangeRequest type satisfies the MappedNullable interface at compile time
@@ -349,10 +350,35 @@ func (o ASNRangeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ASNRangeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ASNRangeRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varASNRangeRequest := _ASNRangeRequest{}
- err = json.Unmarshal(bytes, &varASNRangeRequest)
+ err = json.Unmarshal(data, &varASNRangeRequest)
if err != nil {
return err
@@ -362,7 +388,7 @@ func (o *ASNRangeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "rir")
diff --git a/model_asn_request.go b/model_asn_request.go
index 13e3e5dca9..c78d1c26ba 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ASNRequest type satisfies the MappedNullable interface at compile time
@@ -325,10 +326,31 @@ func (o ASNRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ASNRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ASNRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ }
+
+ 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)
+ }
+ }
+
varASNRequest := _ASNRequest{}
- err = json.Unmarshal(bytes, &varASNRequest)
+ err = json.Unmarshal(data, &varASNRequest)
if err != nil {
return err
@@ -338,7 +360,7 @@ func (o *ASNRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "asn")
delete(additionalProperties, "rir")
delete(additionalProperties, "tenant")
diff --git a/model_authentication.go b/model_authentication.go
new file mode 100644
index 0000000000..e8c74b2501
--- /dev/null
+++ b/model_authentication.go
@@ -0,0 +1,118 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// Authentication * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC
+type Authentication string
+
+// List of Authentication
+const (
+ AUTHENTICATION_HMAC_SHA1 Authentication = "hmac-sha1"
+ AUTHENTICATION_HMAC_SHA256 Authentication = "hmac-sha256"
+ AUTHENTICATION_HMAC_SHA384 Authentication = "hmac-sha384"
+ AUTHENTICATION_HMAC_SHA512 Authentication = "hmac-sha512"
+ AUTHENTICATION_HMAC_MD5 Authentication = "hmac-md5"
+ AUTHENTICATION_EMPTY Authentication = ""
+)
+
+// All allowed values of Authentication enum
+var AllowedAuthenticationEnumValues = []Authentication{
+ "hmac-sha1",
+ "hmac-sha256",
+ "hmac-sha384",
+ "hmac-sha512",
+ "hmac-md5",
+ "",
+}
+
+func (v *Authentication) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := Authentication(value)
+ for _, existing := range AllowedAuthenticationEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid Authentication", value)
+}
+
+// NewAuthenticationFromValue returns a pointer to a valid Authentication
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewAuthenticationFromValue(v string) (*Authentication, error) {
+ ev := Authentication(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for Authentication: valid values are %v", v, AllowedAuthenticationEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v Authentication) IsValid() bool {
+ for _, existing := range AllowedAuthenticationEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Authentication value
+func (v Authentication) Ptr() *Authentication {
+ return &v
+}
+
+type NullableAuthentication struct {
+ value *Authentication
+ isSet bool
+}
+
+func (v NullableAuthentication) Get() *Authentication {
+ return v.value
+}
+
+func (v *NullableAuthentication) Set(val *Authentication) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableAuthentication) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableAuthentication) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableAuthentication(val *Authentication) *NullableAuthentication {
+ return &NullableAuthentication{value: val, isSet: true}
+}
+
+func (v NullableAuthentication) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableAuthentication) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_authentication_cipher.go b/model_authentication_cipher.go
new file mode 100644
index 0000000000..8ffc406180
--- /dev/null
+++ b/model_authentication_cipher.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// AuthenticationCipher * `auto` - Auto * `tkip` - TKIP * `aes` - AES
+type AuthenticationCipher string
+
+// List of Authentication_cipher
+const (
+ AUTHENTICATIONCIPHER_AUTO AuthenticationCipher = "auto"
+ AUTHENTICATIONCIPHER_TKIP AuthenticationCipher = "tkip"
+ AUTHENTICATIONCIPHER_AES AuthenticationCipher = "aes"
+ AUTHENTICATIONCIPHER_EMPTY AuthenticationCipher = ""
+)
+
+// All allowed values of AuthenticationCipher enum
+var AllowedAuthenticationCipherEnumValues = []AuthenticationCipher{
+ "auto",
+ "tkip",
+ "aes",
+ "",
+}
+
+func (v *AuthenticationCipher) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := AuthenticationCipher(value)
+ for _, existing := range AllowedAuthenticationCipherEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid AuthenticationCipher", value)
+}
+
+// NewAuthenticationCipherFromValue returns a pointer to a valid AuthenticationCipher
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewAuthenticationCipherFromValue(v string) (*AuthenticationCipher, error) {
+ ev := AuthenticationCipher(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for AuthenticationCipher: valid values are %v", v, AllowedAuthenticationCipherEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v AuthenticationCipher) IsValid() bool {
+ for _, existing := range AllowedAuthenticationCipherEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Authentication_cipher value
+func (v AuthenticationCipher) Ptr() *AuthenticationCipher {
+ return &v
+}
+
+type NullableAuthenticationCipher struct {
+ value *AuthenticationCipher
+ isSet bool
+}
+
+func (v NullableAuthenticationCipher) Get() *AuthenticationCipher {
+ return v.value
+}
+
+func (v *NullableAuthenticationCipher) Set(val *AuthenticationCipher) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableAuthenticationCipher) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableAuthenticationCipher) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableAuthenticationCipher(val *AuthenticationCipher) *NullableAuthenticationCipher {
+ return &NullableAuthenticationCipher{value: val, isSet: true}
+}
+
+func (v NullableAuthenticationCipher) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableAuthenticationCipher) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_authentication_type.go b/model_authentication_type.go
new file mode 100644
index 0000000000..79c502fcff
--- /dev/null
+++ b/model_authentication_type.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// AuthenticationType * `plaintext` - Plaintext * `md5` - MD5
+type AuthenticationType string
+
+// List of Authentication_type
+const (
+ AUTHENTICATIONTYPE_PLAINTEXT AuthenticationType = "plaintext"
+ AUTHENTICATIONTYPE_MD5 AuthenticationType = "md5"
+ AUTHENTICATIONTYPE_EMPTY AuthenticationType = ""
+)
+
+// All allowed values of AuthenticationType enum
+var AllowedAuthenticationTypeEnumValues = []AuthenticationType{
+ "plaintext",
+ "md5",
+ "",
+}
+
+func (v *AuthenticationType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := AuthenticationType(value)
+ for _, existing := range AllowedAuthenticationTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid AuthenticationType", value)
+}
+
+// NewAuthenticationTypeFromValue returns a pointer to a valid AuthenticationType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewAuthenticationTypeFromValue(v string) (*AuthenticationType, error) {
+ ev := AuthenticationType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for AuthenticationType: valid values are %v", v, AllowedAuthenticationTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v AuthenticationType) IsValid() bool {
+ for _, existing := range AllowedAuthenticationTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Authentication_type value
+func (v AuthenticationType) Ptr() *AuthenticationType {
+ return &v
+}
+
+type NullableAuthenticationType struct {
+ value *AuthenticationType
+ isSet bool
+}
+
+func (v NullableAuthenticationType) Get() *AuthenticationType {
+ return v.value
+}
+
+func (v *NullableAuthenticationType) Set(val *AuthenticationType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableAuthenticationType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableAuthenticationType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableAuthenticationType(val *AuthenticationType) *NullableAuthenticationType {
+ return &NullableAuthenticationType{value: val, isSet: true}
+}
+
+func (v NullableAuthenticationType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableAuthenticationType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_authentication_type_1.go b/model_authentication_type_1.go
new file mode 100644
index 0000000000..f12dd41659
--- /dev/null
+++ b/model_authentication_type_1.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// AuthenticationType1 * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise
+type AuthenticationType1 string
+
+// List of Authentication_type_1
+const (
+ AUTHENTICATIONTYPE1_OPEN AuthenticationType1 = "open"
+ AUTHENTICATIONTYPE1_WEP AuthenticationType1 = "wep"
+ AUTHENTICATIONTYPE1_WPA_PERSONAL AuthenticationType1 = "wpa-personal"
+ AUTHENTICATIONTYPE1_WPA_ENTERPRISE AuthenticationType1 = "wpa-enterprise"
+ AUTHENTICATIONTYPE1_EMPTY AuthenticationType1 = ""
+)
+
+// All allowed values of AuthenticationType1 enum
+var AllowedAuthenticationType1EnumValues = []AuthenticationType1{
+ "open",
+ "wep",
+ "wpa-personal",
+ "wpa-enterprise",
+ "",
+}
+
+func (v *AuthenticationType1) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := AuthenticationType1(value)
+ for _, existing := range AllowedAuthenticationType1EnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid AuthenticationType1", value)
+}
+
+// NewAuthenticationType1FromValue returns a pointer to a valid AuthenticationType1
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewAuthenticationType1FromValue(v string) (*AuthenticationType1, error) {
+ ev := AuthenticationType1(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for AuthenticationType1: valid values are %v", v, AllowedAuthenticationType1EnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v AuthenticationType1) IsValid() bool {
+ for _, existing := range AllowedAuthenticationType1EnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Authentication_type_1 value
+func (v AuthenticationType1) Ptr() *AuthenticationType1 {
+ return &v
+}
+
+type NullableAuthenticationType1 struct {
+ value *AuthenticationType1
+ isSet bool
+}
+
+func (v NullableAuthenticationType1) Get() *AuthenticationType1 {
+ return v.value
+}
+
+func (v *NullableAuthenticationType1) Set(val *AuthenticationType1) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableAuthenticationType1) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableAuthenticationType1) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableAuthenticationType1(val *AuthenticationType1) *NullableAuthenticationType1 {
+ return &NullableAuthenticationType1{value: val, isSet: true}
+}
+
+func (v NullableAuthenticationType1) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableAuthenticationType1) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_available_asn.go b/model_available_asn.go
index 7f56fd956d..81ff2e6ac3 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 AvailableASN type satisfies the MappedNullable interface at compile time
@@ -122,10 +123,31 @@ func (o AvailableASN) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *AvailableASN) UnmarshalJSON(bytes []byte) (err error) {
+func (o *AvailableASN) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ }
+
+ 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)
+ }
+ }
+
varAvailableASN := _AvailableASN{}
- err = json.Unmarshal(bytes, &varAvailableASN)
+ err = json.Unmarshal(data, &varAvailableASN)
if err != nil {
return err
@@ -135,7 +157,7 @@ func (o *AvailableASN) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "asn")
delete(additionalProperties, "description")
o.AdditionalProperties = additionalProperties
diff --git a/model_available_ip.go b/model_available_ip.go
index 80e80b0583..4812c225f9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 AvailableIP type satisfies the MappedNullable interface at compile time
@@ -176,10 +177,33 @@ func (o AvailableIP) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *AvailableIP) UnmarshalJSON(bytes []byte) (err error) {
+func (o *AvailableIP) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "family",
+ "address",
+ "vrf",
+ }
+
+ 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)
+ }
+ }
+
varAvailableIP := _AvailableIP{}
- err = json.Unmarshal(bytes, &varAvailableIP)
+ err = json.Unmarshal(data, &varAvailableIP)
if err != nil {
return err
@@ -189,7 +213,7 @@ func (o *AvailableIP) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "family")
delete(additionalProperties, "address")
delete(additionalProperties, "vrf")
diff --git a/model_available_prefix.go b/model_available_prefix.go
index 53e3dfcc72..5556c5fd7b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 AvailablePrefix type satisfies the MappedNullable interface at compile time
@@ -140,10 +141,33 @@ func (o AvailablePrefix) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *AvailablePrefix) UnmarshalJSON(bytes []byte) (err error) {
+func (o *AvailablePrefix) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "family",
+ "prefix",
+ "vrf",
+ }
+
+ 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)
+ }
+ }
+
varAvailablePrefix := _AvailablePrefix{}
- err = json.Unmarshal(bytes, &varAvailablePrefix)
+ err = json.Unmarshal(data, &varAvailablePrefix)
if err != nil {
return err
@@ -153,7 +177,7 @@ func (o *AvailablePrefix) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "family")
delete(additionalProperties, "prefix")
delete(additionalProperties, "vrf")
diff --git a/model_available_vlan.go b/model_available_vlan.go
index 5abb18b5ef..8d3fd8fdd6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 AvailableVLAN type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o AvailableVLAN) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *AvailableVLAN) UnmarshalJSON(bytes []byte) (err error) {
+func (o *AvailableVLAN) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "group",
+ }
+
+ 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)
+ }
+ }
+
varAvailableVLAN := _AvailableVLAN{}
- err = json.Unmarshal(bytes, &varAvailableVLAN)
+ err = json.Unmarshal(data, &varAvailableVLAN)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *AvailableVLAN) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "vid")
delete(additionalProperties, "group")
o.AdditionalProperties = additionalProperties
diff --git a/model_bookmark.go b/model_bookmark.go
index 08a28d0c7b..1c498b1fbb 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -20,14 +21,14 @@ var _ MappedNullable = &Bookmark{}
// Bookmark Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type Bookmark struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- ObjectType string `json:"object_type"`
- ObjectId int64 `json:"object_id"`
- Object map[string]interface{} `json:"object"`
- User NestedUser `json:"user"`
- Created time.Time `json:"created"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ ObjectType string `json:"object_type"`
+ ObjectId int64 `json:"object_id"`
+ Object interface{} `json:"object"`
+ User NestedUser `json:"user"`
+ Created time.Time `json:"created"`
AdditionalProperties map[string]interface{}
}
@@ -37,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 map[string]interface{}, user NestedUser, created time.Time) *Bookmark {
+func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user NestedUser, created time.Time) *Bookmark {
this := Bookmark{}
this.Id = id
this.Url = url
@@ -179,10 +180,10 @@ func (o *Bookmark) SetObjectId(v int64) {
}
// GetObject returns the Object field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *Bookmark) GetObject() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *Bookmark) GetObject() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -192,15 +193,15 @@ func (o *Bookmark) GetObject() map[string]interface{} {
// GetObjectOk returns a tuple with the Object field value
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Bookmark) GetObjectOk() (map[string]interface{}, bool) {
+func (o *Bookmark) GetObjectOk() (*interface{}, bool) {
if o == nil || IsNil(o.Object) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Object, true
+ return &o.Object, true
}
// SetObject sets field value
-func (o *Bookmark) SetObject(v map[string]interface{}) {
+func (o *Bookmark) SetObject(v interface{}) {
o.Object = v
}
@@ -280,10 +281,38 @@ func (o Bookmark) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Bookmark) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Bookmark) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "url",
+ "display",
+ "object_type",
+ "object_id",
+ "object",
+ "user",
+ "created",
+ }
+
+ 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)
+ }
+ }
+
varBookmark := _Bookmark{}
- err = json.Unmarshal(bytes, &varBookmark)
+ err = json.Unmarshal(data, &varBookmark)
if err != nil {
return err
@@ -293,7 +322,7 @@ func (o *Bookmark) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_bookmark_request.go b/model_bookmark_request.go
index 08c2167e05..45afcbf936 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 BookmarkRequest type satisfies the MappedNullable interface at compile time
@@ -140,10 +141,33 @@ func (o BookmarkRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *BookmarkRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *BookmarkRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varBookmarkRequest := _BookmarkRequest{}
- err = json.Unmarshal(bytes, &varBookmarkRequest)
+ err = json.Unmarshal(data, &varBookmarkRequest)
if err != nil {
return err
@@ -153,7 +177,7 @@ func (o *BookmarkRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "object_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "user")
diff --git a/model_cable.go b/model_cable.go
index 8949279204..b0b9451d05 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -20,11 +21,10 @@ 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"`
- // * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `power` - Power
- Type *string `json:"type,omitempty"`
+ 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"`
@@ -139,9 +139,9 @@ func (o *Cable) SetDisplay(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *Cable) GetType() string {
+func (o *Cable) GetType() CableType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret CableType
return ret
}
return *o.Type
@@ -149,7 +149,7 @@ func (o *Cable) GetType() string {
// 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() (*string, bool) {
+func (o *Cable) GetTypeOk() (*CableType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -165,8 +165,8 @@ func (o *Cable) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *Cable) SetType(v string) {
+// SetType gets a reference to the given CableType and assigns it to the Type field.
+func (o *Cable) SetType(v CableType) {
o.Type = &v
}
@@ -701,10 +701,35 @@ func (o Cable) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Cable) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Cable) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varCable := _Cable{}
- err = json.Unmarshal(bytes, &varCable)
+ err = json.Unmarshal(data, &varCable)
if err != nil {
return err
@@ -714,7 +739,7 @@ func (o *Cable) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_cable_length_unit.go b/model_cable_length_unit.go
index 98beb74d3f..67d6bab0d6 100644
--- a/model_cable_length_unit.go
+++ b/model_cable_length_unit.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &CableLengthUnit{}
// CableLengthUnit struct for CableLengthUnit
type CableLengthUnit struct {
- // * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *CableLengthUnitValue `json:"value,omitempty"`
+ Label *CableLengthUnitLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewCableLengthUnitWithDefaults() *CableLengthUnit {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *CableLengthUnit) GetValue() string {
+func (o *CableLengthUnit) GetValue() CableLengthUnitValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret CableLengthUnitValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *CableLengthUnit) GetValue() string {
// 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() (*string, bool) {
+func (o *CableLengthUnit) GetValueOk() (*CableLengthUnitValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *CableLengthUnit) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *CableLengthUnit) SetValue(v string) {
+// 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() string {
+func (o *CableLengthUnit) GetLabel() CableLengthUnitLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret CableLengthUnitLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *CableLengthUnit) 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 *CableLengthUnit) GetLabelOk() (*string, bool) {
+func (o *CableLengthUnit) GetLabelOk() (*CableLengthUnitLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *CableLengthUnit) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *CableLengthUnit) SetLabel(v string) {
+// SetLabel gets a reference to the given CableLengthUnitLabel and assigns it to the Label field.
+func (o *CableLengthUnit) SetLabel(v CableLengthUnitLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o CableLengthUnit) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CableLengthUnit) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CableLengthUnit) UnmarshalJSON(data []byte) (err error) {
varCableLengthUnit := _CableLengthUnit{}
- err = json.Unmarshal(bytes, &varCableLengthUnit)
+ err = json.Unmarshal(data, &varCableLengthUnit)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *CableLengthUnit) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_cable_length_unit_label.go b/model_cable_length_unit_label.go
new file mode 100644
index 0000000000..7ca6c59360
--- /dev/null
+++ b/model_cable_length_unit_label.go
@@ -0,0 +1,118 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..b174718922
--- /dev/null
+++ b/model_cable_length_unit_value.go
@@ -0,0 +1,120 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 d430f23a11..240c0d5b94 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,22 +19,19 @@ var _ MappedNullable = &CableRequest{}
// CableRequest Adds support for custom fields and tags.
type CableRequest struct {
- // * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `power` - Power
- Type *string `json:"type,omitempty"`
- ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"`
- BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"`
- // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Label *string `json:"label,omitempty"`
- Color *string `json:"color,omitempty"`
- Length NullableFloat64 `json:"length,omitempty"`
- // * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches
- LengthUnit NullableString `json:"length_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -58,9 +55,9 @@ func NewCableRequestWithDefaults() *CableRequest {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *CableRequest) GetType() string {
+func (o *CableRequest) GetType() CableType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret CableType
return ret
}
return *o.Type
@@ -68,7 +65,7 @@ func (o *CableRequest) GetType() string {
// 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() (*string, bool) {
+func (o *CableRequest) GetTypeOk() (*CableType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -84,8 +81,8 @@ func (o *CableRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *CableRequest) SetType(v string) {
+// SetType gets a reference to the given CableType and assigns it to the Type field.
+func (o *CableRequest) SetType(v CableType) {
o.Type = &v
}
@@ -154,9 +151,9 @@ func (o *CableRequest) SetBTerminations(v []GenericObjectRequest) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *CableRequest) GetStatus() string {
+func (o *CableRequest) GetStatus() CableStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret CableStatusValue
return ret
}
return *o.Status
@@ -164,7 +161,7 @@ func (o *CableRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *CableRequest) GetStatusOk() (*CableStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -180,8 +177,8 @@ func (o *CableRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *CableRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field.
+func (o *CableRequest) SetStatus(v CableStatusValue) {
o.Status = &v
}
@@ -336,9 +333,9 @@ func (o *CableRequest) UnsetLength() {
}
// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CableRequest) GetLengthUnit() string {
+func (o *CableRequest) GetLengthUnit() CableRequestLengthUnit {
if o == nil || IsNil(o.LengthUnit.Get()) {
- var ret string
+ var ret CableRequestLengthUnit
return ret
}
return *o.LengthUnit.Get()
@@ -347,7 +344,7 @@ func (o *CableRequest) GetLengthUnit() string {
// 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() (*string, bool) {
+func (o *CableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool) {
if o == nil {
return nil, false
}
@@ -363,8 +360,8 @@ func (o *CableRequest) HasLengthUnit() bool {
return false
}
-// SetLengthUnit gets a reference to the given NullableString and assigns it to the LengthUnit field.
-func (o *CableRequest) SetLengthUnit(v string) {
+// 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)
}
@@ -563,10 +560,10 @@ func (o CableRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CableRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CableRequest) UnmarshalJSON(data []byte) (err error) {
varCableRequest := _CableRequest{}
- err = json.Unmarshal(bytes, &varCableRequest)
+ err = json.Unmarshal(data, &varCableRequest)
if err != nil {
return err
@@ -576,7 +573,7 @@ func (o *CableRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "type")
delete(additionalProperties, "a_terminations")
delete(additionalProperties, "b_terminations")
diff --git a/model_cable_request_length_unit.go b/model_cable_request_length_unit.go
new file mode 100644
index 0000000000..8c96cf4318
--- /dev/null
+++ b/model_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: 3.7.0 (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
index ef953971bc..7e48e324ab 100644
--- a/model_cable_status.go
+++ b/model_cable_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &CableStatus{}
// CableStatus struct for CableStatus
type CableStatus struct {
- // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *CableStatusValue `json:"value,omitempty"`
+ Label *CableStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewCableStatusWithDefaults() *CableStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *CableStatus) GetValue() string {
+func (o *CableStatus) GetValue() CableStatusValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret CableStatusValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *CableStatus) GetValue() string {
// 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() (*string, bool) {
+func (o *CableStatus) GetValueOk() (*CableStatusValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *CableStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *CableStatus) SetValue(v string) {
+// 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() string {
+func (o *CableStatus) GetLabel() CableStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret CableStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *CableStatus) 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 *CableStatus) GetLabelOk() (*string, bool) {
+func (o *CableStatus) GetLabelOk() (*CableStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *CableStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *CableStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given CableStatusLabel and assigns it to the Label field.
+func (o *CableStatus) SetLabel(v CableStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o CableStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CableStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CableStatus) UnmarshalJSON(data []byte) (err error) {
varCableStatus := _CableStatus{}
- err = json.Unmarshal(bytes, &varCableStatus)
+ err = json.Unmarshal(data, &varCableStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *CableStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_cable_status_label.go b/model_cable_status_label.go
new file mode 100644
index 0000000000..5d0df73bf7
--- /dev/null
+++ b/model_cable_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: 3.7.0 (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
new file mode 100644
index 0000000000..13a2f91e90
--- /dev/null
+++ b/model_cable_status_value.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 fa14e08153..036bd2c8d7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -20,17 +21,16 @@ var _ MappedNullable = &CableTermination{}
// CableTermination Adds support for custom fields and tags.
type CableTermination struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Cable int32 `json:"cable"`
- // * `A` - A * `B` - B
- CableEnd string `json:"cable_end"`
- TerminationType string `json:"termination_type"`
- TerminationId int64 `json:"termination_id"`
- Termination map[string]interface{} `json:"termination"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Cable int32 `json:"cable"`
+ CableEnd End `json:"cable_end"`
+ TerminationType string `json:"termination_type"`
+ TerminationId int64 `json:"termination_id"`
+ Termination interface{} `json:"termination"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +40,7 @@ type _CableTermination CableTermination
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewCableTermination(id int32, url string, display string, cable int32, cableEnd string, terminationType string, terminationId int64, termination map[string]interface{}, created NullableTime, lastUpdated NullableTime) *CableTermination {
+func NewCableTermination(id int32, url string, display string, cable int32, cableEnd End, 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() string {
+func (o *CableTermination) GetCableEnd() End {
if o == nil {
- var ret string
+ var ret End
return ret
}
@@ -171,7 +171,7 @@ func (o *CableTermination) GetCableEnd() string {
// GetCableEndOk returns a tuple with the CableEnd field value
// and a boolean to check if the value has been set.
-func (o *CableTermination) GetCableEndOk() (*string, bool) {
+func (o *CableTermination) GetCableEndOk() (*End, bool) {
if o == nil {
return nil, false
}
@@ -179,7 +179,7 @@ func (o *CableTermination) GetCableEndOk() (*string, bool) {
}
// SetCableEnd sets field value
-func (o *CableTermination) SetCableEnd(v string) {
+func (o *CableTermination) SetCableEnd(v End) {
o.CableEnd = v
}
@@ -232,10 +232,10 @@ func (o *CableTermination) SetTerminationId(v int64) {
}
// GetTermination returns the Termination field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *CableTermination) GetTermination() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *CableTermination) GetTermination() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -245,15 +245,15 @@ func (o *CableTermination) GetTermination() map[string]interface{} {
// GetTerminationOk returns a tuple with the Termination 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 *CableTermination) GetTerminationOk() (map[string]interface{}, bool) {
+func (o *CableTermination) GetTerminationOk() (*interface{}, bool) {
if o == nil || IsNil(o.Termination) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Termination, true
+ return &o.Termination, true
}
// SetTermination sets field value
-func (o *CableTermination) SetTermination(v map[string]interface{}) {
+func (o *CableTermination) SetTermination(v interface{}) {
o.Termination = v
}
@@ -339,10 +339,40 @@ func (o CableTermination) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CableTermination) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CableTermination) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "cable",
+ "cable_end",
+ "termination_type",
+ "termination_id",
+ "termination",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varCableTermination := _CableTermination{}
- err = json.Unmarshal(bytes, &varCableTermination)
+ err = json.Unmarshal(data, &varCableTermination)
if err != nil {
return err
@@ -352,7 +382,7 @@ func (o *CableTermination) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_cable_termination_request.go b/model_cable_termination_request.go
index 20116a474c..a08ee880e5 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 CableTerminationRequest type satisfies the MappedNullable interface at compile time
@@ -19,9 +20,8 @@ var _ MappedNullable = &CableTerminationRequest{}
// CableTerminationRequest Adds support for custom fields and tags.
type CableTerminationRequest struct {
- Cable int32 `json:"cable"`
- // * `A` - A * `B` - B
- CableEnd string `json:"cable_end"`
+ Cable int32 `json:"cable"`
+ CableEnd End `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 string, terminationType string, terminationId int64) *CableTerminationRequest {
+func NewCableTerminationRequest(cable int32, cableEnd End, 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() string {
+func (o *CableTerminationRequest) GetCableEnd() End {
if o == nil {
- var ret string
+ var ret End
return ret
}
@@ -86,7 +86,7 @@ func (o *CableTerminationRequest) GetCableEnd() string {
// GetCableEndOk returns a tuple with the CableEnd field value
// and a boolean to check if the value has been set.
-func (o *CableTerminationRequest) GetCableEndOk() (*string, bool) {
+func (o *CableTerminationRequest) GetCableEndOk() (*End, bool) {
if o == nil {
return nil, false
}
@@ -94,7 +94,7 @@ func (o *CableTerminationRequest) GetCableEndOk() (*string, bool) {
}
// SetCableEnd sets field value
-func (o *CableTerminationRequest) SetCableEnd(v string) {
+func (o *CableTerminationRequest) SetCableEnd(v End) {
o.CableEnd = v
}
@@ -168,10 +168,34 @@ func (o CableTerminationRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CableTerminationRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CableTerminationRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "cable",
+ "cable_end",
+ "termination_type",
+ "termination_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)
+ }
+ }
+
varCableTerminationRequest := _CableTerminationRequest{}
- err = json.Unmarshal(bytes, &varCableTerminationRequest)
+ err = json.Unmarshal(data, &varCableTerminationRequest)
if err != nil {
return err
@@ -181,7 +205,7 @@ func (o *CableTerminationRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "cable")
delete(additionalProperties, "cable_end")
delete(additionalProperties, "termination_type")
diff --git a/model_cable_type.go b/model_cable_type.go
new file mode 100644
index 0000000000..400fba9224
--- /dev/null
+++ b/model_cable_type.go
@@ -0,0 +1,154 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 23cec96ef2..dbe0947f1b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -755,10 +756,40 @@ func (o Circuit) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Circuit) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Circuit) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "url",
+ "display",
+ "cid",
+ "provider",
+ "type",
+ "termination_a",
+ "termination_z",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varCircuit := _Circuit{}
- err = json.Unmarshal(bytes, &varCircuit)
+ err = json.Unmarshal(data, &varCircuit)
if err != nil {
return err
@@ -768,7 +799,7 @@ func (o *Circuit) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_circuit_circuit_termination.go b/model_circuit_circuit_termination.go
index 68ec160b68..5ada7def8d 100644
--- a/model_circuit_circuit_termination.go
+++ b/model_circuit_circuit_termination.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 CircuitCircuitTermination type satisfies the MappedNullable interface at compile time
@@ -367,10 +368,35 @@ func (o CircuitCircuitTermination) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CircuitCircuitTermination) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varCircuitCircuitTermination)
+ err = json.Unmarshal(data, &varCircuitCircuitTermination)
if err != nil {
return err
@@ -380,7 +406,7 @@ func (o *CircuitCircuitTermination) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_circuit_circuit_termination_request.go b/model_circuit_circuit_termination_request.go
index 4ef5e5b689..265473978c 100644
--- a/model_circuit_circuit_termination_request.go
+++ b/model_circuit_circuit_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 CircuitCircuitTerminationRequest type satisfies the MappedNullable interface at compile time
@@ -286,10 +287,32 @@ func (o CircuitCircuitTerminationRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *CircuitCircuitTerminationRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varCircuitCircuitTerminationRequest)
+ err = json.Unmarshal(data, &varCircuitCircuitTerminationRequest)
if err != nil {
return err
@@ -299,7 +322,7 @@ func (o *CircuitCircuitTerminationRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "site")
delete(additionalProperties, "provider_network")
delete(additionalProperties, "port_speed")
diff --git a/model_circuit_request.go b/model_circuit_request.go
index 98405b0119..60d5d937f8 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 CircuitRequest type satisfies the MappedNullable interface at compile time
@@ -24,11 +25,10 @@ type CircuitRequest struct {
Provider NestedProviderRequest `json:"provider"`
ProviderAccount NullableNestedProviderAccountRequest `json:"provider_account,omitempty"`
Type NestedCircuitTypeRequest `json:"type"`
- // * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned
- Status *string `json:"status,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- InstallDate NullableString `json:"install_date,omitempty"`
- TerminationDate NullableString `json:"termination_date,omitempty"`
+ Status *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"`
@@ -176,9 +176,9 @@ func (o *CircuitRequest) SetType(v NestedCircuitTypeRequest) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *CircuitRequest) GetStatus() string {
+func (o *CircuitRequest) GetStatus() CircuitStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret CircuitStatusValue
return ret
}
return *o.Status
@@ -186,7 +186,7 @@ func (o *CircuitRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *CircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -202,8 +202,8 @@ func (o *CircuitRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *CircuitRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field.
+func (o *CircuitRequest) SetStatus(v CircuitStatusValue) {
o.Status = &v
}
@@ -558,10 +558,33 @@ func (o CircuitRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CircuitRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CircuitRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "cid",
+ "provider",
+ "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)
+ }
+ }
+
varCircuitRequest := _CircuitRequest{}
- err = json.Unmarshal(bytes, &varCircuitRequest)
+ err = json.Unmarshal(data, &varCircuitRequest)
if err != nil {
return err
@@ -571,7 +594,7 @@ func (o *CircuitRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "cid")
delete(additionalProperties, "provider")
delete(additionalProperties, "provider_account")
diff --git a/model_circuit_status.go b/model_circuit_status.go
index f445460c11..062bac6681 100644
--- a/model_circuit_status.go
+++ b/model_circuit_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &CircuitStatus{}
// CircuitStatus struct for CircuitStatus
type CircuitStatus struct {
- // * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *CircuitStatusValue `json:"value,omitempty"`
+ Label *CircuitStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewCircuitStatusWithDefaults() *CircuitStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *CircuitStatus) GetValue() string {
+func (o *CircuitStatus) GetValue() CircuitStatusValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret CircuitStatusValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *CircuitStatus) GetValue() string {
// 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() (*string, bool) {
+func (o *CircuitStatus) GetValueOk() (*CircuitStatusValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *CircuitStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *CircuitStatus) SetValue(v string) {
+// 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() string {
+func (o *CircuitStatus) GetLabel() CircuitStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret CircuitStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *CircuitStatus) 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 *CircuitStatus) GetLabelOk() (*string, bool) {
+func (o *CircuitStatus) GetLabelOk() (*CircuitStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *CircuitStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *CircuitStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given CircuitStatusLabel and assigns it to the Label field.
+func (o *CircuitStatus) SetLabel(v CircuitStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o CircuitStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CircuitStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CircuitStatus) UnmarshalJSON(data []byte) (err error) {
varCircuitStatus := _CircuitStatus{}
- err = json.Unmarshal(bytes, &varCircuitStatus)
+ err = json.Unmarshal(data, &varCircuitStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *CircuitStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_circuit_status_label.go b/model_circuit_status_label.go
new file mode 100644
index 0000000000..68e76ab369
--- /dev/null
+++ b/model_circuit_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: 3.7.0 (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
new file mode 100644
index 0000000000..4e563384ea
--- /dev/null
+++ b/model_circuit_status_value.go
@@ -0,0 +1,118 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 7dcc3d9935..f95e3d10b9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -20,12 +21,11 @@ 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"`
- // * `A` - A * `Z` - Z
- TermSide string `json:"term_side"`
+ 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"`
// Physical circuit speed
@@ -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 string, cable NullableNestedCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *CircuitTermination {
+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 {
this := CircuitTermination{}
this.Id = id
this.Url = url
@@ -180,9 +180,9 @@ func (o *CircuitTermination) SetCircuit(v NestedCircuit) {
}
// GetTermSide returns the TermSide field value
-func (o *CircuitTermination) GetTermSide() string {
+func (o *CircuitTermination) GetTermSide() Termination {
if o == nil {
- var ret string
+ var ret Termination
return ret
}
@@ -191,7 +191,7 @@ func (o *CircuitTermination) GetTermSide() string {
// GetTermSideOk returns a tuple with the TermSide field value
// and a boolean to check if the value has been set.
-func (o *CircuitTermination) GetTermSideOk() (*string, bool) {
+func (o *CircuitTermination) GetTermSideOk() (*Termination, bool) {
if o == nil {
return nil, false
}
@@ -199,7 +199,7 @@ func (o *CircuitTermination) GetTermSideOk() (*string, bool) {
}
// SetTermSide sets field value
-func (o *CircuitTermination) SetTermSide(v string) {
+func (o *CircuitTermination) SetTermSide(v Termination) {
o.TermSide = v
}
@@ -801,10 +801,42 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CircuitTermination) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CircuitTermination) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "circuit",
+ "term_side",
+ "cable",
+ "cable_end",
+ "link_peers",
+ "link_peers_type",
+ "created",
+ "last_updated",
+ "_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)
+ }
+ }
+
varCircuitTermination := _CircuitTermination{}
- err = json.Unmarshal(bytes, &varCircuitTermination)
+ err = json.Unmarshal(data, &varCircuitTermination)
if err != nil {
return err
@@ -814,7 +846,7 @@ func (o *CircuitTermination) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_circuit_termination_request.go b/model_circuit_termination_request.go
index ea885b7ec5..4d0e2e4a35 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 CircuitTerminationRequest type satisfies the MappedNullable interface at compile time
@@ -19,9 +20,8 @@ var _ MappedNullable = &CircuitTerminationRequest{}
// CircuitTerminationRequest Adds support for custom fields and tags.
type CircuitTerminationRequest struct {
- Circuit NestedCircuitRequest `json:"circuit"`
- // * `A` - A * `Z` - Z
- TermSide string `json:"term_side"`
+ Circuit NestedCircuitRequest `json:"circuit"`
+ TermSide Termination `json:"term_side"`
Site NullableNestedSiteRequest `json:"site,omitempty"`
ProviderNetwork NullableNestedProviderNetworkRequest `json:"provider_network,omitempty"`
// Physical circuit 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 string) *CircuitTerminationRequest {
+func NewCircuitTerminationRequest(circuit NestedCircuitRequest, termSide Termination) *CircuitTerminationRequest {
this := CircuitTerminationRequest{}
this.Circuit = circuit
this.TermSide = termSide
@@ -86,9 +86,9 @@ func (o *CircuitTerminationRequest) SetCircuit(v NestedCircuitRequest) {
}
// GetTermSide returns the TermSide field value
-func (o *CircuitTerminationRequest) GetTermSide() string {
+func (o *CircuitTerminationRequest) GetTermSide() Termination {
if o == nil {
- var ret string
+ var ret Termination
return ret
}
@@ -97,7 +97,7 @@ func (o *CircuitTerminationRequest) GetTermSide() string {
// GetTermSideOk returns a tuple with the TermSide field value
// and a boolean to check if the value has been set.
-func (o *CircuitTerminationRequest) GetTermSideOk() (*string, bool) {
+func (o *CircuitTerminationRequest) GetTermSideOk() (*Termination, bool) {
if o == nil {
return nil, false
}
@@ -105,7 +105,7 @@ func (o *CircuitTerminationRequest) GetTermSideOk() (*string, bool) {
}
// SetTermSide sets field value
-func (o *CircuitTerminationRequest) SetTermSide(v string) {
+func (o *CircuitTerminationRequest) SetTermSide(v Termination) {
o.TermSide = v
}
@@ -523,10 +523,32 @@ func (o CircuitTerminationRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CircuitTerminationRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CircuitTerminationRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varCircuitTerminationRequest := _CircuitTerminationRequest{}
- err = json.Unmarshal(bytes, &varCircuitTerminationRequest)
+ err = json.Unmarshal(data, &varCircuitTerminationRequest)
if err != nil {
return err
@@ -536,7 +558,7 @@ func (o *CircuitTerminationRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "circuit")
delete(additionalProperties, "term_side")
delete(additionalProperties, "site")
diff --git a/model_circuit_type.go b/model_circuit_type.go
index 511f76467a..b9193a8951 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -25,6 +26,7 @@ type CircuitType struct {
Display string `json:"display"`
Name string `json:"name"`
Slug string `json:"slug"`
+ Color *string `json:"color,omitempty"`
Description *string `json:"description,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -181,6 +183,38 @@ func (o *CircuitType) SetSlug(v string) {
o.Slug = v
}
+// GetColor returns the Color field value if set, zero value otherwise.
+func (o *CircuitType) GetColor() string {
+ if o == nil || IsNil(o.Color) {
+ 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 *CircuitType) 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 *CircuitType) 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 *CircuitType) SetColor(v string) {
+ o.Color = &v
+}
+
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *CircuitType) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -368,6 +402,9 @@ func (o CircuitType) 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.Description) {
toSerialize["description"] = o.Description
}
@@ -388,10 +425,38 @@ func (o CircuitType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CircuitType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CircuitType) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "circuit_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)
+ }
+ }
+
varCircuitType := _CircuitType{}
- err = json.Unmarshal(bytes, &varCircuitType)
+ err = json.Unmarshal(data, &varCircuitType)
if err != nil {
return err
@@ -401,12 +466,13 @@ func (o *CircuitType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ 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, "color")
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
diff --git a/model_circuit_type_request.go b/model_circuit_type_request.go
index 0398f0bbca..16fdcf0e3b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 CircuitTypeRequest type satisfies the MappedNullable interface at compile time
@@ -21,6 +22,7 @@ var _ MappedNullable = &CircuitTypeRequest{}
type CircuitTypeRequest struct {
Name string `json:"name"`
Slug string `json:"slug"`
+ Color *string `json:"color,omitempty"`
Description *string `json:"description,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -96,6 +98,38 @@ func (o *CircuitTypeRequest) SetSlug(v string) {
o.Slug = v
}
+// GetColor returns the Color field value if set, zero value otherwise.
+func (o *CircuitTypeRequest) GetColor() string {
+ if o == nil || IsNil(o.Color) {
+ 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 *CircuitTypeRequest) 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 *CircuitTypeRequest) 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 *CircuitTypeRequest) SetColor(v string) {
+ o.Color = &v
+}
+
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *CircuitTypeRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -204,6 +238,9 @@ func (o CircuitTypeRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["name"] = o.Name
toSerialize["slug"] = o.Slug
+ if !IsNil(o.Color) {
+ toSerialize["color"] = o.Color
+ }
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -221,10 +258,32 @@ func (o CircuitTypeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CircuitTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CircuitTypeRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varCircuitTypeRequest := _CircuitTypeRequest{}
- err = json.Unmarshal(bytes, &varCircuitTypeRequest)
+ err = json.Unmarshal(data, &varCircuitTypeRequest)
if err != nil {
return err
@@ -234,9 +293,10 @@ func (o *CircuitTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
+ delete(additionalProperties, "color")
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
diff --git a/model_cluster.go b/model_cluster.go
index 8265f9d53d..2573ecee3f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -628,10 +629,39 @@ func (o Cluster) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Cluster) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Cluster) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "created",
+ "last_updated",
+ "device_count",
+ "virtualmachine_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)
+ }
+ }
+
varCluster := _Cluster{}
- err = json.Unmarshal(bytes, &varCluster)
+ err = json.Unmarshal(data, &varCluster)
if err != nil {
return err
@@ -641,7 +671,7 @@ func (o *Cluster) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_cluster_group.go b/model_cluster_group.go
index b15e4748f3..5d66a391e7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -388,10 +389,38 @@ func (o ClusterGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ClusterGroup) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ClusterGroup) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "cluster_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)
+ }
+ }
+
varClusterGroup := _ClusterGroup{}
- err = json.Unmarshal(bytes, &varClusterGroup)
+ err = json.Unmarshal(data, &varClusterGroup)
if err != nil {
return err
@@ -401,7 +430,7 @@ func (o *ClusterGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_cluster_group_request.go b/model_cluster_group_request.go
index d3f1d7eac1..ffea325a12 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ClusterGroupRequest type satisfies the MappedNullable interface at compile time
@@ -221,10 +222,32 @@ func (o ClusterGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ClusterGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ClusterGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varClusterGroupRequest := _ClusterGroupRequest{}
- err = json.Unmarshal(bytes, &varClusterGroupRequest)
+ err = json.Unmarshal(data, &varClusterGroupRequest)
if err != nil {
return err
@@ -234,7 +257,7 @@ func (o *ClusterGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "description")
diff --git a/model_cluster_request.go b/model_cluster_request.go
index 7c7b5f3ebc..f17c8b5817 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ClusterRequest type satisfies the MappedNullable interface at compile time
@@ -19,17 +20,16 @@ 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"`
- // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline
- Status *string `json:"status,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Site NullableNestedSiteRequest `json:"site,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -146,9 +146,9 @@ func (o *ClusterRequest) UnsetGroup() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *ClusterRequest) GetStatus() string {
+func (o *ClusterRequest) GetStatus() ClusterStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret ClusterStatusValue
return ret
}
return *o.Status
@@ -156,7 +156,7 @@ func (o *ClusterRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *ClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -172,8 +172,8 @@ func (o *ClusterRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *ClusterRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field.
+func (o *ClusterRequest) SetStatus(v ClusterStatusValue) {
o.Status = &v
}
@@ -435,10 +435,32 @@ func (o ClusterRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ClusterRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ClusterRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "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)
+ }
+ }
+
varClusterRequest := _ClusterRequest{}
- err = json.Unmarshal(bytes, &varClusterRequest)
+ err = json.Unmarshal(data, &varClusterRequest)
if err != nil {
return err
@@ -448,7 +470,7 @@ func (o *ClusterRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "type")
delete(additionalProperties, "group")
diff --git a/model_cluster_status.go b/model_cluster_status.go
index 7502b381c9..ca075e7ab2 100644
--- a/model_cluster_status.go
+++ b/model_cluster_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &ClusterStatus{}
// ClusterStatus struct for ClusterStatus
type ClusterStatus struct {
- // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *ClusterStatusValue `json:"value,omitempty"`
+ Label *ClusterStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewClusterStatusWithDefaults() *ClusterStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *ClusterStatus) GetValue() string {
+func (o *ClusterStatus) GetValue() ClusterStatusValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret ClusterStatusValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *ClusterStatus) GetValue() string {
// 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() (*string, bool) {
+func (o *ClusterStatus) GetValueOk() (*ClusterStatusValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *ClusterStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *ClusterStatus) SetValue(v string) {
+// 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() string {
+func (o *ClusterStatus) GetLabel() ClusterStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret ClusterStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *ClusterStatus) 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 *ClusterStatus) GetLabelOk() (*string, bool) {
+func (o *ClusterStatus) GetLabelOk() (*ClusterStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *ClusterStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *ClusterStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given ClusterStatusLabel and assigns it to the Label field.
+func (o *ClusterStatus) SetLabel(v ClusterStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o ClusterStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ClusterStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ClusterStatus) UnmarshalJSON(data []byte) (err error) {
varClusterStatus := _ClusterStatus{}
- err = json.Unmarshal(bytes, &varClusterStatus)
+ err = json.Unmarshal(data, &varClusterStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *ClusterStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_cluster_status_label.go b/model_cluster_status_label.go
new file mode 100644
index 0000000000..c7ca580721
--- /dev/null
+++ b/model_cluster_status_label.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..a9f02a72a2
--- /dev/null
+++ b/model_cluster_status_value.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 00b13e4e02..352907d559 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -388,10 +389,38 @@ func (o ClusterType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ClusterType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ClusterType) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "cluster_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)
+ }
+ }
+
varClusterType := _ClusterType{}
- err = json.Unmarshal(bytes, &varClusterType)
+ err = json.Unmarshal(data, &varClusterType)
if err != nil {
return err
@@ -401,7 +430,7 @@ func (o *ClusterType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_cluster_type_request.go b/model_cluster_type_request.go
index 6b4bac4ac7..6938e8a753 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ClusterTypeRequest type satisfies the MappedNullable interface at compile time
@@ -221,10 +222,32 @@ func (o ClusterTypeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ClusterTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ClusterTypeRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varClusterTypeRequest := _ClusterTypeRequest{}
- err = json.Unmarshal(bytes, &varClusterTypeRequest)
+ err = json.Unmarshal(data, &varClusterTypeRequest)
if err != nil {
return err
@@ -234,7 +257,7 @@ func (o *ClusterTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "description")
diff --git a/model_component_nested_module.go b/model_component_nested_module.go
index 08b6c4ae9b..9cbe837cbb 100644
--- a/model_component_nested_module.go
+++ b/model_component_nested_module.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ComponentNestedModule type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o ComponentNestedModule) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ComponentNestedModule) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varComponentNestedModule)
+ err = json.Unmarshal(data, &varComponentNestedModule)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *ComponentNestedModule) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_component_nested_module_request.go b/model_component_nested_module_request.go
index 4f02d4fdbb..947c61dc60 100644
--- a/model_component_nested_module_request.go
+++ b/model_component_nested_module_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ComponentNestedModuleRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o ComponentNestedModuleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ComponentNestedModuleRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varComponentNestedModuleRequest)
+ err = json.Unmarshal(data, &varComponentNestedModuleRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *ComponentNestedModuleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_config_context.go b/model_config_context.go
index b5d56a8202..ee5269f65c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -42,12 +43,12 @@ type ConfigContext struct {
Tags []string `json:"tags,omitempty"`
DataSource *NestedDataSource `json:"data_source,omitempty"`
// Path to remote file (relative to data source root)
- DataPath string `json:"data_path"`
- DataFile NestedDataFile `json:"data_file"`
- DataSynced NullableTime `json:"data_synced"`
- Data map[string]interface{} `json:"data"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ DataPath string `json:"data_path"`
+ DataFile NestedDataFile `json:"data_file"`
+ DataSynced NullableTime `json:"data_synced"`
+ Data interface{} `json:"data"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
AdditionalProperties map[string]interface{}
}
@@ -57,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 map[string]interface{}, created NullableTime, lastUpdated NullableTime) *ConfigContext {
+func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile NestedDataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime) *ConfigContext {
this := ConfigContext{}
this.Id = id
this.Url = url
@@ -795,9 +796,10 @@ func (o *ConfigContext) SetDataSynced(v time.Time) {
}
// GetData returns the Data field value
-func (o *ConfigContext) GetData() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *ConfigContext) GetData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -806,15 +808,16 @@ func (o *ConfigContext) GetData() map[string]interface{} {
// GetDataOk returns a tuple with the Data field value
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetDataOk() (map[string]interface{}, bool) {
- if o == nil {
- return map[string]interface{}{}, false
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ConfigContext) GetDataOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Data) {
+ return nil, false
}
- return o.Data, true
+ return &o.Data, true
}
// SetData sets field value
-func (o *ConfigContext) SetData(v map[string]interface{}) {
+func (o *ConfigContext) SetData(v interface{}) {
o.Data = v
}
@@ -938,7 +941,9 @@ func (o ConfigContext) ToMap() (map[string]interface{}, error) {
toSerialize["data_path"] = o.DataPath
toSerialize["data_file"] = o.DataFile
toSerialize["data_synced"] = o.DataSynced.Get()
- toSerialize["data"] = o.Data
+ if o.Data != nil {
+ toSerialize["data"] = o.Data
+ }
toSerialize["created"] = o.Created.Get()
toSerialize["last_updated"] = o.LastUpdated.Get()
@@ -949,10 +954,40 @@ func (o ConfigContext) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ConfigContext) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConfigContext) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "data_path",
+ "data_file",
+ "data_synced",
+ "data",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varConfigContext := _ConfigContext{}
- err = json.Unmarshal(bytes, &varConfigContext)
+ err = json.Unmarshal(data, &varConfigContext)
if err != nil {
return err
@@ -962,7 +997,7 @@ func (o *ConfigContext) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_config_context_request.go b/model_config_context_request.go
index c1319143e3..00d1f534f2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ConfigContextRequest type satisfies the MappedNullable interface at compile time
@@ -37,7 +38,7 @@ type ConfigContextRequest struct {
Tenants []int32 `json:"tenants,omitempty"`
Tags []string `json:"tags,omitempty"`
DataSource *NestedDataSourceRequest `json:"data_source,omitempty"`
- Data map[string]interface{} `json:"data"`
+ Data interface{} `json:"data"`
AdditionalProperties map[string]interface{}
}
@@ -47,7 +48,7 @@ type _ConfigContextRequest ConfigContextRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewConfigContextRequest(name string, data map[string]interface{}) *ConfigContextRequest {
+func NewConfigContextRequest(name string, data interface{}) *ConfigContextRequest {
this := ConfigContextRequest{}
this.Name = name
this.Data = data
@@ -631,9 +632,10 @@ func (o *ConfigContextRequest) SetDataSource(v NestedDataSourceRequest) {
}
// GetData returns the Data field value
-func (o *ConfigContextRequest) GetData() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *ConfigContextRequest) GetData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -642,15 +644,16 @@ func (o *ConfigContextRequest) GetData() map[string]interface{} {
// GetDataOk returns a tuple with the Data field value
// and a boolean to check if the value has been set.
-func (o *ConfigContextRequest) GetDataOk() (map[string]interface{}, bool) {
- if o == nil {
- return map[string]interface{}{}, false
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ConfigContextRequest) GetDataOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Data) {
+ return nil, false
}
- return o.Data, true
+ return &o.Data, true
}
// SetData sets field value
-func (o *ConfigContextRequest) SetData(v map[string]interface{}) {
+func (o *ConfigContextRequest) SetData(v interface{}) {
o.Data = v
}
@@ -716,7 +719,9 @@ func (o ConfigContextRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.DataSource) {
toSerialize["data_source"] = o.DataSource
}
- toSerialize["data"] = o.Data
+ if o.Data != nil {
+ toSerialize["data"] = o.Data
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -725,10 +730,32 @@ func (o ConfigContextRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConfigContextRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varConfigContextRequest := _ConfigContextRequest{}
- err = json.Unmarshal(bytes, &varConfigContextRequest)
+ err = json.Unmarshal(data, &varConfigContextRequest)
if err != nil {
return err
@@ -738,7 +765,7 @@ func (o *ConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "weight")
delete(additionalProperties, "description")
diff --git a/model_config_template.go b/model_config_template.go
index efbff6619a..8fb2898005 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -26,17 +27,17 @@ type ConfigTemplate struct {
Name string `json:"name"`
Description *string `json:"description,omitempty"`
// Any additional parameters to pass when constructing the Jinja2 environment.
- EnvironmentParams map[string]interface{} `json:"environment_params,omitempty"`
+ 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"`
- DataSynced NullableTime `json:"data_synced"`
- Tags []NestedTag `json:"tags,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ DataPath string `json:"data_path"`
+ DataFile *NestedDataFile `json:"data_file,omitempty"`
+ DataSynced NullableTime `json:"data_synced"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
AdditionalProperties map[string]interface{}
}
@@ -46,7 +47,7 @@ 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, dataFile NestedDataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ConfigTemplate {
+func NewConfigTemplate(id int32, url string, display string, name string, templateCode string, dataPath string, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ConfigTemplate {
this := ConfigTemplate{}
this.Id = id
this.Url = url
@@ -54,7 +55,6 @@ func NewConfigTemplate(id int32, url string, display string, name string, templa
this.Name = name
this.TemplateCode = templateCode
this.DataPath = dataPath
- this.DataFile = dataFile
this.DataSynced = dataSynced
this.Created = created
this.LastUpdated = lastUpdated
@@ -198,9 +198,9 @@ func (o *ConfigTemplate) SetDescription(v string) {
}
// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ConfigTemplate) GetEnvironmentParams() map[string]interface{} {
+func (o *ConfigTemplate) GetEnvironmentParams() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.EnvironmentParams
@@ -209,11 +209,11 @@ func (o *ConfigTemplate) GetEnvironmentParams() map[string]interface{} {
// 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() (map[string]interface{}, bool) {
+func (o *ConfigTemplate) GetEnvironmentParamsOk() (*interface{}, bool) {
if o == nil || IsNil(o.EnvironmentParams) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.EnvironmentParams, true
+ return &o.EnvironmentParams, true
}
// HasEnvironmentParams returns a boolean if a field has been set.
@@ -225,8 +225,8 @@ func (o *ConfigTemplate) HasEnvironmentParams() bool {
return false
}
-// SetEnvironmentParams gets a reference to the given map[string]interface{} and assigns it to the EnvironmentParams field.
-func (o *ConfigTemplate) SetEnvironmentParams(v map[string]interface{}) {
+// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field.
+func (o *ConfigTemplate) SetEnvironmentParams(v interface{}) {
o.EnvironmentParams = v
}
@@ -310,28 +310,36 @@ func (o *ConfigTemplate) SetDataPath(v string) {
o.DataPath = v
}
-// GetDataFile returns the DataFile field value
+// GetDataFile returns the DataFile field value if set, zero value otherwise.
func (o *ConfigTemplate) GetDataFile() NestedDataFile {
- if o == nil {
+ if o == nil || IsNil(o.DataFile) {
var ret NestedDataFile
return ret
}
-
- return o.DataFile
+ return *o.DataFile
}
-// GetDataFileOk returns a tuple with the DataFile field value
+// 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 {
+ if o == nil || IsNil(o.DataFile) {
return nil, false
}
- return &o.DataFile, true
+ return o.DataFile, true
}
-// SetDataFile sets field value
+// 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
+ o.DataFile = &v
}
// GetDataSynced returns the DataSynced field value
@@ -469,7 +477,9 @@ func (o ConfigTemplate) ToMap() (map[string]interface{}, error) {
toSerialize["data_source"] = o.DataSource
}
toSerialize["data_path"] = o.DataPath
- toSerialize["data_file"] = o.DataFile
+ if !IsNil(o.DataFile) {
+ toSerialize["data_file"] = o.DataFile
+ }
toSerialize["data_synced"] = o.DataSynced.Get()
if !IsNil(o.Tags) {
toSerialize["tags"] = o.Tags
@@ -484,10 +494,39 @@ func (o ConfigTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ConfigTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "template_code",
+ "data_path",
+ "data_synced",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varConfigTemplate := _ConfigTemplate{}
- err = json.Unmarshal(bytes, &varConfigTemplate)
+ err = json.Unmarshal(data, &varConfigTemplate)
if err != nil {
return err
@@ -497,7 +536,7 @@ func (o *ConfigTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_config_template_request.go b/model_config_template_request.go
index c053cedfc2..d0e895fbc0 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ConfigTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -22,7 +23,7 @@ type ConfigTemplateRequest struct {
Name string `json:"name"`
Description *string `json:"description,omitempty"`
// Any additional parameters to pass when constructing the Jinja2 environment.
- EnvironmentParams map[string]interface{} `json:"environment_params,omitempty"`
+ EnvironmentParams interface{} `json:"environment_params,omitempty"`
// Jinja2 template code.
TemplateCode string `json:"template_code"`
DataSource *NestedDataSourceRequest `json:"data_source,omitempty"`
@@ -108,9 +109,9 @@ func (o *ConfigTemplateRequest) SetDescription(v string) {
}
// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ConfigTemplateRequest) GetEnvironmentParams() map[string]interface{} {
+func (o *ConfigTemplateRequest) GetEnvironmentParams() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.EnvironmentParams
@@ -119,11 +120,11 @@ func (o *ConfigTemplateRequest) GetEnvironmentParams() map[string]interface{} {
// 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() (map[string]interface{}, bool) {
+func (o *ConfigTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool) {
if o == nil || IsNil(o.EnvironmentParams) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.EnvironmentParams, true
+ return &o.EnvironmentParams, true
}
// HasEnvironmentParams returns a boolean if a field has been set.
@@ -135,8 +136,8 @@ func (o *ConfigTemplateRequest) HasEnvironmentParams() bool {
return false
}
-// SetEnvironmentParams gets a reference to the given map[string]interface{} and assigns it to the EnvironmentParams field.
-func (o *ConfigTemplateRequest) SetEnvironmentParams(v map[string]interface{}) {
+// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field.
+func (o *ConfigTemplateRequest) SetEnvironmentParams(v interface{}) {
o.EnvironmentParams = v
}
@@ -260,10 +261,32 @@ func (o ConfigTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ConfigTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varConfigTemplateRequest := _ConfigTemplateRequest{}
- err = json.Unmarshal(bytes, &varConfigTemplateRequest)
+ err = json.Unmarshal(data, &varConfigTemplateRequest)
if err != nil {
return err
@@ -273,7 +296,7 @@ func (o *ConfigTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "description")
delete(additionalProperties, "environment_params")
diff --git a/model_console_port.go b/model_console_port.go
index 2c357442fc..af5111a09c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -784,10 +785,45 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ConsolePort) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConsolePort) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "cable",
+ "cable_end",
+ "link_peers",
+ "link_peers_type",
+ "connected_endpoints",
+ "connected_endpoints_type",
+ "connected_endpoints_reachable",
+ "created",
+ "last_updated",
+ "_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)
+ }
+ }
+
varConsolePort := _ConsolePort{}
- err = json.Unmarshal(bytes, &varConsolePort)
+ err = json.Unmarshal(data, &varConsolePort)
if err != nil {
return err
@@ -797,7 +833,7 @@ func (o *ConsolePort) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_console_port_request.go b/model_console_port_request.go
index 570e9d41bf..292514bcf6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ConsolePortRequest type satisfies the MappedNullable interface at compile time
@@ -23,12 +24,10 @@ type ConsolePortRequest struct {
Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
- Type *string `json:"type,omitempty"`
- // * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps
- Speed NullableInt32 `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortTypeValue `json:"type,omitempty"`
+ Speed NullableConsolePortRequestSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -181,9 +180,9 @@ func (o *ConsolePortRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *ConsolePortRequest) GetType() string {
+func (o *ConsolePortRequest) GetType() ConsolePortTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret ConsolePortTypeValue
return ret
}
return *o.Type
@@ -191,7 +190,7 @@ func (o *ConsolePortRequest) GetType() string {
// 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 *ConsolePortRequest) GetTypeOk() (*string, bool) {
+func (o *ConsolePortRequest) GetTypeOk() (*ConsolePortTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -207,15 +206,15 @@ func (o *ConsolePortRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *ConsolePortRequest) SetType(v string) {
+// SetType gets a reference to the given ConsolePortTypeValue and assigns it to the Type field.
+func (o *ConsolePortRequest) SetType(v ConsolePortTypeValue) {
o.Type = &v
}
// GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ConsolePortRequest) GetSpeed() int32 {
+func (o *ConsolePortRequest) GetSpeed() ConsolePortRequestSpeed {
if o == nil || IsNil(o.Speed.Get()) {
- var ret int32
+ var ret ConsolePortRequestSpeed
return ret
}
return *o.Speed.Get()
@@ -224,7 +223,7 @@ func (o *ConsolePortRequest) GetSpeed() int32 {
// GetSpeedOk returns a tuple with the Speed field value if set, nil otherwise
// and a 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) GetSpeedOk() (*int32, bool) {
+func (o *ConsolePortRequest) GetSpeedOk() (*ConsolePortRequestSpeed, bool) {
if o == nil {
return nil, false
}
@@ -240,8 +239,8 @@ func (o *ConsolePortRequest) HasSpeed() bool {
return false
}
-// SetSpeed gets a reference to the given NullableInt32 and assigns it to the Speed field.
-func (o *ConsolePortRequest) SetSpeed(v int32) {
+// SetSpeed gets a reference to the given NullableConsolePortRequestSpeed and assigns it to the Speed field.
+func (o *ConsolePortRequest) SetSpeed(v ConsolePortRequestSpeed) {
o.Speed.Set(&v)
}
@@ -427,10 +426,32 @@ func (o ConsolePortRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ConsolePortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConsolePortRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varConsolePortRequest := _ConsolePortRequest{}
- err = json.Unmarshal(bytes, &varConsolePortRequest)
+ err = json.Unmarshal(data, &varConsolePortRequest)
if err != nil {
return err
@@ -440,7 +461,7 @@ func (o *ConsolePortRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_console_port_request_speed.go b/model_console_port_request_speed.go
new file mode 100644
index 0000000000..b2cdbfa418
--- /dev/null
+++ b/model_console_port_request_speed.go
@@ -0,0 +1,122 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ConsolePortRequestSpeed * `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
+type ConsolePortRequestSpeed int32
+
+// List of ConsolePortRequest_speed
+const (
+ CONSOLEPORTREQUESTSPEED__1200 ConsolePortRequestSpeed = 1200
+ CONSOLEPORTREQUESTSPEED__2400 ConsolePortRequestSpeed = 2400
+ CONSOLEPORTREQUESTSPEED__4800 ConsolePortRequestSpeed = 4800
+ CONSOLEPORTREQUESTSPEED__9600 ConsolePortRequestSpeed = 9600
+ CONSOLEPORTREQUESTSPEED__19200 ConsolePortRequestSpeed = 19200
+ CONSOLEPORTREQUESTSPEED__38400 ConsolePortRequestSpeed = 38400
+ CONSOLEPORTREQUESTSPEED__57600 ConsolePortRequestSpeed = 57600
+ CONSOLEPORTREQUESTSPEED__115200 ConsolePortRequestSpeed = 115200
+)
+
+// All allowed values of ConsolePortRequestSpeed enum
+var AllowedConsolePortRequestSpeedEnumValues = []ConsolePortRequestSpeed{
+ 1200,
+ 2400,
+ 4800,
+ 9600,
+ 19200,
+ 38400,
+ 57600,
+ 115200,
+}
+
+func (v *ConsolePortRequestSpeed) UnmarshalJSON(src []byte) error {
+ var value int32
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ConsolePortRequestSpeed(value)
+ for _, existing := range AllowedConsolePortRequestSpeedEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ConsolePortRequestSpeed", value)
+}
+
+// NewConsolePortRequestSpeedFromValue returns a pointer to a valid ConsolePortRequestSpeed
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewConsolePortRequestSpeedFromValue(v int32) (*ConsolePortRequestSpeed, error) {
+ ev := ConsolePortRequestSpeed(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ConsolePortRequestSpeed: valid values are %v", v, AllowedConsolePortRequestSpeedEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ConsolePortRequestSpeed) IsValid() bool {
+ for _, existing := range AllowedConsolePortRequestSpeedEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ConsolePortRequest_speed value
+func (v ConsolePortRequestSpeed) Ptr() *ConsolePortRequestSpeed {
+ return &v
+}
+
+type NullableConsolePortRequestSpeed struct {
+ value *ConsolePortRequestSpeed
+ isSet bool
+}
+
+func (v NullableConsolePortRequestSpeed) Get() *ConsolePortRequestSpeed {
+ return v.value
+}
+
+func (v *NullableConsolePortRequestSpeed) Set(val *ConsolePortRequestSpeed) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableConsolePortRequestSpeed) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableConsolePortRequestSpeed) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableConsolePortRequestSpeed(val *ConsolePortRequestSpeed) *NullableConsolePortRequestSpeed {
+ return &NullableConsolePortRequestSpeed{value: val, isSet: true}
+}
+
+func (v NullableConsolePortRequestSpeed) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableConsolePortRequestSpeed) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_console_port_speed.go b/model_console_port_speed.go
index 9a9c53dc0f..4da3078678 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &ConsolePortSpeed{}
// ConsolePortSpeed struct for ConsolePortSpeed
type ConsolePortSpeed struct {
- // * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps
- Value *int32 `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *ConsolePortSpeedValue `json:"value,omitempty"`
+ Label *ConsolePortSpeedLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewConsolePortSpeedWithDefaults() *ConsolePortSpeed {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *ConsolePortSpeed) GetValue() int32 {
+func (o *ConsolePortSpeed) GetValue() ConsolePortSpeedValue {
if o == nil || IsNil(o.Value) {
- var ret int32
+ var ret ConsolePortSpeedValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *ConsolePortSpeed) GetValue() int32 {
// 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 *ConsolePortSpeed) GetValueOk() (*int32, bool) {
+func (o *ConsolePortSpeed) GetValueOk() (*ConsolePortSpeedValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *ConsolePortSpeed) HasValue() bool {
return false
}
-// SetValue gets a reference to the given int32 and assigns it to the Value field.
-func (o *ConsolePortSpeed) SetValue(v int32) {
+// SetValue gets a reference to the given ConsolePortSpeedValue and assigns it to the Value field.
+func (o *ConsolePortSpeed) SetValue(v ConsolePortSpeedValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *ConsolePortSpeed) GetLabel() string {
+func (o *ConsolePortSpeed) GetLabel() ConsolePortSpeedLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret ConsolePortSpeedLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *ConsolePortSpeed) 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 *ConsolePortSpeed) GetLabelOk() (*string, bool) {
+func (o *ConsolePortSpeed) GetLabelOk() (*ConsolePortSpeedLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *ConsolePortSpeed) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *ConsolePortSpeed) SetLabel(v string) {
+// SetLabel gets a reference to the given ConsolePortSpeedLabel and assigns it to the Label field.
+func (o *ConsolePortSpeed) SetLabel(v ConsolePortSpeedLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o ConsolePortSpeed) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ConsolePortSpeed) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConsolePortSpeed) UnmarshalJSON(data []byte) (err error) {
varConsolePortSpeed := _ConsolePortSpeed{}
- err = json.Unmarshal(bytes, &varConsolePortSpeed)
+ err = json.Unmarshal(data, &varConsolePortSpeed)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *ConsolePortSpeed) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_console_port_speed_label.go b/model_console_port_speed_label.go
new file mode 100644
index 0000000000..f881892217
--- /dev/null
+++ b/model_console_port_speed_label.go
@@ -0,0 +1,122 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ConsolePortSpeedLabel the model 'ConsolePortSpeedLabel'
+type ConsolePortSpeedLabel string
+
+// List of ConsolePort_speed_label
+const (
+ CONSOLEPORTSPEEDLABEL__1200_BPS ConsolePortSpeedLabel = "1200 bps"
+ CONSOLEPORTSPEEDLABEL__2400_BPS ConsolePortSpeedLabel = "2400 bps"
+ CONSOLEPORTSPEEDLABEL__4800_BPS ConsolePortSpeedLabel = "4800 bps"
+ CONSOLEPORTSPEEDLABEL__9600_BPS ConsolePortSpeedLabel = "9600 bps"
+ CONSOLEPORTSPEEDLABEL__19_2_KBPS ConsolePortSpeedLabel = "19.2 kbps"
+ CONSOLEPORTSPEEDLABEL__38_4_KBPS ConsolePortSpeedLabel = "38.4 kbps"
+ CONSOLEPORTSPEEDLABEL__57_6_KBPS ConsolePortSpeedLabel = "57.6 kbps"
+ CONSOLEPORTSPEEDLABEL__115_2_KBPS ConsolePortSpeedLabel = "115.2 kbps"
+)
+
+// All allowed values of ConsolePortSpeedLabel enum
+var AllowedConsolePortSpeedLabelEnumValues = []ConsolePortSpeedLabel{
+ "1200 bps",
+ "2400 bps",
+ "4800 bps",
+ "9600 bps",
+ "19.2 kbps",
+ "38.4 kbps",
+ "57.6 kbps",
+ "115.2 kbps",
+}
+
+func (v *ConsolePortSpeedLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ConsolePortSpeedLabel(value)
+ for _, existing := range AllowedConsolePortSpeedLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ConsolePortSpeedLabel", value)
+}
+
+// NewConsolePortSpeedLabelFromValue returns a pointer to a valid ConsolePortSpeedLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewConsolePortSpeedLabelFromValue(v string) (*ConsolePortSpeedLabel, error) {
+ ev := ConsolePortSpeedLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ConsolePortSpeedLabel: valid values are %v", v, AllowedConsolePortSpeedLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ConsolePortSpeedLabel) IsValid() bool {
+ for _, existing := range AllowedConsolePortSpeedLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ConsolePort_speed_label value
+func (v ConsolePortSpeedLabel) Ptr() *ConsolePortSpeedLabel {
+ return &v
+}
+
+type NullableConsolePortSpeedLabel struct {
+ value *ConsolePortSpeedLabel
+ isSet bool
+}
+
+func (v NullableConsolePortSpeedLabel) Get() *ConsolePortSpeedLabel {
+ return v.value
+}
+
+func (v *NullableConsolePortSpeedLabel) Set(val *ConsolePortSpeedLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableConsolePortSpeedLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableConsolePortSpeedLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableConsolePortSpeedLabel(val *ConsolePortSpeedLabel) *NullableConsolePortSpeedLabel {
+ return &NullableConsolePortSpeedLabel{value: val, isSet: true}
+}
+
+func (v NullableConsolePortSpeedLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableConsolePortSpeedLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_console_port_speed_value.go b/model_console_port_speed_value.go
new file mode 100644
index 0000000000..478d55a211
--- /dev/null
+++ b/model_console_port_speed_value.go
@@ -0,0 +1,122 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ConsolePortSpeedValue * `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
+type ConsolePortSpeedValue int32
+
+// List of ConsolePort_speed_value
+const (
+ CONSOLEPORTSPEEDVALUE__1200 ConsolePortSpeedValue = 1200
+ CONSOLEPORTSPEEDVALUE__2400 ConsolePortSpeedValue = 2400
+ CONSOLEPORTSPEEDVALUE__4800 ConsolePortSpeedValue = 4800
+ CONSOLEPORTSPEEDVALUE__9600 ConsolePortSpeedValue = 9600
+ CONSOLEPORTSPEEDVALUE__19200 ConsolePortSpeedValue = 19200
+ CONSOLEPORTSPEEDVALUE__38400 ConsolePortSpeedValue = 38400
+ CONSOLEPORTSPEEDVALUE__57600 ConsolePortSpeedValue = 57600
+ CONSOLEPORTSPEEDVALUE__115200 ConsolePortSpeedValue = 115200
+)
+
+// All allowed values of ConsolePortSpeedValue enum
+var AllowedConsolePortSpeedValueEnumValues = []ConsolePortSpeedValue{
+ 1200,
+ 2400,
+ 4800,
+ 9600,
+ 19200,
+ 38400,
+ 57600,
+ 115200,
+}
+
+func (v *ConsolePortSpeedValue) UnmarshalJSON(src []byte) error {
+ var value int32
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ConsolePortSpeedValue(value)
+ for _, existing := range AllowedConsolePortSpeedValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ConsolePortSpeedValue", value)
+}
+
+// NewConsolePortSpeedValueFromValue returns a pointer to a valid ConsolePortSpeedValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewConsolePortSpeedValueFromValue(v int32) (*ConsolePortSpeedValue, error) {
+ ev := ConsolePortSpeedValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ConsolePortSpeedValue: valid values are %v", v, AllowedConsolePortSpeedValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ConsolePortSpeedValue) IsValid() bool {
+ for _, existing := range AllowedConsolePortSpeedValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ConsolePort_speed_value value
+func (v ConsolePortSpeedValue) Ptr() *ConsolePortSpeedValue {
+ return &v
+}
+
+type NullableConsolePortSpeedValue struct {
+ value *ConsolePortSpeedValue
+ isSet bool
+}
+
+func (v NullableConsolePortSpeedValue) Get() *ConsolePortSpeedValue {
+ return v.value
+}
+
+func (v *NullableConsolePortSpeedValue) Set(val *ConsolePortSpeedValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableConsolePortSpeedValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableConsolePortSpeedValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableConsolePortSpeedValue(val *ConsolePortSpeedValue) *NullableConsolePortSpeedValue {
+ return &NullableConsolePortSpeedValue{value: val, isSet: true}
+}
+
+func (v NullableConsolePortSpeedValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableConsolePortSpeedValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_console_port_template.go b/model_console_port_template.go
index 46a07faa10..0ff1bce335 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -430,10 +431,36 @@ func (o ConsolePortTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ConsolePortTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConsolePortTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varConsolePortTemplate := _ConsolePortTemplate{}
- err = json.Unmarshal(bytes, &varConsolePortTemplate)
+ err = json.Unmarshal(data, &varConsolePortTemplate)
if err != nil {
return err
@@ -443,7 +470,7 @@ func (o *ConsolePortTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_console_port_template_request.go b/model_console_port_template_request.go
index b15fd23751..fd919e2769 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ConsolePortTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,10 +25,9 @@ type ConsolePortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
- Type *string `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortTypeValue `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -194,9 +194,9 @@ func (o *ConsolePortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *ConsolePortTemplateRequest) GetType() string {
+func (o *ConsolePortTemplateRequest) GetType() ConsolePortTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret ConsolePortTypeValue
return ret
}
return *o.Type
@@ -204,7 +204,7 @@ func (o *ConsolePortTemplateRequest) GetType() string {
// 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 *ConsolePortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *ConsolePortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -220,8 +220,8 @@ func (o *ConsolePortTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *ConsolePortTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given ConsolePortTypeValue and assigns it to the Type field.
+func (o *ConsolePortTemplateRequest) SetType(v ConsolePortTypeValue) {
o.Type = &v
}
@@ -291,10 +291,31 @@ func (o ConsolePortTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ConsolePortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConsolePortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varConsolePortTemplateRequest := _ConsolePortTemplateRequest{}
- err = json.Unmarshal(bytes, &varConsolePortTemplateRequest)
+ err = json.Unmarshal(data, &varConsolePortTemplateRequest)
if err != nil {
return err
@@ -304,7 +325,7 @@ func (o *ConsolePortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_console_port_type.go b/model_console_port_type.go
index 4612def624..9a69e21634 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &ConsolePortType{}
// ConsolePortType struct for ConsolePortType
type ConsolePortType struct {
- // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *ConsolePortTypeValue `json:"value,omitempty"`
+ Label *ConsolePortTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewConsolePortTypeWithDefaults() *ConsolePortType {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *ConsolePortType) GetValue() string {
+func (o *ConsolePortType) GetValue() ConsolePortTypeValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret ConsolePortTypeValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *ConsolePortType) GetValue() string {
// 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 *ConsolePortType) GetValueOk() (*string, bool) {
+func (o *ConsolePortType) GetValueOk() (*ConsolePortTypeValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *ConsolePortType) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *ConsolePortType) SetValue(v string) {
+// SetValue gets a reference to the given ConsolePortTypeValue and assigns it to the Value field.
+func (o *ConsolePortType) SetValue(v ConsolePortTypeValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *ConsolePortType) GetLabel() string {
+func (o *ConsolePortType) GetLabel() ConsolePortTypeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret ConsolePortTypeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *ConsolePortType) 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 *ConsolePortType) GetLabelOk() (*string, bool) {
+func (o *ConsolePortType) GetLabelOk() (*ConsolePortTypeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *ConsolePortType) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *ConsolePortType) SetLabel(v string) {
+// SetLabel gets a reference to the given ConsolePortTypeLabel and assigns it to the Label field.
+func (o *ConsolePortType) SetLabel(v ConsolePortTypeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o ConsolePortType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ConsolePortType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConsolePortType) UnmarshalJSON(data []byte) (err error) {
varConsolePortType := _ConsolePortType{}
- err = json.Unmarshal(bytes, &varConsolePortType)
+ err = json.Unmarshal(data, &varConsolePortType)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *ConsolePortType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_console_port_type_label.go b/model_console_port_type_label.go
new file mode 100644
index 0000000000..0389e5781c
--- /dev/null
+++ b/model_console_port_type_label.go
@@ -0,0 +1,136 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ConsolePortTypeLabel the model 'ConsolePortTypeLabel'
+type ConsolePortTypeLabel string
+
+// List of ConsolePort_type_label
+const (
+ CONSOLEPORTTYPELABEL_DE_9 ConsolePortTypeLabel = "DE-9"
+ CONSOLEPORTTYPELABEL_DB_25 ConsolePortTypeLabel = "DB-25"
+ CONSOLEPORTTYPELABEL_RJ_11 ConsolePortTypeLabel = "RJ-11"
+ CONSOLEPORTTYPELABEL_RJ_12 ConsolePortTypeLabel = "RJ-12"
+ CONSOLEPORTTYPELABEL_RJ_45 ConsolePortTypeLabel = "RJ-45"
+ CONSOLEPORTTYPELABEL_MINI_DIN_8 ConsolePortTypeLabel = "Mini-DIN 8"
+ CONSOLEPORTTYPELABEL_USB_TYPE_A ConsolePortTypeLabel = "USB Type A"
+ CONSOLEPORTTYPELABEL_USB_TYPE_B ConsolePortTypeLabel = "USB Type B"
+ CONSOLEPORTTYPELABEL_USB_TYPE_C ConsolePortTypeLabel = "USB Type C"
+ CONSOLEPORTTYPELABEL_USB_MINI_A ConsolePortTypeLabel = "USB Mini A"
+ CONSOLEPORTTYPELABEL_USB_MINI_B ConsolePortTypeLabel = "USB Mini B"
+ CONSOLEPORTTYPELABEL_USB_MICRO_A ConsolePortTypeLabel = "USB Micro A"
+ CONSOLEPORTTYPELABEL_USB_MICRO_B ConsolePortTypeLabel = "USB Micro B"
+ CONSOLEPORTTYPELABEL_USB_MICRO_AB ConsolePortTypeLabel = "USB Micro AB"
+ CONSOLEPORTTYPELABEL_OTHER ConsolePortTypeLabel = "Other"
+)
+
+// All allowed values of ConsolePortTypeLabel enum
+var AllowedConsolePortTypeLabelEnumValues = []ConsolePortTypeLabel{
+ "DE-9",
+ "DB-25",
+ "RJ-11",
+ "RJ-12",
+ "RJ-45",
+ "Mini-DIN 8",
+ "USB Type A",
+ "USB Type B",
+ "USB Type C",
+ "USB Mini A",
+ "USB Mini B",
+ "USB Micro A",
+ "USB Micro B",
+ "USB Micro AB",
+ "Other",
+}
+
+func (v *ConsolePortTypeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ConsolePortTypeLabel(value)
+ for _, existing := range AllowedConsolePortTypeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ConsolePortTypeLabel", value)
+}
+
+// NewConsolePortTypeLabelFromValue returns a pointer to a valid ConsolePortTypeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewConsolePortTypeLabelFromValue(v string) (*ConsolePortTypeLabel, error) {
+ ev := ConsolePortTypeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ConsolePortTypeLabel: valid values are %v", v, AllowedConsolePortTypeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ConsolePortTypeLabel) IsValid() bool {
+ for _, existing := range AllowedConsolePortTypeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ConsolePort_type_label value
+func (v ConsolePortTypeLabel) Ptr() *ConsolePortTypeLabel {
+ return &v
+}
+
+type NullableConsolePortTypeLabel struct {
+ value *ConsolePortTypeLabel
+ isSet bool
+}
+
+func (v NullableConsolePortTypeLabel) Get() *ConsolePortTypeLabel {
+ return v.value
+}
+
+func (v *NullableConsolePortTypeLabel) Set(val *ConsolePortTypeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableConsolePortTypeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableConsolePortTypeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableConsolePortTypeLabel(val *ConsolePortTypeLabel) *NullableConsolePortTypeLabel {
+ return &NullableConsolePortTypeLabel{value: val, isSet: true}
+}
+
+func (v NullableConsolePortTypeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableConsolePortTypeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_console_port_type_value.go b/model_console_port_type_value.go
new file mode 100644
index 0000000000..8340947943
--- /dev/null
+++ b/model_console_port_type_value.go
@@ -0,0 +1,138 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ConsolePortTypeValue * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
+type ConsolePortTypeValue string
+
+// List of ConsolePort_type_value
+const (
+ CONSOLEPORTTYPEVALUE_DE_9 ConsolePortTypeValue = "de-9"
+ CONSOLEPORTTYPEVALUE_DB_25 ConsolePortTypeValue = "db-25"
+ CONSOLEPORTTYPEVALUE_RJ_11 ConsolePortTypeValue = "rj-11"
+ CONSOLEPORTTYPEVALUE_RJ_12 ConsolePortTypeValue = "rj-12"
+ CONSOLEPORTTYPEVALUE_RJ_45 ConsolePortTypeValue = "rj-45"
+ CONSOLEPORTTYPEVALUE_MINI_DIN_8 ConsolePortTypeValue = "mini-din-8"
+ CONSOLEPORTTYPEVALUE_USB_A ConsolePortTypeValue = "usb-a"
+ CONSOLEPORTTYPEVALUE_USB_B ConsolePortTypeValue = "usb-b"
+ CONSOLEPORTTYPEVALUE_USB_C ConsolePortTypeValue = "usb-c"
+ CONSOLEPORTTYPEVALUE_USB_MINI_A ConsolePortTypeValue = "usb-mini-a"
+ CONSOLEPORTTYPEVALUE_USB_MINI_B ConsolePortTypeValue = "usb-mini-b"
+ CONSOLEPORTTYPEVALUE_USB_MICRO_A ConsolePortTypeValue = "usb-micro-a"
+ CONSOLEPORTTYPEVALUE_USB_MICRO_B ConsolePortTypeValue = "usb-micro-b"
+ CONSOLEPORTTYPEVALUE_USB_MICRO_AB ConsolePortTypeValue = "usb-micro-ab"
+ CONSOLEPORTTYPEVALUE_OTHER ConsolePortTypeValue = "other"
+ CONSOLEPORTTYPEVALUE_EMPTY ConsolePortTypeValue = ""
+)
+
+// All allowed values of ConsolePortTypeValue enum
+var AllowedConsolePortTypeValueEnumValues = []ConsolePortTypeValue{
+ "de-9",
+ "db-25",
+ "rj-11",
+ "rj-12",
+ "rj-45",
+ "mini-din-8",
+ "usb-a",
+ "usb-b",
+ "usb-c",
+ "usb-mini-a",
+ "usb-mini-b",
+ "usb-micro-a",
+ "usb-micro-b",
+ "usb-micro-ab",
+ "other",
+ "",
+}
+
+func (v *ConsolePortTypeValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ConsolePortTypeValue(value)
+ for _, existing := range AllowedConsolePortTypeValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ConsolePortTypeValue", value)
+}
+
+// NewConsolePortTypeValueFromValue returns a pointer to a valid ConsolePortTypeValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewConsolePortTypeValueFromValue(v string) (*ConsolePortTypeValue, error) {
+ ev := ConsolePortTypeValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ConsolePortTypeValue: valid values are %v", v, AllowedConsolePortTypeValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ConsolePortTypeValue) IsValid() bool {
+ for _, existing := range AllowedConsolePortTypeValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ConsolePort_type_value value
+func (v ConsolePortTypeValue) Ptr() *ConsolePortTypeValue {
+ return &v
+}
+
+type NullableConsolePortTypeValue struct {
+ value *ConsolePortTypeValue
+ isSet bool
+}
+
+func (v NullableConsolePortTypeValue) Get() *ConsolePortTypeValue {
+ return v.value
+}
+
+func (v *NullableConsolePortTypeValue) Set(val *ConsolePortTypeValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableConsolePortTypeValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableConsolePortTypeValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableConsolePortTypeValue(val *ConsolePortTypeValue) *NullableConsolePortTypeValue {
+ return &NullableConsolePortTypeValue{value: val, isSet: true}
+}
+
+func (v NullableConsolePortTypeValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableConsolePortTypeValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_console_server_port.go b/model_console_server_port.go
index 330bb4b40b..2cde8d77d1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -784,10 +785,45 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ConsoleServerPort) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConsoleServerPort) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "cable",
+ "cable_end",
+ "link_peers",
+ "link_peers_type",
+ "connected_endpoints",
+ "connected_endpoints_type",
+ "connected_endpoints_reachable",
+ "created",
+ "last_updated",
+ "_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)
+ }
+ }
+
varConsoleServerPort := _ConsoleServerPort{}
- err = json.Unmarshal(bytes, &varConsoleServerPort)
+ err = json.Unmarshal(data, &varConsoleServerPort)
if err != nil {
return err
@@ -797,7 +833,7 @@ func (o *ConsoleServerPort) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_console_server_port_request.go b/model_console_server_port_request.go
index fa45539c32..66af59b779 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ConsoleServerPortRequest type satisfies the MappedNullable interface at compile time
@@ -23,12 +24,10 @@ type ConsoleServerPortRequest struct {
Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
- Type *string `json:"type,omitempty"`
- // * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps
- Speed NullableInt32 `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortTypeValue `json:"type,omitempty"`
+ Speed NullableConsolePortRequestSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -181,9 +180,9 @@ func (o *ConsoleServerPortRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *ConsoleServerPortRequest) GetType() string {
+func (o *ConsoleServerPortRequest) GetType() ConsolePortTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret ConsolePortTypeValue
return ret
}
return *o.Type
@@ -191,7 +190,7 @@ func (o *ConsoleServerPortRequest) GetType() string {
// 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 *ConsoleServerPortRequest) GetTypeOk() (*string, bool) {
+func (o *ConsoleServerPortRequest) GetTypeOk() (*ConsolePortTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -207,15 +206,15 @@ func (o *ConsoleServerPortRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *ConsoleServerPortRequest) SetType(v string) {
+// SetType gets a reference to the given ConsolePortTypeValue and assigns it to the Type field.
+func (o *ConsoleServerPortRequest) SetType(v ConsolePortTypeValue) {
o.Type = &v
}
// GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ConsoleServerPortRequest) GetSpeed() int32 {
+func (o *ConsoleServerPortRequest) GetSpeed() ConsolePortRequestSpeed {
if o == nil || IsNil(o.Speed.Get()) {
- var ret int32
+ var ret ConsolePortRequestSpeed
return ret
}
return *o.Speed.Get()
@@ -224,7 +223,7 @@ func (o *ConsoleServerPortRequest) GetSpeed() int32 {
// GetSpeedOk returns a tuple with the Speed field value if set, nil otherwise
// and a 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) GetSpeedOk() (*int32, bool) {
+func (o *ConsoleServerPortRequest) GetSpeedOk() (*ConsolePortRequestSpeed, bool) {
if o == nil {
return nil, false
}
@@ -240,8 +239,8 @@ func (o *ConsoleServerPortRequest) HasSpeed() bool {
return false
}
-// SetSpeed gets a reference to the given NullableInt32 and assigns it to the Speed field.
-func (o *ConsoleServerPortRequest) SetSpeed(v int32) {
+// SetSpeed gets a reference to the given NullableConsolePortRequestSpeed and assigns it to the Speed field.
+func (o *ConsoleServerPortRequest) SetSpeed(v ConsolePortRequestSpeed) {
o.Speed.Set(&v)
}
@@ -427,10 +426,32 @@ func (o ConsoleServerPortRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ConsoleServerPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConsoleServerPortRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varConsoleServerPortRequest := _ConsoleServerPortRequest{}
- err = json.Unmarshal(bytes, &varConsoleServerPortRequest)
+ err = json.Unmarshal(data, &varConsoleServerPortRequest)
if err != nil {
return err
@@ -440,7 +461,7 @@ func (o *ConsoleServerPortRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_console_server_port_template.go b/model_console_server_port_template.go
index 6c4cc1c0c6..89fb762127 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -430,10 +431,36 @@ func (o ConsoleServerPortTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ConsoleServerPortTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConsoleServerPortTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varConsoleServerPortTemplate := _ConsoleServerPortTemplate{}
- err = json.Unmarshal(bytes, &varConsoleServerPortTemplate)
+ err = json.Unmarshal(data, &varConsoleServerPortTemplate)
if err != nil {
return err
@@ -443,7 +470,7 @@ func (o *ConsoleServerPortTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_console_server_port_template_request.go b/model_console_server_port_template_request.go
index bc25935e37..69313232d3 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ConsoleServerPortTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,10 +25,9 @@ type ConsoleServerPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
- Type *string `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortTypeValue `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -194,9 +194,9 @@ func (o *ConsoleServerPortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *ConsoleServerPortTemplateRequest) GetType() string {
+func (o *ConsoleServerPortTemplateRequest) GetType() ConsolePortTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret ConsolePortTypeValue
return ret
}
return *o.Type
@@ -204,7 +204,7 @@ func (o *ConsoleServerPortTemplateRequest) GetType() string {
// 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 *ConsoleServerPortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *ConsoleServerPortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -220,8 +220,8 @@ func (o *ConsoleServerPortTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *ConsoleServerPortTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given ConsolePortTypeValue and assigns it to the Type field.
+func (o *ConsoleServerPortTemplateRequest) SetType(v ConsolePortTypeValue) {
o.Type = &v
}
@@ -291,10 +291,31 @@ func (o ConsoleServerPortTemplateRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *ConsoleServerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ConsoleServerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varConsoleServerPortTemplateRequest := _ConsoleServerPortTemplateRequest{}
- err = json.Unmarshal(bytes, &varConsoleServerPortTemplateRequest)
+ err = json.Unmarshal(data, &varConsoleServerPortTemplateRequest)
if err != nil {
return err
@@ -304,7 +325,7 @@ func (o *ConsoleServerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_contact.go b/model_contact.go
index 99b41e9835..3309d4e190 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -597,10 +598,36 @@ func (o Contact) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Contact) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Contact) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varContact := _Contact{}
- err = json.Unmarshal(bytes, &varContact)
+ err = json.Unmarshal(data, &varContact)
if err != nil {
return err
@@ -610,7 +637,7 @@ func (o *Contact) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_contact_assignment.go b/model_contact_assignment.go
index 016a54dd04..3c4b304baa 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -30,6 +31,7 @@ type ContactAssignment struct {
Role NullableNestedContactRole `json:"role,omitempty"`
Priority *ContactAssignmentPriority `json:"priority,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
LastUpdated NullableTime `json:"last_updated"`
AdditionalProperties map[string]interface{}
@@ -338,6 +340,38 @@ func (o *ContactAssignment) SetTags(v []NestedTag) {
o.Tags = v
}
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *ContactAssignment) 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 *ContactAssignment) 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 *ContactAssignment) 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 *ContactAssignment) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
// GetCreated returns the Created field value
// If the value is explicit nil, the zero value for time.Time will be returned
func (o *ContactAssignment) GetCreated() time.Time {
@@ -416,6 +450,9 @@ func (o ContactAssignment) ToMap() (map[string]interface{}, error) {
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()
@@ -426,10 +463,39 @@ func (o ContactAssignment) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ContactAssignment) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ContactAssignment) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "content_type",
+ "object_id",
+ "object",
+ "contact",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varContactAssignment := _ContactAssignment{}
- err = json.Unmarshal(bytes, &varContactAssignment)
+ err = json.Unmarshal(data, &varContactAssignment)
if err != nil {
return err
@@ -439,7 +505,7 @@ func (o *ContactAssignment) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
@@ -450,6 +516,7 @@ func (o *ContactAssignment) UnmarshalJSON(bytes []byte) (err error) {
delete(additionalProperties, "role")
delete(additionalProperties, "priority")
delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
delete(additionalProperties, "created")
delete(additionalProperties, "last_updated")
o.AdditionalProperties = additionalProperties
diff --git a/model_contact_assignment_priority.go b/model_contact_assignment_priority.go
index 8f4f1840f0..6fbcf4659e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &ContactAssignmentPriority{}
// ContactAssignmentPriority struct for ContactAssignmentPriority
type ContactAssignmentPriority struct {
- // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *ContactAssignmentPriorityValue `json:"value,omitempty"`
+ Label *ContactAssignmentPriorityLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewContactAssignmentPriorityWithDefaults() *ContactAssignmentPriority {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *ContactAssignmentPriority) GetValue() string {
+func (o *ContactAssignmentPriority) GetValue() ContactAssignmentPriorityValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret ContactAssignmentPriorityValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *ContactAssignmentPriority) GetValue() string {
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ContactAssignmentPriority) GetValueOk() (*string, bool) {
+func (o *ContactAssignmentPriority) GetValueOk() (*ContactAssignmentPriorityValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *ContactAssignmentPriority) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *ContactAssignmentPriority) SetValue(v string) {
+// SetValue gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Value field.
+func (o *ContactAssignmentPriority) SetValue(v ContactAssignmentPriorityValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *ContactAssignmentPriority) GetLabel() string {
+func (o *ContactAssignmentPriority) GetLabel() ContactAssignmentPriorityLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret ContactAssignmentPriorityLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *ContactAssignmentPriority) 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 *ContactAssignmentPriority) GetLabelOk() (*string, bool) {
+func (o *ContactAssignmentPriority) GetLabelOk() (*ContactAssignmentPriorityLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *ContactAssignmentPriority) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *ContactAssignmentPriority) SetLabel(v string) {
+// SetLabel gets a reference to the given ContactAssignmentPriorityLabel and assigns it to the Label field.
+func (o *ContactAssignmentPriority) SetLabel(v ContactAssignmentPriorityLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o ContactAssignmentPriority) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ContactAssignmentPriority) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ContactAssignmentPriority) UnmarshalJSON(data []byte) (err error) {
varContactAssignmentPriority := _ContactAssignmentPriority{}
- err = json.Unmarshal(bytes, &varContactAssignmentPriority)
+ err = json.Unmarshal(data, &varContactAssignmentPriority)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *ContactAssignmentPriority) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_contact_assignment_priority_label.go b/model_contact_assignment_priority_label.go
new file mode 100644
index 0000000000..2bc8efffed
--- /dev/null
+++ b/model_contact_assignment_priority_label.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ContactAssignmentPriorityLabel the model 'ContactAssignmentPriorityLabel'
+type ContactAssignmentPriorityLabel string
+
+// List of ContactAssignment_priority_label
+const (
+ CONTACTASSIGNMENTPRIORITYLABEL_PRIMARY ContactAssignmentPriorityLabel = "Primary"
+ CONTACTASSIGNMENTPRIORITYLABEL_SECONDARY ContactAssignmentPriorityLabel = "Secondary"
+ CONTACTASSIGNMENTPRIORITYLABEL_TERTIARY ContactAssignmentPriorityLabel = "Tertiary"
+ CONTACTASSIGNMENTPRIORITYLABEL_INACTIVE ContactAssignmentPriorityLabel = "Inactive"
+)
+
+// All allowed values of ContactAssignmentPriorityLabel enum
+var AllowedContactAssignmentPriorityLabelEnumValues = []ContactAssignmentPriorityLabel{
+ "Primary",
+ "Secondary",
+ "Tertiary",
+ "Inactive",
+}
+
+func (v *ContactAssignmentPriorityLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ContactAssignmentPriorityLabel(value)
+ for _, existing := range AllowedContactAssignmentPriorityLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ContactAssignmentPriorityLabel", value)
+}
+
+// NewContactAssignmentPriorityLabelFromValue returns a pointer to a valid ContactAssignmentPriorityLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewContactAssignmentPriorityLabelFromValue(v string) (*ContactAssignmentPriorityLabel, error) {
+ ev := ContactAssignmentPriorityLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ContactAssignmentPriorityLabel: valid values are %v", v, AllowedContactAssignmentPriorityLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ContactAssignmentPriorityLabel) IsValid() bool {
+ for _, existing := range AllowedContactAssignmentPriorityLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ContactAssignment_priority_label value
+func (v ContactAssignmentPriorityLabel) Ptr() *ContactAssignmentPriorityLabel {
+ return &v
+}
+
+type NullableContactAssignmentPriorityLabel struct {
+ value *ContactAssignmentPriorityLabel
+ isSet bool
+}
+
+func (v NullableContactAssignmentPriorityLabel) Get() *ContactAssignmentPriorityLabel {
+ return v.value
+}
+
+func (v *NullableContactAssignmentPriorityLabel) Set(val *ContactAssignmentPriorityLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableContactAssignmentPriorityLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableContactAssignmentPriorityLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableContactAssignmentPriorityLabel(val *ContactAssignmentPriorityLabel) *NullableContactAssignmentPriorityLabel {
+ return &NullableContactAssignmentPriorityLabel{value: val, isSet: true}
+}
+
+func (v NullableContactAssignmentPriorityLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableContactAssignmentPriorityLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_contact_assignment_priority_value.go b/model_contact_assignment_priority_value.go
new file mode 100644
index 0000000000..af33616628
--- /dev/null
+++ b/model_contact_assignment_priority_value.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ContactAssignmentPriorityValue * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive
+type ContactAssignmentPriorityValue string
+
+// List of ContactAssignment_priority_value
+const (
+ CONTACTASSIGNMENTPRIORITYVALUE_PRIMARY ContactAssignmentPriorityValue = "primary"
+ CONTACTASSIGNMENTPRIORITYVALUE_SECONDARY ContactAssignmentPriorityValue = "secondary"
+ CONTACTASSIGNMENTPRIORITYVALUE_TERTIARY ContactAssignmentPriorityValue = "tertiary"
+ CONTACTASSIGNMENTPRIORITYVALUE_INACTIVE ContactAssignmentPriorityValue = "inactive"
+ CONTACTASSIGNMENTPRIORITYVALUE_EMPTY ContactAssignmentPriorityValue = ""
+)
+
+// All allowed values of ContactAssignmentPriorityValue enum
+var AllowedContactAssignmentPriorityValueEnumValues = []ContactAssignmentPriorityValue{
+ "primary",
+ "secondary",
+ "tertiary",
+ "inactive",
+ "",
+}
+
+func (v *ContactAssignmentPriorityValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ContactAssignmentPriorityValue(value)
+ for _, existing := range AllowedContactAssignmentPriorityValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ContactAssignmentPriorityValue", value)
+}
+
+// NewContactAssignmentPriorityValueFromValue returns a pointer to a valid ContactAssignmentPriorityValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewContactAssignmentPriorityValueFromValue(v string) (*ContactAssignmentPriorityValue, error) {
+ ev := ContactAssignmentPriorityValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ContactAssignmentPriorityValue: valid values are %v", v, AllowedContactAssignmentPriorityValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ContactAssignmentPriorityValue) IsValid() bool {
+ for _, existing := range AllowedContactAssignmentPriorityValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ContactAssignment_priority_value value
+func (v ContactAssignmentPriorityValue) Ptr() *ContactAssignmentPriorityValue {
+ return &v
+}
+
+type NullableContactAssignmentPriorityValue struct {
+ value *ContactAssignmentPriorityValue
+ isSet bool
+}
+
+func (v NullableContactAssignmentPriorityValue) Get() *ContactAssignmentPriorityValue {
+ return v.value
+}
+
+func (v *NullableContactAssignmentPriorityValue) Set(val *ContactAssignmentPriorityValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableContactAssignmentPriorityValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableContactAssignmentPriorityValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableContactAssignmentPriorityValue(val *ContactAssignmentPriorityValue) *NullableContactAssignmentPriorityValue {
+ return &NullableContactAssignmentPriorityValue{value: val, isSet: true}
+}
+
+func (v NullableContactAssignmentPriorityValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableContactAssignmentPriorityValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_contact_assignment_request.go b/model_contact_assignment_request.go
index 32d584c26e..9304b57b2b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ContactAssignmentRequest type satisfies the MappedNullable interface at compile time
@@ -19,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"`
- // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive
- Priority *string `json:"priority,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -167,9 +168,9 @@ func (o *ContactAssignmentRequest) UnsetRole() {
}
// GetPriority returns the Priority field value if set, zero value otherwise.
-func (o *ContactAssignmentRequest) GetPriority() string {
+func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue {
if o == nil || IsNil(o.Priority) {
- var ret string
+ var ret ContactAssignmentPriorityValue
return ret
}
return *o.Priority
@@ -177,7 +178,7 @@ func (o *ContactAssignmentRequest) GetPriority() string {
// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ContactAssignmentRequest) GetPriorityOk() (*string, bool) {
+func (o *ContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) {
if o == nil || IsNil(o.Priority) {
return nil, false
}
@@ -193,8 +194,8 @@ func (o *ContactAssignmentRequest) HasPriority() bool {
return false
}
-// SetPriority gets a reference to the given string and assigns it to the Priority field.
-func (o *ContactAssignmentRequest) SetPriority(v string) {
+// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field.
+func (o *ContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) {
o.Priority = &v
}
@@ -230,6 +231,38 @@ func (o *ContactAssignmentRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *ContactAssignmentRequest) 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 *ContactAssignmentRequest) 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 *ContactAssignmentRequest) 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 *ContactAssignmentRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
func (o ContactAssignmentRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -252,6 +285,9 @@ func (o ContactAssignmentRequest) ToMap() (map[string]interface{}, error) {
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
@@ -260,10 +296,33 @@ func (o ContactAssignmentRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ContactAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ContactAssignmentRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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_id",
+ "contact",
+ }
+
+ 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)
+ }
+ }
+
varContactAssignmentRequest := _ContactAssignmentRequest{}
- err = json.Unmarshal(bytes, &varContactAssignmentRequest)
+ err = json.Unmarshal(data, &varContactAssignmentRequest)
if err != nil {
return err
@@ -273,13 +332,14 @@ func (o *ContactAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "contact")
delete(additionalProperties, "role")
delete(additionalProperties, "priority")
delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_contact_group.go b/model_contact_group.go
index 0556bc1334..45287c23eb 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -462,10 +463,39 @@ func (o ContactGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ContactGroup) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "contact_count",
+ "_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)
+ }
+ }
+
varContactGroup := _ContactGroup{}
- err = json.Unmarshal(bytes, &varContactGroup)
+ err = json.Unmarshal(data, &varContactGroup)
if err != nil {
return err
@@ -475,7 +505,7 @@ func (o *ContactGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_contact_group_request.go b/model_contact_group_request.go
index fa7010e719..fd5da91c93 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ContactGroupRequest type satisfies the MappedNullable interface at compile time
@@ -268,10 +269,32 @@ func (o ContactGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ContactGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ContactGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varContactGroupRequest := _ContactGroupRequest{}
- err = json.Unmarshal(bytes, &varContactGroupRequest)
+ err = json.Unmarshal(data, &varContactGroupRequest)
if err != nil {
return err
@@ -281,7 +304,7 @@ func (o *ContactGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_contact_request.go b/model_contact_request.go
index eed161363f..c1901dc920 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ContactRequest type satisfies the MappedNullable interface at compile time
@@ -457,10 +458,31 @@ func (o ContactRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ContactRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ContactRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varContactRequest := _ContactRequest{}
- err = json.Unmarshal(bytes, &varContactRequest)
+ err = json.Unmarshal(data, &varContactRequest)
if err != nil {
return err
@@ -470,7 +492,7 @@ func (o *ContactRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "group")
delete(additionalProperties, "name")
delete(additionalProperties, "title")
diff --git a/model_contact_role.go b/model_contact_role.go
index b082db88f5..e5a88b4f7a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -361,10 +362,37 @@ func (o ContactRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ContactRole) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ContactRole) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varContactRole := _ContactRole{}
- err = json.Unmarshal(bytes, &varContactRole)
+ err = json.Unmarshal(data, &varContactRole)
if err != nil {
return err
@@ -374,7 +402,7 @@ func (o *ContactRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_contact_role_request.go b/model_contact_role_request.go
index e742882c20..65421039b1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ContactRoleRequest type satisfies the MappedNullable interface at compile time
@@ -221,10 +222,32 @@ func (o ContactRoleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ContactRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ContactRoleRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varContactRoleRequest := _ContactRoleRequest{}
- err = json.Unmarshal(bytes, &varContactRoleRequest)
+ err = json.Unmarshal(data, &varContactRoleRequest)
if err != nil {
return err
@@ -234,7 +257,7 @@ func (o *ContactRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "description")
diff --git a/model_content_type.go b/model_content_type.go
index 17a430f684..e2afc97eb5 100644
--- a/model_content_type.go
+++ b/model_content_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ContentType type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o ContentType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ContentType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ContentType) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "app_label",
+ "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)
+ }
+ }
+
varContentType := _ContentType{}
- err = json.Unmarshal(bytes, &varContentType)
+ err = json.Unmarshal(data, &varContentType)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *ContentType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_custom_field.go b/model_custom_field.go
index 3aae408899..0c3197e848 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -37,19 +38,20 @@ type CustomField struct {
// If true, this field is required when creating new objects or editing an existing object.
Required *bool `json:"required,omitempty"`
// Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored.
- SearchWeight *int32 `json:"search_weight,omitempty"`
- FilterLogic *CustomFieldFilterLogic `json:"filter_logic,omitempty"`
- UiVisibility *CustomFieldUiVisibility `json:"ui_visibility,omitempty"`
+ SearchWeight *int32 `json:"search_weight,omitempty"`
+ FilterLogic *CustomFieldFilterLogic `json:"filter_logic,omitempty"`
+ UiVisible *CustomFieldUiVisible `json:"ui_visible,omitempty"`
+ UiEditable *CustomFieldUiEditable `json:"ui_editable,omitempty"`
// Replicate this value when cloning objects
IsCloneable *bool `json:"is_cloneable,omitempty"`
// Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\").
- Default map[string]interface{} `json:"default,omitempty"`
+ Default interface{} `json:"default,omitempty"`
// Fields with higher weights appear lower in a form.
Weight *int32 `json:"weight,omitempty"`
// Minimum allowed value (for numeric fields)
- ValidationMinimum NullableInt32 `json:"validation_minimum,omitempty"`
+ ValidationMinimum NullableInt64 `json:"validation_minimum,omitempty"`
// Maximum allowed value (for numeric fields)
- ValidationMaximum NullableInt32 `json:"validation_maximum,omitempty"`
+ 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 *NestedCustomFieldChoiceSet `json:"choice_set,omitempty"`
@@ -478,36 +480,68 @@ func (o *CustomField) SetFilterLogic(v CustomFieldFilterLogic) {
o.FilterLogic = &v
}
-// GetUiVisibility returns the UiVisibility field value if set, zero value otherwise.
-func (o *CustomField) GetUiVisibility() CustomFieldUiVisibility {
- if o == nil || IsNil(o.UiVisibility) {
- var ret CustomFieldUiVisibility
+// GetUiVisible returns the UiVisible field value if set, zero value otherwise.
+func (o *CustomField) GetUiVisible() CustomFieldUiVisible {
+ if o == nil || IsNil(o.UiVisible) {
+ var ret CustomFieldUiVisible
return ret
}
- return *o.UiVisibility
+ return *o.UiVisible
}
-// GetUiVisibilityOk returns a tuple with the UiVisibility field value if set, nil otherwise
+// GetUiVisibleOk returns a tuple with the UiVisible field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *CustomField) GetUiVisibilityOk() (*CustomFieldUiVisibility, bool) {
- if o == nil || IsNil(o.UiVisibility) {
+func (o *CustomField) GetUiVisibleOk() (*CustomFieldUiVisible, bool) {
+ if o == nil || IsNil(o.UiVisible) {
return nil, false
}
- return o.UiVisibility, true
+ return o.UiVisible, true
}
-// HasUiVisibility returns a boolean if a field has been set.
-func (o *CustomField) HasUiVisibility() bool {
- if o != nil && !IsNil(o.UiVisibility) {
+// HasUiVisible returns a boolean if a field has been set.
+func (o *CustomField) HasUiVisible() bool {
+ if o != nil && !IsNil(o.UiVisible) {
return true
}
return false
}
-// SetUiVisibility gets a reference to the given CustomFieldUiVisibility and assigns it to the UiVisibility field.
-func (o *CustomField) SetUiVisibility(v CustomFieldUiVisibility) {
- o.UiVisibility = &v
+// SetUiVisible gets a reference to the given CustomFieldUiVisible and assigns it to the UiVisible field.
+func (o *CustomField) SetUiVisible(v CustomFieldUiVisible) {
+ o.UiVisible = &v
+}
+
+// GetUiEditable returns the UiEditable field value if set, zero value otherwise.
+func (o *CustomField) GetUiEditable() CustomFieldUiEditable {
+ if o == nil || IsNil(o.UiEditable) {
+ var ret CustomFieldUiEditable
+ return ret
+ }
+ return *o.UiEditable
+}
+
+// GetUiEditableOk returns a tuple with the UiEditable field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CustomField) GetUiEditableOk() (*CustomFieldUiEditable, bool) {
+ if o == nil || IsNil(o.UiEditable) {
+ return nil, false
+ }
+ return o.UiEditable, true
+}
+
+// HasUiEditable returns a boolean if a field has been set.
+func (o *CustomField) HasUiEditable() bool {
+ if o != nil && !IsNil(o.UiEditable) {
+ return true
+ }
+
+ return false
+}
+
+// SetUiEditable gets a reference to the given CustomFieldUiEditable and assigns it to the UiEditable field.
+func (o *CustomField) SetUiEditable(v CustomFieldUiEditable) {
+ o.UiEditable = &v
}
// GetIsCloneable returns the IsCloneable field value if set, zero value otherwise.
@@ -543,9 +577,9 @@ func (o *CustomField) SetIsCloneable(v bool) {
}
// GetDefault returns the Default field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CustomField) GetDefault() map[string]interface{} {
+func (o *CustomField) GetDefault() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.Default
@@ -554,11 +588,11 @@ func (o *CustomField) GetDefault() map[string]interface{} {
// GetDefaultOk returns a tuple with the Default field value if set, nil otherwise
// and a 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) GetDefaultOk() (map[string]interface{}, bool) {
+func (o *CustomField) GetDefaultOk() (*interface{}, bool) {
if o == nil || IsNil(o.Default) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Default, true
+ return &o.Default, true
}
// HasDefault returns a boolean if a field has been set.
@@ -570,8 +604,8 @@ func (o *CustomField) HasDefault() bool {
return false
}
-// SetDefault gets a reference to the given map[string]interface{} and assigns it to the Default field.
-func (o *CustomField) SetDefault(v map[string]interface{}) {
+// SetDefault gets a reference to the given interface{} and assigns it to the Default field.
+func (o *CustomField) SetDefault(v interface{}) {
o.Default = v
}
@@ -608,9 +642,9 @@ func (o *CustomField) SetWeight(v int32) {
}
// GetValidationMinimum returns the ValidationMinimum field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CustomField) GetValidationMinimum() int32 {
+func (o *CustomField) GetValidationMinimum() int64 {
if o == nil || IsNil(o.ValidationMinimum.Get()) {
- var ret int32
+ var ret int64
return ret
}
return *o.ValidationMinimum.Get()
@@ -619,7 +653,7 @@ func (o *CustomField) GetValidationMinimum() int32 {
// GetValidationMinimumOk returns a tuple with the ValidationMinimum field value if set, nil otherwise
// and a 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) GetValidationMinimumOk() (*int32, bool) {
+func (o *CustomField) GetValidationMinimumOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -635,8 +669,8 @@ func (o *CustomField) HasValidationMinimum() bool {
return false
}
-// SetValidationMinimum gets a reference to the given NullableInt32 and assigns it to the ValidationMinimum field.
-func (o *CustomField) SetValidationMinimum(v int32) {
+// SetValidationMinimum gets a reference to the given NullableInt64 and assigns it to the ValidationMinimum field.
+func (o *CustomField) SetValidationMinimum(v int64) {
o.ValidationMinimum.Set(&v)
}
@@ -651,9 +685,9 @@ func (o *CustomField) UnsetValidationMinimum() {
}
// GetValidationMaximum returns the ValidationMaximum field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CustomField) GetValidationMaximum() int32 {
+func (o *CustomField) GetValidationMaximum() int64 {
if o == nil || IsNil(o.ValidationMaximum.Get()) {
- var ret int32
+ var ret int64
return ret
}
return *o.ValidationMaximum.Get()
@@ -662,7 +696,7 @@ func (o *CustomField) GetValidationMaximum() int32 {
// GetValidationMaximumOk returns a tuple with the ValidationMaximum field value if set, nil otherwise
// and a 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) GetValidationMaximumOk() (*int32, bool) {
+func (o *CustomField) GetValidationMaximumOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -678,8 +712,8 @@ func (o *CustomField) HasValidationMaximum() bool {
return false
}
-// SetValidationMaximum gets a reference to the given NullableInt32 and assigns it to the ValidationMaximum field.
-func (o *CustomField) SetValidationMaximum(v int32) {
+// SetValidationMaximum gets a reference to the given NullableInt64 and assigns it to the ValidationMaximum field.
+func (o *CustomField) SetValidationMaximum(v int64) {
o.ValidationMaximum.Set(&v)
}
@@ -847,8 +881,11 @@ func (o CustomField) ToMap() (map[string]interface{}, error) {
if !IsNil(o.FilterLogic) {
toSerialize["filter_logic"] = o.FilterLogic
}
- if !IsNil(o.UiVisibility) {
- toSerialize["ui_visibility"] = o.UiVisibility
+ if !IsNil(o.UiVisible) {
+ toSerialize["ui_visible"] = o.UiVisible
+ }
+ if !IsNil(o.UiEditable) {
+ toSerialize["ui_editable"] = o.UiEditable
}
if !IsNil(o.IsCloneable) {
toSerialize["is_cloneable"] = o.IsCloneable
@@ -881,10 +918,39 @@ func (o CustomField) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CustomField) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CustomField) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "content_types",
+ "type",
+ "data_type",
+ "name",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varCustomField := _CustomField{}
- err = json.Unmarshal(bytes, &varCustomField)
+ err = json.Unmarshal(data, &varCustomField)
if err != nil {
return err
@@ -894,7 +960,7 @@ func (o *CustomField) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
@@ -909,7 +975,8 @@ func (o *CustomField) UnmarshalJSON(bytes []byte) (err error) {
delete(additionalProperties, "required")
delete(additionalProperties, "search_weight")
delete(additionalProperties, "filter_logic")
- delete(additionalProperties, "ui_visibility")
+ delete(additionalProperties, "ui_visible")
+ delete(additionalProperties, "ui_editable")
delete(additionalProperties, "is_cloneable")
delete(additionalProperties, "default")
delete(additionalProperties, "weight")
diff --git a/model_custom_field_choice_set.go b/model_custom_field_choice_set.go
index 588627982f..1652236257 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -399,10 +400,37 @@ func (o CustomFieldChoiceSet) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CustomFieldChoiceSet) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varCustomFieldChoiceSet := _CustomFieldChoiceSet{}
- err = json.Unmarshal(bytes, &varCustomFieldChoiceSet)
+ err = json.Unmarshal(data, &varCustomFieldChoiceSet)
if err != nil {
return err
@@ -412,7 +440,7 @@ func (o *CustomFieldChoiceSet) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_custom_field_choice_set_base_choices.go b/model_custom_field_choice_set_base_choices.go
index cd020c753b..f4f19fb9ba 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &CustomFieldChoiceSetBaseChoices{}
// CustomFieldChoiceSetBaseChoices struct for CustomFieldChoiceSetBaseChoices
type CustomFieldChoiceSetBaseChoices struct {
- // * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes)
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *CustomFieldChoiceSetBaseChoicesValue `json:"value,omitempty"`
+ Label *CustomFieldChoiceSetBaseChoicesLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewCustomFieldChoiceSetBaseChoicesWithDefaults() *CustomFieldChoiceSetBaseC
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *CustomFieldChoiceSetBaseChoices) GetValue() string {
+func (o *CustomFieldChoiceSetBaseChoices) GetValue() CustomFieldChoiceSetBaseChoicesValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret CustomFieldChoiceSetBaseChoicesValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *CustomFieldChoiceSetBaseChoices) GetValue() string {
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *CustomFieldChoiceSetBaseChoices) GetValueOk() (*string, bool) {
+func (o *CustomFieldChoiceSetBaseChoices) GetValueOk() (*CustomFieldChoiceSetBaseChoicesValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *CustomFieldChoiceSetBaseChoices) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *CustomFieldChoiceSetBaseChoices) SetValue(v string) {
+// SetValue gets a reference to the given CustomFieldChoiceSetBaseChoicesValue and assigns it to the Value field.
+func (o *CustomFieldChoiceSetBaseChoices) SetValue(v CustomFieldChoiceSetBaseChoicesValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *CustomFieldChoiceSetBaseChoices) GetLabel() string {
+func (o *CustomFieldChoiceSetBaseChoices) GetLabel() CustomFieldChoiceSetBaseChoicesLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret CustomFieldChoiceSetBaseChoicesLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *CustomFieldChoiceSetBaseChoices) 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 *CustomFieldChoiceSetBaseChoices) GetLabelOk() (*string, bool) {
+func (o *CustomFieldChoiceSetBaseChoices) GetLabelOk() (*CustomFieldChoiceSetBaseChoicesLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *CustomFieldChoiceSetBaseChoices) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *CustomFieldChoiceSetBaseChoices) SetLabel(v string) {
+// SetLabel gets a reference to the given CustomFieldChoiceSetBaseChoicesLabel and assigns it to the Label field.
+func (o *CustomFieldChoiceSetBaseChoices) SetLabel(v CustomFieldChoiceSetBaseChoicesLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o CustomFieldChoiceSetBaseChoices) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *CustomFieldChoiceSetBaseChoices) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CustomFieldChoiceSetBaseChoices) UnmarshalJSON(data []byte) (err error) {
varCustomFieldChoiceSetBaseChoices := _CustomFieldChoiceSetBaseChoices{}
- err = json.Unmarshal(bytes, &varCustomFieldChoiceSetBaseChoices)
+ err = json.Unmarshal(data, &varCustomFieldChoiceSetBaseChoices)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *CustomFieldChoiceSetBaseChoices) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_custom_field_choice_set_base_choices_label.go b/model_custom_field_choice_set_base_choices_label.go
new file mode 100644
index 0000000000..be3eeeb78c
--- /dev/null
+++ b/model_custom_field_choice_set_base_choices_label.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// CustomFieldChoiceSetBaseChoicesLabel the model 'CustomFieldChoiceSetBaseChoicesLabel'
+type CustomFieldChoiceSetBaseChoicesLabel string
+
+// List of CustomFieldChoiceSet_base_choices_label
+const (
+ CUSTOMFIELDCHOICESETBASECHOICESLABEL_IATA__AIRPORT_CODES CustomFieldChoiceSetBaseChoicesLabel = "IATA (Airport codes)"
+ CUSTOMFIELDCHOICESETBASECHOICESLABEL_ISO_3166__COUNTRY_CODES CustomFieldChoiceSetBaseChoicesLabel = "ISO 3166 (Country codes)"
+ CUSTOMFIELDCHOICESETBASECHOICESLABEL_UN_LOCODE__LOCATION_CODES CustomFieldChoiceSetBaseChoicesLabel = "UN/LOCODE (Location codes)"
+)
+
+// All allowed values of CustomFieldChoiceSetBaseChoicesLabel enum
+var AllowedCustomFieldChoiceSetBaseChoicesLabelEnumValues = []CustomFieldChoiceSetBaseChoicesLabel{
+ "IATA (Airport codes)",
+ "ISO 3166 (Country codes)",
+ "UN/LOCODE (Location codes)",
+}
+
+func (v *CustomFieldChoiceSetBaseChoicesLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := CustomFieldChoiceSetBaseChoicesLabel(value)
+ for _, existing := range AllowedCustomFieldChoiceSetBaseChoicesLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid CustomFieldChoiceSetBaseChoicesLabel", value)
+}
+
+// NewCustomFieldChoiceSetBaseChoicesLabelFromValue returns a pointer to a valid CustomFieldChoiceSetBaseChoicesLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewCustomFieldChoiceSetBaseChoicesLabelFromValue(v string) (*CustomFieldChoiceSetBaseChoicesLabel, error) {
+ ev := CustomFieldChoiceSetBaseChoicesLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for CustomFieldChoiceSetBaseChoicesLabel: valid values are %v", v, AllowedCustomFieldChoiceSetBaseChoicesLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v CustomFieldChoiceSetBaseChoicesLabel) IsValid() bool {
+ for _, existing := range AllowedCustomFieldChoiceSetBaseChoicesLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to CustomFieldChoiceSet_base_choices_label value
+func (v CustomFieldChoiceSetBaseChoicesLabel) Ptr() *CustomFieldChoiceSetBaseChoicesLabel {
+ return &v
+}
+
+type NullableCustomFieldChoiceSetBaseChoicesLabel struct {
+ value *CustomFieldChoiceSetBaseChoicesLabel
+ isSet bool
+}
+
+func (v NullableCustomFieldChoiceSetBaseChoicesLabel) Get() *CustomFieldChoiceSetBaseChoicesLabel {
+ return v.value
+}
+
+func (v *NullableCustomFieldChoiceSetBaseChoicesLabel) Set(val *CustomFieldChoiceSetBaseChoicesLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomFieldChoiceSetBaseChoicesLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomFieldChoiceSetBaseChoicesLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomFieldChoiceSetBaseChoicesLabel(val *CustomFieldChoiceSetBaseChoicesLabel) *NullableCustomFieldChoiceSetBaseChoicesLabel {
+ return &NullableCustomFieldChoiceSetBaseChoicesLabel{value: val, isSet: true}
+}
+
+func (v NullableCustomFieldChoiceSetBaseChoicesLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomFieldChoiceSetBaseChoicesLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_field_choice_set_base_choices_value.go b/model_custom_field_choice_set_base_choices_value.go
new file mode 100644
index 0000000000..65d5614b33
--- /dev/null
+++ b/model_custom_field_choice_set_base_choices_value.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// CustomFieldChoiceSetBaseChoicesValue * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes)
+type CustomFieldChoiceSetBaseChoicesValue string
+
+// List of CustomFieldChoiceSet_base_choices_value
+const (
+ CUSTOMFIELDCHOICESETBASECHOICESVALUE_IATA CustomFieldChoiceSetBaseChoicesValue = "IATA"
+ CUSTOMFIELDCHOICESETBASECHOICESVALUE_ISO_3166 CustomFieldChoiceSetBaseChoicesValue = "ISO_3166"
+ CUSTOMFIELDCHOICESETBASECHOICESVALUE_UN_LOCODE CustomFieldChoiceSetBaseChoicesValue = "UN_LOCODE"
+)
+
+// All allowed values of CustomFieldChoiceSetBaseChoicesValue enum
+var AllowedCustomFieldChoiceSetBaseChoicesValueEnumValues = []CustomFieldChoiceSetBaseChoicesValue{
+ "IATA",
+ "ISO_3166",
+ "UN_LOCODE",
+}
+
+func (v *CustomFieldChoiceSetBaseChoicesValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := CustomFieldChoiceSetBaseChoicesValue(value)
+ for _, existing := range AllowedCustomFieldChoiceSetBaseChoicesValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid CustomFieldChoiceSetBaseChoicesValue", value)
+}
+
+// NewCustomFieldChoiceSetBaseChoicesValueFromValue returns a pointer to a valid CustomFieldChoiceSetBaseChoicesValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewCustomFieldChoiceSetBaseChoicesValueFromValue(v string) (*CustomFieldChoiceSetBaseChoicesValue, error) {
+ ev := CustomFieldChoiceSetBaseChoicesValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for CustomFieldChoiceSetBaseChoicesValue: valid values are %v", v, AllowedCustomFieldChoiceSetBaseChoicesValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v CustomFieldChoiceSetBaseChoicesValue) IsValid() bool {
+ for _, existing := range AllowedCustomFieldChoiceSetBaseChoicesValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to CustomFieldChoiceSet_base_choices_value value
+func (v CustomFieldChoiceSetBaseChoicesValue) Ptr() *CustomFieldChoiceSetBaseChoicesValue {
+ return &v
+}
+
+type NullableCustomFieldChoiceSetBaseChoicesValue struct {
+ value *CustomFieldChoiceSetBaseChoicesValue
+ isSet bool
+}
+
+func (v NullableCustomFieldChoiceSetBaseChoicesValue) Get() *CustomFieldChoiceSetBaseChoicesValue {
+ return v.value
+}
+
+func (v *NullableCustomFieldChoiceSetBaseChoicesValue) Set(val *CustomFieldChoiceSetBaseChoicesValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomFieldChoiceSetBaseChoicesValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomFieldChoiceSetBaseChoicesValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomFieldChoiceSetBaseChoicesValue(val *CustomFieldChoiceSetBaseChoicesValue) *NullableCustomFieldChoiceSetBaseChoicesValue {
+ return &NullableCustomFieldChoiceSetBaseChoicesValue{value: val, isSet: true}
+}
+
+func (v NullableCustomFieldChoiceSetBaseChoicesValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomFieldChoiceSetBaseChoicesValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_field_choice_set_request.go b/model_custom_field_choice_set_request.go
index 8c06fcc63c..29bb2da5f9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 CustomFieldChoiceSetRequest type satisfies the MappedNullable interface at compile time
@@ -19,11 +20,10 @@ var _ MappedNullable = &CustomFieldChoiceSetRequest{}
// CustomFieldChoiceSetRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type CustomFieldChoiceSetRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- // * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes)
- BaseChoices *string `json:"base_choices,omitempty"`
- ExtraChoices [][]string `json:"extra_choices,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ BaseChoices *CustomFieldChoiceSetBaseChoicesValue `json:"base_choices,omitempty"`
+ ExtraChoices [][]string `json:"extra_choices,omitempty"`
// Choices are automatically ordered alphabetically
OrderAlphabetically *bool `json:"order_alphabetically,omitempty"`
AdditionalProperties map[string]interface{}
@@ -106,9 +106,9 @@ func (o *CustomFieldChoiceSetRequest) SetDescription(v string) {
}
// GetBaseChoices returns the BaseChoices field value if set, zero value otherwise.
-func (o *CustomFieldChoiceSetRequest) GetBaseChoices() string {
+func (o *CustomFieldChoiceSetRequest) GetBaseChoices() CustomFieldChoiceSetBaseChoicesValue {
if o == nil || IsNil(o.BaseChoices) {
- var ret string
+ var ret CustomFieldChoiceSetBaseChoicesValue
return ret
}
return *o.BaseChoices
@@ -116,7 +116,7 @@ func (o *CustomFieldChoiceSetRequest) GetBaseChoices() string {
// GetBaseChoicesOk returns a tuple with the BaseChoices field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *CustomFieldChoiceSetRequest) GetBaseChoicesOk() (*string, bool) {
+func (o *CustomFieldChoiceSetRequest) GetBaseChoicesOk() (*CustomFieldChoiceSetBaseChoicesValue, bool) {
if o == nil || IsNil(o.BaseChoices) {
return nil, false
}
@@ -132,8 +132,8 @@ func (o *CustomFieldChoiceSetRequest) HasBaseChoices() bool {
return false
}
-// SetBaseChoices gets a reference to the given string and assigns it to the BaseChoices field.
-func (o *CustomFieldChoiceSetRequest) SetBaseChoices(v string) {
+// SetBaseChoices gets a reference to the given CustomFieldChoiceSetBaseChoicesValue and assigns it to the BaseChoices field.
+func (o *CustomFieldChoiceSetRequest) SetBaseChoices(v CustomFieldChoiceSetBaseChoicesValue) {
o.BaseChoices = &v
}
@@ -233,10 +233,31 @@ func (o CustomFieldChoiceSetRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CustomFieldChoiceSetRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CustomFieldChoiceSetRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varCustomFieldChoiceSetRequest := _CustomFieldChoiceSetRequest{}
- err = json.Unmarshal(bytes, &varCustomFieldChoiceSetRequest)
+ err = json.Unmarshal(data, &varCustomFieldChoiceSetRequest)
if err != nil {
return err
@@ -246,7 +267,7 @@ func (o *CustomFieldChoiceSetRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "description")
delete(additionalProperties, "base_choices")
diff --git a/model_custom_field_filter_logic.go b/model_custom_field_filter_logic.go
index b0b1ca7947..7b89f4e4f5 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &CustomFieldFilterLogic{}
// CustomFieldFilterLogic struct for CustomFieldFilterLogic
type CustomFieldFilterLogic struct {
- // * `disabled` - Disabled * `loose` - Loose * `exact` - Exact
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *CustomFieldFilterLogicValue `json:"value,omitempty"`
+ Label *CustomFieldFilterLogicLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewCustomFieldFilterLogicWithDefaults() *CustomFieldFilterLogic {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *CustomFieldFilterLogic) GetValue() string {
+func (o *CustomFieldFilterLogic) GetValue() CustomFieldFilterLogicValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret CustomFieldFilterLogicValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *CustomFieldFilterLogic) GetValue() string {
// 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 *CustomFieldFilterLogic) GetValueOk() (*string, bool) {
+func (o *CustomFieldFilterLogic) GetValueOk() (*CustomFieldFilterLogicValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *CustomFieldFilterLogic) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *CustomFieldFilterLogic) SetValue(v string) {
+// SetValue gets a reference to the given CustomFieldFilterLogicValue and assigns it to the Value field.
+func (o *CustomFieldFilterLogic) SetValue(v CustomFieldFilterLogicValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *CustomFieldFilterLogic) GetLabel() string {
+func (o *CustomFieldFilterLogic) GetLabel() CustomFieldFilterLogicLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret CustomFieldFilterLogicLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *CustomFieldFilterLogic) 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 *CustomFieldFilterLogic) GetLabelOk() (*string, bool) {
+func (o *CustomFieldFilterLogic) GetLabelOk() (*CustomFieldFilterLogicLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *CustomFieldFilterLogic) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *CustomFieldFilterLogic) SetLabel(v string) {
+// SetLabel gets a reference to the given CustomFieldFilterLogicLabel and assigns it to the Label field.
+func (o *CustomFieldFilterLogic) SetLabel(v CustomFieldFilterLogicLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o CustomFieldFilterLogic) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CustomFieldFilterLogic) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CustomFieldFilterLogic) UnmarshalJSON(data []byte) (err error) {
varCustomFieldFilterLogic := _CustomFieldFilterLogic{}
- err = json.Unmarshal(bytes, &varCustomFieldFilterLogic)
+ err = json.Unmarshal(data, &varCustomFieldFilterLogic)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *CustomFieldFilterLogic) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_custom_field_filter_logic_label.go b/model_custom_field_filter_logic_label.go
new file mode 100644
index 0000000000..d699b4d54f
--- /dev/null
+++ b/model_custom_field_filter_logic_label.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// CustomFieldFilterLogicLabel the model 'CustomFieldFilterLogicLabel'
+type CustomFieldFilterLogicLabel string
+
+// List of CustomField_filter_logic_label
+const (
+ CUSTOMFIELDFILTERLOGICLABEL_DISABLED CustomFieldFilterLogicLabel = "Disabled"
+ CUSTOMFIELDFILTERLOGICLABEL_LOOSE CustomFieldFilterLogicLabel = "Loose"
+ CUSTOMFIELDFILTERLOGICLABEL_EXACT CustomFieldFilterLogicLabel = "Exact"
+)
+
+// All allowed values of CustomFieldFilterLogicLabel enum
+var AllowedCustomFieldFilterLogicLabelEnumValues = []CustomFieldFilterLogicLabel{
+ "Disabled",
+ "Loose",
+ "Exact",
+}
+
+func (v *CustomFieldFilterLogicLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := CustomFieldFilterLogicLabel(value)
+ for _, existing := range AllowedCustomFieldFilterLogicLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid CustomFieldFilterLogicLabel", value)
+}
+
+// NewCustomFieldFilterLogicLabelFromValue returns a pointer to a valid CustomFieldFilterLogicLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewCustomFieldFilterLogicLabelFromValue(v string) (*CustomFieldFilterLogicLabel, error) {
+ ev := CustomFieldFilterLogicLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for CustomFieldFilterLogicLabel: valid values are %v", v, AllowedCustomFieldFilterLogicLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v CustomFieldFilterLogicLabel) IsValid() bool {
+ for _, existing := range AllowedCustomFieldFilterLogicLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to CustomField_filter_logic_label value
+func (v CustomFieldFilterLogicLabel) Ptr() *CustomFieldFilterLogicLabel {
+ return &v
+}
+
+type NullableCustomFieldFilterLogicLabel struct {
+ value *CustomFieldFilterLogicLabel
+ isSet bool
+}
+
+func (v NullableCustomFieldFilterLogicLabel) Get() *CustomFieldFilterLogicLabel {
+ return v.value
+}
+
+func (v *NullableCustomFieldFilterLogicLabel) Set(val *CustomFieldFilterLogicLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomFieldFilterLogicLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomFieldFilterLogicLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomFieldFilterLogicLabel(val *CustomFieldFilterLogicLabel) *NullableCustomFieldFilterLogicLabel {
+ return &NullableCustomFieldFilterLogicLabel{value: val, isSet: true}
+}
+
+func (v NullableCustomFieldFilterLogicLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomFieldFilterLogicLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_field_filter_logic_value.go b/model_custom_field_filter_logic_value.go
new file mode 100644
index 0000000000..afd65fda20
--- /dev/null
+++ b/model_custom_field_filter_logic_value.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// CustomFieldFilterLogicValue * `disabled` - Disabled * `loose` - Loose * `exact` - Exact
+type CustomFieldFilterLogicValue string
+
+// List of CustomField_filter_logic_value
+const (
+ CUSTOMFIELDFILTERLOGICVALUE_DISABLED CustomFieldFilterLogicValue = "disabled"
+ CUSTOMFIELDFILTERLOGICVALUE_LOOSE CustomFieldFilterLogicValue = "loose"
+ CUSTOMFIELDFILTERLOGICVALUE_EXACT CustomFieldFilterLogicValue = "exact"
+)
+
+// All allowed values of CustomFieldFilterLogicValue enum
+var AllowedCustomFieldFilterLogicValueEnumValues = []CustomFieldFilterLogicValue{
+ "disabled",
+ "loose",
+ "exact",
+}
+
+func (v *CustomFieldFilterLogicValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := CustomFieldFilterLogicValue(value)
+ for _, existing := range AllowedCustomFieldFilterLogicValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid CustomFieldFilterLogicValue", value)
+}
+
+// NewCustomFieldFilterLogicValueFromValue returns a pointer to a valid CustomFieldFilterLogicValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewCustomFieldFilterLogicValueFromValue(v string) (*CustomFieldFilterLogicValue, error) {
+ ev := CustomFieldFilterLogicValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for CustomFieldFilterLogicValue: valid values are %v", v, AllowedCustomFieldFilterLogicValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v CustomFieldFilterLogicValue) IsValid() bool {
+ for _, existing := range AllowedCustomFieldFilterLogicValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to CustomField_filter_logic_value value
+func (v CustomFieldFilterLogicValue) Ptr() *CustomFieldFilterLogicValue {
+ return &v
+}
+
+type NullableCustomFieldFilterLogicValue struct {
+ value *CustomFieldFilterLogicValue
+ isSet bool
+}
+
+func (v NullableCustomFieldFilterLogicValue) Get() *CustomFieldFilterLogicValue {
+ return v.value
+}
+
+func (v *NullableCustomFieldFilterLogicValue) Set(val *CustomFieldFilterLogicValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomFieldFilterLogicValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomFieldFilterLogicValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomFieldFilterLogicValue(val *CustomFieldFilterLogicValue) *NullableCustomFieldFilterLogicValue {
+ return &NullableCustomFieldFilterLogicValue{value: val, isSet: true}
+}
+
+func (v NullableCustomFieldFilterLogicValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomFieldFilterLogicValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_field_request.go b/model_custom_field_request.go
index 41c7ac8bf9..868cebb9b3 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 CustomFieldRequest type satisfies the MappedNullable interface at compile time
@@ -19,10 +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"`
- // * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects
- Type string `json:"type"`
- ObjectType *string `json:"object_type,omitempty"`
+ ContentTypes []string `json:"content_types"`
+ Type CustomFieldTypeValue `json:"type"`
+ ObjectType *string `json:"object_type,omitempty"`
// Internal field name
Name string `json:"name"`
// Name of the field as displayed to users (if not provided, 'the field's name will be used)
@@ -33,21 +33,20 @@ type CustomFieldRequest struct {
// If true, this field is required when creating new objects or editing an existing object.
Required *bool `json:"required,omitempty"`
// Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored.
- SearchWeight *int32 `json:"search_weight,omitempty"`
- // * `disabled` - Disabled * `loose` - Loose * `exact` - Exact
- FilterLogic *string `json:"filter_logic,omitempty"`
- // * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset)
- UiVisibility *string `json:"ui_visibility,omitempty"`
+ SearchWeight *int32 `json:"search_weight,omitempty"`
+ FilterLogic *CustomFieldFilterLogicValue `json:"filter_logic,omitempty"`
+ UiVisible *CustomFieldUiVisibleValue `json:"ui_visible,omitempty"`
+ UiEditable *CustomFieldUiEditableValue `json:"ui_editable,omitempty"`
// Replicate this value when cloning objects
IsCloneable *bool `json:"is_cloneable,omitempty"`
// Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\").
- Default map[string]interface{} `json:"default,omitempty"`
+ Default interface{} `json:"default,omitempty"`
// Fields with higher weights appear lower in a form.
Weight *int32 `json:"weight,omitempty"`
// Minimum allowed value (for numeric fields)
- ValidationMinimum NullableInt32 `json:"validation_minimum,omitempty"`
+ ValidationMinimum NullableInt64 `json:"validation_minimum,omitempty"`
// Maximum allowed value (for numeric fields)
- ValidationMaximum NullableInt32 `json:"validation_maximum,omitempty"`
+ 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 *NestedCustomFieldChoiceSetRequest `json:"choice_set,omitempty"`
@@ -60,7 +59,7 @@ 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_ string, name string) *CustomFieldRequest {
+func NewCustomFieldRequest(contentTypes []string, type_ CustomFieldTypeValue, name string) *CustomFieldRequest {
this := CustomFieldRequest{}
this.ContentTypes = contentTypes
this.Type = type_
@@ -101,9 +100,9 @@ func (o *CustomFieldRequest) SetContentTypes(v []string) {
}
// GetType returns the Type field value
-func (o *CustomFieldRequest) GetType() string {
+func (o *CustomFieldRequest) GetType() CustomFieldTypeValue {
if o == nil {
- var ret string
+ var ret CustomFieldTypeValue
return ret
}
@@ -112,7 +111,7 @@ func (o *CustomFieldRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *CustomFieldRequest) GetTypeOk() (*string, bool) {
+func (o *CustomFieldRequest) GetTypeOk() (*CustomFieldTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -120,7 +119,7 @@ func (o *CustomFieldRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *CustomFieldRequest) SetType(v string) {
+func (o *CustomFieldRequest) SetType(v CustomFieldTypeValue) {
o.Type = v
}
@@ -341,9 +340,9 @@ func (o *CustomFieldRequest) SetSearchWeight(v int32) {
}
// GetFilterLogic returns the FilterLogic field value if set, zero value otherwise.
-func (o *CustomFieldRequest) GetFilterLogic() string {
+func (o *CustomFieldRequest) GetFilterLogic() CustomFieldFilterLogicValue {
if o == nil || IsNil(o.FilterLogic) {
- var ret string
+ var ret CustomFieldFilterLogicValue
return ret
}
return *o.FilterLogic
@@ -351,7 +350,7 @@ func (o *CustomFieldRequest) GetFilterLogic() string {
// GetFilterLogicOk returns a tuple with the FilterLogic field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *CustomFieldRequest) GetFilterLogicOk() (*string, bool) {
+func (o *CustomFieldRequest) GetFilterLogicOk() (*CustomFieldFilterLogicValue, bool) {
if o == nil || IsNil(o.FilterLogic) {
return nil, false
}
@@ -367,41 +366,73 @@ func (o *CustomFieldRequest) HasFilterLogic() bool {
return false
}
-// SetFilterLogic gets a reference to the given string and assigns it to the FilterLogic field.
-func (o *CustomFieldRequest) SetFilterLogic(v string) {
+// SetFilterLogic gets a reference to the given CustomFieldFilterLogicValue and assigns it to the FilterLogic field.
+func (o *CustomFieldRequest) SetFilterLogic(v CustomFieldFilterLogicValue) {
o.FilterLogic = &v
}
-// GetUiVisibility returns the UiVisibility field value if set, zero value otherwise.
-func (o *CustomFieldRequest) GetUiVisibility() string {
- if o == nil || IsNil(o.UiVisibility) {
- var ret string
+// GetUiVisible returns the UiVisible field value if set, zero value otherwise.
+func (o *CustomFieldRequest) GetUiVisible() CustomFieldUiVisibleValue {
+ if o == nil || IsNil(o.UiVisible) {
+ var ret CustomFieldUiVisibleValue
+ return ret
+ }
+ return *o.UiVisible
+}
+
+// GetUiVisibleOk returns a tuple with the UiVisible field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CustomFieldRequest) GetUiVisibleOk() (*CustomFieldUiVisibleValue, bool) {
+ if o == nil || IsNil(o.UiVisible) {
+ return nil, false
+ }
+ return o.UiVisible, true
+}
+
+// HasUiVisible returns a boolean if a field has been set.
+func (o *CustomFieldRequest) HasUiVisible() bool {
+ if o != nil && !IsNil(o.UiVisible) {
+ return true
+ }
+
+ return false
+}
+
+// SetUiVisible gets a reference to the given CustomFieldUiVisibleValue and assigns it to the UiVisible field.
+func (o *CustomFieldRequest) SetUiVisible(v CustomFieldUiVisibleValue) {
+ o.UiVisible = &v
+}
+
+// GetUiEditable returns the UiEditable field value if set, zero value otherwise.
+func (o *CustomFieldRequest) GetUiEditable() CustomFieldUiEditableValue {
+ if o == nil || IsNil(o.UiEditable) {
+ var ret CustomFieldUiEditableValue
return ret
}
- return *o.UiVisibility
+ return *o.UiEditable
}
-// GetUiVisibilityOk returns a tuple with the UiVisibility field value if set, nil otherwise
+// GetUiEditableOk returns a tuple with the UiEditable field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *CustomFieldRequest) GetUiVisibilityOk() (*string, bool) {
- if o == nil || IsNil(o.UiVisibility) {
+func (o *CustomFieldRequest) GetUiEditableOk() (*CustomFieldUiEditableValue, bool) {
+ if o == nil || IsNil(o.UiEditable) {
return nil, false
}
- return o.UiVisibility, true
+ return o.UiEditable, true
}
-// HasUiVisibility returns a boolean if a field has been set.
-func (o *CustomFieldRequest) HasUiVisibility() bool {
- if o != nil && !IsNil(o.UiVisibility) {
+// HasUiEditable returns a boolean if a field has been set.
+func (o *CustomFieldRequest) HasUiEditable() bool {
+ if o != nil && !IsNil(o.UiEditable) {
return true
}
return false
}
-// SetUiVisibility gets a reference to the given string and assigns it to the UiVisibility field.
-func (o *CustomFieldRequest) SetUiVisibility(v string) {
- o.UiVisibility = &v
+// SetUiEditable gets a reference to the given CustomFieldUiEditableValue and assigns it to the UiEditable field.
+func (o *CustomFieldRequest) SetUiEditable(v CustomFieldUiEditableValue) {
+ o.UiEditable = &v
}
// GetIsCloneable returns the IsCloneable field value if set, zero value otherwise.
@@ -437,9 +468,9 @@ func (o *CustomFieldRequest) SetIsCloneable(v bool) {
}
// GetDefault returns the Default field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CustomFieldRequest) GetDefault() map[string]interface{} {
+func (o *CustomFieldRequest) GetDefault() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.Default
@@ -448,11 +479,11 @@ func (o *CustomFieldRequest) GetDefault() map[string]interface{} {
// GetDefaultOk returns a tuple with the Default field value if set, nil otherwise
// and a 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) GetDefaultOk() (map[string]interface{}, bool) {
+func (o *CustomFieldRequest) GetDefaultOk() (*interface{}, bool) {
if o == nil || IsNil(o.Default) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Default, true
+ return &o.Default, true
}
// HasDefault returns a boolean if a field has been set.
@@ -464,8 +495,8 @@ func (o *CustomFieldRequest) HasDefault() bool {
return false
}
-// SetDefault gets a reference to the given map[string]interface{} and assigns it to the Default field.
-func (o *CustomFieldRequest) SetDefault(v map[string]interface{}) {
+// SetDefault gets a reference to the given interface{} and assigns it to the Default field.
+func (o *CustomFieldRequest) SetDefault(v interface{}) {
o.Default = v
}
@@ -502,9 +533,9 @@ func (o *CustomFieldRequest) SetWeight(v int32) {
}
// GetValidationMinimum returns the ValidationMinimum field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CustomFieldRequest) GetValidationMinimum() int32 {
+func (o *CustomFieldRequest) GetValidationMinimum() int64 {
if o == nil || IsNil(o.ValidationMinimum.Get()) {
- var ret int32
+ var ret int64
return ret
}
return *o.ValidationMinimum.Get()
@@ -513,7 +544,7 @@ func (o *CustomFieldRequest) GetValidationMinimum() int32 {
// GetValidationMinimumOk returns a tuple with the ValidationMinimum field value if set, nil otherwise
// and a 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) GetValidationMinimumOk() (*int32, bool) {
+func (o *CustomFieldRequest) GetValidationMinimumOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -529,8 +560,8 @@ func (o *CustomFieldRequest) HasValidationMinimum() bool {
return false
}
-// SetValidationMinimum gets a reference to the given NullableInt32 and assigns it to the ValidationMinimum field.
-func (o *CustomFieldRequest) SetValidationMinimum(v int32) {
+// SetValidationMinimum gets a reference to the given NullableInt64 and assigns it to the ValidationMinimum field.
+func (o *CustomFieldRequest) SetValidationMinimum(v int64) {
o.ValidationMinimum.Set(&v)
}
@@ -545,9 +576,9 @@ func (o *CustomFieldRequest) UnsetValidationMinimum() {
}
// GetValidationMaximum returns the ValidationMaximum field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CustomFieldRequest) GetValidationMaximum() int32 {
+func (o *CustomFieldRequest) GetValidationMaximum() int64 {
if o == nil || IsNil(o.ValidationMaximum.Get()) {
- var ret int32
+ var ret int64
return ret
}
return *o.ValidationMaximum.Get()
@@ -556,7 +587,7 @@ func (o *CustomFieldRequest) GetValidationMaximum() int32 {
// GetValidationMaximumOk returns a tuple with the ValidationMaximum field value if set, nil otherwise
// and a 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) GetValidationMaximumOk() (*int32, bool) {
+func (o *CustomFieldRequest) GetValidationMaximumOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -572,8 +603,8 @@ func (o *CustomFieldRequest) HasValidationMaximum() bool {
return false
}
-// SetValidationMaximum gets a reference to the given NullableInt32 and assigns it to the ValidationMaximum field.
-func (o *CustomFieldRequest) SetValidationMaximum(v int32) {
+// SetValidationMaximum gets a reference to the given NullableInt64 and assigns it to the ValidationMaximum field.
+func (o *CustomFieldRequest) SetValidationMaximum(v int64) {
o.ValidationMaximum.Set(&v)
}
@@ -685,8 +716,11 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.FilterLogic) {
toSerialize["filter_logic"] = o.FilterLogic
}
- if !IsNil(o.UiVisibility) {
- toSerialize["ui_visibility"] = o.UiVisibility
+ if !IsNil(o.UiVisible) {
+ toSerialize["ui_visible"] = o.UiVisible
+ }
+ if !IsNil(o.UiEditable) {
+ toSerialize["ui_editable"] = o.UiEditable
}
if !IsNil(o.IsCloneable) {
toSerialize["is_cloneable"] = o.IsCloneable
@@ -717,10 +751,33 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CustomFieldRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CustomFieldRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "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)
+ }
+ }
+
varCustomFieldRequest := _CustomFieldRequest{}
- err = json.Unmarshal(bytes, &varCustomFieldRequest)
+ err = json.Unmarshal(data, &varCustomFieldRequest)
if err != nil {
return err
@@ -730,7 +787,7 @@ func (o *CustomFieldRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_types")
delete(additionalProperties, "type")
delete(additionalProperties, "object_type")
@@ -741,7 +798,8 @@ func (o *CustomFieldRequest) UnmarshalJSON(bytes []byte) (err error) {
delete(additionalProperties, "required")
delete(additionalProperties, "search_weight")
delete(additionalProperties, "filter_logic")
- delete(additionalProperties, "ui_visibility")
+ delete(additionalProperties, "ui_visible")
+ delete(additionalProperties, "ui_editable")
delete(additionalProperties, "is_cloneable")
delete(additionalProperties, "default")
delete(additionalProperties, "weight")
diff --git a/model_custom_field_type.go b/model_custom_field_type.go
index cb36873d01..b88ac3b3d1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &CustomFieldType{}
// CustomFieldType struct for CustomFieldType
type CustomFieldType struct {
- // * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *CustomFieldTypeValue `json:"value,omitempty"`
+ Label *CustomFieldTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewCustomFieldTypeWithDefaults() *CustomFieldType {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *CustomFieldType) GetValue() string {
+func (o *CustomFieldType) GetValue() CustomFieldTypeValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret CustomFieldTypeValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *CustomFieldType) GetValue() string {
// 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 *CustomFieldType) GetValueOk() (*string, bool) {
+func (o *CustomFieldType) GetValueOk() (*CustomFieldTypeValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *CustomFieldType) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *CustomFieldType) SetValue(v string) {
+// SetValue gets a reference to the given CustomFieldTypeValue and assigns it to the Value field.
+func (o *CustomFieldType) SetValue(v CustomFieldTypeValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *CustomFieldType) GetLabel() string {
+func (o *CustomFieldType) GetLabel() CustomFieldTypeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret CustomFieldTypeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *CustomFieldType) 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 *CustomFieldType) GetLabelOk() (*string, bool) {
+func (o *CustomFieldType) GetLabelOk() (*CustomFieldTypeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *CustomFieldType) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *CustomFieldType) SetLabel(v string) {
+// SetLabel gets a reference to the given CustomFieldTypeLabel and assigns it to the Label field.
+func (o *CustomFieldType) SetLabel(v CustomFieldTypeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o CustomFieldType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CustomFieldType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CustomFieldType) UnmarshalJSON(data []byte) (err error) {
varCustomFieldType := _CustomFieldType{}
- err = json.Unmarshal(bytes, &varCustomFieldType)
+ err = json.Unmarshal(data, &varCustomFieldType)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *CustomFieldType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_custom_field_type_label.go b/model_custom_field_type_label.go
new file mode 100644
index 0000000000..b00658cd85
--- /dev/null
+++ b/model_custom_field_type_label.go
@@ -0,0 +1,132 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// CustomFieldTypeLabel the model 'CustomFieldTypeLabel'
+type CustomFieldTypeLabel string
+
+// List of CustomField_type_label
+const (
+ CUSTOMFIELDTYPELABEL_TEXT CustomFieldTypeLabel = "Text"
+ CUSTOMFIELDTYPELABEL_TEXT__LONG CustomFieldTypeLabel = "Text (long)"
+ CUSTOMFIELDTYPELABEL_INTEGER CustomFieldTypeLabel = "Integer"
+ CUSTOMFIELDTYPELABEL_DECIMAL CustomFieldTypeLabel = "Decimal"
+ CUSTOMFIELDTYPELABEL_BOOLEAN__TRUE_FALSE CustomFieldTypeLabel = "Boolean (true/false)"
+ CUSTOMFIELDTYPELABEL_DATE CustomFieldTypeLabel = "Date"
+ CUSTOMFIELDTYPELABEL_DATE__TIME CustomFieldTypeLabel = "Date & time"
+ CUSTOMFIELDTYPELABEL_URL CustomFieldTypeLabel = "URL"
+ CUSTOMFIELDTYPELABEL_JSON CustomFieldTypeLabel = "JSON"
+ CUSTOMFIELDTYPELABEL_SELECTION CustomFieldTypeLabel = "Selection"
+ CUSTOMFIELDTYPELABEL_MULTIPLE_SELECTION CustomFieldTypeLabel = "Multiple selection"
+ CUSTOMFIELDTYPELABEL_OBJECT CustomFieldTypeLabel = "Object"
+ CUSTOMFIELDTYPELABEL_MULTIPLE_OBJECTS CustomFieldTypeLabel = "Multiple objects"
+)
+
+// All allowed values of CustomFieldTypeLabel enum
+var AllowedCustomFieldTypeLabelEnumValues = []CustomFieldTypeLabel{
+ "Text",
+ "Text (long)",
+ "Integer",
+ "Decimal",
+ "Boolean (true/false)",
+ "Date",
+ "Date & time",
+ "URL",
+ "JSON",
+ "Selection",
+ "Multiple selection",
+ "Object",
+ "Multiple objects",
+}
+
+func (v *CustomFieldTypeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := CustomFieldTypeLabel(value)
+ for _, existing := range AllowedCustomFieldTypeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid CustomFieldTypeLabel", value)
+}
+
+// NewCustomFieldTypeLabelFromValue returns a pointer to a valid CustomFieldTypeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewCustomFieldTypeLabelFromValue(v string) (*CustomFieldTypeLabel, error) {
+ ev := CustomFieldTypeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for CustomFieldTypeLabel: valid values are %v", v, AllowedCustomFieldTypeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v CustomFieldTypeLabel) IsValid() bool {
+ for _, existing := range AllowedCustomFieldTypeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to CustomField_type_label value
+func (v CustomFieldTypeLabel) Ptr() *CustomFieldTypeLabel {
+ return &v
+}
+
+type NullableCustomFieldTypeLabel struct {
+ value *CustomFieldTypeLabel
+ isSet bool
+}
+
+func (v NullableCustomFieldTypeLabel) Get() *CustomFieldTypeLabel {
+ return v.value
+}
+
+func (v *NullableCustomFieldTypeLabel) Set(val *CustomFieldTypeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomFieldTypeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomFieldTypeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomFieldTypeLabel(val *CustomFieldTypeLabel) *NullableCustomFieldTypeLabel {
+ return &NullableCustomFieldTypeLabel{value: val, isSet: true}
+}
+
+func (v NullableCustomFieldTypeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomFieldTypeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_field_type_value.go b/model_custom_field_type_value.go
new file mode 100644
index 0000000000..e2500b7b42
--- /dev/null
+++ b/model_custom_field_type_value.go
@@ -0,0 +1,132 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// CustomFieldTypeValue * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects
+type CustomFieldTypeValue string
+
+// List of CustomField_type_value
+const (
+ CUSTOMFIELDTYPEVALUE_TEXT CustomFieldTypeValue = "text"
+ CUSTOMFIELDTYPEVALUE_LONGTEXT CustomFieldTypeValue = "longtext"
+ CUSTOMFIELDTYPEVALUE_INTEGER CustomFieldTypeValue = "integer"
+ CUSTOMFIELDTYPEVALUE_DECIMAL CustomFieldTypeValue = "decimal"
+ CUSTOMFIELDTYPEVALUE_BOOLEAN CustomFieldTypeValue = "boolean"
+ CUSTOMFIELDTYPEVALUE_DATE CustomFieldTypeValue = "date"
+ CUSTOMFIELDTYPEVALUE_DATETIME CustomFieldTypeValue = "datetime"
+ CUSTOMFIELDTYPEVALUE_URL CustomFieldTypeValue = "url"
+ CUSTOMFIELDTYPEVALUE_JSON CustomFieldTypeValue = "json"
+ CUSTOMFIELDTYPEVALUE_SELECT CustomFieldTypeValue = "select"
+ CUSTOMFIELDTYPEVALUE_MULTISELECT CustomFieldTypeValue = "multiselect"
+ CUSTOMFIELDTYPEVALUE_OBJECT CustomFieldTypeValue = "object"
+ CUSTOMFIELDTYPEVALUE_MULTIOBJECT CustomFieldTypeValue = "multiobject"
+)
+
+// All allowed values of CustomFieldTypeValue enum
+var AllowedCustomFieldTypeValueEnumValues = []CustomFieldTypeValue{
+ "text",
+ "longtext",
+ "integer",
+ "decimal",
+ "boolean",
+ "date",
+ "datetime",
+ "url",
+ "json",
+ "select",
+ "multiselect",
+ "object",
+ "multiobject",
+}
+
+func (v *CustomFieldTypeValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := CustomFieldTypeValue(value)
+ for _, existing := range AllowedCustomFieldTypeValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid CustomFieldTypeValue", value)
+}
+
+// NewCustomFieldTypeValueFromValue returns a pointer to a valid CustomFieldTypeValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewCustomFieldTypeValueFromValue(v string) (*CustomFieldTypeValue, error) {
+ ev := CustomFieldTypeValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for CustomFieldTypeValue: valid values are %v", v, AllowedCustomFieldTypeValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v CustomFieldTypeValue) IsValid() bool {
+ for _, existing := range AllowedCustomFieldTypeValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to CustomField_type_value value
+func (v CustomFieldTypeValue) Ptr() *CustomFieldTypeValue {
+ return &v
+}
+
+type NullableCustomFieldTypeValue struct {
+ value *CustomFieldTypeValue
+ isSet bool
+}
+
+func (v NullableCustomFieldTypeValue) Get() *CustomFieldTypeValue {
+ return v.value
+}
+
+func (v *NullableCustomFieldTypeValue) Set(val *CustomFieldTypeValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomFieldTypeValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomFieldTypeValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomFieldTypeValue(val *CustomFieldTypeValue) *NullableCustomFieldTypeValue {
+ return &NullableCustomFieldTypeValue{value: val, isSet: true}
+}
+
+func (v NullableCustomFieldTypeValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomFieldTypeValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_field_ui_editable.go b/model_custom_field_ui_editable.go
new file mode 100644
index 0000000000..ba3410931f
--- /dev/null
+++ b/model_custom_field_ui_editable.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the CustomFieldUiEditable type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &CustomFieldUiEditable{}
+
+// CustomFieldUiEditable struct for CustomFieldUiEditable
+type CustomFieldUiEditable struct {
+ Value *CustomFieldUiEditableValue `json:"value,omitempty"`
+ Label *CustomFieldUiEditableLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _CustomFieldUiEditable CustomFieldUiEditable
+
+// NewCustomFieldUiEditable instantiates a new CustomFieldUiEditable object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewCustomFieldUiEditable() *CustomFieldUiEditable {
+ this := CustomFieldUiEditable{}
+ return &this
+}
+
+// NewCustomFieldUiEditableWithDefaults instantiates a new CustomFieldUiEditable object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewCustomFieldUiEditableWithDefaults() *CustomFieldUiEditable {
+ this := CustomFieldUiEditable{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *CustomFieldUiEditable) GetValue() CustomFieldUiEditableValue {
+ if o == nil || IsNil(o.Value) {
+ var ret CustomFieldUiEditableValue
+ 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 *CustomFieldUiEditable) GetValueOk() (*CustomFieldUiEditableValue, 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 *CustomFieldUiEditable) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given CustomFieldUiEditableValue and assigns it to the Value field.
+func (o *CustomFieldUiEditable) SetValue(v CustomFieldUiEditableValue) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *CustomFieldUiEditable) GetLabel() CustomFieldUiEditableLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret CustomFieldUiEditableLabel
+ 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 *CustomFieldUiEditable) GetLabelOk() (*CustomFieldUiEditableLabel, 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 *CustomFieldUiEditable) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given CustomFieldUiEditableLabel and assigns it to the Label field.
+func (o *CustomFieldUiEditable) SetLabel(v CustomFieldUiEditableLabel) {
+ o.Label = &v
+}
+
+func (o CustomFieldUiEditable) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o CustomFieldUiEditable) 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 *CustomFieldUiEditable) UnmarshalJSON(data []byte) (err error) {
+ varCustomFieldUiEditable := _CustomFieldUiEditable{}
+
+ err = json.Unmarshal(data, &varCustomFieldUiEditable)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CustomFieldUiEditable(varCustomFieldUiEditable)
+
+ 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 NullableCustomFieldUiEditable struct {
+ value *CustomFieldUiEditable
+ isSet bool
+}
+
+func (v NullableCustomFieldUiEditable) Get() *CustomFieldUiEditable {
+ return v.value
+}
+
+func (v *NullableCustomFieldUiEditable) Set(val *CustomFieldUiEditable) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomFieldUiEditable) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomFieldUiEditable) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomFieldUiEditable(val *CustomFieldUiEditable) *NullableCustomFieldUiEditable {
+ return &NullableCustomFieldUiEditable{value: val, isSet: true}
+}
+
+func (v NullableCustomFieldUiEditable) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomFieldUiEditable) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_field_ui_editable_label.go b/model_custom_field_ui_editable_label.go
new file mode 100644
index 0000000000..d1c69f227e
--- /dev/null
+++ b/model_custom_field_ui_editable_label.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// CustomFieldUiEditableLabel the model 'CustomFieldUiEditableLabel'
+type CustomFieldUiEditableLabel string
+
+// List of CustomField_ui_editable_label
+const (
+ CUSTOMFIELDUIEDITABLELABEL_YES CustomFieldUiEditableLabel = "Yes"
+ CUSTOMFIELDUIEDITABLELABEL_NO CustomFieldUiEditableLabel = "No"
+ CUSTOMFIELDUIEDITABLELABEL_HIDDEN CustomFieldUiEditableLabel = "Hidden"
+)
+
+// All allowed values of CustomFieldUiEditableLabel enum
+var AllowedCustomFieldUiEditableLabelEnumValues = []CustomFieldUiEditableLabel{
+ "Yes",
+ "No",
+ "Hidden",
+}
+
+func (v *CustomFieldUiEditableLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := CustomFieldUiEditableLabel(value)
+ for _, existing := range AllowedCustomFieldUiEditableLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid CustomFieldUiEditableLabel", value)
+}
+
+// NewCustomFieldUiEditableLabelFromValue returns a pointer to a valid CustomFieldUiEditableLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewCustomFieldUiEditableLabelFromValue(v string) (*CustomFieldUiEditableLabel, error) {
+ ev := CustomFieldUiEditableLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for CustomFieldUiEditableLabel: valid values are %v", v, AllowedCustomFieldUiEditableLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v CustomFieldUiEditableLabel) IsValid() bool {
+ for _, existing := range AllowedCustomFieldUiEditableLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to CustomField_ui_editable_label value
+func (v CustomFieldUiEditableLabel) Ptr() *CustomFieldUiEditableLabel {
+ return &v
+}
+
+type NullableCustomFieldUiEditableLabel struct {
+ value *CustomFieldUiEditableLabel
+ isSet bool
+}
+
+func (v NullableCustomFieldUiEditableLabel) Get() *CustomFieldUiEditableLabel {
+ return v.value
+}
+
+func (v *NullableCustomFieldUiEditableLabel) Set(val *CustomFieldUiEditableLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomFieldUiEditableLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomFieldUiEditableLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomFieldUiEditableLabel(val *CustomFieldUiEditableLabel) *NullableCustomFieldUiEditableLabel {
+ return &NullableCustomFieldUiEditableLabel{value: val, isSet: true}
+}
+
+func (v NullableCustomFieldUiEditableLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomFieldUiEditableLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_field_ui_editable_value.go b/model_custom_field_ui_editable_value.go
new file mode 100644
index 0000000000..5e34283586
--- /dev/null
+++ b/model_custom_field_ui_editable_value.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// CustomFieldUiEditableValue * `yes` - Yes * `no` - No * `hidden` - Hidden
+type CustomFieldUiEditableValue string
+
+// List of CustomField_ui_editable_value
+const (
+ CUSTOMFIELDUIEDITABLEVALUE_YES CustomFieldUiEditableValue = "yes"
+ CUSTOMFIELDUIEDITABLEVALUE_NO CustomFieldUiEditableValue = "no"
+ CUSTOMFIELDUIEDITABLEVALUE_HIDDEN CustomFieldUiEditableValue = "hidden"
+)
+
+// All allowed values of CustomFieldUiEditableValue enum
+var AllowedCustomFieldUiEditableValueEnumValues = []CustomFieldUiEditableValue{
+ "yes",
+ "no",
+ "hidden",
+}
+
+func (v *CustomFieldUiEditableValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := CustomFieldUiEditableValue(value)
+ for _, existing := range AllowedCustomFieldUiEditableValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid CustomFieldUiEditableValue", value)
+}
+
+// NewCustomFieldUiEditableValueFromValue returns a pointer to a valid CustomFieldUiEditableValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewCustomFieldUiEditableValueFromValue(v string) (*CustomFieldUiEditableValue, error) {
+ ev := CustomFieldUiEditableValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for CustomFieldUiEditableValue: valid values are %v", v, AllowedCustomFieldUiEditableValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v CustomFieldUiEditableValue) IsValid() bool {
+ for _, existing := range AllowedCustomFieldUiEditableValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to CustomField_ui_editable_value value
+func (v CustomFieldUiEditableValue) Ptr() *CustomFieldUiEditableValue {
+ return &v
+}
+
+type NullableCustomFieldUiEditableValue struct {
+ value *CustomFieldUiEditableValue
+ isSet bool
+}
+
+func (v NullableCustomFieldUiEditableValue) Get() *CustomFieldUiEditableValue {
+ return v.value
+}
+
+func (v *NullableCustomFieldUiEditableValue) Set(val *CustomFieldUiEditableValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomFieldUiEditableValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomFieldUiEditableValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomFieldUiEditableValue(val *CustomFieldUiEditableValue) *NullableCustomFieldUiEditableValue {
+ return &NullableCustomFieldUiEditableValue{value: val, isSet: true}
+}
+
+func (v NullableCustomFieldUiEditableValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomFieldUiEditableValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_field_ui_visibility.go b/model_custom_field_ui_visibility.go
deleted file mode 100644
index d3d26588c4..0000000000
--- a/model_custom_field_ui_visibility.go
+++ /dev/null
@@ -1,191 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.6.2 (3.6)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
-)
-
-// checks if the CustomFieldUiVisibility type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &CustomFieldUiVisibility{}
-
-// CustomFieldUiVisibility struct for CustomFieldUiVisibility
-type CustomFieldUiVisibility struct {
- // * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset)
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _CustomFieldUiVisibility CustomFieldUiVisibility
-
-// NewCustomFieldUiVisibility instantiates a new CustomFieldUiVisibility object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewCustomFieldUiVisibility() *CustomFieldUiVisibility {
- this := CustomFieldUiVisibility{}
- return &this
-}
-
-// NewCustomFieldUiVisibilityWithDefaults instantiates a new CustomFieldUiVisibility object
-// This constructor will only assign default values to properties that have it defined,
-// but it doesn't guarantee that properties required by API are set
-func NewCustomFieldUiVisibilityWithDefaults() *CustomFieldUiVisibility {
- this := CustomFieldUiVisibility{}
- return &this
-}
-
-// GetValue returns the Value field value if set, zero value otherwise.
-func (o *CustomFieldUiVisibility) GetValue() string {
- if o == nil || IsNil(o.Value) {
- var ret string
- return ret
- }
- return *o.Value
-}
-
-// GetValueOk returns a tuple with the Value field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *CustomFieldUiVisibility) GetValueOk() (*string, bool) {
- if o == nil || IsNil(o.Value) {
- return nil, false
- }
- return o.Value, true
-}
-
-// HasValue returns a boolean if a field has been set.
-func (o *CustomFieldUiVisibility) HasValue() bool {
- if o != nil && !IsNil(o.Value) {
- return true
- }
-
- return false
-}
-
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *CustomFieldUiVisibility) SetValue(v string) {
- o.Value = &v
-}
-
-// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *CustomFieldUiVisibility) 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 *CustomFieldUiVisibility) 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 *CustomFieldUiVisibility) 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 *CustomFieldUiVisibility) SetLabel(v string) {
- o.Label = &v
-}
-
-func (o CustomFieldUiVisibility) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o CustomFieldUiVisibility) 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 *CustomFieldUiVisibility) UnmarshalJSON(bytes []byte) (err error) {
- varCustomFieldUiVisibility := _CustomFieldUiVisibility{}
-
- err = json.Unmarshal(bytes, &varCustomFieldUiVisibility)
-
- if err != nil {
- return err
- }
-
- *o = CustomFieldUiVisibility(varCustomFieldUiVisibility)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
- delete(additionalProperties, "value")
- delete(additionalProperties, "label")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableCustomFieldUiVisibility struct {
- value *CustomFieldUiVisibility
- isSet bool
-}
-
-func (v NullableCustomFieldUiVisibility) Get() *CustomFieldUiVisibility {
- return v.value
-}
-
-func (v *NullableCustomFieldUiVisibility) Set(val *CustomFieldUiVisibility) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableCustomFieldUiVisibility) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableCustomFieldUiVisibility) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableCustomFieldUiVisibility(val *CustomFieldUiVisibility) *NullableCustomFieldUiVisibility {
- return &NullableCustomFieldUiVisibility{value: val, isSet: true}
-}
-
-func (v NullableCustomFieldUiVisibility) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableCustomFieldUiVisibility) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_custom_field_ui_visible.go b/model_custom_field_ui_visible.go
new file mode 100644
index 0000000000..c6ce760c06
--- /dev/null
+++ b/model_custom_field_ui_visible.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the CustomFieldUiVisible type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &CustomFieldUiVisible{}
+
+// CustomFieldUiVisible struct for CustomFieldUiVisible
+type CustomFieldUiVisible struct {
+ Value *CustomFieldUiVisibleValue `json:"value,omitempty"`
+ Label *CustomFieldUiVisibleLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _CustomFieldUiVisible CustomFieldUiVisible
+
+// NewCustomFieldUiVisible instantiates a new CustomFieldUiVisible object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewCustomFieldUiVisible() *CustomFieldUiVisible {
+ this := CustomFieldUiVisible{}
+ return &this
+}
+
+// NewCustomFieldUiVisibleWithDefaults instantiates a new CustomFieldUiVisible object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewCustomFieldUiVisibleWithDefaults() *CustomFieldUiVisible {
+ this := CustomFieldUiVisible{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *CustomFieldUiVisible) GetValue() CustomFieldUiVisibleValue {
+ if o == nil || IsNil(o.Value) {
+ var ret CustomFieldUiVisibleValue
+ 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 *CustomFieldUiVisible) GetValueOk() (*CustomFieldUiVisibleValue, 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 *CustomFieldUiVisible) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given CustomFieldUiVisibleValue and assigns it to the Value field.
+func (o *CustomFieldUiVisible) SetValue(v CustomFieldUiVisibleValue) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *CustomFieldUiVisible) GetLabel() CustomFieldUiVisibleLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret CustomFieldUiVisibleLabel
+ 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 *CustomFieldUiVisible) GetLabelOk() (*CustomFieldUiVisibleLabel, 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 *CustomFieldUiVisible) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given CustomFieldUiVisibleLabel and assigns it to the Label field.
+func (o *CustomFieldUiVisible) SetLabel(v CustomFieldUiVisibleLabel) {
+ o.Label = &v
+}
+
+func (o CustomFieldUiVisible) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o CustomFieldUiVisible) 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 *CustomFieldUiVisible) UnmarshalJSON(data []byte) (err error) {
+ varCustomFieldUiVisible := _CustomFieldUiVisible{}
+
+ err = json.Unmarshal(data, &varCustomFieldUiVisible)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CustomFieldUiVisible(varCustomFieldUiVisible)
+
+ 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 NullableCustomFieldUiVisible struct {
+ value *CustomFieldUiVisible
+ isSet bool
+}
+
+func (v NullableCustomFieldUiVisible) Get() *CustomFieldUiVisible {
+ return v.value
+}
+
+func (v *NullableCustomFieldUiVisible) Set(val *CustomFieldUiVisible) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomFieldUiVisible) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomFieldUiVisible) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomFieldUiVisible(val *CustomFieldUiVisible) *NullableCustomFieldUiVisible {
+ return &NullableCustomFieldUiVisible{value: val, isSet: true}
+}
+
+func (v NullableCustomFieldUiVisible) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomFieldUiVisible) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_field_ui_visible_label.go b/model_custom_field_ui_visible_label.go
new file mode 100644
index 0000000000..408f778612
--- /dev/null
+++ b/model_custom_field_ui_visible_label.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// CustomFieldUiVisibleLabel the model 'CustomFieldUiVisibleLabel'
+type CustomFieldUiVisibleLabel string
+
+// List of CustomField_ui_visible_label
+const (
+ CUSTOMFIELDUIVISIBLELABEL_ALWAYS CustomFieldUiVisibleLabel = "Always"
+ CUSTOMFIELDUIVISIBLELABEL_IF_SET CustomFieldUiVisibleLabel = "If set"
+ CUSTOMFIELDUIVISIBLELABEL_HIDDEN CustomFieldUiVisibleLabel = "Hidden"
+)
+
+// All allowed values of CustomFieldUiVisibleLabel enum
+var AllowedCustomFieldUiVisibleLabelEnumValues = []CustomFieldUiVisibleLabel{
+ "Always",
+ "If set",
+ "Hidden",
+}
+
+func (v *CustomFieldUiVisibleLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := CustomFieldUiVisibleLabel(value)
+ for _, existing := range AllowedCustomFieldUiVisibleLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid CustomFieldUiVisibleLabel", value)
+}
+
+// NewCustomFieldUiVisibleLabelFromValue returns a pointer to a valid CustomFieldUiVisibleLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewCustomFieldUiVisibleLabelFromValue(v string) (*CustomFieldUiVisibleLabel, error) {
+ ev := CustomFieldUiVisibleLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for CustomFieldUiVisibleLabel: valid values are %v", v, AllowedCustomFieldUiVisibleLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v CustomFieldUiVisibleLabel) IsValid() bool {
+ for _, existing := range AllowedCustomFieldUiVisibleLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to CustomField_ui_visible_label value
+func (v CustomFieldUiVisibleLabel) Ptr() *CustomFieldUiVisibleLabel {
+ return &v
+}
+
+type NullableCustomFieldUiVisibleLabel struct {
+ value *CustomFieldUiVisibleLabel
+ isSet bool
+}
+
+func (v NullableCustomFieldUiVisibleLabel) Get() *CustomFieldUiVisibleLabel {
+ return v.value
+}
+
+func (v *NullableCustomFieldUiVisibleLabel) Set(val *CustomFieldUiVisibleLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomFieldUiVisibleLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomFieldUiVisibleLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomFieldUiVisibleLabel(val *CustomFieldUiVisibleLabel) *NullableCustomFieldUiVisibleLabel {
+ return &NullableCustomFieldUiVisibleLabel{value: val, isSet: true}
+}
+
+func (v NullableCustomFieldUiVisibleLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomFieldUiVisibleLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_field_ui_visible_value.go b/model_custom_field_ui_visible_value.go
new file mode 100644
index 0000000000..bd0e96ae62
--- /dev/null
+++ b/model_custom_field_ui_visible_value.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// CustomFieldUiVisibleValue * `always` - Always * `if-set` - If set * `hidden` - Hidden
+type CustomFieldUiVisibleValue string
+
+// List of CustomField_ui_visible_value
+const (
+ CUSTOMFIELDUIVISIBLEVALUE_ALWAYS CustomFieldUiVisibleValue = "always"
+ CUSTOMFIELDUIVISIBLEVALUE_IF_SET CustomFieldUiVisibleValue = "if-set"
+ CUSTOMFIELDUIVISIBLEVALUE_HIDDEN CustomFieldUiVisibleValue = "hidden"
+)
+
+// All allowed values of CustomFieldUiVisibleValue enum
+var AllowedCustomFieldUiVisibleValueEnumValues = []CustomFieldUiVisibleValue{
+ "always",
+ "if-set",
+ "hidden",
+}
+
+func (v *CustomFieldUiVisibleValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := CustomFieldUiVisibleValue(value)
+ for _, existing := range AllowedCustomFieldUiVisibleValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid CustomFieldUiVisibleValue", value)
+}
+
+// NewCustomFieldUiVisibleValueFromValue returns a pointer to a valid CustomFieldUiVisibleValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewCustomFieldUiVisibleValueFromValue(v string) (*CustomFieldUiVisibleValue, error) {
+ ev := CustomFieldUiVisibleValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for CustomFieldUiVisibleValue: valid values are %v", v, AllowedCustomFieldUiVisibleValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v CustomFieldUiVisibleValue) IsValid() bool {
+ for _, existing := range AllowedCustomFieldUiVisibleValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to CustomField_ui_visible_value value
+func (v CustomFieldUiVisibleValue) Ptr() *CustomFieldUiVisibleValue {
+ return &v
+}
+
+type NullableCustomFieldUiVisibleValue struct {
+ value *CustomFieldUiVisibleValue
+ isSet bool
+}
+
+func (v NullableCustomFieldUiVisibleValue) Get() *CustomFieldUiVisibleValue {
+ return v.value
+}
+
+func (v *NullableCustomFieldUiVisibleValue) Set(val *CustomFieldUiVisibleValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomFieldUiVisibleValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomFieldUiVisibleValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomFieldUiVisibleValue(val *CustomFieldUiVisibleValue) *NullableCustomFieldUiVisibleValue {
+ return &NullableCustomFieldUiVisibleValue{value: val, isSet: true}
+}
+
+func (v NullableCustomFieldUiVisibleValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomFieldUiVisibleValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_link.go b/model_custom_link.go
index a8e2e5b98e..721ceee576 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -32,9 +33,8 @@ type CustomLink struct {
LinkUrl string `json:"link_url"`
Weight *int32 `json:"weight,omitempty"`
// Links with the same group will appear as a dropdown menu
- GroupName *string `json:"group_name,omitempty"`
- // The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link
- ButtonClass *string `json:"button_class,omitempty"`
+ GroupName *string `json:"group_name,omitempty"`
+ ButtonClass *CustomLinkButtonClass `json:"button_class,omitempty"`
// Force link to open in a new window
NewWindow *bool `json:"new_window,omitempty"`
Created NullableTime `json:"created"`
@@ -335,9 +335,9 @@ func (o *CustomLink) SetGroupName(v string) {
}
// GetButtonClass returns the ButtonClass field value if set, zero value otherwise.
-func (o *CustomLink) GetButtonClass() string {
+func (o *CustomLink) GetButtonClass() CustomLinkButtonClass {
if o == nil || IsNil(o.ButtonClass) {
- var ret string
+ var ret CustomLinkButtonClass
return ret
}
return *o.ButtonClass
@@ -345,7 +345,7 @@ func (o *CustomLink) GetButtonClass() string {
// GetButtonClassOk returns a tuple with the ButtonClass field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *CustomLink) GetButtonClassOk() (*string, bool) {
+func (o *CustomLink) GetButtonClassOk() (*CustomLinkButtonClass, bool) {
if o == nil || IsNil(o.ButtonClass) {
return nil, false
}
@@ -361,8 +361,8 @@ func (o *CustomLink) HasButtonClass() bool {
return false
}
-// SetButtonClass gets a reference to the given string and assigns it to the ButtonClass field.
-func (o *CustomLink) SetButtonClass(v string) {
+// SetButtonClass gets a reference to the given CustomLinkButtonClass and assigns it to the ButtonClass field.
+func (o *CustomLink) SetButtonClass(v CustomLinkButtonClass) {
o.ButtonClass = &v
}
@@ -492,10 +492,39 @@ func (o CustomLink) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CustomLink) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CustomLink) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "content_types",
+ "name",
+ "link_text",
+ "link_url",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varCustomLink := _CustomLink{}
- err = json.Unmarshal(bytes, &varCustomLink)
+ err = json.Unmarshal(data, &varCustomLink)
if err != nil {
return err
@@ -505,7 +534,7 @@ func (o *CustomLink) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_custom_link_button_class.go b/model_custom_link_button_class.go
new file mode 100644
index 0000000000..992c5b848f
--- /dev/null
+++ b/model_custom_link_button_class.go
@@ -0,0 +1,136 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// CustomLinkButtonClass The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link
+type CustomLinkButtonClass string
+
+// List of CustomLink_button_class
+const (
+ CUSTOMLINKBUTTONCLASS_OUTLINE_DARK CustomLinkButtonClass = "outline-dark"
+ CUSTOMLINKBUTTONCLASS_BLUE CustomLinkButtonClass = "blue"
+ CUSTOMLINKBUTTONCLASS_INDIGO CustomLinkButtonClass = "indigo"
+ CUSTOMLINKBUTTONCLASS_PURPLE CustomLinkButtonClass = "purple"
+ CUSTOMLINKBUTTONCLASS_PINK CustomLinkButtonClass = "pink"
+ CUSTOMLINKBUTTONCLASS_RED CustomLinkButtonClass = "red"
+ CUSTOMLINKBUTTONCLASS_ORANGE CustomLinkButtonClass = "orange"
+ CUSTOMLINKBUTTONCLASS_YELLOW CustomLinkButtonClass = "yellow"
+ CUSTOMLINKBUTTONCLASS_GREEN CustomLinkButtonClass = "green"
+ CUSTOMLINKBUTTONCLASS_TEAL CustomLinkButtonClass = "teal"
+ CUSTOMLINKBUTTONCLASS_CYAN CustomLinkButtonClass = "cyan"
+ CUSTOMLINKBUTTONCLASS_GRAY CustomLinkButtonClass = "gray"
+ CUSTOMLINKBUTTONCLASS_BLACK CustomLinkButtonClass = "black"
+ CUSTOMLINKBUTTONCLASS_WHITE CustomLinkButtonClass = "white"
+ CUSTOMLINKBUTTONCLASS_GHOST_DARK CustomLinkButtonClass = "ghost-dark"
+)
+
+// All allowed values of CustomLinkButtonClass enum
+var AllowedCustomLinkButtonClassEnumValues = []CustomLinkButtonClass{
+ "outline-dark",
+ "blue",
+ "indigo",
+ "purple",
+ "pink",
+ "red",
+ "orange",
+ "yellow",
+ "green",
+ "teal",
+ "cyan",
+ "gray",
+ "black",
+ "white",
+ "ghost-dark",
+}
+
+func (v *CustomLinkButtonClass) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := CustomLinkButtonClass(value)
+ for _, existing := range AllowedCustomLinkButtonClassEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid CustomLinkButtonClass", value)
+}
+
+// NewCustomLinkButtonClassFromValue returns a pointer to a valid CustomLinkButtonClass
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewCustomLinkButtonClassFromValue(v string) (*CustomLinkButtonClass, error) {
+ ev := CustomLinkButtonClass(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for CustomLinkButtonClass: valid values are %v", v, AllowedCustomLinkButtonClassEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v CustomLinkButtonClass) IsValid() bool {
+ for _, existing := range AllowedCustomLinkButtonClassEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to CustomLink_button_class value
+func (v CustomLinkButtonClass) Ptr() *CustomLinkButtonClass {
+ return &v
+}
+
+type NullableCustomLinkButtonClass struct {
+ value *CustomLinkButtonClass
+ isSet bool
+}
+
+func (v NullableCustomLinkButtonClass) Get() *CustomLinkButtonClass {
+ return v.value
+}
+
+func (v *NullableCustomLinkButtonClass) Set(val *CustomLinkButtonClass) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomLinkButtonClass) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomLinkButtonClass) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomLinkButtonClass(val *CustomLinkButtonClass) *NullableCustomLinkButtonClass {
+ return &NullableCustomLinkButtonClass{value: val, isSet: true}
+}
+
+func (v NullableCustomLinkButtonClass) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomLinkButtonClass) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_link_request.go b/model_custom_link_request.go
index bda33f3405..d6ac69841b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 CustomLinkRequest type satisfies the MappedNullable interface at compile time
@@ -28,9 +29,8 @@ type CustomLinkRequest struct {
LinkUrl string `json:"link_url"`
Weight *int32 `json:"weight,omitempty"`
// Links with the same group will appear as a dropdown menu
- GroupName *string `json:"group_name,omitempty"`
- // The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link
- ButtonClass *string `json:"button_class,omitempty"`
+ GroupName *string `json:"group_name,omitempty"`
+ ButtonClass *CustomLinkButtonClass `json:"button_class,omitempty"`
// Force link to open in a new window
NewWindow *bool `json:"new_window,omitempty"`
AdditionalProperties map[string]interface{}
@@ -252,9 +252,9 @@ func (o *CustomLinkRequest) SetGroupName(v string) {
}
// GetButtonClass returns the ButtonClass field value if set, zero value otherwise.
-func (o *CustomLinkRequest) GetButtonClass() string {
+func (o *CustomLinkRequest) GetButtonClass() CustomLinkButtonClass {
if o == nil || IsNil(o.ButtonClass) {
- var ret string
+ var ret CustomLinkButtonClass
return ret
}
return *o.ButtonClass
@@ -262,7 +262,7 @@ func (o *CustomLinkRequest) GetButtonClass() string {
// GetButtonClassOk returns a tuple with the ButtonClass field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *CustomLinkRequest) GetButtonClassOk() (*string, bool) {
+func (o *CustomLinkRequest) GetButtonClassOk() (*CustomLinkButtonClass, bool) {
if o == nil || IsNil(o.ButtonClass) {
return nil, false
}
@@ -278,8 +278,8 @@ func (o *CustomLinkRequest) HasButtonClass() bool {
return false
}
-// SetButtonClass gets a reference to the given string and assigns it to the ButtonClass field.
-func (o *CustomLinkRequest) SetButtonClass(v string) {
+// SetButtonClass gets a reference to the given CustomLinkButtonClass and assigns it to the ButtonClass field.
+func (o *CustomLinkRequest) SetButtonClass(v CustomLinkButtonClass) {
o.ButtonClass = &v
}
@@ -352,10 +352,34 @@ func (o CustomLinkRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *CustomLinkRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *CustomLinkRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "link_text",
+ "link_url",
+ }
+
+ 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)
+ }
+ }
+
varCustomLinkRequest := _CustomLinkRequest{}
- err = json.Unmarshal(bytes, &varCustomLinkRequest)
+ err = json.Unmarshal(data, &varCustomLinkRequest)
if err != nil {
return err
@@ -365,7 +389,7 @@ func (o *CustomLinkRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_types")
delete(additionalProperties, "name")
delete(additionalProperties, "enabled")
diff --git a/model_dashboard.go b/model_dashboard.go
index ae6a248fff..1906c553a2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &Dashboard{}
// Dashboard struct for Dashboard
type Dashboard struct {
- Layout map[string]interface{} `json:"layout,omitempty"`
- Config map[string]interface{} `json:"config,omitempty"`
+ Layout interface{} `json:"layout,omitempty"`
+ Config interface{} `json:"config,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -43,10 +43,10 @@ func NewDashboardWithDefaults() *Dashboard {
return &this
}
-// GetLayout returns the Layout field value if set, zero value otherwise.
-func (o *Dashboard) GetLayout() map[string]interface{} {
- if o == nil || IsNil(o.Layout) {
- var ret map[string]interface{}
+// GetLayout returns the Layout field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *Dashboard) GetLayout() interface{} {
+ if o == nil {
+ var ret interface{}
return ret
}
return o.Layout
@@ -54,31 +54,32 @@ func (o *Dashboard) GetLayout() map[string]interface{} {
// GetLayoutOk returns a tuple with the Layout field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *Dashboard) GetLayoutOk() (map[string]interface{}, bool) {
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *Dashboard) GetLayoutOk() (*interface{}, bool) {
if o == nil || IsNil(o.Layout) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Layout, true
+ return &o.Layout, true
}
// HasLayout returns a boolean if a field has been set.
func (o *Dashboard) HasLayout() bool {
- if o != nil && !IsNil(o.Layout) {
+ if o != nil && IsNil(o.Layout) {
return true
}
return false
}
-// SetLayout gets a reference to the given map[string]interface{} and assigns it to the Layout field.
-func (o *Dashboard) SetLayout(v map[string]interface{}) {
+// SetLayout gets a reference to the given interface{} and assigns it to the Layout field.
+func (o *Dashboard) SetLayout(v interface{}) {
o.Layout = v
}
-// GetConfig returns the Config field value if set, zero value otherwise.
-func (o *Dashboard) GetConfig() map[string]interface{} {
- if o == nil || IsNil(o.Config) {
- var ret map[string]interface{}
+// GetConfig returns the Config field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *Dashboard) GetConfig() interface{} {
+ if o == nil {
+ var ret interface{}
return ret
}
return o.Config
@@ -86,24 +87,25 @@ func (o *Dashboard) GetConfig() map[string]interface{} {
// GetConfigOk returns a tuple with the Config field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *Dashboard) GetConfigOk() (map[string]interface{}, bool) {
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *Dashboard) GetConfigOk() (*interface{}, bool) {
if o == nil || IsNil(o.Config) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Config, true
+ return &o.Config, true
}
// HasConfig returns a boolean if a field has been set.
func (o *Dashboard) HasConfig() bool {
- if o != nil && !IsNil(o.Config) {
+ if o != nil && IsNil(o.Config) {
return true
}
return false
}
-// SetConfig gets a reference to the given map[string]interface{} and assigns it to the Config field.
-func (o *Dashboard) SetConfig(v map[string]interface{}) {
+// SetConfig gets a reference to the given interface{} and assigns it to the Config field.
+func (o *Dashboard) SetConfig(v interface{}) {
o.Config = v
}
@@ -117,10 +119,10 @@ func (o Dashboard) MarshalJSON() ([]byte, error) {
func (o Dashboard) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Layout) {
+ if o.Layout != nil {
toSerialize["layout"] = o.Layout
}
- if !IsNil(o.Config) {
+ if o.Config != nil {
toSerialize["config"] = o.Config
}
@@ -131,10 +133,10 @@ func (o Dashboard) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Dashboard) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Dashboard) UnmarshalJSON(data []byte) (err error) {
varDashboard := _Dashboard{}
- err = json.Unmarshal(bytes, &varDashboard)
+ err = json.Unmarshal(data, &varDashboard)
if err != nil {
return err
@@ -144,7 +146,7 @@ func (o *Dashboard) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "layout")
delete(additionalProperties, "config")
o.AdditionalProperties = additionalProperties
diff --git a/model_dashboard_request.go b/model_dashboard_request.go
index c86b94ccea..2190d8e135 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &DashboardRequest{}
// DashboardRequest struct for DashboardRequest
type DashboardRequest struct {
- Layout map[string]interface{} `json:"layout,omitempty"`
- Config map[string]interface{} `json:"config,omitempty"`
+ Layout interface{} `json:"layout,omitempty"`
+ Config interface{} `json:"config,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -43,10 +43,10 @@ func NewDashboardRequestWithDefaults() *DashboardRequest {
return &this
}
-// GetLayout returns the Layout field value if set, zero value otherwise.
-func (o *DashboardRequest) GetLayout() map[string]interface{} {
- if o == nil || IsNil(o.Layout) {
- var ret map[string]interface{}
+// GetLayout returns the Layout field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *DashboardRequest) GetLayout() interface{} {
+ if o == nil {
+ var ret interface{}
return ret
}
return o.Layout
@@ -54,31 +54,32 @@ func (o *DashboardRequest) GetLayout() map[string]interface{} {
// GetLayoutOk returns a tuple with the Layout field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *DashboardRequest) GetLayoutOk() (map[string]interface{}, bool) {
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *DashboardRequest) GetLayoutOk() (*interface{}, bool) {
if o == nil || IsNil(o.Layout) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Layout, true
+ return &o.Layout, true
}
// HasLayout returns a boolean if a field has been set.
func (o *DashboardRequest) HasLayout() bool {
- if o != nil && !IsNil(o.Layout) {
+ if o != nil && IsNil(o.Layout) {
return true
}
return false
}
-// SetLayout gets a reference to the given map[string]interface{} and assigns it to the Layout field.
-func (o *DashboardRequest) SetLayout(v map[string]interface{}) {
+// SetLayout gets a reference to the given interface{} and assigns it to the Layout field.
+func (o *DashboardRequest) SetLayout(v interface{}) {
o.Layout = v
}
-// GetConfig returns the Config field value if set, zero value otherwise.
-func (o *DashboardRequest) GetConfig() map[string]interface{} {
- if o == nil || IsNil(o.Config) {
- var ret map[string]interface{}
+// GetConfig returns the Config field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *DashboardRequest) GetConfig() interface{} {
+ if o == nil {
+ var ret interface{}
return ret
}
return o.Config
@@ -86,24 +87,25 @@ func (o *DashboardRequest) GetConfig() map[string]interface{} {
// GetConfigOk returns a tuple with the Config field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *DashboardRequest) GetConfigOk() (map[string]interface{}, bool) {
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *DashboardRequest) GetConfigOk() (*interface{}, bool) {
if o == nil || IsNil(o.Config) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Config, true
+ return &o.Config, true
}
// HasConfig returns a boolean if a field has been set.
func (o *DashboardRequest) HasConfig() bool {
- if o != nil && !IsNil(o.Config) {
+ if o != nil && IsNil(o.Config) {
return true
}
return false
}
-// SetConfig gets a reference to the given map[string]interface{} and assigns it to the Config field.
-func (o *DashboardRequest) SetConfig(v map[string]interface{}) {
+// SetConfig gets a reference to the given interface{} and assigns it to the Config field.
+func (o *DashboardRequest) SetConfig(v interface{}) {
o.Config = v
}
@@ -117,10 +119,10 @@ func (o DashboardRequest) MarshalJSON() ([]byte, error) {
func (o DashboardRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Layout) {
+ if o.Layout != nil {
toSerialize["layout"] = o.Layout
}
- if !IsNil(o.Config) {
+ if o.Config != nil {
toSerialize["config"] = o.Config
}
@@ -131,10 +133,10 @@ func (o DashboardRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DashboardRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DashboardRequest) UnmarshalJSON(data []byte) (err error) {
varDashboardRequest := _DashboardRequest{}
- err = json.Unmarshal(bytes, &varDashboardRequest)
+ err = json.Unmarshal(data, &varDashboardRequest)
if err != nil {
return err
@@ -144,7 +146,7 @@ func (o *DashboardRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "layout")
delete(additionalProperties, "config")
o.AdditionalProperties = additionalProperties
diff --git a/model_data_file.go b/model_data_file.go
index 2bb43c3f66..7d82585a6b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -278,10 +279,38 @@ func (o DataFile) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DataFile) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DataFile) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "source",
+ "path",
+ "last_updated",
+ "size",
+ "hash",
+ }
+
+ 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)
+ }
+ }
+
varDataFile := _DataFile{}
- err = json.Unmarshal(bytes, &varDataFile)
+ err = json.Unmarshal(data, &varDataFile)
if err != nil {
return err
@@ -291,7 +320,7 @@ func (o *DataFile) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_data_source.go b/model_data_source.go
index f918e93b89..7716070019 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -20,17 +21,17 @@ var _ MappedNullable = &DataSource{}
// DataSource Adds support for custom fields and tags.
type DataSource struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Type DataSourceType `json:"type"`
- SourceUrl string `json:"source_url"`
- Enabled *bool `json:"enabled,omitempty"`
- Status DataSourceStatus `json:"status"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Parameters map[string]interface{} `json:"parameters,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Type DataSourceType `json:"type"`
+ SourceUrl string `json:"source_url"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Status DataSourceStatus `json:"status"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Parameters interface{} `json:"parameters,omitempty"`
// Patterns (one per line) matching files to ignore when syncing
IgnoreRules *string `json:"ignore_rules,omitempty"`
Created NullableTime `json:"created"`
@@ -333,9 +334,9 @@ func (o *DataSource) SetComments(v string) {
}
// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DataSource) GetParameters() map[string]interface{} {
+func (o *DataSource) GetParameters() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.Parameters
@@ -344,11 +345,11 @@ func (o *DataSource) GetParameters() map[string]interface{} {
// 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() (map[string]interface{}, bool) {
+func (o *DataSource) GetParametersOk() (*interface{}, bool) {
if o == nil || IsNil(o.Parameters) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Parameters, true
+ return &o.Parameters, true
}
// HasParameters returns a boolean if a field has been set.
@@ -360,8 +361,8 @@ func (o *DataSource) HasParameters() bool {
return false
}
-// SetParameters gets a reference to the given map[string]interface{} and assigns it to the Parameters field.
-func (o *DataSource) SetParameters(v map[string]interface{}) {
+// SetParameters gets a reference to the given interface{} and assigns it to the Parameters field.
+func (o *DataSource) SetParameters(v interface{}) {
o.Parameters = v
}
@@ -516,10 +517,40 @@ func (o DataSource) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DataSource) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DataSource) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "source_url",
+ "status",
+ "created",
+ "last_updated",
+ "file_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)
+ }
+ }
+
varDataSource := _DataSource{}
- err = json.Unmarshal(bytes, &varDataSource)
+ err = json.Unmarshal(data, &varDataSource)
if err != nil {
return err
@@ -529,7 +560,7 @@ func (o *DataSource) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_data_source_request.go b/model_data_source_request.go
index 53d6fb1389..49251ba8e2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 DataSourceRequest type satisfies the MappedNullable interface at compile time
@@ -19,14 +20,13 @@ var _ MappedNullable = &DataSourceRequest{}
// DataSourceRequest Adds support for custom fields and tags.
type DataSourceRequest struct {
- Name string `json:"name"`
- // * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3
- Type string `json:"type"`
- SourceUrl string `json:"source_url"`
- Enabled *bool `json:"enabled,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Parameters map[string]interface{} `json:"parameters,omitempty"`
+ 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"`
// Patterns (one per line) matching files to ignore when syncing
IgnoreRules *string `json:"ignore_rules,omitempty"`
AdditionalProperties map[string]interface{}
@@ -38,7 +38,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_ string, sourceUrl string) *DataSourceRequest {
+func NewDataSourceRequest(name string, type_ DataSourceTypeValue, sourceUrl string) *DataSourceRequest {
this := DataSourceRequest{}
this.Name = name
this.Type = type_
@@ -79,9 +79,9 @@ func (o *DataSourceRequest) SetName(v string) {
}
// GetType returns the Type field value
-func (o *DataSourceRequest) GetType() string {
+func (o *DataSourceRequest) GetType() DataSourceTypeValue {
if o == nil {
- var ret string
+ var ret DataSourceTypeValue
return ret
}
@@ -90,7 +90,7 @@ func (o *DataSourceRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *DataSourceRequest) GetTypeOk() (*string, bool) {
+func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -98,7 +98,7 @@ func (o *DataSourceRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *DataSourceRequest) SetType(v string) {
+func (o *DataSourceRequest) SetType(v DataSourceTypeValue) {
o.Type = v
}
@@ -223,9 +223,9 @@ func (o *DataSourceRequest) SetComments(v string) {
}
// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DataSourceRequest) GetParameters() map[string]interface{} {
+func (o *DataSourceRequest) GetParameters() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.Parameters
@@ -234,11 +234,11 @@ func (o *DataSourceRequest) GetParameters() map[string]interface{} {
// 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 *DataSourceRequest) GetParametersOk() (map[string]interface{}, bool) {
+func (o *DataSourceRequest) GetParametersOk() (*interface{}, bool) {
if o == nil || IsNil(o.Parameters) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Parameters, true
+ return &o.Parameters, true
}
// HasParameters returns a boolean if a field has been set.
@@ -250,8 +250,8 @@ func (o *DataSourceRequest) HasParameters() bool {
return false
}
-// SetParameters gets a reference to the given map[string]interface{} and assigns it to the Parameters field.
-func (o *DataSourceRequest) SetParameters(v map[string]interface{}) {
+// SetParameters gets a reference to the given interface{} and assigns it to the Parameters field.
+func (o *DataSourceRequest) SetParameters(v interface{}) {
o.Parameters = v
}
@@ -323,10 +323,33 @@ func (o DataSourceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DataSourceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DataSourceRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "source_url",
+ }
+
+ 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)
+ }
+ }
+
varDataSourceRequest := _DataSourceRequest{}
- err = json.Unmarshal(bytes, &varDataSourceRequest)
+ err = json.Unmarshal(data, &varDataSourceRequest)
if err != nil {
return err
@@ -336,7 +359,7 @@ func (o *DataSourceRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "type")
delete(additionalProperties, "source_url")
diff --git a/model_data_source_status.go b/model_data_source_status.go
index 971e965f5a..791802a27b 100644
--- a/model_data_source_status.go
+++ b/model_data_source_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &DataSourceStatus{}
// DataSourceStatus struct for DataSourceStatus
type DataSourceStatus struct {
- // * `new` - New * `queued` - Queued * `syncing` - Syncing * `completed` - Completed * `failed` - Failed
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *DataSourceStatusValue `json:"value,omitempty"`
+ Label *DataSourceStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewDataSourceStatusWithDefaults() *DataSourceStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *DataSourceStatus) GetValue() string {
+func (o *DataSourceStatus) GetValue() DataSourceStatusValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret DataSourceStatusValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *DataSourceStatus) GetValue() string {
// 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() (*string, bool) {
+func (o *DataSourceStatus) GetValueOk() (*DataSourceStatusValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *DataSourceStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *DataSourceStatus) SetValue(v string) {
+// SetValue gets a reference to the given DataSourceStatusValue and assigns it to the Value field.
+func (o *DataSourceStatus) SetValue(v DataSourceStatusValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *DataSourceStatus) GetLabel() string {
+func (o *DataSourceStatus) GetLabel() DataSourceStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret DataSourceStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *DataSourceStatus) 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 *DataSourceStatus) GetLabelOk() (*string, bool) {
+func (o *DataSourceStatus) GetLabelOk() (*DataSourceStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *DataSourceStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *DataSourceStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given DataSourceStatusLabel and assigns it to the Label field.
+func (o *DataSourceStatus) SetLabel(v DataSourceStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o DataSourceStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DataSourceStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DataSourceStatus) UnmarshalJSON(data []byte) (err error) {
varDataSourceStatus := _DataSourceStatus{}
- err = json.Unmarshal(bytes, &varDataSourceStatus)
+ err = json.Unmarshal(data, &varDataSourceStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *DataSourceStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_data_source_status_label.go b/model_data_source_status_label.go
new file mode 100644
index 0000000000..e32a2d9b97
--- /dev/null
+++ b/model_data_source_status_label.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..f8fcce1d40
--- /dev/null
+++ b/model_data_source_status_value.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
index 068b7d2f06..816a037db4 100644
--- a/model_data_source_type.go
+++ b/model_data_source_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &DataSourceType{}
// DataSourceType struct for DataSourceType
type DataSourceType struct {
- // * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *DataSourceTypeValue `json:"value,omitempty"`
+ Label *DataSourceTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewDataSourceTypeWithDefaults() *DataSourceType {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *DataSourceType) GetValue() string {
+func (o *DataSourceType) GetValue() DataSourceTypeValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret DataSourceTypeValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *DataSourceType) GetValue() string {
// 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() (*string, bool) {
+func (o *DataSourceType) GetValueOk() (*DataSourceTypeValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *DataSourceType) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *DataSourceType) SetValue(v string) {
+// 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() string {
+func (o *DataSourceType) GetLabel() DataSourceTypeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret DataSourceTypeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *DataSourceType) 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 *DataSourceType) GetLabelOk() (*string, bool) {
+func (o *DataSourceType) GetLabelOk() (*DataSourceTypeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *DataSourceType) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *DataSourceType) SetLabel(v string) {
+// SetLabel gets a reference to the given DataSourceTypeLabel and assigns it to the Label field.
+func (o *DataSourceType) SetLabel(v DataSourceTypeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o DataSourceType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DataSourceType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DataSourceType) UnmarshalJSON(data []byte) (err error) {
varDataSourceType := _DataSourceType{}
- err = json.Unmarshal(bytes, &varDataSourceType)
+ err = json.Unmarshal(data, &varDataSourceType)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *DataSourceType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_data_source_type_label.go b/model_data_source_type_label.go
new file mode 100644
index 0000000000..b52e36ac84
--- /dev/null
+++ b/model_data_source_type_label.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..2a5bab37cb
--- /dev/null
+++ b/model_data_source_type_value.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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_devices_render_config_create_format_parameter.go b/model_dcim_devices_render_config_create_format_parameter.go
new file mode 100644
index 0000000000..34eef76be1
--- /dev/null
+++ b/model_dcim_devices_render_config_create_format_parameter.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// DcimDevicesRenderConfigCreateFormatParameter the model 'DcimDevicesRenderConfigCreateFormatParameter'
+type DcimDevicesRenderConfigCreateFormatParameter string
+
+// List of dcim_devices_render_config_create_format_parameter
+const (
+ DCIMDEVICESRENDERCONFIGCREATEFORMATPARAMETER_JSON DcimDevicesRenderConfigCreateFormatParameter = "json"
+ DCIMDEVICESRENDERCONFIGCREATEFORMATPARAMETER_TXT DcimDevicesRenderConfigCreateFormatParameter = "txt"
+)
+
+// All allowed values of DcimDevicesRenderConfigCreateFormatParameter enum
+var AllowedDcimDevicesRenderConfigCreateFormatParameterEnumValues = []DcimDevicesRenderConfigCreateFormatParameter{
+ "json",
+ "txt",
+}
+
+func (v *DcimDevicesRenderConfigCreateFormatParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DcimDevicesRenderConfigCreateFormatParameter(value)
+ for _, existing := range AllowedDcimDevicesRenderConfigCreateFormatParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DcimDevicesRenderConfigCreateFormatParameter", value)
+}
+
+// NewDcimDevicesRenderConfigCreateFormatParameterFromValue returns a pointer to a valid DcimDevicesRenderConfigCreateFormatParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDcimDevicesRenderConfigCreateFormatParameterFromValue(v string) (*DcimDevicesRenderConfigCreateFormatParameter, error) {
+ ev := DcimDevicesRenderConfigCreateFormatParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DcimDevicesRenderConfigCreateFormatParameter: valid values are %v", v, AllowedDcimDevicesRenderConfigCreateFormatParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DcimDevicesRenderConfigCreateFormatParameter) IsValid() bool {
+ for _, existing := range AllowedDcimDevicesRenderConfigCreateFormatParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to dcim_devices_render_config_create_format_parameter value
+func (v DcimDevicesRenderConfigCreateFormatParameter) Ptr() *DcimDevicesRenderConfigCreateFormatParameter {
+ return &v
+}
+
+type NullableDcimDevicesRenderConfigCreateFormatParameter struct {
+ value *DcimDevicesRenderConfigCreateFormatParameter
+ isSet bool
+}
+
+func (v NullableDcimDevicesRenderConfigCreateFormatParameter) Get() *DcimDevicesRenderConfigCreateFormatParameter {
+ return v.value
+}
+
+func (v *NullableDcimDevicesRenderConfigCreateFormatParameter) Set(val *DcimDevicesRenderConfigCreateFormatParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDcimDevicesRenderConfigCreateFormatParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDcimDevicesRenderConfigCreateFormatParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDcimDevicesRenderConfigCreateFormatParameter(val *DcimDevicesRenderConfigCreateFormatParameter) *NullableDcimDevicesRenderConfigCreateFormatParameter {
+ return &NullableDcimDevicesRenderConfigCreateFormatParameter{value: val, isSet: true}
+}
+
+func (v NullableDcimDevicesRenderConfigCreateFormatParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDcimDevicesRenderConfigCreateFormatParameter) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device.go b/model_device.go
index 7c6cf4288a..d5bbf1f937 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -58,7 +59,7 @@ type Device struct {
Comments *string `json:"comments,omitempty"`
ConfigTemplate NullableNestedConfigTemplate `json:"config_template,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData map[string]interface{} `json:"local_context_data,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
@@ -1256,9 +1257,9 @@ func (o *Device) UnsetConfigTemplate() {
}
// GetLocalContextData returns the LocalContextData field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Device) GetLocalContextData() map[string]interface{} {
+func (o *Device) GetLocalContextData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.LocalContextData
@@ -1267,11 +1268,11 @@ func (o *Device) GetLocalContextData() map[string]interface{} {
// GetLocalContextDataOk returns a tuple with the LocalContextData field value if set, nil otherwise
// and a 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) GetLocalContextDataOk() (map[string]interface{}, bool) {
+func (o *Device) GetLocalContextDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.LocalContextData) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.LocalContextData, true
+ return &o.LocalContextData, true
}
// HasLocalContextData returns a boolean if a field has been set.
@@ -1283,8 +1284,8 @@ func (o *Device) HasLocalContextData() bool {
return false
}
-// SetLocalContextData gets a reference to the given map[string]interface{} and assigns it to the LocalContextData field.
-func (o *Device) SetLocalContextData(v map[string]interface{}) {
+// SetLocalContextData gets a reference to the given interface{} and assigns it to the LocalContextData field.
+func (o *Device) SetLocalContextData(v interface{}) {
o.LocalContextData = v
}
@@ -1761,10 +1762,51 @@ func (o Device) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Device) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Device) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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_type",
+ "role",
+ "device_role",
+ "site",
+ "parent_device",
+ "primary_ip",
+ "created",
+ "last_updated",
+ "console_port_count",
+ "console_server_port_count",
+ "power_port_count",
+ "power_outlet_count",
+ "interface_count",
+ "front_port_count",
+ "rear_port_count",
+ "device_bay_count",
+ "module_bay_count",
+ "inventory_item_count",
+ }
+
+ 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)
+ }
+ }
+
varDevice := _Device{}
- err = json.Unmarshal(bytes, &varDevice)
+ err = json.Unmarshal(data, &varDevice)
if err != nil {
return err
@@ -1774,7 +1816,7 @@ func (o *Device) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_device_airflow.go b/model_device_airflow.go
index 481269bba9..602432745a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &DeviceAirflow{}
// DeviceAirflow struct for DeviceAirflow
type DeviceAirflow struct {
- // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *DeviceAirflowValue `json:"value,omitempty"`
+ Label *DeviceAirflowLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewDeviceAirflowWithDefaults() *DeviceAirflow {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *DeviceAirflow) GetValue() string {
+func (o *DeviceAirflow) GetValue() DeviceAirflowValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret DeviceAirflowValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *DeviceAirflow) GetValue() string {
// 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 *DeviceAirflow) GetValueOk() (*string, bool) {
+func (o *DeviceAirflow) GetValueOk() (*DeviceAirflowValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *DeviceAirflow) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *DeviceAirflow) SetValue(v string) {
+// SetValue gets a reference to the given DeviceAirflowValue and assigns it to the Value field.
+func (o *DeviceAirflow) SetValue(v DeviceAirflowValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *DeviceAirflow) GetLabel() string {
+func (o *DeviceAirflow) GetLabel() DeviceAirflowLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret DeviceAirflowLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *DeviceAirflow) 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 *DeviceAirflow) GetLabelOk() (*string, bool) {
+func (o *DeviceAirflow) GetLabelOk() (*DeviceAirflowLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *DeviceAirflow) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *DeviceAirflow) SetLabel(v string) {
+// SetLabel gets a reference to the given DeviceAirflowLabel and assigns it to the Label field.
+func (o *DeviceAirflow) SetLabel(v DeviceAirflowLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o DeviceAirflow) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceAirflow) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceAirflow) UnmarshalJSON(data []byte) (err error) {
varDeviceAirflow := _DeviceAirflow{}
- err = json.Unmarshal(bytes, &varDeviceAirflow)
+ err = json.Unmarshal(data, &varDeviceAirflow)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *DeviceAirflow) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_device_airflow_label.go b/model_device_airflow_label.go
new file mode 100644
index 0000000000..a45e540353
--- /dev/null
+++ b/model_device_airflow_label.go
@@ -0,0 +1,120 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// DeviceAirflowLabel the model 'DeviceAirflowLabel'
+type DeviceAirflowLabel string
+
+// List of Device_airflow_label
+const (
+ DEVICEAIRFLOWLABEL_FRONT_TO_REAR DeviceAirflowLabel = "Front to rear"
+ DEVICEAIRFLOWLABEL_REAR_TO_FRONT DeviceAirflowLabel = "Rear to front"
+ DEVICEAIRFLOWLABEL_LEFT_TO_RIGHT DeviceAirflowLabel = "Left to right"
+ DEVICEAIRFLOWLABEL_RIGHT_TO_LEFT DeviceAirflowLabel = "Right to left"
+ DEVICEAIRFLOWLABEL_SIDE_TO_REAR DeviceAirflowLabel = "Side to rear"
+ DEVICEAIRFLOWLABEL_PASSIVE DeviceAirflowLabel = "Passive"
+ DEVICEAIRFLOWLABEL_MIXED DeviceAirflowLabel = "Mixed"
+)
+
+// All allowed values of DeviceAirflowLabel enum
+var AllowedDeviceAirflowLabelEnumValues = []DeviceAirflowLabel{
+ "Front to rear",
+ "Rear to front",
+ "Left to right",
+ "Right to left",
+ "Side to rear",
+ "Passive",
+ "Mixed",
+}
+
+func (v *DeviceAirflowLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DeviceAirflowLabel(value)
+ for _, existing := range AllowedDeviceAirflowLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DeviceAirflowLabel", value)
+}
+
+// NewDeviceAirflowLabelFromValue returns a pointer to a valid DeviceAirflowLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDeviceAirflowLabelFromValue(v string) (*DeviceAirflowLabel, error) {
+ ev := DeviceAirflowLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DeviceAirflowLabel: valid values are %v", v, AllowedDeviceAirflowLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DeviceAirflowLabel) IsValid() bool {
+ for _, existing := range AllowedDeviceAirflowLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Device_airflow_label value
+func (v DeviceAirflowLabel) Ptr() *DeviceAirflowLabel {
+ return &v
+}
+
+type NullableDeviceAirflowLabel struct {
+ value *DeviceAirflowLabel
+ isSet bool
+}
+
+func (v NullableDeviceAirflowLabel) Get() *DeviceAirflowLabel {
+ return v.value
+}
+
+func (v *NullableDeviceAirflowLabel) Set(val *DeviceAirflowLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceAirflowLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceAirflowLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceAirflowLabel(val *DeviceAirflowLabel) *NullableDeviceAirflowLabel {
+ return &NullableDeviceAirflowLabel{value: val, isSet: true}
+}
+
+func (v NullableDeviceAirflowLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceAirflowLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_airflow_value.go b/model_device_airflow_value.go
new file mode 100644
index 0000000000..a15408b95e
--- /dev/null
+++ b/model_device_airflow_value.go
@@ -0,0 +1,122 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// DeviceAirflowValue * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed
+type DeviceAirflowValue string
+
+// List of Device_airflow_value
+const (
+ DEVICEAIRFLOWVALUE_FRONT_TO_REAR DeviceAirflowValue = "front-to-rear"
+ DEVICEAIRFLOWVALUE_REAR_TO_FRONT DeviceAirflowValue = "rear-to-front"
+ DEVICEAIRFLOWVALUE_LEFT_TO_RIGHT DeviceAirflowValue = "left-to-right"
+ DEVICEAIRFLOWVALUE_RIGHT_TO_LEFT DeviceAirflowValue = "right-to-left"
+ DEVICEAIRFLOWVALUE_SIDE_TO_REAR DeviceAirflowValue = "side-to-rear"
+ DEVICEAIRFLOWVALUE_PASSIVE DeviceAirflowValue = "passive"
+ DEVICEAIRFLOWVALUE_MIXED DeviceAirflowValue = "mixed"
+ DEVICEAIRFLOWVALUE_EMPTY DeviceAirflowValue = ""
+)
+
+// All allowed values of DeviceAirflowValue enum
+var AllowedDeviceAirflowValueEnumValues = []DeviceAirflowValue{
+ "front-to-rear",
+ "rear-to-front",
+ "left-to-right",
+ "right-to-left",
+ "side-to-rear",
+ "passive",
+ "mixed",
+ "",
+}
+
+func (v *DeviceAirflowValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DeviceAirflowValue(value)
+ for _, existing := range AllowedDeviceAirflowValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DeviceAirflowValue", value)
+}
+
+// NewDeviceAirflowValueFromValue returns a pointer to a valid DeviceAirflowValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDeviceAirflowValueFromValue(v string) (*DeviceAirflowValue, error) {
+ ev := DeviceAirflowValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DeviceAirflowValue: valid values are %v", v, AllowedDeviceAirflowValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DeviceAirflowValue) IsValid() bool {
+ for _, existing := range AllowedDeviceAirflowValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Device_airflow_value value
+func (v DeviceAirflowValue) Ptr() *DeviceAirflowValue {
+ return &v
+}
+
+type NullableDeviceAirflowValue struct {
+ value *DeviceAirflowValue
+ isSet bool
+}
+
+func (v NullableDeviceAirflowValue) Get() *DeviceAirflowValue {
+ return v.value
+}
+
+func (v *NullableDeviceAirflowValue) Set(val *DeviceAirflowValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceAirflowValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceAirflowValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceAirflowValue(val *DeviceAirflowValue) *NullableDeviceAirflowValue {
+ return &NullableDeviceAirflowValue{value: val, isSet: true}
+}
+
+func (v NullableDeviceAirflowValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceAirflowValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_bay.go b/model_device_bay.go
index 7b2a139285..02a58a3217 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -445,10 +446,37 @@ func (o DeviceBay) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceBay) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceBay) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varDeviceBay := _DeviceBay{}
- err = json.Unmarshal(bytes, &varDeviceBay)
+ err = json.Unmarshal(data, &varDeviceBay)
if err != nil {
return err
@@ -458,7 +486,7 @@ func (o *DeviceBay) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_device_bay_request.go b/model_device_bay_request.go
index d3f79efb56..b961d5a991 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 DeviceBayRequest type satisfies the MappedNullable interface at compile time
@@ -305,10 +306,32 @@ func (o DeviceBayRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceBayRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceBayRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varDeviceBayRequest := _DeviceBayRequest{}
- err = json.Unmarshal(bytes, &varDeviceBayRequest)
+ err = json.Unmarshal(data, &varDeviceBayRequest)
if err != nil {
return err
@@ -318,7 +341,7 @@ func (o *DeviceBayRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "name")
delete(additionalProperties, "label")
diff --git a/model_device_bay_template.go b/model_device_bay_template.go
index ec0ece3035..92e6889426 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -327,10 +328,37 @@ func (o DeviceBayTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceBayTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceBayTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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_type",
+ "name",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varDeviceBayTemplate := _DeviceBayTemplate{}
- err = json.Unmarshal(bytes, &varDeviceBayTemplate)
+ err = json.Unmarshal(data, &varDeviceBayTemplate)
if err != nil {
return err
@@ -340,7 +368,7 @@ func (o *DeviceBayTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_device_bay_template_request.go b/model_device_bay_template_request.go
index c81fb8bf94..9f6b2da3c1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 DeviceBayTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -187,10 +188,32 @@ func (o DeviceBayTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceBayTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varDeviceBayTemplateRequest := _DeviceBayTemplateRequest{}
- err = json.Unmarshal(bytes, &varDeviceBayTemplateRequest)
+ err = json.Unmarshal(data, &varDeviceBayTemplateRequest)
if err != nil {
return err
@@ -200,7 +223,7 @@ func (o *DeviceBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "name")
delete(additionalProperties, "label")
diff --git a/model_device_device_role.go b/model_device_device_role.go
index 41e22363f4..f27498344f 100644
--- a/model_device_device_role.go
+++ b/model_device_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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 DeviceDeviceRole type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o DeviceDeviceRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceDeviceRole) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varDeviceDeviceRole)
+ err = json.Unmarshal(data, &varDeviceDeviceRole)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *DeviceDeviceRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_device_face.go b/model_device_face.go
index f2453f7008..eed5573acc 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &DeviceFace{}
// DeviceFace struct for DeviceFace
type DeviceFace struct {
- // * `front` - Front * `rear` - Rear
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *DeviceFaceValue `json:"value,omitempty"`
+ Label *DeviceFaceLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewDeviceFaceWithDefaults() *DeviceFace {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *DeviceFace) GetValue() string {
+func (o *DeviceFace) GetValue() DeviceFaceValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret DeviceFaceValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *DeviceFace) GetValue() string {
// 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 *DeviceFace) GetValueOk() (*string, bool) {
+func (o *DeviceFace) GetValueOk() (*DeviceFaceValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *DeviceFace) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *DeviceFace) SetValue(v string) {
+// SetValue gets a reference to the given DeviceFaceValue and assigns it to the Value field.
+func (o *DeviceFace) SetValue(v DeviceFaceValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *DeviceFace) GetLabel() string {
+func (o *DeviceFace) GetLabel() DeviceFaceLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret DeviceFaceLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *DeviceFace) 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 *DeviceFace) GetLabelOk() (*string, bool) {
+func (o *DeviceFace) GetLabelOk() (*DeviceFaceLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *DeviceFace) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *DeviceFace) SetLabel(v string) {
+// SetLabel gets a reference to the given DeviceFaceLabel and assigns it to the Label field.
+func (o *DeviceFace) SetLabel(v DeviceFaceLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o DeviceFace) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceFace) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceFace) UnmarshalJSON(data []byte) (err error) {
varDeviceFace := _DeviceFace{}
- err = json.Unmarshal(bytes, &varDeviceFace)
+ err = json.Unmarshal(data, &varDeviceFace)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *DeviceFace) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_device_face_label.go b/model_device_face_label.go
new file mode 100644
index 0000000000..320b7f2496
--- /dev/null
+++ b/model_device_face_label.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// DeviceFaceLabel the model 'DeviceFaceLabel'
+type DeviceFaceLabel string
+
+// List of Device_face_label
+const (
+ DEVICEFACELABEL_FRONT DeviceFaceLabel = "Front"
+ DEVICEFACELABEL_REAR DeviceFaceLabel = "Rear"
+)
+
+// All allowed values of DeviceFaceLabel enum
+var AllowedDeviceFaceLabelEnumValues = []DeviceFaceLabel{
+ "Front",
+ "Rear",
+}
+
+func (v *DeviceFaceLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DeviceFaceLabel(value)
+ for _, existing := range AllowedDeviceFaceLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DeviceFaceLabel", value)
+}
+
+// NewDeviceFaceLabelFromValue returns a pointer to a valid DeviceFaceLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDeviceFaceLabelFromValue(v string) (*DeviceFaceLabel, error) {
+ ev := DeviceFaceLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DeviceFaceLabel: valid values are %v", v, AllowedDeviceFaceLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DeviceFaceLabel) IsValid() bool {
+ for _, existing := range AllowedDeviceFaceLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Device_face_label value
+func (v DeviceFaceLabel) Ptr() *DeviceFaceLabel {
+ return &v
+}
+
+type NullableDeviceFaceLabel struct {
+ value *DeviceFaceLabel
+ isSet bool
+}
+
+func (v NullableDeviceFaceLabel) Get() *DeviceFaceLabel {
+ return v.value
+}
+
+func (v *NullableDeviceFaceLabel) Set(val *DeviceFaceLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceFaceLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceFaceLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceFaceLabel(val *DeviceFaceLabel) *NullableDeviceFaceLabel {
+ return &NullableDeviceFaceLabel{value: val, isSet: true}
+}
+
+func (v NullableDeviceFaceLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceFaceLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_face_value.go b/model_device_face_value.go
new file mode 100644
index 0000000000..7b150b35ac
--- /dev/null
+++ b/model_device_face_value.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// DeviceFaceValue * `front` - Front * `rear` - Rear
+type DeviceFaceValue string
+
+// List of Device_face_value
+const (
+ DEVICEFACEVALUE_FRONT DeviceFaceValue = "front"
+ DEVICEFACEVALUE_REAR DeviceFaceValue = "rear"
+ DEVICEFACEVALUE_EMPTY DeviceFaceValue = ""
+)
+
+// All allowed values of DeviceFaceValue enum
+var AllowedDeviceFaceValueEnumValues = []DeviceFaceValue{
+ "front",
+ "rear",
+ "",
+}
+
+func (v *DeviceFaceValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DeviceFaceValue(value)
+ for _, existing := range AllowedDeviceFaceValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DeviceFaceValue", value)
+}
+
+// NewDeviceFaceValueFromValue returns a pointer to a valid DeviceFaceValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDeviceFaceValueFromValue(v string) (*DeviceFaceValue, error) {
+ ev := DeviceFaceValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DeviceFaceValue: valid values are %v", v, AllowedDeviceFaceValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DeviceFaceValue) IsValid() bool {
+ for _, existing := range AllowedDeviceFaceValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Device_face_value value
+func (v DeviceFaceValue) Ptr() *DeviceFaceValue {
+ return &v
+}
+
+type NullableDeviceFaceValue struct {
+ value *DeviceFaceValue
+ isSet bool
+}
+
+func (v NullableDeviceFaceValue) Get() *DeviceFaceValue {
+ return v.value
+}
+
+func (v *NullableDeviceFaceValue) Set(val *DeviceFaceValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceFaceValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceFaceValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceFaceValue(val *DeviceFaceValue) *NullableDeviceFaceValue {
+ return &NullableDeviceFaceValue{value: val, isSet: true}
+}
+
+func (v NullableDeviceFaceValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceFaceValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_role.go b/model_device_role.go
index 51fd83f26f..d44dd4cbce 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -535,10 +536,39 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceRole) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "device_count",
+ "virtualmachine_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)
+ }
+ }
+
varDeviceRole := _DeviceRole{}
- err = json.Unmarshal(bytes, &varDeviceRole)
+ err = json.Unmarshal(data, &varDeviceRole)
if err != nil {
return err
@@ -548,7 +578,7 @@ func (o *DeviceRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_device_role_request.go b/model_device_role_request.go
index 74897c5806..ec37b0942f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 DeviceRoleRequest type satisfies the MappedNullable interface at compile time
@@ -341,10 +342,32 @@ func (o DeviceRoleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceRoleRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varDeviceRoleRequest := _DeviceRoleRequest{}
- err = json.Unmarshal(bytes, &varDeviceRoleRequest)
+ err = json.Unmarshal(data, &varDeviceRoleRequest)
if err != nil {
return err
@@ -354,7 +377,7 @@ func (o *DeviceRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "color")
diff --git a/model_device_status.go b/model_device_status.go
index 9da06a6a74..34d9d05cd3 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &DeviceStatus{}
// DeviceStatus struct for DeviceStatus
type DeviceStatus struct {
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *DeviceStatusValue `json:"value,omitempty"`
+ Label *DeviceStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewDeviceStatusWithDefaults() *DeviceStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *DeviceStatus) GetValue() string {
+func (o *DeviceStatus) GetValue() DeviceStatusValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret DeviceStatusValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *DeviceStatus) GetValue() string {
// 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 *DeviceStatus) GetValueOk() (*string, bool) {
+func (o *DeviceStatus) GetValueOk() (*DeviceStatusValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *DeviceStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *DeviceStatus) SetValue(v string) {
+// SetValue gets a reference to the given DeviceStatusValue and assigns it to the Value field.
+func (o *DeviceStatus) SetValue(v DeviceStatusValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *DeviceStatus) GetLabel() string {
+func (o *DeviceStatus) GetLabel() DeviceStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret DeviceStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *DeviceStatus) 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 *DeviceStatus) GetLabelOk() (*string, bool) {
+func (o *DeviceStatus) GetLabelOk() (*DeviceStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *DeviceStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *DeviceStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given DeviceStatusLabel and assigns it to the Label field.
+func (o *DeviceStatus) SetLabel(v DeviceStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o DeviceStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceStatus) UnmarshalJSON(data []byte) (err error) {
varDeviceStatus := _DeviceStatus{}
- err = json.Unmarshal(bytes, &varDeviceStatus)
+ err = json.Unmarshal(data, &varDeviceStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *DeviceStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_device_status_label.go b/model_device_status_label.go
new file mode 100644
index 0000000000..badc37b51a
--- /dev/null
+++ b/model_device_status_label.go
@@ -0,0 +1,120 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// DeviceStatusLabel the model 'DeviceStatusLabel'
+type DeviceStatusLabel string
+
+// List of Device_status_label
+const (
+ DEVICESTATUSLABEL_OFFLINE DeviceStatusLabel = "Offline"
+ DEVICESTATUSLABEL_ACTIVE DeviceStatusLabel = "Active"
+ DEVICESTATUSLABEL_PLANNED DeviceStatusLabel = "Planned"
+ DEVICESTATUSLABEL_STAGED DeviceStatusLabel = "Staged"
+ DEVICESTATUSLABEL_FAILED DeviceStatusLabel = "Failed"
+ DEVICESTATUSLABEL_INVENTORY DeviceStatusLabel = "Inventory"
+ DEVICESTATUSLABEL_DECOMMISSIONING DeviceStatusLabel = "Decommissioning"
+)
+
+// All allowed values of DeviceStatusLabel enum
+var AllowedDeviceStatusLabelEnumValues = []DeviceStatusLabel{
+ "Offline",
+ "Active",
+ "Planned",
+ "Staged",
+ "Failed",
+ "Inventory",
+ "Decommissioning",
+}
+
+func (v *DeviceStatusLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DeviceStatusLabel(value)
+ for _, existing := range AllowedDeviceStatusLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DeviceStatusLabel", value)
+}
+
+// NewDeviceStatusLabelFromValue returns a pointer to a valid DeviceStatusLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDeviceStatusLabelFromValue(v string) (*DeviceStatusLabel, error) {
+ ev := DeviceStatusLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DeviceStatusLabel: valid values are %v", v, AllowedDeviceStatusLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DeviceStatusLabel) IsValid() bool {
+ for _, existing := range AllowedDeviceStatusLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Device_status_label value
+func (v DeviceStatusLabel) Ptr() *DeviceStatusLabel {
+ return &v
+}
+
+type NullableDeviceStatusLabel struct {
+ value *DeviceStatusLabel
+ isSet bool
+}
+
+func (v NullableDeviceStatusLabel) Get() *DeviceStatusLabel {
+ return v.value
+}
+
+func (v *NullableDeviceStatusLabel) Set(val *DeviceStatusLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceStatusLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceStatusLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceStatusLabel(val *DeviceStatusLabel) *NullableDeviceStatusLabel {
+ return &NullableDeviceStatusLabel{value: val, isSet: true}
+}
+
+func (v NullableDeviceStatusLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceStatusLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_status_value.go b/model_device_status_value.go
new file mode 100644
index 0000000000..88ff9ee228
--- /dev/null
+++ b/model_device_status_value.go
@@ -0,0 +1,120 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// DeviceStatusValue * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning
+type DeviceStatusValue string
+
+// List of Device_status_value
+const (
+ DEVICESTATUSVALUE_OFFLINE DeviceStatusValue = "offline"
+ DEVICESTATUSVALUE_ACTIVE DeviceStatusValue = "active"
+ DEVICESTATUSVALUE_PLANNED DeviceStatusValue = "planned"
+ DEVICESTATUSVALUE_STAGED DeviceStatusValue = "staged"
+ DEVICESTATUSVALUE_FAILED DeviceStatusValue = "failed"
+ DEVICESTATUSVALUE_INVENTORY DeviceStatusValue = "inventory"
+ DEVICESTATUSVALUE_DECOMMISSIONING DeviceStatusValue = "decommissioning"
+)
+
+// All allowed values of DeviceStatusValue enum
+var AllowedDeviceStatusValueEnumValues = []DeviceStatusValue{
+ "offline",
+ "active",
+ "planned",
+ "staged",
+ "failed",
+ "inventory",
+ "decommissioning",
+}
+
+func (v *DeviceStatusValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DeviceStatusValue(value)
+ for _, existing := range AllowedDeviceStatusValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DeviceStatusValue", value)
+}
+
+// NewDeviceStatusValueFromValue returns a pointer to a valid DeviceStatusValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDeviceStatusValueFromValue(v string) (*DeviceStatusValue, error) {
+ ev := DeviceStatusValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DeviceStatusValue: valid values are %v", v, AllowedDeviceStatusValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DeviceStatusValue) IsValid() bool {
+ for _, existing := range AllowedDeviceStatusValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Device_status_value value
+func (v DeviceStatusValue) Ptr() *DeviceStatusValue {
+ return &v
+}
+
+type NullableDeviceStatusValue struct {
+ value *DeviceStatusValue
+ isSet bool
+}
+
+func (v NullableDeviceStatusValue) Get() *DeviceStatusValue {
+ return v.value
+}
+
+func (v *NullableDeviceStatusValue) Set(val *DeviceStatusValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceStatusValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceStatusValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceStatusValue(val *DeviceStatusValue) *NullableDeviceStatusValue {
+ return &NullableDeviceStatusValue{value: val, isSet: true}
+}
+
+func (v NullableDeviceStatusValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceStatusValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_type.go b/model_device_type.go
index c18b408045..7d43eb5690 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -30,7 +31,9 @@ type DeviceType struct {
// Discrete part number (optional)
PartNumber *string `json:"part_number,omitempty"`
UHeight *float64 `json:"u_height,omitempty"`
- // Device consumes both front and rear rack faces
+ // 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"`
@@ -351,6 +354,38 @@ 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) {
@@ -1088,6 +1123,9 @@ func (o DeviceType) ToMap() (map[string]interface{}, error) {
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
}
@@ -1142,10 +1180,49 @@ func (o DeviceType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceType) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "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{})
+
+ 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)
+ }
+ }
+
varDeviceType := _DeviceType{}
- err = json.Unmarshal(bytes, &varDeviceType)
+ err = json.Unmarshal(data, &varDeviceType)
if err != nil {
return err
@@ -1155,7 +1232,7 @@ func (o *DeviceType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
@@ -1165,6 +1242,7 @@ func (o *DeviceType) UnmarshalJSON(bytes []byte) (err error) {
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")
diff --git a/model_device_type_airflow.go b/model_device_type_airflow.go
index 07ee1deac5..78535e41d4 100644
--- a/model_device_type_airflow.go
+++ b/model_device_type_airflow.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &DeviceTypeAirflow{}
// DeviceTypeAirflow struct for DeviceTypeAirflow
type DeviceTypeAirflow struct {
- // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *DeviceAirflowValue `json:"value,omitempty"`
+ Label *DeviceAirflowLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewDeviceTypeAirflowWithDefaults() *DeviceTypeAirflow {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *DeviceTypeAirflow) GetValue() string {
+func (o *DeviceTypeAirflow) GetValue() DeviceAirflowValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret DeviceAirflowValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *DeviceTypeAirflow) GetValue() string {
// 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() (*string, bool) {
+func (o *DeviceTypeAirflow) GetValueOk() (*DeviceAirflowValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *DeviceTypeAirflow) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *DeviceTypeAirflow) SetValue(v string) {
+// 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() string {
+func (o *DeviceTypeAirflow) GetLabel() DeviceAirflowLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret DeviceAirflowLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *DeviceTypeAirflow) 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 *DeviceTypeAirflow) GetLabelOk() (*string, bool) {
+func (o *DeviceTypeAirflow) GetLabelOk() (*DeviceAirflowLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *DeviceTypeAirflow) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *DeviceTypeAirflow) SetLabel(v string) {
+// SetLabel gets a reference to the given DeviceAirflowLabel and assigns it to the Label field.
+func (o *DeviceTypeAirflow) SetLabel(v DeviceAirflowLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o DeviceTypeAirflow) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceTypeAirflow) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceTypeAirflow) UnmarshalJSON(data []byte) (err error) {
varDeviceTypeAirflow := _DeviceTypeAirflow{}
- err = json.Unmarshal(bytes, &varDeviceTypeAirflow)
+ err = json.Unmarshal(data, &varDeviceTypeAirflow)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *DeviceTypeAirflow) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_device_type_request.go b/model_device_type_request.go
index a2a05a9c29..0d4b8102bf 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"os"
)
@@ -27,21 +28,20 @@ type DeviceTypeRequest struct {
// Discrete part number (optional)
PartNumber *string `json:"part_number,omitempty"`
UHeight *float64 `json:"u_height,omitempty"`
- // Device consumes both front and rear rack faces
- IsFullDepth *bool `json:"is_full_depth,omitempty"`
- // * `parent` - Parent * `child` - Child
- SubdeviceRole NullableString `json:"subdevice_role,omitempty"`
- // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed
- Airflow NullableString `json:"airflow,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
- WeightUnit NullableString `json:"weight_unit,omitempty"`
- FrontImage **os.File `json:"front_image,omitempty"`
- RearImage **os.File `json:"rear_image,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ // Devices of this type are excluded when calculating rack utilization.
+ ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"`
+ // Device consumes both front and rear rack faces.
+ IsFullDepth *bool `json:"is_full_depth,omitempty"`
+ SubdeviceRole NullableDeviceTypeRequestSubdeviceRole `json:"subdevice_role,omitempty"`
+ Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
+ WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
+ FrontImage **os.File `json:"front_image,omitempty"`
+ RearImage **os.File `json:"rear_image,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -250,6 +250,38 @@ 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) {
@@ -283,9 +315,9 @@ func (o *DeviceTypeRequest) SetIsFullDepth(v bool) {
}
// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceTypeRequest) GetSubdeviceRole() string {
+func (o *DeviceTypeRequest) GetSubdeviceRole() DeviceTypeRequestSubdeviceRole {
if o == nil || IsNil(o.SubdeviceRole.Get()) {
- var ret string
+ var ret DeviceTypeRequestSubdeviceRole
return ret
}
return *o.SubdeviceRole.Get()
@@ -294,7 +326,7 @@ func (o *DeviceTypeRequest) GetSubdeviceRole() string {
// 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() (*string, bool) {
+func (o *DeviceTypeRequest) GetSubdeviceRoleOk() (*DeviceTypeRequestSubdeviceRole, bool) {
if o == nil {
return nil, false
}
@@ -310,8 +342,8 @@ func (o *DeviceTypeRequest) HasSubdeviceRole() bool {
return false
}
-// SetSubdeviceRole gets a reference to the given NullableString and assigns it to the SubdeviceRole field.
-func (o *DeviceTypeRequest) SetSubdeviceRole(v string) {
+// 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)
}
@@ -326,9 +358,9 @@ func (o *DeviceTypeRequest) UnsetSubdeviceRole() {
}
// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceTypeRequest) GetAirflow() string {
+func (o *DeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow {
if o == nil || IsNil(o.Airflow.Get()) {
- var ret string
+ var ret DeviceTypeRequestAirflow
return ret
}
return *o.Airflow.Get()
@@ -337,7 +369,7 @@ func (o *DeviceTypeRequest) GetAirflow() string {
// 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() (*string, bool) {
+func (o *DeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool) {
if o == nil {
return nil, false
}
@@ -353,8 +385,8 @@ func (o *DeviceTypeRequest) HasAirflow() bool {
return false
}
-// SetAirflow gets a reference to the given NullableString and assigns it to the Airflow field.
-func (o *DeviceTypeRequest) SetAirflow(v string) {
+// 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)
}
@@ -412,9 +444,9 @@ func (o *DeviceTypeRequest) UnsetWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceTypeRequest) GetWeightUnit() string {
+func (o *DeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit {
if o == nil || IsNil(o.WeightUnit.Get()) {
- var ret string
+ var ret DeviceTypeRequestWeightUnit
return ret
}
return *o.WeightUnit.Get()
@@ -423,7 +455,7 @@ func (o *DeviceTypeRequest) GetWeightUnit() string {
// 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() (*string, bool) {
+func (o *DeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) {
if o == nil {
return nil, false
}
@@ -439,8 +471,8 @@ func (o *DeviceTypeRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given NullableString and assigns it to the WeightUnit field.
-func (o *DeviceTypeRequest) SetWeightUnit(v string) {
+// 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)
}
@@ -668,6 +700,9 @@ func (o DeviceTypeRequest) ToMap() (map[string]interface{}, error) {
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
}
@@ -709,10 +744,33 @@ func (o DeviceTypeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceTypeRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "manufacturer",
+ "model",
+ "slug",
+ }
+
+ 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)
+ }
+ }
+
varDeviceTypeRequest := _DeviceTypeRequest{}
- err = json.Unmarshal(bytes, &varDeviceTypeRequest)
+ err = json.Unmarshal(data, &varDeviceTypeRequest)
if err != nil {
return err
@@ -722,13 +780,14 @@ func (o *DeviceTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ 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")
diff --git a/model_device_type_request_airflow.go b/model_device_type_request_airflow.go
new file mode 100644
index 0000000000..a7e9449fdd
--- /dev/null
+++ b/model_device_type_request_airflow.go
@@ -0,0 +1,122 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..218d35c059
--- /dev/null
+++ b/model_device_type_request_subdevice_role.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..586e3626d7
--- /dev/null
+++ b/model_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: 3.7.0 (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
index 87bc1b4c79..7fe1af1511 100644
--- a/model_device_type_subdevice_role.go
+++ b/model_device_type_subdevice_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &DeviceTypeSubdeviceRole{}
// DeviceTypeSubdeviceRole struct for DeviceTypeSubdeviceRole
type DeviceTypeSubdeviceRole struct {
- // * `parent` - Parent * `child` - Child
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *DeviceTypeSubdeviceRoleValue `json:"value,omitempty"`
+ Label *DeviceTypeSubdeviceRoleLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewDeviceTypeSubdeviceRoleWithDefaults() *DeviceTypeSubdeviceRole {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *DeviceTypeSubdeviceRole) GetValue() string {
+func (o *DeviceTypeSubdeviceRole) GetValue() DeviceTypeSubdeviceRoleValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret DeviceTypeSubdeviceRoleValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *DeviceTypeSubdeviceRole) GetValue() string {
// 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() (*string, bool) {
+func (o *DeviceTypeSubdeviceRole) GetValueOk() (*DeviceTypeSubdeviceRoleValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *DeviceTypeSubdeviceRole) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *DeviceTypeSubdeviceRole) SetValue(v string) {
+// 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() string {
+func (o *DeviceTypeSubdeviceRole) GetLabel() DeviceTypeSubdeviceRoleLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret DeviceTypeSubdeviceRoleLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *DeviceTypeSubdeviceRole) 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 *DeviceTypeSubdeviceRole) GetLabelOk() (*string, bool) {
+func (o *DeviceTypeSubdeviceRole) GetLabelOk() (*DeviceTypeSubdeviceRoleLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *DeviceTypeSubdeviceRole) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *DeviceTypeSubdeviceRole) SetLabel(v string) {
+// SetLabel gets a reference to the given DeviceTypeSubdeviceRoleLabel and assigns it to the Label field.
+func (o *DeviceTypeSubdeviceRole) SetLabel(v DeviceTypeSubdeviceRoleLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o DeviceTypeSubdeviceRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceTypeSubdeviceRole) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceTypeSubdeviceRole) UnmarshalJSON(data []byte) (err error) {
varDeviceTypeSubdeviceRole := _DeviceTypeSubdeviceRole{}
- err = json.Unmarshal(bytes, &varDeviceTypeSubdeviceRole)
+ err = json.Unmarshal(data, &varDeviceTypeSubdeviceRole)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *DeviceTypeSubdeviceRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_device_type_subdevice_role_label.go b/model_device_type_subdevice_role_label.go
new file mode 100644
index 0000000000..505365ee77
--- /dev/null
+++ b/model_device_type_subdevice_role_label.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..b20fd4afba
--- /dev/null
+++ b/model_device_type_subdevice_role_value.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
index 9599be7c57..33eee3fe21 100644
--- a/model_device_type_weight_unit.go
+++ b/model_device_type_weight_unit.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &DeviceTypeWeightUnit{}
// DeviceTypeWeightUnit struct for DeviceTypeWeightUnit
type DeviceTypeWeightUnit struct {
- // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *DeviceTypeWeightUnitValue `json:"value,omitempty"`
+ Label *DeviceTypeWeightUnitLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewDeviceTypeWeightUnitWithDefaults() *DeviceTypeWeightUnit {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *DeviceTypeWeightUnit) GetValue() string {
+func (o *DeviceTypeWeightUnit) GetValue() DeviceTypeWeightUnitValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret DeviceTypeWeightUnitValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *DeviceTypeWeightUnit) GetValue() string {
// 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() (*string, bool) {
+func (o *DeviceTypeWeightUnit) GetValueOk() (*DeviceTypeWeightUnitValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *DeviceTypeWeightUnit) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *DeviceTypeWeightUnit) SetValue(v string) {
+// 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() string {
+func (o *DeviceTypeWeightUnit) GetLabel() DeviceTypeWeightUnitLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret DeviceTypeWeightUnitLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *DeviceTypeWeightUnit) 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 *DeviceTypeWeightUnit) GetLabelOk() (*string, bool) {
+func (o *DeviceTypeWeightUnit) GetLabelOk() (*DeviceTypeWeightUnitLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *DeviceTypeWeightUnit) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *DeviceTypeWeightUnit) SetLabel(v string) {
+// SetLabel gets a reference to the given DeviceTypeWeightUnitLabel and assigns it to the Label field.
+func (o *DeviceTypeWeightUnit) SetLabel(v DeviceTypeWeightUnitLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o DeviceTypeWeightUnit) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceTypeWeightUnit) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceTypeWeightUnit) UnmarshalJSON(data []byte) (err error) {
varDeviceTypeWeightUnit := _DeviceTypeWeightUnit{}
- err = json.Unmarshal(bytes, &varDeviceTypeWeightUnit)
+ err = json.Unmarshal(data, &varDeviceTypeWeightUnit)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *DeviceTypeWeightUnit) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_device_type_weight_unit_label.go b/model_device_type_weight_unit_label.go
new file mode 100644
index 0000000000..3cb616248f
--- /dev/null
+++ b/model_device_type_weight_unit_label.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..1bc47b2062
--- /dev/null
+++ b/model_device_type_weight_unit_value.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 cbeb0101e7..cfc11753f1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -57,9 +58,9 @@ type DeviceWithConfigContext struct {
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
ConfigTemplate NullableNestedConfigTemplate `json:"config_template,omitempty"`
- ConfigContext map[string]interface{} `json:"config_context"`
+ ConfigContext interface{} `json:"config_context"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData map[string]interface{} `json:"local_context_data,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
@@ -83,7 +84,7 @@ type _DeviceWithConfigContext DeviceWithConfigContext
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewDeviceWithConfigContext(id int32, url string, display string, deviceType NestedDeviceType, role NestedDeviceRole, deviceRole DeviceDeviceRole, site NestedSite, parentDevice NestedDevice, primaryIp NestedIPAddress, configContext map[string]interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *DeviceWithConfigContext {
+func NewDeviceWithConfigContext(id int32, url string, display string, deviceType NestedDeviceType, role NestedDeviceRole, deviceRole DeviceDeviceRole, site NestedSite, parentDevice NestedDevice, primaryIp NestedIPAddress, 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
@@ -1258,10 +1259,10 @@ func (o *DeviceWithConfigContext) UnsetConfigTemplate() {
}
// GetConfigContext returns the ConfigContext field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *DeviceWithConfigContext) GetConfigContext() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *DeviceWithConfigContext) GetConfigContext() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -1271,22 +1272,22 @@ func (o *DeviceWithConfigContext) GetConfigContext() map[string]interface{} {
// GetConfigContextOk returns a tuple with the ConfigContext field value
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContext) GetConfigContextOk() (map[string]interface{}, bool) {
+func (o *DeviceWithConfigContext) GetConfigContextOk() (*interface{}, bool) {
if o == nil || IsNil(o.ConfigContext) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.ConfigContext, true
+ return &o.ConfigContext, true
}
// SetConfigContext sets field value
-func (o *DeviceWithConfigContext) SetConfigContext(v map[string]interface{}) {
+func (o *DeviceWithConfigContext) SetConfigContext(v interface{}) {
o.ConfigContext = v
}
// GetLocalContextData returns the LocalContextData field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceWithConfigContext) GetLocalContextData() map[string]interface{} {
+func (o *DeviceWithConfigContext) GetLocalContextData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.LocalContextData
@@ -1295,11 +1296,11 @@ func (o *DeviceWithConfigContext) GetLocalContextData() map[string]interface{} {
// GetLocalContextDataOk returns a tuple with the LocalContextData field value if set, nil otherwise
// and a 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) GetLocalContextDataOk() (map[string]interface{}, bool) {
+func (o *DeviceWithConfigContext) GetLocalContextDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.LocalContextData) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.LocalContextData, true
+ return &o.LocalContextData, true
}
// HasLocalContextData returns a boolean if a field has been set.
@@ -1311,8 +1312,8 @@ func (o *DeviceWithConfigContext) HasLocalContextData() bool {
return false
}
-// SetLocalContextData gets a reference to the given map[string]interface{} and assigns it to the LocalContextData field.
-func (o *DeviceWithConfigContext) SetLocalContextData(v map[string]interface{}) {
+// SetLocalContextData gets a reference to the given interface{} and assigns it to the LocalContextData field.
+func (o *DeviceWithConfigContext) SetLocalContextData(v interface{}) {
o.LocalContextData = v
}
@@ -1792,10 +1793,52 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DeviceWithConfigContext) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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_type",
+ "role",
+ "device_role",
+ "site",
+ "parent_device",
+ "primary_ip",
+ "config_context",
+ "created",
+ "last_updated",
+ "console_port_count",
+ "console_server_port_count",
+ "power_port_count",
+ "power_outlet_count",
+ "interface_count",
+ "front_port_count",
+ "rear_port_count",
+ "device_bay_count",
+ "module_bay_count",
+ "inventory_item_count",
+ }
+
+ 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)
+ }
+ }
+
varDeviceWithConfigContext := _DeviceWithConfigContext{}
- err = json.Unmarshal(bytes, &varDeviceWithConfigContext)
+ err = json.Unmarshal(data, &varDeviceWithConfigContext)
if err != nil {
return err
@@ -1805,7 +1848,7 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_device_with_config_context_request.go b/model_device_with_config_context_request.go
index 35d0daa0de..31ac31eb7b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 DeviceWithConfigContextRequest type satisfies the MappedNullable interface at compile time
@@ -32,16 +33,13 @@ type DeviceWithConfigContextRequest struct {
Location NullableNestedLocationRequest `json:"location,omitempty"`
Rack NullableNestedRackRequest `json:"rack,omitempty"`
Position NullableFloat64 `json:"position,omitempty"`
- // * `front` - Front * `rear` - Rear
- Face *string `json:"face,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"`
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed
- Airflow *string `json:"airflow,omitempty"`
+ 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"`
@@ -54,7 +52,7 @@ type DeviceWithConfigContextRequest struct {
Comments *string `json:"comments,omitempty"`
ConfigTemplate NullableNestedConfigTemplateRequest `json:"config_template,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData map[string]interface{} `json:"local_context_data,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -488,9 +486,9 @@ func (o *DeviceWithConfigContextRequest) UnsetPosition() {
}
// GetFace returns the Face field value if set, zero value otherwise.
-func (o *DeviceWithConfigContextRequest) GetFace() string {
+func (o *DeviceWithConfigContextRequest) GetFace() DeviceFaceValue {
if o == nil || IsNil(o.Face) {
- var ret string
+ var ret DeviceFaceValue
return ret
}
return *o.Face
@@ -498,7 +496,7 @@ func (o *DeviceWithConfigContextRequest) GetFace() string {
// 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 *DeviceWithConfigContextRequest) GetFaceOk() (*string, bool) {
+func (o *DeviceWithConfigContextRequest) GetFaceOk() (*DeviceFaceValue, bool) {
if o == nil || IsNil(o.Face) {
return nil, false
}
@@ -514,8 +512,8 @@ func (o *DeviceWithConfigContextRequest) HasFace() bool {
return false
}
-// SetFace gets a reference to the given string and assigns it to the Face field.
-func (o *DeviceWithConfigContextRequest) SetFace(v string) {
+// SetFace gets a reference to the given DeviceFaceValue and assigns it to the Face field.
+func (o *DeviceWithConfigContextRequest) SetFace(v DeviceFaceValue) {
o.Face = &v
}
@@ -606,9 +604,9 @@ func (o *DeviceWithConfigContextRequest) UnsetLongitude() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *DeviceWithConfigContextRequest) GetStatus() string {
+func (o *DeviceWithConfigContextRequest) GetStatus() DeviceStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret DeviceStatusValue
return ret
}
return *o.Status
@@ -616,7 +614,7 @@ func (o *DeviceWithConfigContextRequest) GetStatus() string {
// 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 *DeviceWithConfigContextRequest) GetStatusOk() (*string, bool) {
+func (o *DeviceWithConfigContextRequest) GetStatusOk() (*DeviceStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -632,15 +630,15 @@ func (o *DeviceWithConfigContextRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *DeviceWithConfigContextRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given DeviceStatusValue and assigns it to the Status field.
+func (o *DeviceWithConfigContextRequest) SetStatus(v DeviceStatusValue) {
o.Status = &v
}
// GetAirflow returns the Airflow field value if set, zero value otherwise.
-func (o *DeviceWithConfigContextRequest) GetAirflow() string {
+func (o *DeviceWithConfigContextRequest) GetAirflow() DeviceAirflowValue {
if o == nil || IsNil(o.Airflow) {
- var ret string
+ var ret DeviceAirflowValue
return ret
}
return *o.Airflow
@@ -648,7 +646,7 @@ func (o *DeviceWithConfigContextRequest) GetAirflow() string {
// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *DeviceWithConfigContextRequest) GetAirflowOk() (*string, bool) {
+func (o *DeviceWithConfigContextRequest) GetAirflowOk() (*DeviceAirflowValue, bool) {
if o == nil || IsNil(o.Airflow) {
return nil, false
}
@@ -664,8 +662,8 @@ func (o *DeviceWithConfigContextRequest) HasAirflow() bool {
return false
}
-// SetAirflow gets a reference to the given string and assigns it to the Airflow field.
-func (o *DeviceWithConfigContextRequest) SetAirflow(v string) {
+// SetAirflow gets a reference to the given DeviceAirflowValue and assigns it to the Airflow field.
+func (o *DeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue) {
o.Airflow = &v
}
@@ -1078,9 +1076,9 @@ func (o *DeviceWithConfigContextRequest) UnsetConfigTemplate() {
}
// GetLocalContextData returns the LocalContextData field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceWithConfigContextRequest) GetLocalContextData() map[string]interface{} {
+func (o *DeviceWithConfigContextRequest) GetLocalContextData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.LocalContextData
@@ -1089,11 +1087,11 @@ func (o *DeviceWithConfigContextRequest) GetLocalContextData() map[string]interf
// GetLocalContextDataOk returns a tuple with the LocalContextData field value if set, nil otherwise
// and a 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) GetLocalContextDataOk() (map[string]interface{}, bool) {
+func (o *DeviceWithConfigContextRequest) GetLocalContextDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.LocalContextData) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.LocalContextData, true
+ return &o.LocalContextData, true
}
// HasLocalContextData returns a boolean if a field has been set.
@@ -1105,8 +1103,8 @@ func (o *DeviceWithConfigContextRequest) HasLocalContextData() bool {
return false
}
-// SetLocalContextData gets a reference to the given map[string]interface{} and assigns it to the LocalContextData field.
-func (o *DeviceWithConfigContextRequest) SetLocalContextData(v map[string]interface{}) {
+// SetLocalContextData gets a reference to the given interface{} and assigns it to the LocalContextData field.
+func (o *DeviceWithConfigContextRequest) SetLocalContextData(v interface{}) {
o.LocalContextData = v
}
@@ -1273,10 +1271,33 @@ func (o DeviceWithConfigContextRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *DeviceWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *DeviceWithConfigContextRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "role",
+ "site",
+ }
+
+ 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)
+ }
+ }
+
varDeviceWithConfigContextRequest := _DeviceWithConfigContextRequest{}
- err = json.Unmarshal(bytes, &varDeviceWithConfigContextRequest)
+ err = json.Unmarshal(data, &varDeviceWithConfigContextRequest)
if err != nil {
return err
@@ -1286,7 +1307,7 @@ func (o *DeviceWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "device_type")
delete(additionalProperties, "role")
diff --git a/model_encryption.go b/model_encryption.go
new file mode 100644
index 0000000000..d74adab0e0
--- /dev/null
+++ b/model_encryption.go
@@ -0,0 +1,122 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// Encryption * `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` - DES
+type Encryption string
+
+// List of Encryption
+const (
+ ENCRYPTION_AES_128_CBC Encryption = "aes-128-cbc"
+ ENCRYPTION_AES_128_GCM Encryption = "aes-128-gcm"
+ ENCRYPTION_AES_192_CBC Encryption = "aes-192-cbc"
+ ENCRYPTION_AES_192_GCM Encryption = "aes-192-gcm"
+ ENCRYPTION_AES_256_CBC Encryption = "aes-256-cbc"
+ ENCRYPTION_AES_256_GCM Encryption = "aes-256-gcm"
+ ENCRYPTION__3DES_CBC Encryption = "3des-cbc"
+ ENCRYPTION_EMPTY Encryption = ""
+)
+
+// All allowed values of Encryption enum
+var AllowedEncryptionEnumValues = []Encryption{
+ "aes-128-cbc",
+ "aes-128-gcm",
+ "aes-192-cbc",
+ "aes-192-gcm",
+ "aes-256-cbc",
+ "aes-256-gcm",
+ "3des-cbc",
+ "",
+}
+
+func (v *Encryption) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := Encryption(value)
+ for _, existing := range AllowedEncryptionEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid Encryption", value)
+}
+
+// NewEncryptionFromValue returns a pointer to a valid Encryption
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewEncryptionFromValue(v string) (*Encryption, error) {
+ ev := Encryption(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for Encryption: valid values are %v", v, AllowedEncryptionEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v Encryption) IsValid() bool {
+ for _, existing := range AllowedEncryptionEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Encryption value
+func (v Encryption) Ptr() *Encryption {
+ return &v
+}
+
+type NullableEncryption struct {
+ value *Encryption
+ isSet bool
+}
+
+func (v NullableEncryption) Get() *Encryption {
+ return v.value
+}
+
+func (v *NullableEncryption) Set(val *Encryption) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableEncryption) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableEncryption) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableEncryption(val *Encryption) *NullableEncryption {
+ return &NullableEncryption{value: val, isSet: true}
+}
+
+func (v NullableEncryption) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableEncryption) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_end.go b/model_end.go
new file mode 100644
index 0000000000..2722dda05a
--- /dev/null
+++ b/model_end.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// End * `A` - A * `B` - B
+type End string
+
+// List of End
+const (
+ END_A End = "A"
+ END_B End = "B"
+)
+
+// All allowed values of End enum
+var AllowedEndEnumValues = []End{
+ "A",
+ "B",
+}
+
+func (v *End) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := End(value)
+ for _, existing := range AllowedEndEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid End", value)
+}
+
+// NewEndFromValue returns a pointer to a valid End
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewEndFromValue(v string) (*End, error) {
+ ev := End(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for End: valid values are %v", v, AllowedEndEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v End) IsValid() bool {
+ for _, existing := range AllowedEndEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to End value
+func (v End) Ptr() *End {
+ return &v
+}
+
+type NullableEnd struct {
+ value *End
+ isSet bool
+}
+
+func (v NullableEnd) Get() *End {
+ return v.value
+}
+
+func (v *NullableEnd) Set(val *End) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableEnd) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableEnd) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableEnd(val *End) *NullableEnd {
+ return &NullableEnd{value: val, isSet: true}
+}
+
+func (v NullableEnd) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableEnd) 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
new file mode 100644
index 0000000000..7ad6ebac44
--- /dev/null
+++ b/model_event_rule.go
@@ -0,0 +1,857 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the EventRule type satisfies the MappedNullable interface at compile time
+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"`
+ // Triggers when a matching object is created.
+ TypeCreate *bool `json:"type_create,omitempty"`
+ // Triggers when a matching object is updated.
+ TypeUpdate *bool `json:"type_update,omitempty"`
+ // Triggers when a matching object is deleted.
+ TypeDelete *bool `json:"type_delete,omitempty"`
+ // Triggers when a job for a matching object is started.
+ TypeJobStart *bool `json:"type_job_start,omitempty"`
+ // Triggers when a job for a matching object terminates.
+ TypeJobEnd *bool `json:"type_job_end,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ // A set of conditions which determine whether the event will be generated.
+ Conditions interface{} `json:"conditions,omitempty"`
+ ActionType EventRuleActionType `json:"action_type"`
+ ActionObjectType string `json:"action_object_type"`
+ ActionObjectId NullableInt64 `json:"action_object_id,omitempty"`
+ ActionObject map[string]interface{} `json:"action_object"`
+ Description *string `json:"description,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _EventRule EventRule
+
+// NewEventRule instantiates a new EventRule object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+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 {
+ this := EventRule{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.ContentTypes = contentTypes
+ this.Name = name
+ this.ActionType = actionType
+ this.ActionObjectType = actionObjectType
+ this.ActionObject = actionObject
+ this.Created = created
+ this.LastUpdated = lastUpdated
+ return &this
+}
+
+// NewEventRuleWithDefaults instantiates a new EventRule object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewEventRuleWithDefaults() *EventRule {
+ this := EventRule{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *EventRule) 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 *EventRule) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *EventRule) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *EventRule) 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 *EventRule) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *EventRule) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplay returns the Display field value
+func (o *EventRule) 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 *EventRule) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *EventRule) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetContentTypes returns the ContentTypes field value
+func (o *EventRule) 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 *EventRule) GetContentTypesOk() ([]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ContentTypes, true
+}
+
+// SetContentTypes sets field value
+func (o *EventRule) SetContentTypes(v []string) {
+ o.ContentTypes = v
+}
+
+// GetName returns the Name field value
+func (o *EventRule) 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 *EventRule) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *EventRule) SetName(v string) {
+ o.Name = v
+}
+
+// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise.
+func (o *EventRule) GetTypeCreate() bool {
+ if o == nil || IsNil(o.TypeCreate) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeCreate
+}
+
+// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EventRule) GetTypeCreateOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeCreate) {
+ return nil, false
+ }
+ return o.TypeCreate, true
+}
+
+// HasTypeCreate returns a boolean if a field has been set.
+func (o *EventRule) HasTypeCreate() bool {
+ if o != nil && !IsNil(o.TypeCreate) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field.
+func (o *EventRule) SetTypeCreate(v bool) {
+ o.TypeCreate = &v
+}
+
+// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise.
+func (o *EventRule) GetTypeUpdate() bool {
+ if o == nil || IsNil(o.TypeUpdate) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeUpdate
+}
+
+// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EventRule) GetTypeUpdateOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeUpdate) {
+ return nil, false
+ }
+ return o.TypeUpdate, true
+}
+
+// HasTypeUpdate returns a boolean if a field has been set.
+func (o *EventRule) HasTypeUpdate() bool {
+ if o != nil && !IsNil(o.TypeUpdate) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field.
+func (o *EventRule) SetTypeUpdate(v bool) {
+ o.TypeUpdate = &v
+}
+
+// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise.
+func (o *EventRule) GetTypeDelete() bool {
+ if o == nil || IsNil(o.TypeDelete) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeDelete
+}
+
+// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EventRule) GetTypeDeleteOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeDelete) {
+ return nil, false
+ }
+ return o.TypeDelete, true
+}
+
+// HasTypeDelete returns a boolean if a field has been set.
+func (o *EventRule) HasTypeDelete() bool {
+ if o != nil && !IsNil(o.TypeDelete) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field.
+func (o *EventRule) SetTypeDelete(v bool) {
+ o.TypeDelete = &v
+}
+
+// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise.
+func (o *EventRule) GetTypeJobStart() bool {
+ if o == nil || IsNil(o.TypeJobStart) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeJobStart
+}
+
+// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EventRule) GetTypeJobStartOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeJobStart) {
+ return nil, false
+ }
+ return o.TypeJobStart, true
+}
+
+// HasTypeJobStart returns a boolean if a field has been set.
+func (o *EventRule) HasTypeJobStart() bool {
+ if o != nil && !IsNil(o.TypeJobStart) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field.
+func (o *EventRule) SetTypeJobStart(v bool) {
+ o.TypeJobStart = &v
+}
+
+// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise.
+func (o *EventRule) GetTypeJobEnd() bool {
+ if o == nil || IsNil(o.TypeJobEnd) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeJobEnd
+}
+
+// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EventRule) GetTypeJobEndOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeJobEnd) {
+ return nil, false
+ }
+ return o.TypeJobEnd, true
+}
+
+// HasTypeJobEnd returns a boolean if a field has been set.
+func (o *EventRule) HasTypeJobEnd() bool {
+ if o != nil && !IsNil(o.TypeJobEnd) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field.
+func (o *EventRule) SetTypeJobEnd(v bool) {
+ o.TypeJobEnd = &v
+}
+
+// GetEnabled returns the Enabled field value if set, zero value otherwise.
+func (o *EventRule) GetEnabled() bool {
+ 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 *EventRule) 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 *EventRule) 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 *EventRule) SetEnabled(v bool) {
+ o.Enabled = &v
+}
+
+// GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *EventRule) GetConditions() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.Conditions
+}
+
+// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *EventRule) GetConditionsOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Conditions) {
+ return nil, false
+ }
+ return &o.Conditions, true
+}
+
+// HasConditions returns a boolean if a field has been set.
+func (o *EventRule) HasConditions() bool {
+ if o != nil && IsNil(o.Conditions) {
+ return true
+ }
+
+ return false
+}
+
+// SetConditions gets a reference to the given interface{} and assigns it to the Conditions field.
+func (o *EventRule) SetConditions(v interface{}) {
+ o.Conditions = v
+}
+
+// GetActionType returns the ActionType field value
+func (o *EventRule) GetActionType() EventRuleActionType {
+ if o == nil {
+ var ret EventRuleActionType
+ return ret
+ }
+
+ return o.ActionType
+}
+
+// GetActionTypeOk returns a tuple with the ActionType field value
+// and a boolean to check if the value has been set.
+func (o *EventRule) GetActionTypeOk() (*EventRuleActionType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ActionType, true
+}
+
+// SetActionType sets field value
+func (o *EventRule) SetActionType(v EventRuleActionType) {
+ o.ActionType = v
+}
+
+// GetActionObjectType returns the ActionObjectType field value
+func (o *EventRule) GetActionObjectType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ActionObjectType
+}
+
+// GetActionObjectTypeOk returns a tuple with the ActionObjectType field value
+// and a boolean to check if the value has been set.
+func (o *EventRule) GetActionObjectTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ActionObjectType, true
+}
+
+// SetActionObjectType sets field value
+func (o *EventRule) SetActionObjectType(v string) {
+ o.ActionObjectType = v
+}
+
+// GetActionObjectId returns the ActionObjectId field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *EventRule) GetActionObjectId() int64 {
+ if o == nil || IsNil(o.ActionObjectId.Get()) {
+ var ret int64
+ return ret
+ }
+ return *o.ActionObjectId.Get()
+}
+
+// GetActionObjectIdOk returns a tuple with the ActionObjectId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *EventRule) GetActionObjectIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ActionObjectId.Get(), o.ActionObjectId.IsSet()
+}
+
+// HasActionObjectId returns a boolean if a field has been set.
+func (o *EventRule) HasActionObjectId() bool {
+ if o != nil && o.ActionObjectId.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetActionObjectId gets a reference to the given NullableInt64 and assigns it to the ActionObjectId field.
+func (o *EventRule) SetActionObjectId(v int64) {
+ o.ActionObjectId.Set(&v)
+}
+
+// SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil
+func (o *EventRule) SetActionObjectIdNil() {
+ o.ActionObjectId.Set(nil)
+}
+
+// UnsetActionObjectId ensures that no value is present for ActionObjectId, not even an explicit nil
+func (o *EventRule) UnsetActionObjectId() {
+ o.ActionObjectId.Unset()
+}
+
+// GetActionObject returns the ActionObject field value
+func (o *EventRule) GetActionObject() map[string]interface{} {
+ if o == nil {
+ var ret map[string]interface{}
+ return ret
+ }
+
+ return o.ActionObject
+}
+
+// GetActionObjectOk returns a tuple with the ActionObject field value
+// and a boolean to check if the value has been set.
+func (o *EventRule) GetActionObjectOk() (map[string]interface{}, bool) {
+ if o == nil {
+ return map[string]interface{}{}, false
+ }
+ return o.ActionObject, true
+}
+
+// SetActionObject sets field value
+func (o *EventRule) SetActionObject(v map[string]interface{}) {
+ o.ActionObject = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *EventRule) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *EventRule) 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 *EventRule) 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 *EventRule) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *EventRule) 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 *EventRule) 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 *EventRule) 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 *EventRule) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *EventRule) 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 *EventRule) 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 *EventRule) 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 *EventRule) SetTags(v []NestedTag) {
+ o.Tags = v
+}
+
+// GetCreated returns the Created field value
+// If the value is explicit nil, the zero value for time.Time will be returned
+func (o *EventRule) 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 *EventRule) GetCreatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Created.Get(), o.Created.IsSet()
+}
+
+// SetCreated sets field value
+func (o *EventRule) 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 *EventRule) 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 *EventRule) GetLastUpdatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.LastUpdated.Get(), o.LastUpdated.IsSet()
+}
+
+// SetLastUpdated sets field value
+func (o *EventRule) SetLastUpdated(v time.Time) {
+ o.LastUpdated.Set(&v)
+}
+
+func (o EventRule) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o EventRule) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ toSerialize["display"] = o.Display
+ toSerialize["content_types"] = o.ContentTypes
+ toSerialize["name"] = o.Name
+ if !IsNil(o.TypeCreate) {
+ toSerialize["type_create"] = o.TypeCreate
+ }
+ if !IsNil(o.TypeUpdate) {
+ toSerialize["type_update"] = o.TypeUpdate
+ }
+ if !IsNil(o.TypeDelete) {
+ toSerialize["type_delete"] = o.TypeDelete
+ }
+ if !IsNil(o.TypeJobStart) {
+ toSerialize["type_job_start"] = o.TypeJobStart
+ }
+ if !IsNil(o.TypeJobEnd) {
+ toSerialize["type_job_end"] = o.TypeJobEnd
+ }
+ if !IsNil(o.Enabled) {
+ toSerialize["enabled"] = o.Enabled
+ }
+ if o.Conditions != nil {
+ toSerialize["conditions"] = o.Conditions
+ }
+ toSerialize["action_type"] = o.ActionType
+ toSerialize["action_object_type"] = o.ActionObjectType
+ if o.ActionObjectId.IsSet() {
+ toSerialize["action_object_id"] = o.ActionObjectId.Get()
+ }
+ toSerialize["action_object"] = o.ActionObject
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+ toSerialize["created"] = o.Created.Get()
+ toSerialize["last_updated"] = o.LastUpdated.Get()
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *EventRule) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "content_types",
+ "name",
+ "action_type",
+ "action_object_type",
+ "action_object",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
+ varEventRule := _EventRule{}
+
+ err = json.Unmarshal(data, &varEventRule)
+
+ if err != nil {
+ return err
+ }
+
+ *o = EventRule(varEventRule)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "content_types")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "type_create")
+ delete(additionalProperties, "type_update")
+ delete(additionalProperties, "type_delete")
+ delete(additionalProperties, "type_job_start")
+ delete(additionalProperties, "type_job_end")
+ delete(additionalProperties, "enabled")
+ delete(additionalProperties, "conditions")
+ delete(additionalProperties, "action_type")
+ delete(additionalProperties, "action_object_type")
+ delete(additionalProperties, "action_object_id")
+ delete(additionalProperties, "action_object")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "created")
+ delete(additionalProperties, "last_updated")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableEventRule struct {
+ value *EventRule
+ isSet bool
+}
+
+func (v NullableEventRule) Get() *EventRule {
+ return v.value
+}
+
+func (v *NullableEventRule) Set(val *EventRule) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableEventRule) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableEventRule) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableEventRule(val *EventRule) *NullableEventRule {
+ return &NullableEventRule{value: val, isSet: true}
+}
+
+func (v NullableEventRule) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableEventRule) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_event_rule_action_type.go b/model_event_rule_action_type.go
new file mode 100644
index 0000000000..1e1aaa8887
--- /dev/null
+++ b/model_event_rule_action_type.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the EventRuleActionType type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &EventRuleActionType{}
+
+// EventRuleActionType struct for EventRuleActionType
+type EventRuleActionType struct {
+ Value *EventRuleActionTypeValue `json:"value,omitempty"`
+ Label *EventRuleActionTypeLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _EventRuleActionType EventRuleActionType
+
+// NewEventRuleActionType instantiates a new EventRuleActionType object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewEventRuleActionType() *EventRuleActionType {
+ this := EventRuleActionType{}
+ return &this
+}
+
+// NewEventRuleActionTypeWithDefaults instantiates a new EventRuleActionType object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewEventRuleActionTypeWithDefaults() *EventRuleActionType {
+ this := EventRuleActionType{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *EventRuleActionType) GetValue() EventRuleActionTypeValue {
+ if o == nil || IsNil(o.Value) {
+ var ret EventRuleActionTypeValue
+ 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 *EventRuleActionType) GetValueOk() (*EventRuleActionTypeValue, 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 *EventRuleActionType) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given EventRuleActionTypeValue and assigns it to the Value field.
+func (o *EventRuleActionType) SetValue(v EventRuleActionTypeValue) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *EventRuleActionType) GetLabel() EventRuleActionTypeLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret EventRuleActionTypeLabel
+ 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 *EventRuleActionType) GetLabelOk() (*EventRuleActionTypeLabel, 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 *EventRuleActionType) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given EventRuleActionTypeLabel and assigns it to the Label field.
+func (o *EventRuleActionType) SetLabel(v EventRuleActionTypeLabel) {
+ o.Label = &v
+}
+
+func (o EventRuleActionType) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o EventRuleActionType) 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 *EventRuleActionType) UnmarshalJSON(data []byte) (err error) {
+ varEventRuleActionType := _EventRuleActionType{}
+
+ err = json.Unmarshal(data, &varEventRuleActionType)
+
+ if err != nil {
+ return err
+ }
+
+ *o = EventRuleActionType(varEventRuleActionType)
+
+ 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 NullableEventRuleActionType struct {
+ value *EventRuleActionType
+ isSet bool
+}
+
+func (v NullableEventRuleActionType) Get() *EventRuleActionType {
+ return v.value
+}
+
+func (v *NullableEventRuleActionType) Set(val *EventRuleActionType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableEventRuleActionType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableEventRuleActionType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableEventRuleActionType(val *EventRuleActionType) *NullableEventRuleActionType {
+ return &NullableEventRuleActionType{value: val, isSet: true}
+}
+
+func (v NullableEventRuleActionType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableEventRuleActionType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_event_rule_action_type_label.go b/model_event_rule_action_type_label.go
new file mode 100644
index 0000000000..849cd4a537
--- /dev/null
+++ b/model_event_rule_action_type_label.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// EventRuleActionTypeLabel the model 'EventRuleActionTypeLabel'
+type EventRuleActionTypeLabel string
+
+// List of EventRule_action_type_label
+const (
+ EVENTRULEACTIONTYPELABEL_WEBHOOK EventRuleActionTypeLabel = "Webhook"
+ EVENTRULEACTIONTYPELABEL_SCRIPT EventRuleActionTypeLabel = "Script"
+)
+
+// All allowed values of EventRuleActionTypeLabel enum
+var AllowedEventRuleActionTypeLabelEnumValues = []EventRuleActionTypeLabel{
+ "Webhook",
+ "Script",
+}
+
+func (v *EventRuleActionTypeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := EventRuleActionTypeLabel(value)
+ for _, existing := range AllowedEventRuleActionTypeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid EventRuleActionTypeLabel", value)
+}
+
+// NewEventRuleActionTypeLabelFromValue returns a pointer to a valid EventRuleActionTypeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewEventRuleActionTypeLabelFromValue(v string) (*EventRuleActionTypeLabel, error) {
+ ev := EventRuleActionTypeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for EventRuleActionTypeLabel: valid values are %v", v, AllowedEventRuleActionTypeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v EventRuleActionTypeLabel) IsValid() bool {
+ for _, existing := range AllowedEventRuleActionTypeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to EventRule_action_type_label value
+func (v EventRuleActionTypeLabel) Ptr() *EventRuleActionTypeLabel {
+ return &v
+}
+
+type NullableEventRuleActionTypeLabel struct {
+ value *EventRuleActionTypeLabel
+ isSet bool
+}
+
+func (v NullableEventRuleActionTypeLabel) Get() *EventRuleActionTypeLabel {
+ return v.value
+}
+
+func (v *NullableEventRuleActionTypeLabel) Set(val *EventRuleActionTypeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableEventRuleActionTypeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableEventRuleActionTypeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableEventRuleActionTypeLabel(val *EventRuleActionTypeLabel) *NullableEventRuleActionTypeLabel {
+ return &NullableEventRuleActionTypeLabel{value: val, isSet: true}
+}
+
+func (v NullableEventRuleActionTypeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableEventRuleActionTypeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_event_rule_action_type_value.go b/model_event_rule_action_type_value.go
new file mode 100644
index 0000000000..aadd34dac0
--- /dev/null
+++ b/model_event_rule_action_type_value.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// EventRuleActionTypeValue * `webhook` - Webhook * `script` - Script
+type EventRuleActionTypeValue string
+
+// List of EventRule_action_type_value
+const (
+ EVENTRULEACTIONTYPEVALUE_WEBHOOK EventRuleActionTypeValue = "webhook"
+ EVENTRULEACTIONTYPEVALUE_SCRIPT EventRuleActionTypeValue = "script"
+)
+
+// All allowed values of EventRuleActionTypeValue enum
+var AllowedEventRuleActionTypeValueEnumValues = []EventRuleActionTypeValue{
+ "webhook",
+ "script",
+}
+
+func (v *EventRuleActionTypeValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := EventRuleActionTypeValue(value)
+ for _, existing := range AllowedEventRuleActionTypeValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid EventRuleActionTypeValue", value)
+}
+
+// NewEventRuleActionTypeValueFromValue returns a pointer to a valid EventRuleActionTypeValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewEventRuleActionTypeValueFromValue(v string) (*EventRuleActionTypeValue, error) {
+ ev := EventRuleActionTypeValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for EventRuleActionTypeValue: valid values are %v", v, AllowedEventRuleActionTypeValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v EventRuleActionTypeValue) IsValid() bool {
+ for _, existing := range AllowedEventRuleActionTypeValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to EventRule_action_type_value value
+func (v EventRuleActionTypeValue) Ptr() *EventRuleActionTypeValue {
+ return &v
+}
+
+type NullableEventRuleActionTypeValue struct {
+ value *EventRuleActionTypeValue
+ isSet bool
+}
+
+func (v NullableEventRuleActionTypeValue) Get() *EventRuleActionTypeValue {
+ return v.value
+}
+
+func (v *NullableEventRuleActionTypeValue) Set(val *EventRuleActionTypeValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableEventRuleActionTypeValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableEventRuleActionTypeValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableEventRuleActionTypeValue(val *EventRuleActionTypeValue) *NullableEventRuleActionTypeValue {
+ return &NullableEventRuleActionTypeValue{value: val, isSet: true}
+}
+
+func (v NullableEventRuleActionTypeValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableEventRuleActionTypeValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_event_rule_request.go b/model_event_rule_request.go
new file mode 100644
index 0000000000..6fc8d57c60
--- /dev/null
+++ b/model_event_rule_request.go
@@ -0,0 +1,678 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the EventRuleRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &EventRuleRequest{}
+
+// EventRuleRequest Adds support for custom fields and tags.
+type EventRuleRequest struct {
+ ContentTypes []string `json:"content_types"`
+ Name string `json:"name"`
+ // Triggers when a matching object is created.
+ TypeCreate *bool `json:"type_create,omitempty"`
+ // Triggers when a matching object is updated.
+ TypeUpdate *bool `json:"type_update,omitempty"`
+ // Triggers when a matching object is deleted.
+ TypeDelete *bool `json:"type_delete,omitempty"`
+ // Triggers when a job for a matching object is started.
+ TypeJobStart *bool `json:"type_job_start,omitempty"`
+ // Triggers when a job for a matching object terminates.
+ TypeJobEnd *bool `json:"type_job_end,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ // A set of conditions which determine whether the event will be generated.
+ Conditions interface{} `json:"conditions,omitempty"`
+ ActionType EventRuleActionTypeValue `json:"action_type"`
+ ActionObjectType string `json:"action_object_type"`
+ ActionObjectId NullableInt64 `json:"action_object_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _EventRuleRequest EventRuleRequest
+
+// NewEventRuleRequest instantiates a new EventRuleRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewEventRuleRequest(contentTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string) *EventRuleRequest {
+ this := EventRuleRequest{}
+ this.ContentTypes = contentTypes
+ this.Name = name
+ this.ActionType = actionType
+ this.ActionObjectType = actionObjectType
+ return &this
+}
+
+// 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
+func NewEventRuleRequestWithDefaults() *EventRuleRequest {
+ this := EventRuleRequest{}
+ return &this
+}
+
+// GetContentTypes returns the ContentTypes field value
+func (o *EventRuleRequest) 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 *EventRuleRequest) GetContentTypesOk() ([]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ContentTypes, true
+}
+
+// SetContentTypes sets field value
+func (o *EventRuleRequest) SetContentTypes(v []string) {
+ o.ContentTypes = v
+}
+
+// GetName returns the Name field value
+func (o *EventRuleRequest) 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 *EventRuleRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *EventRuleRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise.
+func (o *EventRuleRequest) GetTypeCreate() bool {
+ if o == nil || IsNil(o.TypeCreate) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeCreate
+}
+
+// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EventRuleRequest) GetTypeCreateOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeCreate) {
+ return nil, false
+ }
+ return o.TypeCreate, true
+}
+
+// HasTypeCreate returns a boolean if a field has been set.
+func (o *EventRuleRequest) HasTypeCreate() bool {
+ if o != nil && !IsNil(o.TypeCreate) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field.
+func (o *EventRuleRequest) SetTypeCreate(v bool) {
+ o.TypeCreate = &v
+}
+
+// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise.
+func (o *EventRuleRequest) GetTypeUpdate() bool {
+ if o == nil || IsNil(o.TypeUpdate) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeUpdate
+}
+
+// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EventRuleRequest) GetTypeUpdateOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeUpdate) {
+ return nil, false
+ }
+ return o.TypeUpdate, true
+}
+
+// HasTypeUpdate returns a boolean if a field has been set.
+func (o *EventRuleRequest) HasTypeUpdate() bool {
+ if o != nil && !IsNil(o.TypeUpdate) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field.
+func (o *EventRuleRequest) SetTypeUpdate(v bool) {
+ o.TypeUpdate = &v
+}
+
+// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise.
+func (o *EventRuleRequest) GetTypeDelete() bool {
+ if o == nil || IsNil(o.TypeDelete) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeDelete
+}
+
+// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EventRuleRequest) GetTypeDeleteOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeDelete) {
+ return nil, false
+ }
+ return o.TypeDelete, true
+}
+
+// HasTypeDelete returns a boolean if a field has been set.
+func (o *EventRuleRequest) HasTypeDelete() bool {
+ if o != nil && !IsNil(o.TypeDelete) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field.
+func (o *EventRuleRequest) SetTypeDelete(v bool) {
+ o.TypeDelete = &v
+}
+
+// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise.
+func (o *EventRuleRequest) GetTypeJobStart() bool {
+ if o == nil || IsNil(o.TypeJobStart) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeJobStart
+}
+
+// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EventRuleRequest) GetTypeJobStartOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeJobStart) {
+ return nil, false
+ }
+ return o.TypeJobStart, true
+}
+
+// HasTypeJobStart returns a boolean if a field has been set.
+func (o *EventRuleRequest) HasTypeJobStart() bool {
+ if o != nil && !IsNil(o.TypeJobStart) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field.
+func (o *EventRuleRequest) SetTypeJobStart(v bool) {
+ o.TypeJobStart = &v
+}
+
+// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise.
+func (o *EventRuleRequest) GetTypeJobEnd() bool {
+ if o == nil || IsNil(o.TypeJobEnd) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeJobEnd
+}
+
+// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EventRuleRequest) GetTypeJobEndOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeJobEnd) {
+ return nil, false
+ }
+ return o.TypeJobEnd, true
+}
+
+// HasTypeJobEnd returns a boolean if a field has been set.
+func (o *EventRuleRequest) HasTypeJobEnd() bool {
+ if o != nil && !IsNil(o.TypeJobEnd) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field.
+func (o *EventRuleRequest) SetTypeJobEnd(v bool) {
+ o.TypeJobEnd = &v
+}
+
+// GetEnabled returns the Enabled field value if set, zero value otherwise.
+func (o *EventRuleRequest) GetEnabled() bool {
+ 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 *EventRuleRequest) 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 *EventRuleRequest) 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 *EventRuleRequest) SetEnabled(v bool) {
+ o.Enabled = &v
+}
+
+// GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *EventRuleRequest) GetConditions() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.Conditions
+}
+
+// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *EventRuleRequest) GetConditionsOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Conditions) {
+ return nil, false
+ }
+ return &o.Conditions, true
+}
+
+// HasConditions returns a boolean if a field has been set.
+func (o *EventRuleRequest) HasConditions() bool {
+ if o != nil && IsNil(o.Conditions) {
+ return true
+ }
+
+ return false
+}
+
+// SetConditions gets a reference to the given interface{} and assigns it to the Conditions field.
+func (o *EventRuleRequest) SetConditions(v interface{}) {
+ o.Conditions = v
+}
+
+// GetActionType returns the ActionType field value
+func (o *EventRuleRequest) GetActionType() EventRuleActionTypeValue {
+ if o == nil {
+ var ret EventRuleActionTypeValue
+ return ret
+ }
+
+ return o.ActionType
+}
+
+// GetActionTypeOk returns a tuple with the ActionType field value
+// and a boolean to check if the value has been set.
+func (o *EventRuleRequest) GetActionTypeOk() (*EventRuleActionTypeValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ActionType, true
+}
+
+// SetActionType sets field value
+func (o *EventRuleRequest) SetActionType(v EventRuleActionTypeValue) {
+ o.ActionType = v
+}
+
+// GetActionObjectType returns the ActionObjectType field value
+func (o *EventRuleRequest) GetActionObjectType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ActionObjectType
+}
+
+// GetActionObjectTypeOk returns a tuple with the ActionObjectType field value
+// and a boolean to check if the value has been set.
+func (o *EventRuleRequest) GetActionObjectTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ActionObjectType, true
+}
+
+// SetActionObjectType sets field value
+func (o *EventRuleRequest) SetActionObjectType(v string) {
+ o.ActionObjectType = v
+}
+
+// GetActionObjectId returns the ActionObjectId field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *EventRuleRequest) GetActionObjectId() int64 {
+ if o == nil || IsNil(o.ActionObjectId.Get()) {
+ var ret int64
+ return ret
+ }
+ return *o.ActionObjectId.Get()
+}
+
+// GetActionObjectIdOk returns a tuple with the ActionObjectId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *EventRuleRequest) GetActionObjectIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ActionObjectId.Get(), o.ActionObjectId.IsSet()
+}
+
+// HasActionObjectId returns a boolean if a field has been set.
+func (o *EventRuleRequest) HasActionObjectId() bool {
+ if o != nil && o.ActionObjectId.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetActionObjectId gets a reference to the given NullableInt64 and assigns it to the ActionObjectId field.
+func (o *EventRuleRequest) SetActionObjectId(v int64) {
+ o.ActionObjectId.Set(&v)
+}
+
+// SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil
+func (o *EventRuleRequest) SetActionObjectIdNil() {
+ o.ActionObjectId.Set(nil)
+}
+
+// UnsetActionObjectId ensures that no value is present for ActionObjectId, not even an explicit nil
+func (o *EventRuleRequest) UnsetActionObjectId() {
+ o.ActionObjectId.Unset()
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *EventRuleRequest) 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 *EventRuleRequest) 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 *EventRuleRequest) 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 *EventRuleRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *EventRuleRequest) 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 *EventRuleRequest) 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 *EventRuleRequest) 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 *EventRuleRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *EventRuleRequest) 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 *EventRuleRequest) 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 *EventRuleRequest) 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 *EventRuleRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+func (o EventRuleRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o EventRuleRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["content_types"] = o.ContentTypes
+ toSerialize["name"] = o.Name
+ if !IsNil(o.TypeCreate) {
+ toSerialize["type_create"] = o.TypeCreate
+ }
+ if !IsNil(o.TypeUpdate) {
+ toSerialize["type_update"] = o.TypeUpdate
+ }
+ if !IsNil(o.TypeDelete) {
+ toSerialize["type_delete"] = o.TypeDelete
+ }
+ if !IsNil(o.TypeJobStart) {
+ toSerialize["type_job_start"] = o.TypeJobStart
+ }
+ if !IsNil(o.TypeJobEnd) {
+ toSerialize["type_job_end"] = o.TypeJobEnd
+ }
+ if !IsNil(o.Enabled) {
+ toSerialize["enabled"] = o.Enabled
+ }
+ if o.Conditions != nil {
+ toSerialize["conditions"] = o.Conditions
+ }
+ toSerialize["action_type"] = o.ActionType
+ toSerialize["action_object_type"] = o.ActionObjectType
+ if o.ActionObjectId.IsSet() {
+ toSerialize["action_object_id"] = o.ActionObjectId.Get()
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *EventRuleRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "action_type",
+ "action_object_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)
+ }
+ }
+
+ varEventRuleRequest := _EventRuleRequest{}
+
+ err = json.Unmarshal(data, &varEventRuleRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = EventRuleRequest(varEventRuleRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "content_types")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "type_create")
+ delete(additionalProperties, "type_update")
+ delete(additionalProperties, "type_delete")
+ delete(additionalProperties, "type_job_start")
+ delete(additionalProperties, "type_job_end")
+ delete(additionalProperties, "enabled")
+ delete(additionalProperties, "conditions")
+ delete(additionalProperties, "action_type")
+ delete(additionalProperties, "action_object_type")
+ delete(additionalProperties, "action_object_id")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "tags")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableEventRuleRequest struct {
+ value *EventRuleRequest
+ isSet bool
+}
+
+func (v NullableEventRuleRequest) Get() *EventRuleRequest {
+ return v.value
+}
+
+func (v *NullableEventRuleRequest) Set(val *EventRuleRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableEventRuleRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableEventRuleRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableEventRuleRequest(val *EventRuleRequest) *NullableEventRuleRequest {
+ return &NullableEventRuleRequest{value: val, isSet: true}
+}
+
+func (v NullableEventRuleRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableEventRuleRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_export_template.go b/model_export_template.go
index 8dac84ace2..a1121f639b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -548,10 +549,41 @@ func (o ExportTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ExportTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "content_types",
+ "name",
+ "template_code",
+ "data_path",
+ "data_file",
+ "data_synced",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varExportTemplate := _ExportTemplate{}
- err = json.Unmarshal(bytes, &varExportTemplate)
+ err = json.Unmarshal(data, &varExportTemplate)
if err != nil {
return err
@@ -561,7 +593,7 @@ func (o *ExportTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_export_template_request.go b/model_export_template_request.go
index b49469e623..dc5bf27c30 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ExportTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -324,10 +325,33 @@ func (o ExportTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ExportTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ExportTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varExportTemplateRequest := _ExportTemplateRequest{}
- err = json.Unmarshal(bytes, &varExportTemplateRequest)
+ err = json.Unmarshal(data, &varExportTemplateRequest)
if err != nil {
return err
@@ -337,7 +361,7 @@ func (o *ExportTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_types")
delete(additionalProperties, "name")
delete(additionalProperties, "description")
diff --git a/model_fhrp_group.go b/model_fhrp_group.go
index 64e03e52f7..9eb8ef0bb1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -20,15 +21,13 @@ 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"`
- // * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other
- Protocol string `json:"protocol"`
- GroupId int32 `json:"group_id"`
- // * `plaintext` - Plaintext * `md5` - MD5
- AuthType *string `json:"auth_type,omitempty"`
+ 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"`
@@ -46,7 +45,7 @@ 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 string, groupId int32, created NullableTime, lastUpdated NullableTime, ipAddresses []NestedIPAddress) *FHRPGroup {
+func NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32, created NullableTime, lastUpdated NullableTime, ipAddresses []NestedIPAddress) *FHRPGroup {
this := FHRPGroup{}
this.Id = id
this.Url = url
@@ -172,9 +171,9 @@ func (o *FHRPGroup) SetDisplay(v string) {
}
// GetProtocol returns the Protocol field value
-func (o *FHRPGroup) GetProtocol() string {
+func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol {
if o == nil {
- var ret string
+ var ret FHRPGroupProtocol
return ret
}
@@ -183,7 +182,7 @@ func (o *FHRPGroup) GetProtocol() string {
// GetProtocolOk returns a tuple with the Protocol field value
// and a boolean to check if the value has been set.
-func (o *FHRPGroup) GetProtocolOk() (*string, bool) {
+func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool) {
if o == nil {
return nil, false
}
@@ -191,7 +190,7 @@ func (o *FHRPGroup) GetProtocolOk() (*string, bool) {
}
// SetProtocol sets field value
-func (o *FHRPGroup) SetProtocol(v string) {
+func (o *FHRPGroup) SetProtocol(v FHRPGroupProtocol) {
o.Protocol = v
}
@@ -220,9 +219,9 @@ func (o *FHRPGroup) SetGroupId(v int32) {
}
// GetAuthType returns the AuthType field value if set, zero value otherwise.
-func (o *FHRPGroup) GetAuthType() string {
+func (o *FHRPGroup) GetAuthType() AuthenticationType {
if o == nil || IsNil(o.AuthType) {
- var ret string
+ var ret AuthenticationType
return ret
}
return *o.AuthType
@@ -230,7 +229,7 @@ func (o *FHRPGroup) GetAuthType() string {
// 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() (*string, bool) {
+func (o *FHRPGroup) GetAuthTypeOk() (*AuthenticationType, bool) {
if o == nil || IsNil(o.AuthType) {
return nil, false
}
@@ -246,8 +245,8 @@ func (o *FHRPGroup) HasAuthType() bool {
return false
}
-// SetAuthType gets a reference to the given string and assigns it to the AuthType field.
-func (o *FHRPGroup) SetAuthType(v string) {
+// SetAuthType gets a reference to the given AuthenticationType and assigns it to the AuthType field.
+func (o *FHRPGroup) SetAuthType(v AuthenticationType) {
o.AuthType = &v
}
@@ -534,10 +533,38 @@ func (o FHRPGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *FHRPGroup) UnmarshalJSON(bytes []byte) (err error) {
+func (o *FHRPGroup) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "ip_addresses",
+ }
+
+ 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)
+ }
+ }
+
varFHRPGroup := _FHRPGroup{}
- err = json.Unmarshal(bytes, &varFHRPGroup)
+ err = json.Unmarshal(data, &varFHRPGroup)
if err != nil {
return err
@@ -547,7 +574,7 @@ func (o *FHRPGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "name")
delete(additionalProperties, "url")
diff --git a/model_fhrp_group_assignment.go b/model_fhrp_group_assignment.go
index 3ad7008548..b71c5ff025 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -20,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 map[string]interface{} `json:"interface"`
- Priority int32 `json:"priority"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Group NestedFHRPGroup `json:"group"`
+ InterfaceType string `json:"interface_type"`
+ InterfaceId int64 `json:"interface_id"`
+ Interface interface{} `json:"interface"`
+ Priority int32 `json:"priority"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
AdditionalProperties map[string]interface{}
}
@@ -39,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_ map[string]interface{}, priority int32, created NullableTime, lastUpdated NullableTime) *FHRPGroupAssignment {
+func NewFHRPGroupAssignment(id int32, url string, display string, group NestedFHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime) *FHRPGroupAssignment {
this := FHRPGroupAssignment{}
this.Id = id
this.Url = url
@@ -207,10 +208,10 @@ func (o *FHRPGroupAssignment) SetInterfaceId(v int64) {
}
// GetInterface returns the Interface field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *FHRPGroupAssignment) GetInterface() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *FHRPGroupAssignment) GetInterface() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -220,15 +221,15 @@ func (o *FHRPGroupAssignment) GetInterface() map[string]interface{} {
// GetInterfaceOk returns a tuple with the Interface 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 *FHRPGroupAssignment) GetInterfaceOk() (map[string]interface{}, bool) {
+func (o *FHRPGroupAssignment) GetInterfaceOk() (*interface{}, bool) {
if o == nil || IsNil(o.Interface) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Interface, true
+ return &o.Interface, true
}
// SetInterface sets field value
-func (o *FHRPGroupAssignment) SetInterface(v map[string]interface{}) {
+func (o *FHRPGroupAssignment) SetInterface(v interface{}) {
o.Interface = v
}
@@ -338,10 +339,40 @@ func (o FHRPGroupAssignment) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *FHRPGroupAssignment) UnmarshalJSON(bytes []byte) (err error) {
+func (o *FHRPGroupAssignment) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "url",
+ "display",
+ "group",
+ "interface_type",
+ "interface_id",
+ "interface",
+ "priority",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varFHRPGroupAssignment := _FHRPGroupAssignment{}
- err = json.Unmarshal(bytes, &varFHRPGroupAssignment)
+ err = json.Unmarshal(data, &varFHRPGroupAssignment)
if err != nil {
return err
@@ -351,7 +382,7 @@ func (o *FHRPGroupAssignment) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_fhrp_group_assignment_request.go b/model_fhrp_group_assignment_request.go
index e37eac3cd9..a74890d547 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 FHRPGroupAssignmentRequest type satisfies the MappedNullable interface at compile time
@@ -167,10 +168,34 @@ func (o FHRPGroupAssignmentRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *FHRPGroupAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *FHRPGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varFHRPGroupAssignmentRequest := _FHRPGroupAssignmentRequest{}
- err = json.Unmarshal(bytes, &varFHRPGroupAssignmentRequest)
+ err = json.Unmarshal(data, &varFHRPGroupAssignmentRequest)
if err != nil {
return err
@@ -180,7 +205,7 @@ func (o *FHRPGroupAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "group")
delete(additionalProperties, "interface_type")
delete(additionalProperties, "interface_id")
diff --git a/model_fhrp_group_protocol.go b/model_fhrp_group_protocol.go
new file mode 100644
index 0000000000..495b14479c
--- /dev/null
+++ b/model_fhrp_group_protocol.go
@@ -0,0 +1,120 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// FHRPGroupProtocol * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other
+type FHRPGroupProtocol string
+
+// List of FHRPGroup_protocol
+const (
+ FHRPGROUPPROTOCOL_VRRP2 FHRPGroupProtocol = "vrrp2"
+ FHRPGROUPPROTOCOL_VRRP3 FHRPGroupProtocol = "vrrp3"
+ FHRPGROUPPROTOCOL_CARP FHRPGroupProtocol = "carp"
+ FHRPGROUPPROTOCOL_CLUSTERXL FHRPGroupProtocol = "clusterxl"
+ FHRPGROUPPROTOCOL_HSRP FHRPGroupProtocol = "hsrp"
+ FHRPGROUPPROTOCOL_GLBP FHRPGroupProtocol = "glbp"
+ FHRPGROUPPROTOCOL_OTHER FHRPGroupProtocol = "other"
+)
+
+// All allowed values of FHRPGroupProtocol enum
+var AllowedFHRPGroupProtocolEnumValues = []FHRPGroupProtocol{
+ "vrrp2",
+ "vrrp3",
+ "carp",
+ "clusterxl",
+ "hsrp",
+ "glbp",
+ "other",
+}
+
+func (v *FHRPGroupProtocol) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := FHRPGroupProtocol(value)
+ for _, existing := range AllowedFHRPGroupProtocolEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid FHRPGroupProtocol", value)
+}
+
+// NewFHRPGroupProtocolFromValue returns a pointer to a valid FHRPGroupProtocol
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewFHRPGroupProtocolFromValue(v string) (*FHRPGroupProtocol, error) {
+ ev := FHRPGroupProtocol(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for FHRPGroupProtocol: valid values are %v", v, AllowedFHRPGroupProtocolEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v FHRPGroupProtocol) IsValid() bool {
+ for _, existing := range AllowedFHRPGroupProtocolEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to FHRPGroup_protocol value
+func (v FHRPGroupProtocol) Ptr() *FHRPGroupProtocol {
+ return &v
+}
+
+type NullableFHRPGroupProtocol struct {
+ value *FHRPGroupProtocol
+ isSet bool
+}
+
+func (v NullableFHRPGroupProtocol) Get() *FHRPGroupProtocol {
+ return v.value
+}
+
+func (v *NullableFHRPGroupProtocol) Set(val *FHRPGroupProtocol) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableFHRPGroupProtocol) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableFHRPGroupProtocol) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableFHRPGroupProtocol(val *FHRPGroupProtocol) *NullableFHRPGroupProtocol {
+ return &NullableFHRPGroupProtocol{value: val, isSet: true}
+}
+
+func (v NullableFHRPGroupProtocol) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableFHRPGroupProtocol) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_fhrp_group_request.go b/model_fhrp_group_request.go
index 38b18c5837..2aad5018a1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 FHRPGroupRequest type satisfies the MappedNullable interface at compile time
@@ -19,12 +20,10 @@ var _ MappedNullable = &FHRPGroupRequest{}
// FHRPGroupRequest Adds support for custom fields and tags.
type FHRPGroupRequest struct {
- Name *string `json:"name,omitempty"`
- // * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other
- Protocol string `json:"protocol"`
- GroupId int32 `json:"group_id"`
- // * `plaintext` - Plaintext * `md5` - MD5
- AuthType *string `json:"auth_type,omitempty"`
+ 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"`
@@ -39,7 +38,7 @@ type _FHRPGroupRequest FHRPGroupRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewFHRPGroupRequest(protocol string, groupId int32) *FHRPGroupRequest {
+func NewFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32) *FHRPGroupRequest {
this := FHRPGroupRequest{}
this.Protocol = protocol
this.GroupId = groupId
@@ -87,9 +86,9 @@ func (o *FHRPGroupRequest) SetName(v string) {
}
// GetProtocol returns the Protocol field value
-func (o *FHRPGroupRequest) GetProtocol() string {
+func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol {
if o == nil {
- var ret string
+ var ret FHRPGroupProtocol
return ret
}
@@ -98,7 +97,7 @@ func (o *FHRPGroupRequest) GetProtocol() string {
// GetProtocolOk returns a tuple with the Protocol field value
// and a boolean to check if the value has been set.
-func (o *FHRPGroupRequest) GetProtocolOk() (*string, bool) {
+func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) {
if o == nil {
return nil, false
}
@@ -106,7 +105,7 @@ func (o *FHRPGroupRequest) GetProtocolOk() (*string, bool) {
}
// SetProtocol sets field value
-func (o *FHRPGroupRequest) SetProtocol(v string) {
+func (o *FHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) {
o.Protocol = v
}
@@ -135,9 +134,9 @@ func (o *FHRPGroupRequest) SetGroupId(v int32) {
}
// GetAuthType returns the AuthType field value if set, zero value otherwise.
-func (o *FHRPGroupRequest) GetAuthType() string {
+func (o *FHRPGroupRequest) GetAuthType() AuthenticationType {
if o == nil || IsNil(o.AuthType) {
- var ret string
+ var ret AuthenticationType
return ret
}
return *o.AuthType
@@ -145,7 +144,7 @@ func (o *FHRPGroupRequest) GetAuthType() string {
// 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() (*string, bool) {
+func (o *FHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool) {
if o == nil || IsNil(o.AuthType) {
return nil, false
}
@@ -161,8 +160,8 @@ func (o *FHRPGroupRequest) HasAuthType() bool {
return false
}
-// SetAuthType gets a reference to the given string and assigns it to the AuthType field.
-func (o *FHRPGroupRequest) SetAuthType(v string) {
+// SetAuthType gets a reference to the given AuthenticationType and assigns it to the AuthType field.
+func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType) {
o.AuthType = &v
}
@@ -367,10 +366,32 @@ func (o FHRPGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *FHRPGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *FHRPGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varFHRPGroupRequest := _FHRPGroupRequest{}
- err = json.Unmarshal(bytes, &varFHRPGroupRequest)
+ err = json.Unmarshal(data, &varFHRPGroupRequest)
if err != nil {
return err
@@ -380,7 +401,7 @@ func (o *FHRPGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "protocol")
delete(additionalProperties, "group_id")
diff --git a/model_front_port.go b/model_front_port.go
index 73cf04f10b..f2c2879928 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -747,10 +748,44 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *FrontPort) UnmarshalJSON(bytes []byte) (err error) {
+func (o *FrontPort) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "rear_port",
+ "cable",
+ "cable_end",
+ "link_peers",
+ "link_peers_type",
+ "created",
+ "last_updated",
+ "_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)
+ }
+ }
+
varFrontPort := _FrontPort{}
- err = json.Unmarshal(bytes, &varFrontPort)
+ err = json.Unmarshal(data, &varFrontPort)
if err != nil {
return err
@@ -760,7 +795,7 @@ func (o *FrontPort) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_front_port_rear_port.go b/model_front_port_rear_port.go
index 4c05d3c758..d7bf0ebd3c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 FrontPortRearPort type satisfies the MappedNullable interface at compile time
@@ -240,10 +241,34 @@ func (o FrontPortRearPort) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *FrontPortRearPort) UnmarshalJSON(bytes []byte) (err error) {
+func (o *FrontPortRearPort) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varFrontPortRearPort := _FrontPortRearPort{}
- err = json.Unmarshal(bytes, &varFrontPortRearPort)
+ err = json.Unmarshal(data, &varFrontPortRearPort)
if err != nil {
return err
@@ -253,7 +278,7 @@ func (o *FrontPortRearPort) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_front_port_rear_port_request.go b/model_front_port_rear_port_request.go
index ceae68fd22..4f2803c4f8 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 FrontPortRearPortRequest type satisfies the MappedNullable interface at compile time
@@ -159,10 +160,31 @@ func (o FrontPortRearPortRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *FrontPortRearPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *FrontPortRearPortRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varFrontPortRearPortRequest := _FrontPortRearPortRequest{}
- err = json.Unmarshal(bytes, &varFrontPortRearPortRequest)
+ err = json.Unmarshal(data, &varFrontPortRearPortRequest)
if err != nil {
return err
@@ -172,7 +194,7 @@ func (o *FrontPortRearPortRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "label")
delete(additionalProperties, "description")
diff --git a/model_front_port_request.go b/model_front_port_request.go
index 1ed17175ec..689bfaaac3 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 FrontPortRequest type satisfies the MappedNullable interface at compile time
@@ -23,9 +24,8 @@ type FrontPortRequest struct {
Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
- Type string `json:"type"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
Color *string `json:"color,omitempty"`
RearPort FrontPortRearPortRequest `json:"rear_port"`
// Mapped position on corresponding rear port
@@ -44,7 +44,7 @@ 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_ string, rearPort FrontPortRearPortRequest) *FrontPortRequest {
+func NewFrontPortRequest(device NestedDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest {
this := FrontPortRequest{}
this.Device = device
this.Name = name
@@ -185,9 +185,9 @@ func (o *FrontPortRequest) SetLabel(v string) {
}
// GetType returns the Type field value
-func (o *FrontPortRequest) GetType() string {
+func (o *FrontPortRequest) GetType() FrontPortTypeValue {
if o == nil {
- var ret string
+ var ret FrontPortTypeValue
return ret
}
@@ -196,7 +196,7 @@ func (o *FrontPortRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *FrontPortRequest) GetTypeOk() (*string, bool) {
+func (o *FrontPortRequest) GetTypeOk() (*FrontPortTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -204,7 +204,7 @@ func (o *FrontPortRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *FrontPortRequest) SetType(v string) {
+func (o *FrontPortRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
@@ -470,10 +470,34 @@ func (o FrontPortRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *FrontPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *FrontPortRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "rear_port",
+ }
+
+ 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)
+ }
+ }
+
varFrontPortRequest := _FrontPortRequest{}
- err = json.Unmarshal(bytes, &varFrontPortRequest)
+ err = json.Unmarshal(data, &varFrontPortRequest)
if err != nil {
return err
@@ -483,7 +507,7 @@ func (o *FrontPortRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_front_port_template.go b/model_front_port_template.go
index 3daf2625c2..8a074feae9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -520,10 +521,38 @@ func (o FrontPortTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *FrontPortTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *FrontPortTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "rear_port",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varFrontPortTemplate := _FrontPortTemplate{}
- err = json.Unmarshal(bytes, &varFrontPortTemplate)
+ err = json.Unmarshal(data, &varFrontPortTemplate)
if err != nil {
return err
@@ -533,7 +562,7 @@ func (o *FrontPortTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_front_port_template_request.go b/model_front_port_template_request.go
index 81f7b1a9b3..a80fc401f1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 FrontPortTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,9 +25,8 @@ type FrontPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
- Type string `json:"type"`
+ 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"`
@@ -40,7 +40,7 @@ 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_ string, rearPort NestedRearPortTemplateRequest) *FrontPortTemplateRequest {
+func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort NestedRearPortTemplateRequest) *FrontPortTemplateRequest {
this := FrontPortTemplateRequest{}
this.Name = name
this.Type = type_
@@ -199,9 +199,9 @@ func (o *FrontPortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value
-func (o *FrontPortTemplateRequest) GetType() string {
+func (o *FrontPortTemplateRequest) GetType() FrontPortTypeValue {
if o == nil {
- var ret string
+ var ret FrontPortTypeValue
return ret
}
@@ -210,7 +210,7 @@ func (o *FrontPortTemplateRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *FrontPortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *FrontPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -218,7 +218,7 @@ func (o *FrontPortTemplateRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *FrontPortTemplateRequest) SetType(v string) {
+func (o *FrontPortTemplateRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
@@ -381,10 +381,33 @@ func (o FrontPortTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *FrontPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *FrontPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "rear_port",
+ }
+
+ 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)
+ }
+ }
+
varFrontPortTemplateRequest := _FrontPortTemplateRequest{}
- err = json.Unmarshal(bytes, &varFrontPortTemplateRequest)
+ err = json.Unmarshal(data, &varFrontPortTemplateRequest)
if err != nil {
return err
@@ -394,7 +417,7 @@ func (o *FrontPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_front_port_type.go b/model_front_port_type.go
index 6e89af698f..bda34ef7ad 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &FrontPortType{}
// FrontPortType struct for FrontPortType
type FrontPortType struct {
- // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *FrontPortTypeValue `json:"value,omitempty"`
+ Label *FrontPortTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewFrontPortTypeWithDefaults() *FrontPortType {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *FrontPortType) GetValue() string {
+func (o *FrontPortType) GetValue() FrontPortTypeValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret FrontPortTypeValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *FrontPortType) GetValue() string {
// 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 *FrontPortType) GetValueOk() (*string, bool) {
+func (o *FrontPortType) GetValueOk() (*FrontPortTypeValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *FrontPortType) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *FrontPortType) SetValue(v string) {
+// SetValue gets a reference to the given FrontPortTypeValue and assigns it to the Value field.
+func (o *FrontPortType) SetValue(v FrontPortTypeValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *FrontPortType) GetLabel() string {
+func (o *FrontPortType) GetLabel() FrontPortTypeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret FrontPortTypeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *FrontPortType) 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 *FrontPortType) GetLabelOk() (*string, bool) {
+func (o *FrontPortType) GetLabelOk() (*FrontPortTypeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *FrontPortType) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *FrontPortType) SetLabel(v string) {
+// SetLabel gets a reference to the given FrontPortTypeLabel and assigns it to the Label field.
+func (o *FrontPortType) SetLabel(v FrontPortTypeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o FrontPortType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *FrontPortType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *FrontPortType) UnmarshalJSON(data []byte) (err error) {
varFrontPortType := _FrontPortType{}
- err = json.Unmarshal(bytes, &varFrontPortType)
+ err = json.Unmarshal(data, &varFrontPortType)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *FrontPortType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_front_port_type_label.go b/model_front_port_type_label.go
new file mode 100644
index 0000000000..ec9c9cc3d9
--- /dev/null
+++ b/model_front_port_type_label.go
@@ -0,0 +1,200 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// FrontPortTypeLabel the model 'FrontPortTypeLabel'
+type FrontPortTypeLabel string
+
+// List of FrontPort_type_label
+const (
+ FRONTPORTTYPELABEL__8_P8_C FrontPortTypeLabel = "8P8C"
+ FRONTPORTTYPELABEL__8_P6_C FrontPortTypeLabel = "8P6C"
+ FRONTPORTTYPELABEL__8_P4_C FrontPortTypeLabel = "8P4C"
+ FRONTPORTTYPELABEL__8_P2_C FrontPortTypeLabel = "8P2C"
+ FRONTPORTTYPELABEL__6_P6_C FrontPortTypeLabel = "6P6C"
+ FRONTPORTTYPELABEL__6_P4_C FrontPortTypeLabel = "6P4C"
+ FRONTPORTTYPELABEL__6_P2_C FrontPortTypeLabel = "6P2C"
+ FRONTPORTTYPELABEL__4_P4_C FrontPortTypeLabel = "4P4C"
+ FRONTPORTTYPELABEL__4_P2_C FrontPortTypeLabel = "4P2C"
+ FRONTPORTTYPELABEL_GG45 FrontPortTypeLabel = "GG45"
+ FRONTPORTTYPELABEL_TERA_4_P FrontPortTypeLabel = "TERA 4P"
+ FRONTPORTTYPELABEL_TERA_2_P FrontPortTypeLabel = "TERA 2P"
+ FRONTPORTTYPELABEL_TERA_1_P FrontPortTypeLabel = "TERA 1P"
+ FRONTPORTTYPELABEL__110_PUNCH FrontPortTypeLabel = "110 Punch"
+ FRONTPORTTYPELABEL_BNC FrontPortTypeLabel = "BNC"
+ FRONTPORTTYPELABEL_F_CONNECTOR FrontPortTypeLabel = "F Connector"
+ FRONTPORTTYPELABEL_N_CONNECTOR FrontPortTypeLabel = "N Connector"
+ FRONTPORTTYPELABEL_MRJ21 FrontPortTypeLabel = "MRJ21"
+ FRONTPORTTYPELABEL_FC FrontPortTypeLabel = "FC"
+ FRONTPORTTYPELABEL_LC FrontPortTypeLabel = "LC"
+ FRONTPORTTYPELABEL_LC_PC FrontPortTypeLabel = "LC/PC"
+ FRONTPORTTYPELABEL_LC_UPC FrontPortTypeLabel = "LC/UPC"
+ FRONTPORTTYPELABEL_LC_APC FrontPortTypeLabel = "LC/APC"
+ FRONTPORTTYPELABEL_LSH FrontPortTypeLabel = "LSH"
+ FRONTPORTTYPELABEL_LSH_PC FrontPortTypeLabel = "LSH/PC"
+ FRONTPORTTYPELABEL_LSH_UPC FrontPortTypeLabel = "LSH/UPC"
+ FRONTPORTTYPELABEL_LSH_APC FrontPortTypeLabel = "LSH/APC"
+ FRONTPORTTYPELABEL_LX_5 FrontPortTypeLabel = "LX.5"
+ FRONTPORTTYPELABEL_LX_5_PC FrontPortTypeLabel = "LX.5/PC"
+ FRONTPORTTYPELABEL_LX_5_UPC FrontPortTypeLabel = "LX.5/UPC"
+ FRONTPORTTYPELABEL_LX_5_APC FrontPortTypeLabel = "LX.5/APC"
+ FRONTPORTTYPELABEL_MPO FrontPortTypeLabel = "MPO"
+ FRONTPORTTYPELABEL_MTRJ FrontPortTypeLabel = "MTRJ"
+ FRONTPORTTYPELABEL_SC FrontPortTypeLabel = "SC"
+ FRONTPORTTYPELABEL_SC_PC FrontPortTypeLabel = "SC/PC"
+ FRONTPORTTYPELABEL_SC_UPC FrontPortTypeLabel = "SC/UPC"
+ FRONTPORTTYPELABEL_SC_APC FrontPortTypeLabel = "SC/APC"
+ FRONTPORTTYPELABEL_ST FrontPortTypeLabel = "ST"
+ FRONTPORTTYPELABEL_CS FrontPortTypeLabel = "CS"
+ FRONTPORTTYPELABEL_SN FrontPortTypeLabel = "SN"
+ FRONTPORTTYPELABEL_SMA_905 FrontPortTypeLabel = "SMA 905"
+ FRONTPORTTYPELABEL_SMA_906 FrontPortTypeLabel = "SMA 906"
+ FRONTPORTTYPELABEL_URM_P2 FrontPortTypeLabel = "URM-P2"
+ FRONTPORTTYPELABEL_URM_P4 FrontPortTypeLabel = "URM-P4"
+ FRONTPORTTYPELABEL_URM_P8 FrontPortTypeLabel = "URM-P8"
+ FRONTPORTTYPELABEL_SPLICE FrontPortTypeLabel = "Splice"
+ FRONTPORTTYPELABEL_OTHER FrontPortTypeLabel = "Other"
+)
+
+// All allowed values of FrontPortTypeLabel enum
+var AllowedFrontPortTypeLabelEnumValues = []FrontPortTypeLabel{
+ "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",
+}
+
+func (v *FrontPortTypeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := FrontPortTypeLabel(value)
+ for _, existing := range AllowedFrontPortTypeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid FrontPortTypeLabel", value)
+}
+
+// NewFrontPortTypeLabelFromValue returns a pointer to a valid FrontPortTypeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewFrontPortTypeLabelFromValue(v string) (*FrontPortTypeLabel, error) {
+ ev := FrontPortTypeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for FrontPortTypeLabel: valid values are %v", v, AllowedFrontPortTypeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v FrontPortTypeLabel) IsValid() bool {
+ for _, existing := range AllowedFrontPortTypeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to FrontPort_type_label value
+func (v FrontPortTypeLabel) Ptr() *FrontPortTypeLabel {
+ return &v
+}
+
+type NullableFrontPortTypeLabel struct {
+ value *FrontPortTypeLabel
+ isSet bool
+}
+
+func (v NullableFrontPortTypeLabel) Get() *FrontPortTypeLabel {
+ return v.value
+}
+
+func (v *NullableFrontPortTypeLabel) Set(val *FrontPortTypeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableFrontPortTypeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableFrontPortTypeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableFrontPortTypeLabel(val *FrontPortTypeLabel) *NullableFrontPortTypeLabel {
+ return &NullableFrontPortTypeLabel{value: val, isSet: true}
+}
+
+func (v NullableFrontPortTypeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableFrontPortTypeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_front_port_type_value.go b/model_front_port_type_value.go
new file mode 100644
index 0000000000..cae218b739
--- /dev/null
+++ b/model_front_port_type_value.go
@@ -0,0 +1,200 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// FrontPortTypeValue * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
+type FrontPortTypeValue string
+
+// List of FrontPort_type_value
+const (
+ FRONTPORTTYPEVALUE__8P8C FrontPortTypeValue = "8p8c"
+ FRONTPORTTYPEVALUE__8P6C FrontPortTypeValue = "8p6c"
+ FRONTPORTTYPEVALUE__8P4C FrontPortTypeValue = "8p4c"
+ FRONTPORTTYPEVALUE__8P2C FrontPortTypeValue = "8p2c"
+ FRONTPORTTYPEVALUE__6P6C FrontPortTypeValue = "6p6c"
+ FRONTPORTTYPEVALUE__6P4C FrontPortTypeValue = "6p4c"
+ FRONTPORTTYPEVALUE__6P2C FrontPortTypeValue = "6p2c"
+ FRONTPORTTYPEVALUE__4P4C FrontPortTypeValue = "4p4c"
+ FRONTPORTTYPEVALUE__4P2C FrontPortTypeValue = "4p2c"
+ FRONTPORTTYPEVALUE_GG45 FrontPortTypeValue = "gg45"
+ FRONTPORTTYPEVALUE_TERA_4P FrontPortTypeValue = "tera-4p"
+ FRONTPORTTYPEVALUE_TERA_2P FrontPortTypeValue = "tera-2p"
+ FRONTPORTTYPEVALUE_TERA_1P FrontPortTypeValue = "tera-1p"
+ FRONTPORTTYPEVALUE__110_PUNCH FrontPortTypeValue = "110-punch"
+ FRONTPORTTYPEVALUE_BNC FrontPortTypeValue = "bnc"
+ FRONTPORTTYPEVALUE_F FrontPortTypeValue = "f"
+ FRONTPORTTYPEVALUE_N FrontPortTypeValue = "n"
+ FRONTPORTTYPEVALUE_MRJ21 FrontPortTypeValue = "mrj21"
+ FRONTPORTTYPEVALUE_FC FrontPortTypeValue = "fc"
+ FRONTPORTTYPEVALUE_LC FrontPortTypeValue = "lc"
+ FRONTPORTTYPEVALUE_LC_PC FrontPortTypeValue = "lc-pc"
+ FRONTPORTTYPEVALUE_LC_UPC FrontPortTypeValue = "lc-upc"
+ FRONTPORTTYPEVALUE_LC_APC FrontPortTypeValue = "lc-apc"
+ FRONTPORTTYPEVALUE_LSH FrontPortTypeValue = "lsh"
+ FRONTPORTTYPEVALUE_LSH_PC FrontPortTypeValue = "lsh-pc"
+ FRONTPORTTYPEVALUE_LSH_UPC FrontPortTypeValue = "lsh-upc"
+ FRONTPORTTYPEVALUE_LSH_APC FrontPortTypeValue = "lsh-apc"
+ FRONTPORTTYPEVALUE_LX5 FrontPortTypeValue = "lx5"
+ FRONTPORTTYPEVALUE_LX5_PC FrontPortTypeValue = "lx5-pc"
+ FRONTPORTTYPEVALUE_LX5_UPC FrontPortTypeValue = "lx5-upc"
+ FRONTPORTTYPEVALUE_LX5_APC FrontPortTypeValue = "lx5-apc"
+ FRONTPORTTYPEVALUE_MPO FrontPortTypeValue = "mpo"
+ FRONTPORTTYPEVALUE_MTRJ FrontPortTypeValue = "mtrj"
+ FRONTPORTTYPEVALUE_SC FrontPortTypeValue = "sc"
+ FRONTPORTTYPEVALUE_SC_PC FrontPortTypeValue = "sc-pc"
+ FRONTPORTTYPEVALUE_SC_UPC FrontPortTypeValue = "sc-upc"
+ FRONTPORTTYPEVALUE_SC_APC FrontPortTypeValue = "sc-apc"
+ FRONTPORTTYPEVALUE_ST FrontPortTypeValue = "st"
+ FRONTPORTTYPEVALUE_CS FrontPortTypeValue = "cs"
+ FRONTPORTTYPEVALUE_SN FrontPortTypeValue = "sn"
+ FRONTPORTTYPEVALUE_SMA_905 FrontPortTypeValue = "sma-905"
+ FRONTPORTTYPEVALUE_SMA_906 FrontPortTypeValue = "sma-906"
+ FRONTPORTTYPEVALUE_URM_P2 FrontPortTypeValue = "urm-p2"
+ FRONTPORTTYPEVALUE_URM_P4 FrontPortTypeValue = "urm-p4"
+ FRONTPORTTYPEVALUE_URM_P8 FrontPortTypeValue = "urm-p8"
+ FRONTPORTTYPEVALUE_SPLICE FrontPortTypeValue = "splice"
+ FRONTPORTTYPEVALUE_OTHER FrontPortTypeValue = "other"
+)
+
+// All allowed values of FrontPortTypeValue enum
+var AllowedFrontPortTypeValueEnumValues = []FrontPortTypeValue{
+ "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",
+}
+
+func (v *FrontPortTypeValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := FrontPortTypeValue(value)
+ for _, existing := range AllowedFrontPortTypeValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid FrontPortTypeValue", value)
+}
+
+// NewFrontPortTypeValueFromValue returns a pointer to a valid FrontPortTypeValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewFrontPortTypeValueFromValue(v string) (*FrontPortTypeValue, error) {
+ ev := FrontPortTypeValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for FrontPortTypeValue: valid values are %v", v, AllowedFrontPortTypeValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v FrontPortTypeValue) IsValid() bool {
+ for _, existing := range AllowedFrontPortTypeValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to FrontPort_type_value value
+func (v FrontPortTypeValue) Ptr() *FrontPortTypeValue {
+ return &v
+}
+
+type NullableFrontPortTypeValue struct {
+ value *FrontPortTypeValue
+ isSet bool
+}
+
+func (v NullableFrontPortTypeValue) Get() *FrontPortTypeValue {
+ return v.value
+}
+
+func (v *NullableFrontPortTypeValue) Set(val *FrontPortTypeValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableFrontPortTypeValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableFrontPortTypeValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableFrontPortTypeValue(val *FrontPortTypeValue) *NullableFrontPortTypeValue {
+ return &NullableFrontPortTypeValue{value: val, isSet: true}
+}
+
+func (v NullableFrontPortTypeValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableFrontPortTypeValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_generic_object.go b/model_generic_object.go
index 2c9f0ac2b8..fee1296485 100644
--- a/model_generic_object.go
+++ b/model_generic_object.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 GenericObject type satisfies the MappedNullable interface at compile time
@@ -19,9 +20,9 @@ var _ MappedNullable = &GenericObject{}
// GenericObject Minimal representation of some generic object identified by ContentType and PK.
type GenericObject struct {
- ObjectType string `json:"object_type"`
- ObjectId int32 `json:"object_id"`
- Object map[string]interface{} `json:"object"`
+ ObjectType string `json:"object_type"`
+ ObjectId int32 `json:"object_id"`
+ Object interface{} `json:"object"`
AdditionalProperties map[string]interface{}
}
@@ -31,7 +32,7 @@ type _GenericObject GenericObject
// This constructor will assign default values to properties that have it defined,
// and 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 map[string]interface{}) *GenericObject {
+func NewGenericObject(objectType string, objectId int32, object interface{}) *GenericObject {
this := GenericObject{}
this.ObjectType = objectType
this.ObjectId = objectId
@@ -96,10 +97,10 @@ func (o *GenericObject) SetObjectId(v int32) {
}
// GetObject returns the Object field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *GenericObject) GetObject() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *GenericObject) GetObject() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -109,15 +110,15 @@ func (o *GenericObject) GetObject() map[string]interface{} {
// 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() (map[string]interface{}, bool) {
+func (o *GenericObject) GetObjectOk() (*interface{}, bool) {
if o == nil || IsNil(o.Object) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Object, true
+ return &o.Object, true
}
// SetObject sets field value
-func (o *GenericObject) SetObject(v map[string]interface{}) {
+func (o *GenericObject) SetObject(v interface{}) {
o.Object = v
}
@@ -144,10 +145,33 @@ func (o GenericObject) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *GenericObject) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varGenericObject)
+ err = json.Unmarshal(data, &varGenericObject)
if err != nil {
return err
@@ -157,7 +181,7 @@ func (o *GenericObject) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "object_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "object")
diff --git a/model_generic_object_request.go b/model_generic_object_request.go
index df238be964..18f38c49a2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 GenericObjectRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o GenericObjectRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *GenericObjectRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *GenericObjectRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ }
+
+ 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)
+ }
+ }
+
varGenericObjectRequest := _GenericObjectRequest{}
- err = json.Unmarshal(bytes, &varGenericObjectRequest)
+ err = json.Unmarshal(data, &varGenericObjectRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *GenericObjectRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "object_type")
delete(additionalProperties, "object_id")
o.AdditionalProperties = additionalProperties
diff --git a/model_group.go b/model_group.go
index ca96d74b95..4a9a823adb 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 Group type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o Group) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Group) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Group) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "user_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)
+ }
+ }
+
varGroup := _Group{}
- err = json.Unmarshal(bytes, &varGroup)
+ err = json.Unmarshal(data, &varGroup)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *Group) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_group_request.go b/model_group_request.go
index ddfb85016a..403f03215f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 GroupRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o GroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *GroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *GroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varGroupRequest := _GroupRequest{}
- err = json.Unmarshal(bytes, &varGroupRequest)
+ err = json.Unmarshal(data, &varGroupRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *GroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_ike_policy.go b/model_ike_policy.go
new file mode 100644
index 0000000000..a30afc6455
--- /dev/null
+++ b/model_ike_policy.go
@@ -0,0 +1,596 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the IKEPolicy type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IKEPolicy{}
+
+// IKEPolicy Adds support for custom fields and tags.
+type IKEPolicy struct {
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Version IKEPolicyVersion `json:"version"`
+ Mode IKEPolicyMode `json:"mode"`
+ Proposals []int32 `json:"proposals,omitempty"`
+ PresharedKey *string `json:"preshared_key,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IKEPolicy IKEPolicy
+
+// NewIKEPolicy instantiates a new IKEPolicy object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, mode IKEPolicyMode, created NullableTime, lastUpdated NullableTime) *IKEPolicy {
+ this := IKEPolicy{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.Name = name
+ this.Version = version
+ this.Mode = mode
+ this.Created = created
+ this.LastUpdated = lastUpdated
+ return &this
+}
+
+// NewIKEPolicyWithDefaults instantiates a new IKEPolicy object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIKEPolicyWithDefaults() *IKEPolicy {
+ this := IKEPolicy{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *IKEPolicy) 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 *IKEPolicy) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *IKEPolicy) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *IKEPolicy) 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 *IKEPolicy) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *IKEPolicy) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplay returns the Display field value
+func (o *IKEPolicy) 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 *IKEPolicy) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *IKEPolicy) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetName returns the Name field value
+func (o *IKEPolicy) 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 *IKEPolicy) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *IKEPolicy) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *IKEPolicy) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *IKEPolicy) 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 *IKEPolicy) 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 *IKEPolicy) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetVersion returns the Version field value
+func (o *IKEPolicy) GetVersion() IKEPolicyVersion {
+ if o == nil {
+ var ret IKEPolicyVersion
+ return ret
+ }
+
+ return o.Version
+}
+
+// GetVersionOk returns a tuple with the Version field value
+// and a boolean to check if the value has been set.
+func (o *IKEPolicy) GetVersionOk() (*IKEPolicyVersion, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Version, true
+}
+
+// SetVersion sets field value
+func (o *IKEPolicy) SetVersion(v IKEPolicyVersion) {
+ o.Version = v
+}
+
+// GetMode returns the Mode field value
+func (o *IKEPolicy) GetMode() IKEPolicyMode {
+ if o == nil {
+ var ret IKEPolicyMode
+ return ret
+ }
+
+ return o.Mode
+}
+
+// GetModeOk returns a tuple with the Mode field value
+// and a boolean to check if the value has been set.
+func (o *IKEPolicy) GetModeOk() (*IKEPolicyMode, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Mode, true
+}
+
+// SetMode sets field value
+func (o *IKEPolicy) SetMode(v IKEPolicyMode) {
+ o.Mode = v
+}
+
+// GetProposals returns the Proposals field value if set, zero value otherwise.
+func (o *IKEPolicy) GetProposals() []int32 {
+ if o == nil || IsNil(o.Proposals) {
+ var ret []int32
+ return ret
+ }
+ return o.Proposals
+}
+
+// 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) {
+ if o == nil || IsNil(o.Proposals) {
+ return nil, false
+ }
+ return o.Proposals, true
+}
+
+// HasProposals returns a boolean if a field has been set.
+func (o *IKEPolicy) 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 *IKEPolicy) SetProposals(v []int32) {
+ o.Proposals = v
+}
+
+// GetPresharedKey returns the PresharedKey field value if set, zero value otherwise.
+func (o *IKEPolicy) GetPresharedKey() string {
+ if o == nil || IsNil(o.PresharedKey) {
+ var ret string
+ return ret
+ }
+ return *o.PresharedKey
+}
+
+// GetPresharedKeyOk returns a tuple with the PresharedKey field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *IKEPolicy) GetPresharedKeyOk() (*string, bool) {
+ if o == nil || IsNil(o.PresharedKey) {
+ return nil, false
+ }
+ return o.PresharedKey, true
+}
+
+// HasPresharedKey returns a boolean if a field has been set.
+func (o *IKEPolicy) HasPresharedKey() bool {
+ if o != nil && !IsNil(o.PresharedKey) {
+ return true
+ }
+
+ return false
+}
+
+// SetPresharedKey gets a reference to the given string and assigns it to the PresharedKey field.
+func (o *IKEPolicy) SetPresharedKey(v string) {
+ o.PresharedKey = &v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *IKEPolicy) 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 *IKEPolicy) 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 *IKEPolicy) 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 *IKEPolicy) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *IKEPolicy) 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 *IKEPolicy) 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 *IKEPolicy) 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 *IKEPolicy) SetTags(v []NestedTag) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *IKEPolicy) 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 *IKEPolicy) 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 *IKEPolicy) 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 *IKEPolicy) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetCreated returns the Created field value
+// If the value is explicit nil, the zero value for time.Time will be returned
+func (o *IKEPolicy) 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 *IKEPolicy) GetCreatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Created.Get(), o.Created.IsSet()
+}
+
+// SetCreated sets field value
+func (o *IKEPolicy) 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 *IKEPolicy) 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 *IKEPolicy) GetLastUpdatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.LastUpdated.Get(), o.LastUpdated.IsSet()
+}
+
+// SetLastUpdated sets field value
+func (o *IKEPolicy) SetLastUpdated(v time.Time) {
+ o.LastUpdated.Set(&v)
+}
+
+func (o IKEPolicy) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IKEPolicy) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ toSerialize["display"] = o.Display
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["version"] = o.Version
+ toSerialize["mode"] = o.Mode
+ if !IsNil(o.Proposals) {
+ toSerialize["proposals"] = o.Proposals
+ }
+ if !IsNil(o.PresharedKey) {
+ toSerialize["preshared_key"] = o.PresharedKey
+ }
+ 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
+ }
+
+ return toSerialize, nil
+}
+
+func (o *IKEPolicy) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "version",
+ "mode",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
+ varIKEPolicy := _IKEPolicy{}
+
+ err = json.Unmarshal(data, &varIKEPolicy)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IKEPolicy(varIKEPolicy)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "version")
+ delete(additionalProperties, "mode")
+ delete(additionalProperties, "proposals")
+ delete(additionalProperties, "preshared_key")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "created")
+ delete(additionalProperties, "last_updated")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableIKEPolicy struct {
+ value *IKEPolicy
+ isSet bool
+}
+
+func (v NullableIKEPolicy) Get() *IKEPolicy {
+ return v.value
+}
+
+func (v *NullableIKEPolicy) Set(val *IKEPolicy) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEPolicy) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEPolicy) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEPolicy(val *IKEPolicy) *NullableIKEPolicy {
+ return &NullableIKEPolicy{value: val, isSet: true}
+}
+
+func (v NullableIKEPolicy) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEPolicy) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_policy_mode.go b/model_ike_policy_mode.go
new file mode 100644
index 0000000000..22edf5bb04
--- /dev/null
+++ b/model_ike_policy_mode.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the IKEPolicyMode type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IKEPolicyMode{}
+
+// IKEPolicyMode struct for IKEPolicyMode
+type IKEPolicyMode struct {
+ Value *IKEPolicyModeValue `json:"value,omitempty"`
+ Label *IKEPolicyModeLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IKEPolicyMode IKEPolicyMode
+
+// NewIKEPolicyMode instantiates a new IKEPolicyMode object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIKEPolicyMode() *IKEPolicyMode {
+ this := IKEPolicyMode{}
+ return &this
+}
+
+// NewIKEPolicyModeWithDefaults instantiates a new IKEPolicyMode object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIKEPolicyModeWithDefaults() *IKEPolicyMode {
+ this := IKEPolicyMode{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *IKEPolicyMode) GetValue() IKEPolicyModeValue {
+ if o == nil || IsNil(o.Value) {
+ var ret IKEPolicyModeValue
+ 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 *IKEPolicyMode) GetValueOk() (*IKEPolicyModeValue, 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 *IKEPolicyMode) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given IKEPolicyModeValue and assigns it to the Value field.
+func (o *IKEPolicyMode) SetValue(v IKEPolicyModeValue) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *IKEPolicyMode) GetLabel() IKEPolicyModeLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret IKEPolicyModeLabel
+ 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 *IKEPolicyMode) GetLabelOk() (*IKEPolicyModeLabel, 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 *IKEPolicyMode) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given IKEPolicyModeLabel and assigns it to the Label field.
+func (o *IKEPolicyMode) SetLabel(v IKEPolicyModeLabel) {
+ o.Label = &v
+}
+
+func (o IKEPolicyMode) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IKEPolicyMode) 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 *IKEPolicyMode) UnmarshalJSON(data []byte) (err error) {
+ varIKEPolicyMode := _IKEPolicyMode{}
+
+ err = json.Unmarshal(data, &varIKEPolicyMode)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IKEPolicyMode(varIKEPolicyMode)
+
+ 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 NullableIKEPolicyMode struct {
+ value *IKEPolicyMode
+ isSet bool
+}
+
+func (v NullableIKEPolicyMode) Get() *IKEPolicyMode {
+ return v.value
+}
+
+func (v *NullableIKEPolicyMode) Set(val *IKEPolicyMode) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEPolicyMode) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEPolicyMode) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEPolicyMode(val *IKEPolicyMode) *NullableIKEPolicyMode {
+ return &NullableIKEPolicyMode{value: val, isSet: true}
+}
+
+func (v NullableIKEPolicyMode) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEPolicyMode) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_policy_mode_label.go b/model_ike_policy_mode_label.go
new file mode 100644
index 0000000000..e8ef70e852
--- /dev/null
+++ b/model_ike_policy_mode_label.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IKEPolicyModeLabel the model 'IKEPolicyModeLabel'
+type IKEPolicyModeLabel string
+
+// List of IKEPolicy_mode_label
+const (
+ IKEPOLICYMODELABEL_AGGRESSIVE IKEPolicyModeLabel = "Aggressive"
+ IKEPOLICYMODELABEL_MAIN IKEPolicyModeLabel = "Main"
+)
+
+// All allowed values of IKEPolicyModeLabel enum
+var AllowedIKEPolicyModeLabelEnumValues = []IKEPolicyModeLabel{
+ "Aggressive",
+ "Main",
+}
+
+func (v *IKEPolicyModeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IKEPolicyModeLabel(value)
+ for _, existing := range AllowedIKEPolicyModeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IKEPolicyModeLabel", value)
+}
+
+// NewIKEPolicyModeLabelFromValue returns a pointer to a valid IKEPolicyModeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIKEPolicyModeLabelFromValue(v string) (*IKEPolicyModeLabel, error) {
+ ev := IKEPolicyModeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IKEPolicyModeLabel: valid values are %v", v, AllowedIKEPolicyModeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IKEPolicyModeLabel) IsValid() bool {
+ for _, existing := range AllowedIKEPolicyModeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IKEPolicy_mode_label value
+func (v IKEPolicyModeLabel) Ptr() *IKEPolicyModeLabel {
+ return &v
+}
+
+type NullableIKEPolicyModeLabel struct {
+ value *IKEPolicyModeLabel
+ isSet bool
+}
+
+func (v NullableIKEPolicyModeLabel) Get() *IKEPolicyModeLabel {
+ return v.value
+}
+
+func (v *NullableIKEPolicyModeLabel) Set(val *IKEPolicyModeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEPolicyModeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEPolicyModeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEPolicyModeLabel(val *IKEPolicyModeLabel) *NullableIKEPolicyModeLabel {
+ return &NullableIKEPolicyModeLabel{value: val, isSet: true}
+}
+
+func (v NullableIKEPolicyModeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEPolicyModeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_policy_mode_value.go b/model_ike_policy_mode_value.go
new file mode 100644
index 0000000000..7cb0e5a80c
--- /dev/null
+++ b/model_ike_policy_mode_value.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IKEPolicyModeValue * `aggressive` - Aggressive * `main` - Main
+type IKEPolicyModeValue string
+
+// List of IKEPolicy_mode_value
+const (
+ IKEPOLICYMODEVALUE_AGGRESSIVE IKEPolicyModeValue = "aggressive"
+ IKEPOLICYMODEVALUE_MAIN IKEPolicyModeValue = "main"
+)
+
+// All allowed values of IKEPolicyModeValue enum
+var AllowedIKEPolicyModeValueEnumValues = []IKEPolicyModeValue{
+ "aggressive",
+ "main",
+}
+
+func (v *IKEPolicyModeValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IKEPolicyModeValue(value)
+ for _, existing := range AllowedIKEPolicyModeValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IKEPolicyModeValue", value)
+}
+
+// NewIKEPolicyModeValueFromValue returns a pointer to a valid IKEPolicyModeValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIKEPolicyModeValueFromValue(v string) (*IKEPolicyModeValue, error) {
+ ev := IKEPolicyModeValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IKEPolicyModeValue: valid values are %v", v, AllowedIKEPolicyModeValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IKEPolicyModeValue) IsValid() bool {
+ for _, existing := range AllowedIKEPolicyModeValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IKEPolicy_mode_value value
+func (v IKEPolicyModeValue) Ptr() *IKEPolicyModeValue {
+ return &v
+}
+
+type NullableIKEPolicyModeValue struct {
+ value *IKEPolicyModeValue
+ isSet bool
+}
+
+func (v NullableIKEPolicyModeValue) Get() *IKEPolicyModeValue {
+ return v.value
+}
+
+func (v *NullableIKEPolicyModeValue) Set(val *IKEPolicyModeValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEPolicyModeValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEPolicyModeValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEPolicyModeValue(val *IKEPolicyModeValue) *NullableIKEPolicyModeValue {
+ return &NullableIKEPolicyModeValue{value: val, isSet: true}
+}
+
+func (v NullableIKEPolicyModeValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEPolicyModeValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_policy_request.go b/model_ike_policy_request.go
new file mode 100644
index 0000000000..73d837a0f9
--- /dev/null
+++ b/model_ike_policy_request.go
@@ -0,0 +1,446 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the IKEPolicyRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IKEPolicyRequest{}
+
+// IKEPolicyRequest Adds support for custom fields and tags.
+type IKEPolicyRequest struct {
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Version IKEPolicyVersionValue `json:"version"`
+ Mode IKEPolicyModeValue `json:"mode"`
+ Proposals []int32 `json:"proposals,omitempty"`
+ PresharedKey *string `json:"preshared_key,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IKEPolicyRequest IKEPolicyRequest
+
+// NewIKEPolicyRequest instantiates a new IKEPolicyRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, mode IKEPolicyModeValue) *IKEPolicyRequest {
+ this := IKEPolicyRequest{}
+ this.Name = name
+ this.Version = version
+ this.Mode = mode
+ return &this
+}
+
+// NewIKEPolicyRequestWithDefaults instantiates a new IKEPolicyRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIKEPolicyRequestWithDefaults() *IKEPolicyRequest {
+ this := IKEPolicyRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *IKEPolicyRequest) 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 *IKEPolicyRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *IKEPolicyRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *IKEPolicyRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *IKEPolicyRequest) 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 *IKEPolicyRequest) 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 *IKEPolicyRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetVersion returns the Version field value
+func (o *IKEPolicyRequest) GetVersion() IKEPolicyVersionValue {
+ if o == nil {
+ var ret IKEPolicyVersionValue
+ return ret
+ }
+
+ return o.Version
+}
+
+// GetVersionOk returns a tuple with the Version field value
+// and a boolean to check if the value has been set.
+func (o *IKEPolicyRequest) GetVersionOk() (*IKEPolicyVersionValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Version, true
+}
+
+// SetVersion sets field value
+func (o *IKEPolicyRequest) SetVersion(v IKEPolicyVersionValue) {
+ o.Version = v
+}
+
+// GetMode returns the Mode field value
+func (o *IKEPolicyRequest) GetMode() IKEPolicyModeValue {
+ if o == nil {
+ var ret IKEPolicyModeValue
+ return ret
+ }
+
+ return o.Mode
+}
+
+// GetModeOk returns a tuple with the Mode field value
+// and a boolean to check if the value has been set.
+func (o *IKEPolicyRequest) GetModeOk() (*IKEPolicyModeValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Mode, true
+}
+
+// SetMode sets field value
+func (o *IKEPolicyRequest) SetMode(v IKEPolicyModeValue) {
+ o.Mode = v
+}
+
+// GetProposals returns the Proposals field value if set, zero value otherwise.
+func (o *IKEPolicyRequest) GetProposals() []int32 {
+ if o == nil || IsNil(o.Proposals) {
+ var ret []int32
+ return ret
+ }
+ return o.Proposals
+}
+
+// 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 *IKEPolicyRequest) GetProposalsOk() ([]int32, bool) {
+ if o == nil || IsNil(o.Proposals) {
+ return nil, false
+ }
+ return o.Proposals, true
+}
+
+// HasProposals returns a boolean if a field has been set.
+func (o *IKEPolicyRequest) 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 *IKEPolicyRequest) SetProposals(v []int32) {
+ o.Proposals = v
+}
+
+// GetPresharedKey returns the PresharedKey field value if set, zero value otherwise.
+func (o *IKEPolicyRequest) GetPresharedKey() string {
+ if o == nil || IsNil(o.PresharedKey) {
+ var ret string
+ return ret
+ }
+ return *o.PresharedKey
+}
+
+// GetPresharedKeyOk returns a tuple with the PresharedKey field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *IKEPolicyRequest) GetPresharedKeyOk() (*string, bool) {
+ if o == nil || IsNil(o.PresharedKey) {
+ return nil, false
+ }
+ return o.PresharedKey, true
+}
+
+// HasPresharedKey returns a boolean if a field has been set.
+func (o *IKEPolicyRequest) HasPresharedKey() bool {
+ if o != nil && !IsNil(o.PresharedKey) {
+ return true
+ }
+
+ return false
+}
+
+// SetPresharedKey gets a reference to the given string and assigns it to the PresharedKey field.
+func (o *IKEPolicyRequest) SetPresharedKey(v string) {
+ o.PresharedKey = &v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *IKEPolicyRequest) 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 *IKEPolicyRequest) 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 *IKEPolicyRequest) 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 *IKEPolicyRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *IKEPolicyRequest) 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 *IKEPolicyRequest) 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 *IKEPolicyRequest) 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 *IKEPolicyRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *IKEPolicyRequest) 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 *IKEPolicyRequest) 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 *IKEPolicyRequest) 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 *IKEPolicyRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o IKEPolicyRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IKEPolicyRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["version"] = o.Version
+ toSerialize["mode"] = o.Mode
+ if !IsNil(o.Proposals) {
+ toSerialize["proposals"] = o.Proposals
+ }
+ if !IsNil(o.PresharedKey) {
+ toSerialize["preshared_key"] = o.PresharedKey
+ }
+ 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 *IKEPolicyRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "version",
+ "mode",
+ }
+
+ 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)
+ }
+ }
+
+ varIKEPolicyRequest := _IKEPolicyRequest{}
+
+ err = json.Unmarshal(data, &varIKEPolicyRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IKEPolicyRequest(varIKEPolicyRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "version")
+ delete(additionalProperties, "mode")
+ delete(additionalProperties, "proposals")
+ delete(additionalProperties, "preshared_key")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableIKEPolicyRequest struct {
+ value *IKEPolicyRequest
+ isSet bool
+}
+
+func (v NullableIKEPolicyRequest) Get() *IKEPolicyRequest {
+ return v.value
+}
+
+func (v *NullableIKEPolicyRequest) Set(val *IKEPolicyRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEPolicyRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEPolicyRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEPolicyRequest(val *IKEPolicyRequest) *NullableIKEPolicyRequest {
+ return &NullableIKEPolicyRequest{value: val, isSet: true}
+}
+
+func (v NullableIKEPolicyRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEPolicyRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_policy_version.go b/model_ike_policy_version.go
new file mode 100644
index 0000000000..f35a6b2c04
--- /dev/null
+++ b/model_ike_policy_version.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the IKEPolicyVersion type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IKEPolicyVersion{}
+
+// IKEPolicyVersion struct for IKEPolicyVersion
+type IKEPolicyVersion struct {
+ Value *IKEPolicyVersionValue `json:"value,omitempty"`
+ Label *IKEPolicyVersionLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IKEPolicyVersion IKEPolicyVersion
+
+// NewIKEPolicyVersion instantiates a new IKEPolicyVersion object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIKEPolicyVersion() *IKEPolicyVersion {
+ this := IKEPolicyVersion{}
+ return &this
+}
+
+// NewIKEPolicyVersionWithDefaults instantiates a new IKEPolicyVersion object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIKEPolicyVersionWithDefaults() *IKEPolicyVersion {
+ this := IKEPolicyVersion{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *IKEPolicyVersion) GetValue() IKEPolicyVersionValue {
+ if o == nil || IsNil(o.Value) {
+ var ret IKEPolicyVersionValue
+ 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 *IKEPolicyVersion) GetValueOk() (*IKEPolicyVersionValue, 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 *IKEPolicyVersion) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given IKEPolicyVersionValue and assigns it to the Value field.
+func (o *IKEPolicyVersion) SetValue(v IKEPolicyVersionValue) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *IKEPolicyVersion) GetLabel() IKEPolicyVersionLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret IKEPolicyVersionLabel
+ 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 *IKEPolicyVersion) GetLabelOk() (*IKEPolicyVersionLabel, 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 *IKEPolicyVersion) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given IKEPolicyVersionLabel and assigns it to the Label field.
+func (o *IKEPolicyVersion) SetLabel(v IKEPolicyVersionLabel) {
+ o.Label = &v
+}
+
+func (o IKEPolicyVersion) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IKEPolicyVersion) 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 *IKEPolicyVersion) UnmarshalJSON(data []byte) (err error) {
+ varIKEPolicyVersion := _IKEPolicyVersion{}
+
+ err = json.Unmarshal(data, &varIKEPolicyVersion)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IKEPolicyVersion(varIKEPolicyVersion)
+
+ 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 NullableIKEPolicyVersion struct {
+ value *IKEPolicyVersion
+ isSet bool
+}
+
+func (v NullableIKEPolicyVersion) Get() *IKEPolicyVersion {
+ return v.value
+}
+
+func (v *NullableIKEPolicyVersion) Set(val *IKEPolicyVersion) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEPolicyVersion) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEPolicyVersion) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEPolicyVersion(val *IKEPolicyVersion) *NullableIKEPolicyVersion {
+ return &NullableIKEPolicyVersion{value: val, isSet: true}
+}
+
+func (v NullableIKEPolicyVersion) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEPolicyVersion) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_policy_version_label.go b/model_ike_policy_version_label.go
new file mode 100644
index 0000000000..89d690669c
--- /dev/null
+++ b/model_ike_policy_version_label.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IKEPolicyVersionLabel the model 'IKEPolicyVersionLabel'
+type IKEPolicyVersionLabel string
+
+// List of IKEPolicy_version_label
+const (
+ IKEPOLICYVERSIONLABEL_IKEV1 IKEPolicyVersionLabel = "IKEv1"
+ IKEPOLICYVERSIONLABEL_IKEV2 IKEPolicyVersionLabel = "IKEv2"
+)
+
+// All allowed values of IKEPolicyVersionLabel enum
+var AllowedIKEPolicyVersionLabelEnumValues = []IKEPolicyVersionLabel{
+ "IKEv1",
+ "IKEv2",
+}
+
+func (v *IKEPolicyVersionLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IKEPolicyVersionLabel(value)
+ for _, existing := range AllowedIKEPolicyVersionLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IKEPolicyVersionLabel", value)
+}
+
+// NewIKEPolicyVersionLabelFromValue returns a pointer to a valid IKEPolicyVersionLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIKEPolicyVersionLabelFromValue(v string) (*IKEPolicyVersionLabel, error) {
+ ev := IKEPolicyVersionLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IKEPolicyVersionLabel: valid values are %v", v, AllowedIKEPolicyVersionLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IKEPolicyVersionLabel) IsValid() bool {
+ for _, existing := range AllowedIKEPolicyVersionLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IKEPolicy_version_label value
+func (v IKEPolicyVersionLabel) Ptr() *IKEPolicyVersionLabel {
+ return &v
+}
+
+type NullableIKEPolicyVersionLabel struct {
+ value *IKEPolicyVersionLabel
+ isSet bool
+}
+
+func (v NullableIKEPolicyVersionLabel) Get() *IKEPolicyVersionLabel {
+ return v.value
+}
+
+func (v *NullableIKEPolicyVersionLabel) Set(val *IKEPolicyVersionLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEPolicyVersionLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEPolicyVersionLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEPolicyVersionLabel(val *IKEPolicyVersionLabel) *NullableIKEPolicyVersionLabel {
+ return &NullableIKEPolicyVersionLabel{value: val, isSet: true}
+}
+
+func (v NullableIKEPolicyVersionLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEPolicyVersionLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_policy_version_value.go b/model_ike_policy_version_value.go
new file mode 100644
index 0000000000..db6ce5f722
--- /dev/null
+++ b/model_ike_policy_version_value.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IKEPolicyVersionValue * `1` - IKEv1 * `2` - IKEv2
+type IKEPolicyVersionValue int32
+
+// List of IKEPolicy_version_value
+const (
+ IKEPOLICYVERSIONVALUE__1 IKEPolicyVersionValue = 1
+ IKEPOLICYVERSIONVALUE__2 IKEPolicyVersionValue = 2
+)
+
+// All allowed values of IKEPolicyVersionValue enum
+var AllowedIKEPolicyVersionValueEnumValues = []IKEPolicyVersionValue{
+ 1,
+ 2,
+}
+
+func (v *IKEPolicyVersionValue) UnmarshalJSON(src []byte) error {
+ var value int32
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IKEPolicyVersionValue(value)
+ for _, existing := range AllowedIKEPolicyVersionValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IKEPolicyVersionValue", value)
+}
+
+// NewIKEPolicyVersionValueFromValue returns a pointer to a valid IKEPolicyVersionValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIKEPolicyVersionValueFromValue(v int32) (*IKEPolicyVersionValue, error) {
+ ev := IKEPolicyVersionValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IKEPolicyVersionValue: valid values are %v", v, AllowedIKEPolicyVersionValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IKEPolicyVersionValue) IsValid() bool {
+ for _, existing := range AllowedIKEPolicyVersionValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IKEPolicy_version_value value
+func (v IKEPolicyVersionValue) Ptr() *IKEPolicyVersionValue {
+ return &v
+}
+
+type NullableIKEPolicyVersionValue struct {
+ value *IKEPolicyVersionValue
+ isSet bool
+}
+
+func (v NullableIKEPolicyVersionValue) Get() *IKEPolicyVersionValue {
+ return v.value
+}
+
+func (v *NullableIKEPolicyVersionValue) Set(val *IKEPolicyVersionValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEPolicyVersionValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEPolicyVersionValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEPolicyVersionValue(val *IKEPolicyVersionValue) *NullableIKEPolicyVersionValue {
+ return &NullableIKEPolicyVersionValue{value: val, isSet: true}
+}
+
+func (v NullableIKEPolicyVersionValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEPolicyVersionValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal.go b/model_ike_proposal.go
new file mode 100644
index 0000000000..96328c9e8e
--- /dev/null
+++ b/model_ike_proposal.go
@@ -0,0 +1,629 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the IKEProposal type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IKEProposal{}
+
+// IKEProposal Adds support for custom fields and tags.
+type IKEProposal struct {
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ AuthenticationMethod IKEProposalAuthenticationMethod `json:"authentication_method"`
+ EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"`
+ AuthenticationAlgorithm IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm"`
+ Group IKEProposalGroup `json:"group"`
+ // Security association lifetime (in seconds)
+ SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IKEProposal IKEProposal
+
+// NewIKEProposal instantiates a new IKEProposal object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime) *IKEProposal {
+ this := IKEProposal{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.Name = name
+ this.AuthenticationMethod = authenticationMethod
+ this.EncryptionAlgorithm = encryptionAlgorithm
+ this.AuthenticationAlgorithm = authenticationAlgorithm
+ this.Group = group
+ this.Created = created
+ this.LastUpdated = lastUpdated
+ return &this
+}
+
+// NewIKEProposalWithDefaults instantiates a new IKEProposal object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIKEProposalWithDefaults() *IKEProposal {
+ this := IKEProposal{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *IKEProposal) 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 *IKEProposal) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *IKEProposal) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *IKEProposal) 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 *IKEProposal) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *IKEProposal) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplay returns the Display field value
+func (o *IKEProposal) 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 *IKEProposal) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *IKEProposal) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetName returns the Name field value
+func (o *IKEProposal) 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 *IKEProposal) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *IKEProposal) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *IKEProposal) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *IKEProposal) 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 *IKEProposal) 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 *IKEProposal) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetAuthenticationMethod returns the AuthenticationMethod field value
+func (o *IKEProposal) GetAuthenticationMethod() IKEProposalAuthenticationMethod {
+ if o == nil {
+ var ret IKEProposalAuthenticationMethod
+ return ret
+ }
+
+ return o.AuthenticationMethod
+}
+
+// GetAuthenticationMethodOk returns a tuple with the AuthenticationMethod field value
+// and a boolean to check if the value has been set.
+func (o *IKEProposal) GetAuthenticationMethodOk() (*IKEProposalAuthenticationMethod, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.AuthenticationMethod, true
+}
+
+// SetAuthenticationMethod sets field value
+func (o *IKEProposal) SetAuthenticationMethod(v IKEProposalAuthenticationMethod) {
+ o.AuthenticationMethod = v
+}
+
+// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value
+func (o *IKEProposal) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithm {
+ if o == nil {
+ var ret IKEProposalEncryptionAlgorithm
+ return ret
+ }
+
+ return o.EncryptionAlgorithm
+}
+
+// GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value
+// and a boolean to check if the value has been set.
+func (o *IKEProposal) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithm, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.EncryptionAlgorithm, true
+}
+
+// SetEncryptionAlgorithm sets field value
+func (o *IKEProposal) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithm) {
+ o.EncryptionAlgorithm = v
+}
+
+// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value
+func (o *IKEProposal) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithm {
+ if o == nil {
+ var ret IKEProposalAuthenticationAlgorithm
+ return ret
+ }
+
+ return o.AuthenticationAlgorithm
+}
+
+// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value
+// and a boolean to check if the value has been set.
+func (o *IKEProposal) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithm, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.AuthenticationAlgorithm, true
+}
+
+// SetAuthenticationAlgorithm sets field value
+func (o *IKEProposal) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithm) {
+ o.AuthenticationAlgorithm = v
+}
+
+// GetGroup returns the Group field value
+func (o *IKEProposal) GetGroup() IKEProposalGroup {
+ if o == nil {
+ var ret IKEProposalGroup
+ 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 *IKEProposal) GetGroupOk() (*IKEProposalGroup, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Group, true
+}
+
+// SetGroup sets field value
+func (o *IKEProposal) SetGroup(v IKEProposalGroup) {
+ o.Group = v
+}
+
+// GetSaLifetime returns the SaLifetime field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *IKEProposal) GetSaLifetime() int32 {
+ if o == nil || IsNil(o.SaLifetime.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.SaLifetime.Get()
+}
+
+// GetSaLifetimeOk returns a tuple with the SaLifetime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *IKEProposal) GetSaLifetimeOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SaLifetime.Get(), o.SaLifetime.IsSet()
+}
+
+// HasSaLifetime returns a boolean if a field has been set.
+func (o *IKEProposal) HasSaLifetime() bool {
+ if o != nil && o.SaLifetime.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSaLifetime gets a reference to the given NullableInt32 and assigns it to the SaLifetime field.
+func (o *IKEProposal) SetSaLifetime(v int32) {
+ o.SaLifetime.Set(&v)
+}
+
+// SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil
+func (o *IKEProposal) SetSaLifetimeNil() {
+ o.SaLifetime.Set(nil)
+}
+
+// UnsetSaLifetime ensures that no value is present for SaLifetime, not even an explicit nil
+func (o *IKEProposal) UnsetSaLifetime() {
+ o.SaLifetime.Unset()
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *IKEProposal) 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 *IKEProposal) 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 *IKEProposal) 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 *IKEProposal) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *IKEProposal) 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 *IKEProposal) 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 *IKEProposal) 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 *IKEProposal) SetTags(v []NestedTag) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *IKEProposal) 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 *IKEProposal) 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 *IKEProposal) 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 *IKEProposal) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetCreated returns the Created field value
+// If the value is explicit nil, the zero value for time.Time will be returned
+func (o *IKEProposal) 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 *IKEProposal) GetCreatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Created.Get(), o.Created.IsSet()
+}
+
+// SetCreated sets field value
+func (o *IKEProposal) 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 *IKEProposal) 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 *IKEProposal) GetLastUpdatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.LastUpdated.Get(), o.LastUpdated.IsSet()
+}
+
+// SetLastUpdated sets field value
+func (o *IKEProposal) SetLastUpdated(v time.Time) {
+ o.LastUpdated.Set(&v)
+}
+
+func (o IKEProposal) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IKEProposal) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ toSerialize["display"] = o.Display
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["authentication_method"] = o.AuthenticationMethod
+ toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm
+ toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm
+ toSerialize["group"] = o.Group
+ if o.SaLifetime.IsSet() {
+ toSerialize["sa_lifetime"] = o.SaLifetime.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
+ }
+
+ return toSerialize, nil
+}
+
+func (o *IKEProposal) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "authentication_method",
+ "encryption_algorithm",
+ "authentication_algorithm",
+ "group",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
+ varIKEProposal := _IKEProposal{}
+
+ err = json.Unmarshal(data, &varIKEProposal)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IKEProposal(varIKEProposal)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "authentication_method")
+ delete(additionalProperties, "encryption_algorithm")
+ delete(additionalProperties, "authentication_algorithm")
+ delete(additionalProperties, "group")
+ delete(additionalProperties, "sa_lifetime")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "created")
+ delete(additionalProperties, "last_updated")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableIKEProposal struct {
+ value *IKEProposal
+ isSet bool
+}
+
+func (v NullableIKEProposal) Get() *IKEProposal {
+ return v.value
+}
+
+func (v *NullableIKEProposal) Set(val *IKEProposal) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposal) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposal) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposal(val *IKEProposal) *NullableIKEProposal {
+ return &NullableIKEProposal{value: val, isSet: true}
+}
+
+func (v NullableIKEProposal) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposal) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal_authentication_algorithm.go b/model_ike_proposal_authentication_algorithm.go
new file mode 100644
index 0000000000..aa7723d6ed
--- /dev/null
+++ b/model_ike_proposal_authentication_algorithm.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the IKEProposalAuthenticationAlgorithm type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IKEProposalAuthenticationAlgorithm{}
+
+// IKEProposalAuthenticationAlgorithm struct for IKEProposalAuthenticationAlgorithm
+type IKEProposalAuthenticationAlgorithm struct {
+ Value *IKEProposalAuthenticationAlgorithmValue `json:"value,omitempty"`
+ Label *IKEProposalAuthenticationAlgorithmLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IKEProposalAuthenticationAlgorithm IKEProposalAuthenticationAlgorithm
+
+// NewIKEProposalAuthenticationAlgorithm instantiates a new IKEProposalAuthenticationAlgorithm object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIKEProposalAuthenticationAlgorithm() *IKEProposalAuthenticationAlgorithm {
+ this := IKEProposalAuthenticationAlgorithm{}
+ return &this
+}
+
+// NewIKEProposalAuthenticationAlgorithmWithDefaults instantiates a new IKEProposalAuthenticationAlgorithm object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIKEProposalAuthenticationAlgorithmWithDefaults() *IKEProposalAuthenticationAlgorithm {
+ this := IKEProposalAuthenticationAlgorithm{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *IKEProposalAuthenticationAlgorithm) GetValue() IKEProposalAuthenticationAlgorithmValue {
+ if o == nil || IsNil(o.Value) {
+ var ret IKEProposalAuthenticationAlgorithmValue
+ 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 *IKEProposalAuthenticationAlgorithm) GetValueOk() (*IKEProposalAuthenticationAlgorithmValue, 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 *IKEProposalAuthenticationAlgorithm) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given IKEProposalAuthenticationAlgorithmValue and assigns it to the Value field.
+func (o *IKEProposalAuthenticationAlgorithm) SetValue(v IKEProposalAuthenticationAlgorithmValue) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *IKEProposalAuthenticationAlgorithm) GetLabel() IKEProposalAuthenticationAlgorithmLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret IKEProposalAuthenticationAlgorithmLabel
+ 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 *IKEProposalAuthenticationAlgorithm) GetLabelOk() (*IKEProposalAuthenticationAlgorithmLabel, 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 *IKEProposalAuthenticationAlgorithm) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given IKEProposalAuthenticationAlgorithmLabel and assigns it to the Label field.
+func (o *IKEProposalAuthenticationAlgorithm) SetLabel(v IKEProposalAuthenticationAlgorithmLabel) {
+ o.Label = &v
+}
+
+func (o IKEProposalAuthenticationAlgorithm) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IKEProposalAuthenticationAlgorithm) 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 *IKEProposalAuthenticationAlgorithm) UnmarshalJSON(data []byte) (err error) {
+ varIKEProposalAuthenticationAlgorithm := _IKEProposalAuthenticationAlgorithm{}
+
+ err = json.Unmarshal(data, &varIKEProposalAuthenticationAlgorithm)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IKEProposalAuthenticationAlgorithm(varIKEProposalAuthenticationAlgorithm)
+
+ 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 NullableIKEProposalAuthenticationAlgorithm struct {
+ value *IKEProposalAuthenticationAlgorithm
+ isSet bool
+}
+
+func (v NullableIKEProposalAuthenticationAlgorithm) Get() *IKEProposalAuthenticationAlgorithm {
+ return v.value
+}
+
+func (v *NullableIKEProposalAuthenticationAlgorithm) Set(val *IKEProposalAuthenticationAlgorithm) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposalAuthenticationAlgorithm) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposalAuthenticationAlgorithm) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposalAuthenticationAlgorithm(val *IKEProposalAuthenticationAlgorithm) *NullableIKEProposalAuthenticationAlgorithm {
+ return &NullableIKEProposalAuthenticationAlgorithm{value: val, isSet: true}
+}
+
+func (v NullableIKEProposalAuthenticationAlgorithm) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposalAuthenticationAlgorithm) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal_authentication_algorithm_label.go b/model_ike_proposal_authentication_algorithm_label.go
new file mode 100644
index 0000000000..39585937bc
--- /dev/null
+++ b/model_ike_proposal_authentication_algorithm_label.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IKEProposalAuthenticationAlgorithmLabel the model 'IKEProposalAuthenticationAlgorithmLabel'
+type IKEProposalAuthenticationAlgorithmLabel string
+
+// List of IKEProposal_authentication_algorithm_label
+const (
+ IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_1_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-1 HMAC"
+ IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_256_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-256 HMAC"
+ IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_384_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-384 HMAC"
+ IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_512_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-512 HMAC"
+ IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_MD5_HMAC IKEProposalAuthenticationAlgorithmLabel = "MD5 HMAC"
+)
+
+// All allowed values of IKEProposalAuthenticationAlgorithmLabel enum
+var AllowedIKEProposalAuthenticationAlgorithmLabelEnumValues = []IKEProposalAuthenticationAlgorithmLabel{
+ "SHA-1 HMAC",
+ "SHA-256 HMAC",
+ "SHA-384 HMAC",
+ "SHA-512 HMAC",
+ "MD5 HMAC",
+}
+
+func (v *IKEProposalAuthenticationAlgorithmLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IKEProposalAuthenticationAlgorithmLabel(value)
+ for _, existing := range AllowedIKEProposalAuthenticationAlgorithmLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IKEProposalAuthenticationAlgorithmLabel", value)
+}
+
+// NewIKEProposalAuthenticationAlgorithmLabelFromValue returns a pointer to a valid IKEProposalAuthenticationAlgorithmLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIKEProposalAuthenticationAlgorithmLabelFromValue(v string) (*IKEProposalAuthenticationAlgorithmLabel, error) {
+ ev := IKEProposalAuthenticationAlgorithmLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IKEProposalAuthenticationAlgorithmLabel: valid values are %v", v, AllowedIKEProposalAuthenticationAlgorithmLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IKEProposalAuthenticationAlgorithmLabel) IsValid() bool {
+ for _, existing := range AllowedIKEProposalAuthenticationAlgorithmLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IKEProposal_authentication_algorithm_label value
+func (v IKEProposalAuthenticationAlgorithmLabel) Ptr() *IKEProposalAuthenticationAlgorithmLabel {
+ return &v
+}
+
+type NullableIKEProposalAuthenticationAlgorithmLabel struct {
+ value *IKEProposalAuthenticationAlgorithmLabel
+ isSet bool
+}
+
+func (v NullableIKEProposalAuthenticationAlgorithmLabel) Get() *IKEProposalAuthenticationAlgorithmLabel {
+ return v.value
+}
+
+func (v *NullableIKEProposalAuthenticationAlgorithmLabel) Set(val *IKEProposalAuthenticationAlgorithmLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposalAuthenticationAlgorithmLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposalAuthenticationAlgorithmLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposalAuthenticationAlgorithmLabel(val *IKEProposalAuthenticationAlgorithmLabel) *NullableIKEProposalAuthenticationAlgorithmLabel {
+ return &NullableIKEProposalAuthenticationAlgorithmLabel{value: val, isSet: true}
+}
+
+func (v NullableIKEProposalAuthenticationAlgorithmLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposalAuthenticationAlgorithmLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal_authentication_algorithm_value.go b/model_ike_proposal_authentication_algorithm_value.go
new file mode 100644
index 0000000000..be8f578a7e
--- /dev/null
+++ b/model_ike_proposal_authentication_algorithm_value.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IKEProposalAuthenticationAlgorithmValue * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC
+type IKEProposalAuthenticationAlgorithmValue string
+
+// List of IKEProposal_authentication_algorithm_value
+const (
+ IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_SHA1 IKEProposalAuthenticationAlgorithmValue = "hmac-sha1"
+ IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_SHA256 IKEProposalAuthenticationAlgorithmValue = "hmac-sha256"
+ IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_SHA384 IKEProposalAuthenticationAlgorithmValue = "hmac-sha384"
+ IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_SHA512 IKEProposalAuthenticationAlgorithmValue = "hmac-sha512"
+ IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_MD5 IKEProposalAuthenticationAlgorithmValue = "hmac-md5"
+)
+
+// All allowed values of IKEProposalAuthenticationAlgorithmValue enum
+var AllowedIKEProposalAuthenticationAlgorithmValueEnumValues = []IKEProposalAuthenticationAlgorithmValue{
+ "hmac-sha1",
+ "hmac-sha256",
+ "hmac-sha384",
+ "hmac-sha512",
+ "hmac-md5",
+}
+
+func (v *IKEProposalAuthenticationAlgorithmValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IKEProposalAuthenticationAlgorithmValue(value)
+ for _, existing := range AllowedIKEProposalAuthenticationAlgorithmValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IKEProposalAuthenticationAlgorithmValue", value)
+}
+
+// NewIKEProposalAuthenticationAlgorithmValueFromValue returns a pointer to a valid IKEProposalAuthenticationAlgorithmValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIKEProposalAuthenticationAlgorithmValueFromValue(v string) (*IKEProposalAuthenticationAlgorithmValue, error) {
+ ev := IKEProposalAuthenticationAlgorithmValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IKEProposalAuthenticationAlgorithmValue: valid values are %v", v, AllowedIKEProposalAuthenticationAlgorithmValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IKEProposalAuthenticationAlgorithmValue) IsValid() bool {
+ for _, existing := range AllowedIKEProposalAuthenticationAlgorithmValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IKEProposal_authentication_algorithm_value value
+func (v IKEProposalAuthenticationAlgorithmValue) Ptr() *IKEProposalAuthenticationAlgorithmValue {
+ return &v
+}
+
+type NullableIKEProposalAuthenticationAlgorithmValue struct {
+ value *IKEProposalAuthenticationAlgorithmValue
+ isSet bool
+}
+
+func (v NullableIKEProposalAuthenticationAlgorithmValue) Get() *IKEProposalAuthenticationAlgorithmValue {
+ return v.value
+}
+
+func (v *NullableIKEProposalAuthenticationAlgorithmValue) Set(val *IKEProposalAuthenticationAlgorithmValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposalAuthenticationAlgorithmValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposalAuthenticationAlgorithmValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposalAuthenticationAlgorithmValue(val *IKEProposalAuthenticationAlgorithmValue) *NullableIKEProposalAuthenticationAlgorithmValue {
+ return &NullableIKEProposalAuthenticationAlgorithmValue{value: val, isSet: true}
+}
+
+func (v NullableIKEProposalAuthenticationAlgorithmValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposalAuthenticationAlgorithmValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal_authentication_method.go b/model_ike_proposal_authentication_method.go
new file mode 100644
index 0000000000..69d7a07d1d
--- /dev/null
+++ b/model_ike_proposal_authentication_method.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the IKEProposalAuthenticationMethod type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IKEProposalAuthenticationMethod{}
+
+// IKEProposalAuthenticationMethod struct for IKEProposalAuthenticationMethod
+type IKEProposalAuthenticationMethod struct {
+ Value *IKEProposalAuthenticationMethodValue `json:"value,omitempty"`
+ Label *IKEProposalAuthenticationMethodLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IKEProposalAuthenticationMethod IKEProposalAuthenticationMethod
+
+// NewIKEProposalAuthenticationMethod instantiates a new IKEProposalAuthenticationMethod object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIKEProposalAuthenticationMethod() *IKEProposalAuthenticationMethod {
+ this := IKEProposalAuthenticationMethod{}
+ return &this
+}
+
+// NewIKEProposalAuthenticationMethodWithDefaults instantiates a new IKEProposalAuthenticationMethod object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIKEProposalAuthenticationMethodWithDefaults() *IKEProposalAuthenticationMethod {
+ this := IKEProposalAuthenticationMethod{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *IKEProposalAuthenticationMethod) GetValue() IKEProposalAuthenticationMethodValue {
+ if o == nil || IsNil(o.Value) {
+ var ret IKEProposalAuthenticationMethodValue
+ 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 *IKEProposalAuthenticationMethod) GetValueOk() (*IKEProposalAuthenticationMethodValue, 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 *IKEProposalAuthenticationMethod) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given IKEProposalAuthenticationMethodValue and assigns it to the Value field.
+func (o *IKEProposalAuthenticationMethod) SetValue(v IKEProposalAuthenticationMethodValue) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *IKEProposalAuthenticationMethod) GetLabel() IKEProposalAuthenticationMethodLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret IKEProposalAuthenticationMethodLabel
+ 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 *IKEProposalAuthenticationMethod) GetLabelOk() (*IKEProposalAuthenticationMethodLabel, 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 *IKEProposalAuthenticationMethod) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given IKEProposalAuthenticationMethodLabel and assigns it to the Label field.
+func (o *IKEProposalAuthenticationMethod) SetLabel(v IKEProposalAuthenticationMethodLabel) {
+ o.Label = &v
+}
+
+func (o IKEProposalAuthenticationMethod) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IKEProposalAuthenticationMethod) 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 *IKEProposalAuthenticationMethod) UnmarshalJSON(data []byte) (err error) {
+ varIKEProposalAuthenticationMethod := _IKEProposalAuthenticationMethod{}
+
+ err = json.Unmarshal(data, &varIKEProposalAuthenticationMethod)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IKEProposalAuthenticationMethod(varIKEProposalAuthenticationMethod)
+
+ 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 NullableIKEProposalAuthenticationMethod struct {
+ value *IKEProposalAuthenticationMethod
+ isSet bool
+}
+
+func (v NullableIKEProposalAuthenticationMethod) Get() *IKEProposalAuthenticationMethod {
+ return v.value
+}
+
+func (v *NullableIKEProposalAuthenticationMethod) Set(val *IKEProposalAuthenticationMethod) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposalAuthenticationMethod) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposalAuthenticationMethod) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposalAuthenticationMethod(val *IKEProposalAuthenticationMethod) *NullableIKEProposalAuthenticationMethod {
+ return &NullableIKEProposalAuthenticationMethod{value: val, isSet: true}
+}
+
+func (v NullableIKEProposalAuthenticationMethod) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposalAuthenticationMethod) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal_authentication_method_label.go b/model_ike_proposal_authentication_method_label.go
new file mode 100644
index 0000000000..449e78be79
--- /dev/null
+++ b/model_ike_proposal_authentication_method_label.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IKEProposalAuthenticationMethodLabel the model 'IKEProposalAuthenticationMethodLabel'
+type IKEProposalAuthenticationMethodLabel string
+
+// List of IKEProposal_authentication_method_label
+const (
+ IKEPROPOSALAUTHENTICATIONMETHODLABEL_PRE_SHARED_KEYS IKEProposalAuthenticationMethodLabel = "Pre-shared keys"
+ IKEPROPOSALAUTHENTICATIONMETHODLABEL_CERTIFICATES IKEProposalAuthenticationMethodLabel = "Certificates"
+ IKEPROPOSALAUTHENTICATIONMETHODLABEL_RSA_SIGNATURES IKEProposalAuthenticationMethodLabel = "RSA signatures"
+ IKEPROPOSALAUTHENTICATIONMETHODLABEL_DSA_SIGNATURES IKEProposalAuthenticationMethodLabel = "DSA signatures"
+)
+
+// All allowed values of IKEProposalAuthenticationMethodLabel enum
+var AllowedIKEProposalAuthenticationMethodLabelEnumValues = []IKEProposalAuthenticationMethodLabel{
+ "Pre-shared keys",
+ "Certificates",
+ "RSA signatures",
+ "DSA signatures",
+}
+
+func (v *IKEProposalAuthenticationMethodLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IKEProposalAuthenticationMethodLabel(value)
+ for _, existing := range AllowedIKEProposalAuthenticationMethodLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IKEProposalAuthenticationMethodLabel", value)
+}
+
+// NewIKEProposalAuthenticationMethodLabelFromValue returns a pointer to a valid IKEProposalAuthenticationMethodLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIKEProposalAuthenticationMethodLabelFromValue(v string) (*IKEProposalAuthenticationMethodLabel, error) {
+ ev := IKEProposalAuthenticationMethodLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IKEProposalAuthenticationMethodLabel: valid values are %v", v, AllowedIKEProposalAuthenticationMethodLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IKEProposalAuthenticationMethodLabel) IsValid() bool {
+ for _, existing := range AllowedIKEProposalAuthenticationMethodLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IKEProposal_authentication_method_label value
+func (v IKEProposalAuthenticationMethodLabel) Ptr() *IKEProposalAuthenticationMethodLabel {
+ return &v
+}
+
+type NullableIKEProposalAuthenticationMethodLabel struct {
+ value *IKEProposalAuthenticationMethodLabel
+ isSet bool
+}
+
+func (v NullableIKEProposalAuthenticationMethodLabel) Get() *IKEProposalAuthenticationMethodLabel {
+ return v.value
+}
+
+func (v *NullableIKEProposalAuthenticationMethodLabel) Set(val *IKEProposalAuthenticationMethodLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposalAuthenticationMethodLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposalAuthenticationMethodLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposalAuthenticationMethodLabel(val *IKEProposalAuthenticationMethodLabel) *NullableIKEProposalAuthenticationMethodLabel {
+ return &NullableIKEProposalAuthenticationMethodLabel{value: val, isSet: true}
+}
+
+func (v NullableIKEProposalAuthenticationMethodLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposalAuthenticationMethodLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal_authentication_method_value.go b/model_ike_proposal_authentication_method_value.go
new file mode 100644
index 0000000000..92e1e2f749
--- /dev/null
+++ b/model_ike_proposal_authentication_method_value.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IKEProposalAuthenticationMethodValue * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures
+type IKEProposalAuthenticationMethodValue string
+
+// List of IKEProposal_authentication_method_value
+const (
+ IKEPROPOSALAUTHENTICATIONMETHODVALUE_PRESHARED_KEYS IKEProposalAuthenticationMethodValue = "preshared-keys"
+ IKEPROPOSALAUTHENTICATIONMETHODVALUE_CERTIFICATES IKEProposalAuthenticationMethodValue = "certificates"
+ IKEPROPOSALAUTHENTICATIONMETHODVALUE_RSA_SIGNATURES IKEProposalAuthenticationMethodValue = "rsa-signatures"
+ IKEPROPOSALAUTHENTICATIONMETHODVALUE_DSA_SIGNATURES IKEProposalAuthenticationMethodValue = "dsa-signatures"
+)
+
+// All allowed values of IKEProposalAuthenticationMethodValue enum
+var AllowedIKEProposalAuthenticationMethodValueEnumValues = []IKEProposalAuthenticationMethodValue{
+ "preshared-keys",
+ "certificates",
+ "rsa-signatures",
+ "dsa-signatures",
+}
+
+func (v *IKEProposalAuthenticationMethodValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IKEProposalAuthenticationMethodValue(value)
+ for _, existing := range AllowedIKEProposalAuthenticationMethodValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IKEProposalAuthenticationMethodValue", value)
+}
+
+// NewIKEProposalAuthenticationMethodValueFromValue returns a pointer to a valid IKEProposalAuthenticationMethodValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIKEProposalAuthenticationMethodValueFromValue(v string) (*IKEProposalAuthenticationMethodValue, error) {
+ ev := IKEProposalAuthenticationMethodValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IKEProposalAuthenticationMethodValue: valid values are %v", v, AllowedIKEProposalAuthenticationMethodValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IKEProposalAuthenticationMethodValue) IsValid() bool {
+ for _, existing := range AllowedIKEProposalAuthenticationMethodValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IKEProposal_authentication_method_value value
+func (v IKEProposalAuthenticationMethodValue) Ptr() *IKEProposalAuthenticationMethodValue {
+ return &v
+}
+
+type NullableIKEProposalAuthenticationMethodValue struct {
+ value *IKEProposalAuthenticationMethodValue
+ isSet bool
+}
+
+func (v NullableIKEProposalAuthenticationMethodValue) Get() *IKEProposalAuthenticationMethodValue {
+ return v.value
+}
+
+func (v *NullableIKEProposalAuthenticationMethodValue) Set(val *IKEProposalAuthenticationMethodValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposalAuthenticationMethodValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposalAuthenticationMethodValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposalAuthenticationMethodValue(val *IKEProposalAuthenticationMethodValue) *NullableIKEProposalAuthenticationMethodValue {
+ return &NullableIKEProposalAuthenticationMethodValue{value: val, isSet: true}
+}
+
+func (v NullableIKEProposalAuthenticationMethodValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposalAuthenticationMethodValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal_encryption_algorithm.go b/model_ike_proposal_encryption_algorithm.go
new file mode 100644
index 0000000000..8bfa33eb2b
--- /dev/null
+++ b/model_ike_proposal_encryption_algorithm.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the IKEProposalEncryptionAlgorithm type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IKEProposalEncryptionAlgorithm{}
+
+// IKEProposalEncryptionAlgorithm struct for IKEProposalEncryptionAlgorithm
+type IKEProposalEncryptionAlgorithm struct {
+ Value *IKEProposalEncryptionAlgorithmValue `json:"value,omitempty"`
+ Label *IKEProposalEncryptionAlgorithmLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IKEProposalEncryptionAlgorithm IKEProposalEncryptionAlgorithm
+
+// NewIKEProposalEncryptionAlgorithm instantiates a new IKEProposalEncryptionAlgorithm object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIKEProposalEncryptionAlgorithm() *IKEProposalEncryptionAlgorithm {
+ this := IKEProposalEncryptionAlgorithm{}
+ return &this
+}
+
+// NewIKEProposalEncryptionAlgorithmWithDefaults instantiates a new IKEProposalEncryptionAlgorithm object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIKEProposalEncryptionAlgorithmWithDefaults() *IKEProposalEncryptionAlgorithm {
+ this := IKEProposalEncryptionAlgorithm{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *IKEProposalEncryptionAlgorithm) GetValue() IKEProposalEncryptionAlgorithmValue {
+ if o == nil || IsNil(o.Value) {
+ var ret IKEProposalEncryptionAlgorithmValue
+ 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 *IKEProposalEncryptionAlgorithm) GetValueOk() (*IKEProposalEncryptionAlgorithmValue, 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 *IKEProposalEncryptionAlgorithm) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given IKEProposalEncryptionAlgorithmValue and assigns it to the Value field.
+func (o *IKEProposalEncryptionAlgorithm) SetValue(v IKEProposalEncryptionAlgorithmValue) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *IKEProposalEncryptionAlgorithm) GetLabel() IKEProposalEncryptionAlgorithmLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret IKEProposalEncryptionAlgorithmLabel
+ 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 *IKEProposalEncryptionAlgorithm) GetLabelOk() (*IKEProposalEncryptionAlgorithmLabel, 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 *IKEProposalEncryptionAlgorithm) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given IKEProposalEncryptionAlgorithmLabel and assigns it to the Label field.
+func (o *IKEProposalEncryptionAlgorithm) SetLabel(v IKEProposalEncryptionAlgorithmLabel) {
+ o.Label = &v
+}
+
+func (o IKEProposalEncryptionAlgorithm) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IKEProposalEncryptionAlgorithm) 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 *IKEProposalEncryptionAlgorithm) UnmarshalJSON(data []byte) (err error) {
+ varIKEProposalEncryptionAlgorithm := _IKEProposalEncryptionAlgorithm{}
+
+ err = json.Unmarshal(data, &varIKEProposalEncryptionAlgorithm)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IKEProposalEncryptionAlgorithm(varIKEProposalEncryptionAlgorithm)
+
+ 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 NullableIKEProposalEncryptionAlgorithm struct {
+ value *IKEProposalEncryptionAlgorithm
+ isSet bool
+}
+
+func (v NullableIKEProposalEncryptionAlgorithm) Get() *IKEProposalEncryptionAlgorithm {
+ return v.value
+}
+
+func (v *NullableIKEProposalEncryptionAlgorithm) Set(val *IKEProposalEncryptionAlgorithm) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposalEncryptionAlgorithm) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposalEncryptionAlgorithm) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposalEncryptionAlgorithm(val *IKEProposalEncryptionAlgorithm) *NullableIKEProposalEncryptionAlgorithm {
+ return &NullableIKEProposalEncryptionAlgorithm{value: val, isSet: true}
+}
+
+func (v NullableIKEProposalEncryptionAlgorithm) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposalEncryptionAlgorithm) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal_encryption_algorithm_label.go b/model_ike_proposal_encryption_algorithm_label.go
new file mode 100644
index 0000000000..10541e03e0
--- /dev/null
+++ b/model_ike_proposal_encryption_algorithm_label.go
@@ -0,0 +1,120 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IKEProposalEncryptionAlgorithmLabel the model 'IKEProposalEncryptionAlgorithmLabel'
+type IKEProposalEncryptionAlgorithmLabel string
+
+// List of IKEProposal_encryption_algorithm_label
+const (
+ IKEPROPOSALENCRYPTIONALGORITHMLABEL__128_BIT_AES__CBC IKEProposalEncryptionAlgorithmLabel = "128-bit AES (CBC)"
+ IKEPROPOSALENCRYPTIONALGORITHMLABEL__128_BIT_AES__GCM IKEProposalEncryptionAlgorithmLabel = "128-bit AES (GCM)"
+ IKEPROPOSALENCRYPTIONALGORITHMLABEL__192_BIT_AES__CBC IKEProposalEncryptionAlgorithmLabel = "192-bit AES (CBC)"
+ IKEPROPOSALENCRYPTIONALGORITHMLABEL__192_BIT_AES__GCM IKEProposalEncryptionAlgorithmLabel = "192-bit AES (GCM)"
+ IKEPROPOSALENCRYPTIONALGORITHMLABEL__256_BIT_AES__CBC IKEProposalEncryptionAlgorithmLabel = "256-bit AES (CBC)"
+ IKEPROPOSALENCRYPTIONALGORITHMLABEL__256_BIT_AES__GCM IKEProposalEncryptionAlgorithmLabel = "256-bit AES (GCM)"
+ IKEPROPOSALENCRYPTIONALGORITHMLABEL_DES IKEProposalEncryptionAlgorithmLabel = "DES"
+)
+
+// All allowed values of IKEProposalEncryptionAlgorithmLabel enum
+var AllowedIKEProposalEncryptionAlgorithmLabelEnumValues = []IKEProposalEncryptionAlgorithmLabel{
+ "128-bit AES (CBC)",
+ "128-bit AES (GCM)",
+ "192-bit AES (CBC)",
+ "192-bit AES (GCM)",
+ "256-bit AES (CBC)",
+ "256-bit AES (GCM)",
+ "DES",
+}
+
+func (v *IKEProposalEncryptionAlgorithmLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IKEProposalEncryptionAlgorithmLabel(value)
+ for _, existing := range AllowedIKEProposalEncryptionAlgorithmLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IKEProposalEncryptionAlgorithmLabel", value)
+}
+
+// NewIKEProposalEncryptionAlgorithmLabelFromValue returns a pointer to a valid IKEProposalEncryptionAlgorithmLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIKEProposalEncryptionAlgorithmLabelFromValue(v string) (*IKEProposalEncryptionAlgorithmLabel, error) {
+ ev := IKEProposalEncryptionAlgorithmLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IKEProposalEncryptionAlgorithmLabel: valid values are %v", v, AllowedIKEProposalEncryptionAlgorithmLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IKEProposalEncryptionAlgorithmLabel) IsValid() bool {
+ for _, existing := range AllowedIKEProposalEncryptionAlgorithmLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IKEProposal_encryption_algorithm_label value
+func (v IKEProposalEncryptionAlgorithmLabel) Ptr() *IKEProposalEncryptionAlgorithmLabel {
+ return &v
+}
+
+type NullableIKEProposalEncryptionAlgorithmLabel struct {
+ value *IKEProposalEncryptionAlgorithmLabel
+ isSet bool
+}
+
+func (v NullableIKEProposalEncryptionAlgorithmLabel) Get() *IKEProposalEncryptionAlgorithmLabel {
+ return v.value
+}
+
+func (v *NullableIKEProposalEncryptionAlgorithmLabel) Set(val *IKEProposalEncryptionAlgorithmLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposalEncryptionAlgorithmLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposalEncryptionAlgorithmLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposalEncryptionAlgorithmLabel(val *IKEProposalEncryptionAlgorithmLabel) *NullableIKEProposalEncryptionAlgorithmLabel {
+ return &NullableIKEProposalEncryptionAlgorithmLabel{value: val, isSet: true}
+}
+
+func (v NullableIKEProposalEncryptionAlgorithmLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposalEncryptionAlgorithmLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal_encryption_algorithm_value.go b/model_ike_proposal_encryption_algorithm_value.go
new file mode 100644
index 0000000000..0d8d1a0dcf
--- /dev/null
+++ b/model_ike_proposal_encryption_algorithm_value.go
@@ -0,0 +1,120 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IKEProposalEncryptionAlgorithmValue * `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` - DES
+type IKEProposalEncryptionAlgorithmValue string
+
+// List of IKEProposal_encryption_algorithm_value
+const (
+ IKEPROPOSALENCRYPTIONALGORITHMVALUE_AES_128_CBC IKEProposalEncryptionAlgorithmValue = "aes-128-cbc"
+ IKEPROPOSALENCRYPTIONALGORITHMVALUE_AES_128_GCM IKEProposalEncryptionAlgorithmValue = "aes-128-gcm"
+ IKEPROPOSALENCRYPTIONALGORITHMVALUE_AES_192_CBC IKEProposalEncryptionAlgorithmValue = "aes-192-cbc"
+ IKEPROPOSALENCRYPTIONALGORITHMVALUE_AES_192_GCM IKEProposalEncryptionAlgorithmValue = "aes-192-gcm"
+ IKEPROPOSALENCRYPTIONALGORITHMVALUE_AES_256_CBC IKEProposalEncryptionAlgorithmValue = "aes-256-cbc"
+ IKEPROPOSALENCRYPTIONALGORITHMVALUE_AES_256_GCM IKEProposalEncryptionAlgorithmValue = "aes-256-gcm"
+ IKEPROPOSALENCRYPTIONALGORITHMVALUE__3DES_CBC IKEProposalEncryptionAlgorithmValue = "3des-cbc"
+)
+
+// All allowed values of IKEProposalEncryptionAlgorithmValue enum
+var AllowedIKEProposalEncryptionAlgorithmValueEnumValues = []IKEProposalEncryptionAlgorithmValue{
+ "aes-128-cbc",
+ "aes-128-gcm",
+ "aes-192-cbc",
+ "aes-192-gcm",
+ "aes-256-cbc",
+ "aes-256-gcm",
+ "3des-cbc",
+}
+
+func (v *IKEProposalEncryptionAlgorithmValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IKEProposalEncryptionAlgorithmValue(value)
+ for _, existing := range AllowedIKEProposalEncryptionAlgorithmValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IKEProposalEncryptionAlgorithmValue", value)
+}
+
+// NewIKEProposalEncryptionAlgorithmValueFromValue returns a pointer to a valid IKEProposalEncryptionAlgorithmValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIKEProposalEncryptionAlgorithmValueFromValue(v string) (*IKEProposalEncryptionAlgorithmValue, error) {
+ ev := IKEProposalEncryptionAlgorithmValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IKEProposalEncryptionAlgorithmValue: valid values are %v", v, AllowedIKEProposalEncryptionAlgorithmValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IKEProposalEncryptionAlgorithmValue) IsValid() bool {
+ for _, existing := range AllowedIKEProposalEncryptionAlgorithmValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IKEProposal_encryption_algorithm_value value
+func (v IKEProposalEncryptionAlgorithmValue) Ptr() *IKEProposalEncryptionAlgorithmValue {
+ return &v
+}
+
+type NullableIKEProposalEncryptionAlgorithmValue struct {
+ value *IKEProposalEncryptionAlgorithmValue
+ isSet bool
+}
+
+func (v NullableIKEProposalEncryptionAlgorithmValue) Get() *IKEProposalEncryptionAlgorithmValue {
+ return v.value
+}
+
+func (v *NullableIKEProposalEncryptionAlgorithmValue) Set(val *IKEProposalEncryptionAlgorithmValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposalEncryptionAlgorithmValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposalEncryptionAlgorithmValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposalEncryptionAlgorithmValue(val *IKEProposalEncryptionAlgorithmValue) *NullableIKEProposalEncryptionAlgorithmValue {
+ return &NullableIKEProposalEncryptionAlgorithmValue{value: val, isSet: true}
+}
+
+func (v NullableIKEProposalEncryptionAlgorithmValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposalEncryptionAlgorithmValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal_group.go b/model_ike_proposal_group.go
new file mode 100644
index 0000000000..c787f45f9a
--- /dev/null
+++ b/model_ike_proposal_group.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the IKEProposalGroup type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IKEProposalGroup{}
+
+// IKEProposalGroup struct for IKEProposalGroup
+type IKEProposalGroup struct {
+ Value *IKEProposalGroupValue `json:"value,omitempty"`
+ Label *IKEProposalGroupLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IKEProposalGroup IKEProposalGroup
+
+// NewIKEProposalGroup instantiates a new IKEProposalGroup object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIKEProposalGroup() *IKEProposalGroup {
+ this := IKEProposalGroup{}
+ return &this
+}
+
+// NewIKEProposalGroupWithDefaults instantiates a new IKEProposalGroup object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIKEProposalGroupWithDefaults() *IKEProposalGroup {
+ this := IKEProposalGroup{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *IKEProposalGroup) GetValue() IKEProposalGroupValue {
+ if o == nil || IsNil(o.Value) {
+ var ret IKEProposalGroupValue
+ 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 *IKEProposalGroup) GetValueOk() (*IKEProposalGroupValue, 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 *IKEProposalGroup) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given IKEProposalGroupValue and assigns it to the Value field.
+func (o *IKEProposalGroup) SetValue(v IKEProposalGroupValue) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *IKEProposalGroup) GetLabel() IKEProposalGroupLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret IKEProposalGroupLabel
+ 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 *IKEProposalGroup) GetLabelOk() (*IKEProposalGroupLabel, 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 *IKEProposalGroup) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given IKEProposalGroupLabel and assigns it to the Label field.
+func (o *IKEProposalGroup) SetLabel(v IKEProposalGroupLabel) {
+ o.Label = &v
+}
+
+func (o IKEProposalGroup) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IKEProposalGroup) 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 *IKEProposalGroup) UnmarshalJSON(data []byte) (err error) {
+ varIKEProposalGroup := _IKEProposalGroup{}
+
+ err = json.Unmarshal(data, &varIKEProposalGroup)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IKEProposalGroup(varIKEProposalGroup)
+
+ 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 NullableIKEProposalGroup struct {
+ value *IKEProposalGroup
+ isSet bool
+}
+
+func (v NullableIKEProposalGroup) Get() *IKEProposalGroup {
+ return v.value
+}
+
+func (v *NullableIKEProposalGroup) Set(val *IKEProposalGroup) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposalGroup) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposalGroup) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposalGroup(val *IKEProposalGroup) *NullableIKEProposalGroup {
+ return &NullableIKEProposalGroup{value: val, isSet: true}
+}
+
+func (v NullableIKEProposalGroup) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposalGroup) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal_group_label.go b/model_ike_proposal_group_label.go
new file mode 100644
index 0000000000..0b88de6726
--- /dev/null
+++ b/model_ike_proposal_group_label.go
@@ -0,0 +1,152 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IKEProposalGroupLabel the model 'IKEProposalGroupLabel'
+type IKEProposalGroupLabel string
+
+// List of IKEProposal_group_label
+const (
+ IKEPROPOSALGROUPLABEL__1 IKEProposalGroupLabel = "Group 1"
+ IKEPROPOSALGROUPLABEL__2 IKEProposalGroupLabel = "Group 2"
+ IKEPROPOSALGROUPLABEL__5 IKEProposalGroupLabel = "Group 5"
+ IKEPROPOSALGROUPLABEL__14 IKEProposalGroupLabel = "Group 14"
+ IKEPROPOSALGROUPLABEL__16 IKEProposalGroupLabel = "Group 16"
+ IKEPROPOSALGROUPLABEL__17 IKEProposalGroupLabel = "Group 17"
+ IKEPROPOSALGROUPLABEL__18 IKEProposalGroupLabel = "Group 18"
+ IKEPROPOSALGROUPLABEL__19 IKEProposalGroupLabel = "Group 19"
+ IKEPROPOSALGROUPLABEL__20 IKEProposalGroupLabel = "Group 20"
+ IKEPROPOSALGROUPLABEL__21 IKEProposalGroupLabel = "Group 21"
+ IKEPROPOSALGROUPLABEL__22 IKEProposalGroupLabel = "Group 22"
+ IKEPROPOSALGROUPLABEL__23 IKEProposalGroupLabel = "Group 23"
+ IKEPROPOSALGROUPLABEL__24 IKEProposalGroupLabel = "Group 24"
+ IKEPROPOSALGROUPLABEL__25 IKEProposalGroupLabel = "Group 25"
+ IKEPROPOSALGROUPLABEL__26 IKEProposalGroupLabel = "Group 26"
+ IKEPROPOSALGROUPLABEL__27 IKEProposalGroupLabel = "Group 27"
+ IKEPROPOSALGROUPLABEL__28 IKEProposalGroupLabel = "Group 28"
+ IKEPROPOSALGROUPLABEL__29 IKEProposalGroupLabel = "Group 29"
+ IKEPROPOSALGROUPLABEL__30 IKEProposalGroupLabel = "Group 30"
+ IKEPROPOSALGROUPLABEL__31 IKEProposalGroupLabel = "Group 31"
+ IKEPROPOSALGROUPLABEL__32 IKEProposalGroupLabel = "Group 32"
+ IKEPROPOSALGROUPLABEL__33 IKEProposalGroupLabel = "Group 33"
+ IKEPROPOSALGROUPLABEL__34 IKEProposalGroupLabel = "Group 34"
+)
+
+// All allowed values of IKEProposalGroupLabel enum
+var AllowedIKEProposalGroupLabelEnumValues = []IKEProposalGroupLabel{
+ "Group 1",
+ "Group 2",
+ "Group 5",
+ "Group 14",
+ "Group 16",
+ "Group 17",
+ "Group 18",
+ "Group 19",
+ "Group 20",
+ "Group 21",
+ "Group 22",
+ "Group 23",
+ "Group 24",
+ "Group 25",
+ "Group 26",
+ "Group 27",
+ "Group 28",
+ "Group 29",
+ "Group 30",
+ "Group 31",
+ "Group 32",
+ "Group 33",
+ "Group 34",
+}
+
+func (v *IKEProposalGroupLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IKEProposalGroupLabel(value)
+ for _, existing := range AllowedIKEProposalGroupLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IKEProposalGroupLabel", value)
+}
+
+// NewIKEProposalGroupLabelFromValue returns a pointer to a valid IKEProposalGroupLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIKEProposalGroupLabelFromValue(v string) (*IKEProposalGroupLabel, error) {
+ ev := IKEProposalGroupLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IKEProposalGroupLabel: valid values are %v", v, AllowedIKEProposalGroupLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IKEProposalGroupLabel) IsValid() bool {
+ for _, existing := range AllowedIKEProposalGroupLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IKEProposal_group_label value
+func (v IKEProposalGroupLabel) Ptr() *IKEProposalGroupLabel {
+ return &v
+}
+
+type NullableIKEProposalGroupLabel struct {
+ value *IKEProposalGroupLabel
+ isSet bool
+}
+
+func (v NullableIKEProposalGroupLabel) Get() *IKEProposalGroupLabel {
+ return v.value
+}
+
+func (v *NullableIKEProposalGroupLabel) Set(val *IKEProposalGroupLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposalGroupLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposalGroupLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposalGroupLabel(val *IKEProposalGroupLabel) *NullableIKEProposalGroupLabel {
+ return &NullableIKEProposalGroupLabel{value: val, isSet: true}
+}
+
+func (v NullableIKEProposalGroupLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposalGroupLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal_group_value.go b/model_ike_proposal_group_value.go
new file mode 100644
index 0000000000..4b02f009e6
--- /dev/null
+++ b/model_ike_proposal_group_value.go
@@ -0,0 +1,152 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IKEProposalGroupValue * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `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
+type IKEProposalGroupValue int32
+
+// List of IKEProposal_group_value
+const (
+ IKEPROPOSALGROUPVALUE__1 IKEProposalGroupValue = 1
+ IKEPROPOSALGROUPVALUE__2 IKEProposalGroupValue = 2
+ IKEPROPOSALGROUPVALUE__5 IKEProposalGroupValue = 5
+ IKEPROPOSALGROUPVALUE__14 IKEProposalGroupValue = 14
+ IKEPROPOSALGROUPVALUE__16 IKEProposalGroupValue = 16
+ IKEPROPOSALGROUPVALUE__17 IKEProposalGroupValue = 17
+ IKEPROPOSALGROUPVALUE__18 IKEProposalGroupValue = 18
+ IKEPROPOSALGROUPVALUE__19 IKEProposalGroupValue = 19
+ IKEPROPOSALGROUPVALUE__20 IKEProposalGroupValue = 20
+ IKEPROPOSALGROUPVALUE__21 IKEProposalGroupValue = 21
+ IKEPROPOSALGROUPVALUE__22 IKEProposalGroupValue = 22
+ IKEPROPOSALGROUPVALUE__23 IKEProposalGroupValue = 23
+ IKEPROPOSALGROUPVALUE__24 IKEProposalGroupValue = 24
+ IKEPROPOSALGROUPVALUE__25 IKEProposalGroupValue = 25
+ IKEPROPOSALGROUPVALUE__26 IKEProposalGroupValue = 26
+ IKEPROPOSALGROUPVALUE__27 IKEProposalGroupValue = 27
+ IKEPROPOSALGROUPVALUE__28 IKEProposalGroupValue = 28
+ IKEPROPOSALGROUPVALUE__29 IKEProposalGroupValue = 29
+ IKEPROPOSALGROUPVALUE__30 IKEProposalGroupValue = 30
+ IKEPROPOSALGROUPVALUE__31 IKEProposalGroupValue = 31
+ IKEPROPOSALGROUPVALUE__32 IKEProposalGroupValue = 32
+ IKEPROPOSALGROUPVALUE__33 IKEProposalGroupValue = 33
+ IKEPROPOSALGROUPVALUE__34 IKEProposalGroupValue = 34
+)
+
+// All allowed values of IKEProposalGroupValue enum
+var AllowedIKEProposalGroupValueEnumValues = []IKEProposalGroupValue{
+ 1,
+ 2,
+ 5,
+ 14,
+ 16,
+ 17,
+ 18,
+ 19,
+ 20,
+ 21,
+ 22,
+ 23,
+ 24,
+ 25,
+ 26,
+ 27,
+ 28,
+ 29,
+ 30,
+ 31,
+ 32,
+ 33,
+ 34,
+}
+
+func (v *IKEProposalGroupValue) UnmarshalJSON(src []byte) error {
+ var value int32
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IKEProposalGroupValue(value)
+ for _, existing := range AllowedIKEProposalGroupValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IKEProposalGroupValue", value)
+}
+
+// NewIKEProposalGroupValueFromValue returns a pointer to a valid IKEProposalGroupValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIKEProposalGroupValueFromValue(v int32) (*IKEProposalGroupValue, error) {
+ ev := IKEProposalGroupValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IKEProposalGroupValue: valid values are %v", v, AllowedIKEProposalGroupValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IKEProposalGroupValue) IsValid() bool {
+ for _, existing := range AllowedIKEProposalGroupValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IKEProposal_group_value value
+func (v IKEProposalGroupValue) Ptr() *IKEProposalGroupValue {
+ return &v
+}
+
+type NullableIKEProposalGroupValue struct {
+ value *IKEProposalGroupValue
+ isSet bool
+}
+
+func (v NullableIKEProposalGroupValue) Get() *IKEProposalGroupValue {
+ return v.value
+}
+
+func (v *NullableIKEProposalGroupValue) Set(val *IKEProposalGroupValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposalGroupValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposalGroupValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposalGroupValue(val *IKEProposalGroupValue) *NullableIKEProposalGroupValue {
+ return &NullableIKEProposalGroupValue{value: val, isSet: true}
+}
+
+func (v NullableIKEProposalGroupValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposalGroupValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ike_proposal_request.go b/model_ike_proposal_request.go
new file mode 100644
index 0000000000..b76c8a7a9e
--- /dev/null
+++ b/model_ike_proposal_request.go
@@ -0,0 +1,479 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the IKEProposalRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IKEProposalRequest{}
+
+// IKEProposalRequest Adds support for custom fields and tags.
+type IKEProposalRequest struct {
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"`
+ EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"`
+ AuthenticationAlgorithm IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm"`
+ Group IKEProposalGroupValue `json:"group"`
+ // Security association lifetime (in seconds)
+ SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IKEProposalRequest IKEProposalRequest
+
+// NewIKEProposalRequest instantiates a new IKEProposalRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, group IKEProposalGroupValue) *IKEProposalRequest {
+ this := IKEProposalRequest{}
+ this.Name = name
+ this.AuthenticationMethod = authenticationMethod
+ this.EncryptionAlgorithm = encryptionAlgorithm
+ this.AuthenticationAlgorithm = authenticationAlgorithm
+ this.Group = group
+ return &this
+}
+
+// NewIKEProposalRequestWithDefaults instantiates a new IKEProposalRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIKEProposalRequestWithDefaults() *IKEProposalRequest {
+ this := IKEProposalRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *IKEProposalRequest) 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 *IKEProposalRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *IKEProposalRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *IKEProposalRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *IKEProposalRequest) 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 *IKEProposalRequest) 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 *IKEProposalRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetAuthenticationMethod returns the AuthenticationMethod field value
+func (o *IKEProposalRequest) GetAuthenticationMethod() IKEProposalAuthenticationMethodValue {
+ if o == nil {
+ var ret IKEProposalAuthenticationMethodValue
+ return ret
+ }
+
+ return o.AuthenticationMethod
+}
+
+// GetAuthenticationMethodOk returns a tuple with the AuthenticationMethod field value
+// and a boolean to check if the value has been set.
+func (o *IKEProposalRequest) GetAuthenticationMethodOk() (*IKEProposalAuthenticationMethodValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.AuthenticationMethod, true
+}
+
+// SetAuthenticationMethod sets field value
+func (o *IKEProposalRequest) SetAuthenticationMethod(v IKEProposalAuthenticationMethodValue) {
+ o.AuthenticationMethod = v
+}
+
+// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value
+func (o *IKEProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue {
+ if o == nil {
+ var ret IKEProposalEncryptionAlgorithmValue
+ return ret
+ }
+
+ return o.EncryptionAlgorithm
+}
+
+// GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value
+// and a boolean to check if the value has been set.
+func (o *IKEProposalRequest) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithmValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.EncryptionAlgorithm, true
+}
+
+// SetEncryptionAlgorithm sets field value
+func (o *IKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithmValue) {
+ o.EncryptionAlgorithm = v
+}
+
+// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value
+func (o *IKEProposalRequest) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithmValue {
+ if o == nil {
+ var ret IKEProposalAuthenticationAlgorithmValue
+ return ret
+ }
+
+ return o.AuthenticationAlgorithm
+}
+
+// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value
+// and a boolean to check if the value has been set.
+func (o *IKEProposalRequest) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithmValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.AuthenticationAlgorithm, true
+}
+
+// SetAuthenticationAlgorithm sets field value
+func (o *IKEProposalRequest) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithmValue) {
+ o.AuthenticationAlgorithm = v
+}
+
+// GetGroup returns the Group field value
+func (o *IKEProposalRequest) GetGroup() IKEProposalGroupValue {
+ if o == nil {
+ var ret IKEProposalGroupValue
+ 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 *IKEProposalRequest) GetGroupOk() (*IKEProposalGroupValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Group, true
+}
+
+// SetGroup sets field value
+func (o *IKEProposalRequest) SetGroup(v IKEProposalGroupValue) {
+ o.Group = v
+}
+
+// GetSaLifetime returns the SaLifetime field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *IKEProposalRequest) GetSaLifetime() int32 {
+ if o == nil || IsNil(o.SaLifetime.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.SaLifetime.Get()
+}
+
+// GetSaLifetimeOk returns a tuple with the SaLifetime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *IKEProposalRequest) GetSaLifetimeOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SaLifetime.Get(), o.SaLifetime.IsSet()
+}
+
+// HasSaLifetime returns a boolean if a field has been set.
+func (o *IKEProposalRequest) HasSaLifetime() bool {
+ if o != nil && o.SaLifetime.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSaLifetime gets a reference to the given NullableInt32 and assigns it to the SaLifetime field.
+func (o *IKEProposalRequest) SetSaLifetime(v int32) {
+ o.SaLifetime.Set(&v)
+}
+
+// SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil
+func (o *IKEProposalRequest) SetSaLifetimeNil() {
+ o.SaLifetime.Set(nil)
+}
+
+// UnsetSaLifetime ensures that no value is present for SaLifetime, not even an explicit nil
+func (o *IKEProposalRequest) UnsetSaLifetime() {
+ o.SaLifetime.Unset()
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *IKEProposalRequest) 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 *IKEProposalRequest) 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 *IKEProposalRequest) 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 *IKEProposalRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *IKEProposalRequest) 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 *IKEProposalRequest) 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 *IKEProposalRequest) 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 *IKEProposalRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *IKEProposalRequest) 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 *IKEProposalRequest) 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 *IKEProposalRequest) 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 *IKEProposalRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o IKEProposalRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IKEProposalRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["authentication_method"] = o.AuthenticationMethod
+ toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm
+ toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm
+ toSerialize["group"] = o.Group
+ if o.SaLifetime.IsSet() {
+ toSerialize["sa_lifetime"] = o.SaLifetime.Get()
+ }
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *IKEProposalRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "authentication_method",
+ "encryption_algorithm",
+ "authentication_algorithm",
+ "group",
+ }
+
+ 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)
+ }
+ }
+
+ varIKEProposalRequest := _IKEProposalRequest{}
+
+ err = json.Unmarshal(data, &varIKEProposalRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IKEProposalRequest(varIKEProposalRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "authentication_method")
+ delete(additionalProperties, "encryption_algorithm")
+ delete(additionalProperties, "authentication_algorithm")
+ delete(additionalProperties, "group")
+ delete(additionalProperties, "sa_lifetime")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableIKEProposalRequest struct {
+ value *IKEProposalRequest
+ isSet bool
+}
+
+func (v NullableIKEProposalRequest) Get() *IKEProposalRequest {
+ return v.value
+}
+
+func (v *NullableIKEProposalRequest) Set(val *IKEProposalRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIKEProposalRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIKEProposalRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIKEProposalRequest(val *IKEProposalRequest) *NullableIKEProposalRequest {
+ return &NullableIKEProposalRequest{value: val, isSet: true}
+}
+
+func (v NullableIKEProposalRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIKEProposalRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_image_attachment.go b/model_image_attachment.go
index 0b13cae693..5182b0a979 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -20,18 +21,18 @@ var _ MappedNullable = &ImageAttachment{}
// ImageAttachment Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ImageAttachment struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- ContentType string `json:"content_type"`
- ObjectId int64 `json:"object_id"`
- Parent map[string]interface{} `json:"parent"`
- Name *string `json:"name,omitempty"`
- Image string `json:"image"`
- ImageHeight int32 `json:"image_height"`
- ImageWidth int32 `json:"image_width"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ ContentType string `json:"content_type"`
+ ObjectId int64 `json:"object_id"`
+ Parent interface{} `json:"parent"`
+ Name *string `json:"name,omitempty"`
+ Image string `json:"image"`
+ ImageHeight int32 `json:"image_height"`
+ ImageWidth int32 `json:"image_width"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
AdditionalProperties map[string]interface{}
}
@@ -41,7 +42,7 @@ 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 map[string]interface{}, image string, imageHeight int32, imageWidth int32, created NullableTime, lastUpdated NullableTime) *ImageAttachment {
+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 {
this := ImageAttachment{}
this.Id = id
this.Url = url
@@ -186,10 +187,10 @@ func (o *ImageAttachment) SetObjectId(v int64) {
}
// GetParent returns the Parent field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *ImageAttachment) GetParent() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *ImageAttachment) GetParent() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -199,15 +200,15 @@ func (o *ImageAttachment) GetParent() map[string]interface{} {
// 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 *ImageAttachment) GetParentOk() (map[string]interface{}, bool) {
+func (o *ImageAttachment) GetParentOk() (*interface{}, bool) {
if o == nil || IsNil(o.Parent) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Parent, true
+ return &o.Parent, true
}
// SetParent sets field value
-func (o *ImageAttachment) SetParent(v map[string]interface{}) {
+func (o *ImageAttachment) SetParent(v interface{}) {
o.Parent = v
}
@@ -401,10 +402,41 @@ func (o ImageAttachment) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ImageAttachment) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ImageAttachment) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "content_type",
+ "object_id",
+ "parent",
+ "image",
+ "image_height",
+ "image_width",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varImageAttachment := _ImageAttachment{}
- err = json.Unmarshal(bytes, &varImageAttachment)
+ err = json.Unmarshal(data, &varImageAttachment)
if err != nil {
return err
@@ -414,7 +446,7 @@ func (o *ImageAttachment) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_image_attachment_request.go b/model_image_attachment_request.go
index 32ca910d99..4843f799da 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"os"
)
@@ -231,10 +232,35 @@ func (o ImageAttachmentRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ImageAttachmentRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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_id",
+ "image",
+ "image_height",
+ "image_width",
+ }
+
+ 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)
+ }
+ }
+
varImageAttachmentRequest := _ImageAttachmentRequest{}
- err = json.Unmarshal(bytes, &varImageAttachmentRequest)
+ err = json.Unmarshal(data, &varImageAttachmentRequest)
if err != nil {
return err
@@ -244,7 +270,7 @@ func (o *ImageAttachmentRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "name")
diff --git a/model_interface.go b/model_interface.go
index c5eeb67645..4db5826b53 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -1814,10 +1815,50 @@ func (o Interface) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Interface) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Interface) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "cable",
+ "cable_end",
+ "wireless_link",
+ "link_peers",
+ "link_peers_type",
+ "l2vpn_termination",
+ "connected_endpoints",
+ "connected_endpoints_type",
+ "connected_endpoints_reachable",
+ "created",
+ "last_updated",
+ "count_ipaddresses",
+ "count_fhrp_groups",
+ "_occupied",
+ }
+
+ 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)
+ }
+ }
+
varInterface := _Interface{}
- err = json.Unmarshal(bytes, &varInterface)
+ err = json.Unmarshal(data, &varInterface)
if err != nil {
return err
@@ -1827,7 +1868,7 @@ func (o *Interface) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_interface_duplex.go b/model_interface_duplex.go
index 411a271020..aa8558dc61 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &InterfaceDuplex{}
// InterfaceDuplex struct for InterfaceDuplex
type InterfaceDuplex struct {
- // * `half` - Half * `full` - Full * `auto` - Auto
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *InterfaceDuplexValue `json:"value,omitempty"`
+ Label *InterfaceDuplexLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewInterfaceDuplexWithDefaults() *InterfaceDuplex {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *InterfaceDuplex) GetValue() string {
+func (o *InterfaceDuplex) GetValue() InterfaceDuplexValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret InterfaceDuplexValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *InterfaceDuplex) GetValue() string {
// 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 *InterfaceDuplex) GetValueOk() (*string, bool) {
+func (o *InterfaceDuplex) GetValueOk() (*InterfaceDuplexValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *InterfaceDuplex) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *InterfaceDuplex) SetValue(v string) {
+// SetValue gets a reference to the given InterfaceDuplexValue and assigns it to the Value field.
+func (o *InterfaceDuplex) SetValue(v InterfaceDuplexValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *InterfaceDuplex) GetLabel() string {
+func (o *InterfaceDuplex) GetLabel() InterfaceDuplexLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret InterfaceDuplexLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *InterfaceDuplex) 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 *InterfaceDuplex) GetLabelOk() (*string, bool) {
+func (o *InterfaceDuplex) GetLabelOk() (*InterfaceDuplexLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *InterfaceDuplex) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *InterfaceDuplex) SetLabel(v string) {
+// SetLabel gets a reference to the given InterfaceDuplexLabel and assigns it to the Label field.
+func (o *InterfaceDuplex) SetLabel(v InterfaceDuplexLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o InterfaceDuplex) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InterfaceDuplex) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InterfaceDuplex) UnmarshalJSON(data []byte) (err error) {
varInterfaceDuplex := _InterfaceDuplex{}
- err = json.Unmarshal(bytes, &varInterfaceDuplex)
+ err = json.Unmarshal(data, &varInterfaceDuplex)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *InterfaceDuplex) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_interface_duplex_label.go b/model_interface_duplex_label.go
new file mode 100644
index 0000000000..fc2d1f9698
--- /dev/null
+++ b/model_interface_duplex_label.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfaceDuplexLabel the model 'InterfaceDuplexLabel'
+type InterfaceDuplexLabel string
+
+// List of Interface_duplex_label
+const (
+ INTERFACEDUPLEXLABEL_HALF InterfaceDuplexLabel = "Half"
+ INTERFACEDUPLEXLABEL_FULL InterfaceDuplexLabel = "Full"
+ INTERFACEDUPLEXLABEL_AUTO InterfaceDuplexLabel = "Auto"
+)
+
+// All allowed values of InterfaceDuplexLabel enum
+var AllowedInterfaceDuplexLabelEnumValues = []InterfaceDuplexLabel{
+ "Half",
+ "Full",
+ "Auto",
+}
+
+func (v *InterfaceDuplexLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceDuplexLabel(value)
+ for _, existing := range AllowedInterfaceDuplexLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceDuplexLabel", value)
+}
+
+// NewInterfaceDuplexLabelFromValue returns a pointer to a valid InterfaceDuplexLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceDuplexLabelFromValue(v string) (*InterfaceDuplexLabel, error) {
+ ev := InterfaceDuplexLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceDuplexLabel: valid values are %v", v, AllowedInterfaceDuplexLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceDuplexLabel) IsValid() bool {
+ for _, existing := range AllowedInterfaceDuplexLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_duplex_label value
+func (v InterfaceDuplexLabel) Ptr() *InterfaceDuplexLabel {
+ return &v
+}
+
+type NullableInterfaceDuplexLabel struct {
+ value *InterfaceDuplexLabel
+ isSet bool
+}
+
+func (v NullableInterfaceDuplexLabel) Get() *InterfaceDuplexLabel {
+ return v.value
+}
+
+func (v *NullableInterfaceDuplexLabel) Set(val *InterfaceDuplexLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceDuplexLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceDuplexLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceDuplexLabel(val *InterfaceDuplexLabel) *NullableInterfaceDuplexLabel {
+ return &NullableInterfaceDuplexLabel{value: val, isSet: true}
+}
+
+func (v NullableInterfaceDuplexLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceDuplexLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_duplex_value.go b/model_interface_duplex_value.go
new file mode 100644
index 0000000000..6746f3c25f
--- /dev/null
+++ b/model_interface_duplex_value.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfaceDuplexValue * `half` - Half * `full` - Full * `auto` - Auto
+type InterfaceDuplexValue string
+
+// List of Interface_duplex_value
+const (
+ INTERFACEDUPLEXVALUE_HALF InterfaceDuplexValue = "half"
+ INTERFACEDUPLEXVALUE_FULL InterfaceDuplexValue = "full"
+ INTERFACEDUPLEXVALUE_AUTO InterfaceDuplexValue = "auto"
+ INTERFACEDUPLEXVALUE_EMPTY InterfaceDuplexValue = ""
+)
+
+// All allowed values of InterfaceDuplexValue enum
+var AllowedInterfaceDuplexValueEnumValues = []InterfaceDuplexValue{
+ "half",
+ "full",
+ "auto",
+ "",
+}
+
+func (v *InterfaceDuplexValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceDuplexValue(value)
+ for _, existing := range AllowedInterfaceDuplexValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceDuplexValue", value)
+}
+
+// NewInterfaceDuplexValueFromValue returns a pointer to a valid InterfaceDuplexValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceDuplexValueFromValue(v string) (*InterfaceDuplexValue, error) {
+ ev := InterfaceDuplexValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceDuplexValue: valid values are %v", v, AllowedInterfaceDuplexValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceDuplexValue) IsValid() bool {
+ for _, existing := range AllowedInterfaceDuplexValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_duplex_value value
+func (v InterfaceDuplexValue) Ptr() *InterfaceDuplexValue {
+ return &v
+}
+
+type NullableInterfaceDuplexValue struct {
+ value *InterfaceDuplexValue
+ isSet bool
+}
+
+func (v NullableInterfaceDuplexValue) Get() *InterfaceDuplexValue {
+ return v.value
+}
+
+func (v *NullableInterfaceDuplexValue) Set(val *InterfaceDuplexValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceDuplexValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceDuplexValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceDuplexValue(val *InterfaceDuplexValue) *NullableInterfaceDuplexValue {
+ return &NullableInterfaceDuplexValue{value: val, isSet: true}
+}
+
+func (v NullableInterfaceDuplexValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceDuplexValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_mode.go b/model_interface_mode.go
index b80876f795..a32e3c5676 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &InterfaceMode{}
// InterfaceMode struct for InterfaceMode
type InterfaceMode struct {
- // * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All)
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *InterfaceModeValue `json:"value,omitempty"`
+ Label *InterfaceModeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewInterfaceModeWithDefaults() *InterfaceMode {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *InterfaceMode) GetValue() string {
+func (o *InterfaceMode) GetValue() InterfaceModeValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret InterfaceModeValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *InterfaceMode) GetValue() string {
// 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 *InterfaceMode) GetValueOk() (*string, bool) {
+func (o *InterfaceMode) GetValueOk() (*InterfaceModeValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *InterfaceMode) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *InterfaceMode) SetValue(v string) {
+// SetValue gets a reference to the given InterfaceModeValue and assigns it to the Value field.
+func (o *InterfaceMode) SetValue(v InterfaceModeValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *InterfaceMode) GetLabel() string {
+func (o *InterfaceMode) GetLabel() InterfaceModeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret InterfaceModeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *InterfaceMode) 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 *InterfaceMode) GetLabelOk() (*string, bool) {
+func (o *InterfaceMode) GetLabelOk() (*InterfaceModeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *InterfaceMode) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *InterfaceMode) SetLabel(v string) {
+// SetLabel gets a reference to the given InterfaceModeLabel and assigns it to the Label field.
+func (o *InterfaceMode) SetLabel(v InterfaceModeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o InterfaceMode) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InterfaceMode) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InterfaceMode) UnmarshalJSON(data []byte) (err error) {
varInterfaceMode := _InterfaceMode{}
- err = json.Unmarshal(bytes, &varInterfaceMode)
+ err = json.Unmarshal(data, &varInterfaceMode)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *InterfaceMode) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_interface_mode_label.go b/model_interface_mode_label.go
new file mode 100644
index 0000000000..a5d2fabf09
--- /dev/null
+++ b/model_interface_mode_label.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfaceModeLabel the model 'InterfaceModeLabel'
+type InterfaceModeLabel string
+
+// List of Interface_mode_label
+const (
+ INTERFACEMODELABEL_ACCESS InterfaceModeLabel = "Access"
+ INTERFACEMODELABEL_TAGGED InterfaceModeLabel = "Tagged"
+ INTERFACEMODELABEL_TAGGED__ALL InterfaceModeLabel = "Tagged (All)"
+)
+
+// All allowed values of InterfaceModeLabel enum
+var AllowedInterfaceModeLabelEnumValues = []InterfaceModeLabel{
+ "Access",
+ "Tagged",
+ "Tagged (All)",
+}
+
+func (v *InterfaceModeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceModeLabel(value)
+ for _, existing := range AllowedInterfaceModeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceModeLabel", value)
+}
+
+// NewInterfaceModeLabelFromValue returns a pointer to a valid InterfaceModeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceModeLabelFromValue(v string) (*InterfaceModeLabel, error) {
+ ev := InterfaceModeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceModeLabel: valid values are %v", v, AllowedInterfaceModeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceModeLabel) IsValid() bool {
+ for _, existing := range AllowedInterfaceModeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_mode_label value
+func (v InterfaceModeLabel) Ptr() *InterfaceModeLabel {
+ return &v
+}
+
+type NullableInterfaceModeLabel struct {
+ value *InterfaceModeLabel
+ isSet bool
+}
+
+func (v NullableInterfaceModeLabel) Get() *InterfaceModeLabel {
+ return v.value
+}
+
+func (v *NullableInterfaceModeLabel) Set(val *InterfaceModeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceModeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceModeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceModeLabel(val *InterfaceModeLabel) *NullableInterfaceModeLabel {
+ return &NullableInterfaceModeLabel{value: val, isSet: true}
+}
+
+func (v NullableInterfaceModeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceModeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_mode_value.go b/model_interface_mode_value.go
new file mode 100644
index 0000000000..ea4ca7ce27
--- /dev/null
+++ b/model_interface_mode_value.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfaceModeValue * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All)
+type InterfaceModeValue string
+
+// List of Interface_mode_value
+const (
+ INTERFACEMODEVALUE_ACCESS InterfaceModeValue = "access"
+ INTERFACEMODEVALUE_TAGGED InterfaceModeValue = "tagged"
+ INTERFACEMODEVALUE_TAGGED_ALL InterfaceModeValue = "tagged-all"
+ INTERFACEMODEVALUE_EMPTY InterfaceModeValue = ""
+)
+
+// All allowed values of InterfaceModeValue enum
+var AllowedInterfaceModeValueEnumValues = []InterfaceModeValue{
+ "access",
+ "tagged",
+ "tagged-all",
+ "",
+}
+
+func (v *InterfaceModeValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceModeValue(value)
+ for _, existing := range AllowedInterfaceModeValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceModeValue", value)
+}
+
+// NewInterfaceModeValueFromValue returns a pointer to a valid InterfaceModeValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceModeValueFromValue(v string) (*InterfaceModeValue, error) {
+ ev := InterfaceModeValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceModeValue: valid values are %v", v, AllowedInterfaceModeValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceModeValue) IsValid() bool {
+ for _, existing := range AllowedInterfaceModeValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_mode_value value
+func (v InterfaceModeValue) Ptr() *InterfaceModeValue {
+ return &v
+}
+
+type NullableInterfaceModeValue struct {
+ value *InterfaceModeValue
+ isSet bool
+}
+
+func (v NullableInterfaceModeValue) Get() *InterfaceModeValue {
+ return v.value
+}
+
+func (v *NullableInterfaceModeValue) Set(val *InterfaceModeValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceModeValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceModeValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceModeValue(val *InterfaceModeValue) *NullableInterfaceModeValue {
+ return &NullableInterfaceModeValue{value: val, isSet: true}
+}
+
+func (v NullableInterfaceModeValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceModeValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_poe_mode.go b/model_interface_poe_mode.go
index f97bde69cb..82c1a6453c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &InterfacePoeMode{}
// InterfacePoeMode struct for InterfacePoeMode
type InterfacePoeMode struct {
- // * `pd` - PD * `pse` - PSE
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *InterfacePoeModeValue `json:"value,omitempty"`
+ Label *InterfacePoeModeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewInterfacePoeModeWithDefaults() *InterfacePoeMode {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *InterfacePoeMode) GetValue() string {
+func (o *InterfacePoeMode) GetValue() InterfacePoeModeValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret InterfacePoeModeValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *InterfacePoeMode) GetValue() string {
// 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 *InterfacePoeMode) GetValueOk() (*string, bool) {
+func (o *InterfacePoeMode) GetValueOk() (*InterfacePoeModeValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *InterfacePoeMode) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *InterfacePoeMode) SetValue(v string) {
+// SetValue gets a reference to the given InterfacePoeModeValue and assigns it to the Value field.
+func (o *InterfacePoeMode) SetValue(v InterfacePoeModeValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *InterfacePoeMode) GetLabel() string {
+func (o *InterfacePoeMode) GetLabel() InterfacePoeModeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret InterfacePoeModeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *InterfacePoeMode) 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 *InterfacePoeMode) GetLabelOk() (*string, bool) {
+func (o *InterfacePoeMode) GetLabelOk() (*InterfacePoeModeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *InterfacePoeMode) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *InterfacePoeMode) SetLabel(v string) {
+// SetLabel gets a reference to the given InterfacePoeModeLabel and assigns it to the Label field.
+func (o *InterfacePoeMode) SetLabel(v InterfacePoeModeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o InterfacePoeMode) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InterfacePoeMode) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InterfacePoeMode) UnmarshalJSON(data []byte) (err error) {
varInterfacePoeMode := _InterfacePoeMode{}
- err = json.Unmarshal(bytes, &varInterfacePoeMode)
+ err = json.Unmarshal(data, &varInterfacePoeMode)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *InterfacePoeMode) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_interface_poe_mode_label.go b/model_interface_poe_mode_label.go
new file mode 100644
index 0000000000..da9f8254fe
--- /dev/null
+++ b/model_interface_poe_mode_label.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfacePoeModeLabel the model 'InterfacePoeModeLabel'
+type InterfacePoeModeLabel string
+
+// List of Interface_poe_mode_label
+const (
+ INTERFACEPOEMODELABEL_PD InterfacePoeModeLabel = "PD"
+ INTERFACEPOEMODELABEL_PSE InterfacePoeModeLabel = "PSE"
+)
+
+// All allowed values of InterfacePoeModeLabel enum
+var AllowedInterfacePoeModeLabelEnumValues = []InterfacePoeModeLabel{
+ "PD",
+ "PSE",
+}
+
+func (v *InterfacePoeModeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfacePoeModeLabel(value)
+ for _, existing := range AllowedInterfacePoeModeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfacePoeModeLabel", value)
+}
+
+// NewInterfacePoeModeLabelFromValue returns a pointer to a valid InterfacePoeModeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfacePoeModeLabelFromValue(v string) (*InterfacePoeModeLabel, error) {
+ ev := InterfacePoeModeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfacePoeModeLabel: valid values are %v", v, AllowedInterfacePoeModeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfacePoeModeLabel) IsValid() bool {
+ for _, existing := range AllowedInterfacePoeModeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_poe_mode_label value
+func (v InterfacePoeModeLabel) Ptr() *InterfacePoeModeLabel {
+ return &v
+}
+
+type NullableInterfacePoeModeLabel struct {
+ value *InterfacePoeModeLabel
+ isSet bool
+}
+
+func (v NullableInterfacePoeModeLabel) Get() *InterfacePoeModeLabel {
+ return v.value
+}
+
+func (v *NullableInterfacePoeModeLabel) Set(val *InterfacePoeModeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfacePoeModeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfacePoeModeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfacePoeModeLabel(val *InterfacePoeModeLabel) *NullableInterfacePoeModeLabel {
+ return &NullableInterfacePoeModeLabel{value: val, isSet: true}
+}
+
+func (v NullableInterfacePoeModeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfacePoeModeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_poe_mode_value.go b/model_interface_poe_mode_value.go
new file mode 100644
index 0000000000..86bc9baec2
--- /dev/null
+++ b/model_interface_poe_mode_value.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfacePoeModeValue * `pd` - PD * `pse` - PSE
+type InterfacePoeModeValue string
+
+// List of Interface_poe_mode_value
+const (
+ INTERFACEPOEMODEVALUE_PD InterfacePoeModeValue = "pd"
+ INTERFACEPOEMODEVALUE_PSE InterfacePoeModeValue = "pse"
+ INTERFACEPOEMODEVALUE_EMPTY InterfacePoeModeValue = ""
+)
+
+// All allowed values of InterfacePoeModeValue enum
+var AllowedInterfacePoeModeValueEnumValues = []InterfacePoeModeValue{
+ "pd",
+ "pse",
+ "",
+}
+
+func (v *InterfacePoeModeValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfacePoeModeValue(value)
+ for _, existing := range AllowedInterfacePoeModeValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfacePoeModeValue", value)
+}
+
+// NewInterfacePoeModeValueFromValue returns a pointer to a valid InterfacePoeModeValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfacePoeModeValueFromValue(v string) (*InterfacePoeModeValue, error) {
+ ev := InterfacePoeModeValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfacePoeModeValue: valid values are %v", v, AllowedInterfacePoeModeValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfacePoeModeValue) IsValid() bool {
+ for _, existing := range AllowedInterfacePoeModeValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_poe_mode_value value
+func (v InterfacePoeModeValue) Ptr() *InterfacePoeModeValue {
+ return &v
+}
+
+type NullableInterfacePoeModeValue struct {
+ value *InterfacePoeModeValue
+ isSet bool
+}
+
+func (v NullableInterfacePoeModeValue) Get() *InterfacePoeModeValue {
+ return v.value
+}
+
+func (v *NullableInterfacePoeModeValue) Set(val *InterfacePoeModeValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfacePoeModeValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfacePoeModeValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfacePoeModeValue(val *InterfacePoeModeValue) *NullableInterfacePoeModeValue {
+ return &NullableInterfacePoeModeValue{value: val, isSet: true}
+}
+
+func (v NullableInterfacePoeModeValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfacePoeModeValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_poe_type.go b/model_interface_poe_type.go
index cb304848ec..8ded2bc238 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &InterfacePoeType{}
// InterfacePoeType struct for InterfacePoeType
type InterfacePoeType struct {
- // * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair)
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *InterfacePoeTypeValue `json:"value,omitempty"`
+ Label *InterfacePoeTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewInterfacePoeTypeWithDefaults() *InterfacePoeType {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *InterfacePoeType) GetValue() string {
+func (o *InterfacePoeType) GetValue() InterfacePoeTypeValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret InterfacePoeTypeValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *InterfacePoeType) GetValue() string {
// 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 *InterfacePoeType) GetValueOk() (*string, bool) {
+func (o *InterfacePoeType) GetValueOk() (*InterfacePoeTypeValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *InterfacePoeType) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *InterfacePoeType) SetValue(v string) {
+// SetValue gets a reference to the given InterfacePoeTypeValue and assigns it to the Value field.
+func (o *InterfacePoeType) SetValue(v InterfacePoeTypeValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *InterfacePoeType) GetLabel() string {
+func (o *InterfacePoeType) GetLabel() InterfacePoeTypeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret InterfacePoeTypeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *InterfacePoeType) 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 *InterfacePoeType) GetLabelOk() (*string, bool) {
+func (o *InterfacePoeType) GetLabelOk() (*InterfacePoeTypeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *InterfacePoeType) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *InterfacePoeType) SetLabel(v string) {
+// SetLabel gets a reference to the given InterfacePoeTypeLabel and assigns it to the Label field.
+func (o *InterfacePoeType) SetLabel(v InterfacePoeTypeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o InterfacePoeType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InterfacePoeType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InterfacePoeType) UnmarshalJSON(data []byte) (err error) {
varInterfacePoeType := _InterfacePoeType{}
- err = json.Unmarshal(bytes, &varInterfacePoeType)
+ err = json.Unmarshal(data, &varInterfacePoeType)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *InterfacePoeType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_interface_poe_type_label.go b/model_interface_poe_type_label.go
new file mode 100644
index 0000000000..544b1627a7
--- /dev/null
+++ b/model_interface_poe_type_label.go
@@ -0,0 +1,122 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfacePoeTypeLabel the model 'InterfacePoeTypeLabel'
+type InterfacePoeTypeLabel string
+
+// List of Interface_poe_type_label
+const (
+ INTERFACEPOETYPELABEL__802_3AF__TYPE_1 InterfacePoeTypeLabel = "802.3af (Type 1)"
+ INTERFACEPOETYPELABEL__802_3AT__TYPE_2 InterfacePoeTypeLabel = "802.3at (Type 2)"
+ INTERFACEPOETYPELABEL__802_3BT__TYPE_3 InterfacePoeTypeLabel = "802.3bt (Type 3)"
+ INTERFACEPOETYPELABEL__802_3BT__TYPE_4 InterfacePoeTypeLabel = "802.3bt (Type 4)"
+ INTERFACEPOETYPELABEL_PASSIVE_24_V__2_PAIR InterfacePoeTypeLabel = "Passive 24V (2-pair)"
+ INTERFACEPOETYPELABEL_PASSIVE_24_V__4_PAIR InterfacePoeTypeLabel = "Passive 24V (4-pair)"
+ INTERFACEPOETYPELABEL_PASSIVE_48_V__2_PAIR InterfacePoeTypeLabel = "Passive 48V (2-pair)"
+ INTERFACEPOETYPELABEL_PASSIVE_48_V__4_PAIR InterfacePoeTypeLabel = "Passive 48V (4-pair)"
+)
+
+// All allowed values of InterfacePoeTypeLabel enum
+var AllowedInterfacePoeTypeLabelEnumValues = []InterfacePoeTypeLabel{
+ "802.3af (Type 1)",
+ "802.3at (Type 2)",
+ "802.3bt (Type 3)",
+ "802.3bt (Type 4)",
+ "Passive 24V (2-pair)",
+ "Passive 24V (4-pair)",
+ "Passive 48V (2-pair)",
+ "Passive 48V (4-pair)",
+}
+
+func (v *InterfacePoeTypeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfacePoeTypeLabel(value)
+ for _, existing := range AllowedInterfacePoeTypeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfacePoeTypeLabel", value)
+}
+
+// NewInterfacePoeTypeLabelFromValue returns a pointer to a valid InterfacePoeTypeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfacePoeTypeLabelFromValue(v string) (*InterfacePoeTypeLabel, error) {
+ ev := InterfacePoeTypeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfacePoeTypeLabel: valid values are %v", v, AllowedInterfacePoeTypeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfacePoeTypeLabel) IsValid() bool {
+ for _, existing := range AllowedInterfacePoeTypeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_poe_type_label value
+func (v InterfacePoeTypeLabel) Ptr() *InterfacePoeTypeLabel {
+ return &v
+}
+
+type NullableInterfacePoeTypeLabel struct {
+ value *InterfacePoeTypeLabel
+ isSet bool
+}
+
+func (v NullableInterfacePoeTypeLabel) Get() *InterfacePoeTypeLabel {
+ return v.value
+}
+
+func (v *NullableInterfacePoeTypeLabel) Set(val *InterfacePoeTypeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfacePoeTypeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfacePoeTypeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfacePoeTypeLabel(val *InterfacePoeTypeLabel) *NullableInterfacePoeTypeLabel {
+ return &NullableInterfacePoeTypeLabel{value: val, isSet: true}
+}
+
+func (v NullableInterfacePoeTypeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfacePoeTypeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_poe_type_value.go b/model_interface_poe_type_value.go
new file mode 100644
index 0000000000..c881faafd9
--- /dev/null
+++ b/model_interface_poe_type_value.go
@@ -0,0 +1,124 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfacePoeTypeValue * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair)
+type InterfacePoeTypeValue string
+
+// List of Interface_poe_type_value
+const (
+ INTERFACEPOETYPEVALUE_TYPE1_IEEE802_3AF InterfacePoeTypeValue = "type1-ieee802.3af"
+ INTERFACEPOETYPEVALUE_TYPE2_IEEE802_3AT InterfacePoeTypeValue = "type2-ieee802.3at"
+ INTERFACEPOETYPEVALUE_TYPE3_IEEE802_3BT InterfacePoeTypeValue = "type3-ieee802.3bt"
+ INTERFACEPOETYPEVALUE_TYPE4_IEEE802_3BT InterfacePoeTypeValue = "type4-ieee802.3bt"
+ INTERFACEPOETYPEVALUE_PASSIVE_24V_2PAIR InterfacePoeTypeValue = "passive-24v-2pair"
+ INTERFACEPOETYPEVALUE_PASSIVE_24V_4PAIR InterfacePoeTypeValue = "passive-24v-4pair"
+ INTERFACEPOETYPEVALUE_PASSIVE_48V_2PAIR InterfacePoeTypeValue = "passive-48v-2pair"
+ INTERFACEPOETYPEVALUE_PASSIVE_48V_4PAIR InterfacePoeTypeValue = "passive-48v-4pair"
+ INTERFACEPOETYPEVALUE_EMPTY InterfacePoeTypeValue = ""
+)
+
+// All allowed values of InterfacePoeTypeValue enum
+var AllowedInterfacePoeTypeValueEnumValues = []InterfacePoeTypeValue{
+ "type1-ieee802.3af",
+ "type2-ieee802.3at",
+ "type3-ieee802.3bt",
+ "type4-ieee802.3bt",
+ "passive-24v-2pair",
+ "passive-24v-4pair",
+ "passive-48v-2pair",
+ "passive-48v-4pair",
+ "",
+}
+
+func (v *InterfacePoeTypeValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfacePoeTypeValue(value)
+ for _, existing := range AllowedInterfacePoeTypeValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfacePoeTypeValue", value)
+}
+
+// NewInterfacePoeTypeValueFromValue returns a pointer to a valid InterfacePoeTypeValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfacePoeTypeValueFromValue(v string) (*InterfacePoeTypeValue, error) {
+ ev := InterfacePoeTypeValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfacePoeTypeValue: valid values are %v", v, AllowedInterfacePoeTypeValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfacePoeTypeValue) IsValid() bool {
+ for _, existing := range AllowedInterfacePoeTypeValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_poe_type_value value
+func (v InterfacePoeTypeValue) Ptr() *InterfacePoeTypeValue {
+ return &v
+}
+
+type NullableInterfacePoeTypeValue struct {
+ value *InterfacePoeTypeValue
+ isSet bool
+}
+
+func (v NullableInterfacePoeTypeValue) Get() *InterfacePoeTypeValue {
+ return v.value
+}
+
+func (v *NullableInterfacePoeTypeValue) Set(val *InterfacePoeTypeValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfacePoeTypeValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfacePoeTypeValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfacePoeTypeValue(val *InterfacePoeTypeValue) *NullableInterfacePoeTypeValue {
+ return &NullableInterfacePoeTypeValue{value: val, isSet: true}
+}
+
+func (v NullableInterfacePoeTypeValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfacePoeTypeValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_request.go b/model_interface_request.go
index 00bc740bfb..2a88277d6a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 InterfaceRequest type satisfies the MappedNullable interface at compile time
@@ -24,9 +25,8 @@ type InterfaceRequest struct {
Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other
- Type string `json:"type"`
+ Label *string `json:"label,omitempty"`
+ Type InterfaceTypeValue `json:"type"`
Enabled *bool `json:"enabled,omitempty"`
Parent NullableNestedInterfaceRequest `json:"parent,omitempty"`
Bridge NullableNestedInterfaceRequest `json:"bridge,omitempty"`
@@ -34,22 +34,16 @@ type InterfaceRequest struct {
Mtu NullableInt32 `json:"mtu,omitempty"`
MacAddress NullableString `json:"mac_address,omitempty"`
Speed NullableInt32 `json:"speed,omitempty"`
- // * `half` - Half * `full` - Full * `auto` - Auto
- Duplex NullableString `json:"duplex,omitempty"`
- Wwn NullableString `json:"wwn,omitempty"`
+ Duplex NullableInterfaceRequestDuplex `json:"duplex,omitempty"`
+ Wwn NullableString `json:"wwn,omitempty"`
// This interface is used only for out-of-band management
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- // * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All)
- Mode *string `json:"mode,omitempty"`
- // * `ap` - Access point * `station` - Station
- RfRole *string `json:"rf_role,omitempty"`
- // * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)
- RfChannel *string `json:"rf_channel,omitempty"`
- // * `pd` - PD * `pse` - PSE
- PoeMode *string `json:"poe_mode,omitempty"`
- // * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair)
- PoeType *string `json:"poe_type,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode *InterfaceModeValue `json:"mode,omitempty"`
+ RfRole *InterfaceRfRoleValue `json:"rf_role,omitempty"`
+ RfChannel *InterfaceRfChannelValue `json:"rf_channel,omitempty"`
+ PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"`
+ PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"`
// Populated by selected channel (if set)
RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"`
// Populated by selected channel (if set)
@@ -72,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_ string) *InterfaceRequest {
+func NewInterfaceRequest(device NestedDeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest {
this := InterfaceRequest{}
this.Device = device
this.Name = name
@@ -244,9 +238,9 @@ func (o *InterfaceRequest) SetLabel(v string) {
}
// GetType returns the Type field value
-func (o *InterfaceRequest) GetType() string {
+func (o *InterfaceRequest) GetType() InterfaceTypeValue {
if o == nil {
- var ret string
+ var ret InterfaceTypeValue
return ret
}
@@ -255,7 +249,7 @@ func (o *InterfaceRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *InterfaceRequest) GetTypeOk() (*string, bool) {
+func (o *InterfaceRequest) GetTypeOk() (*InterfaceTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -263,7 +257,7 @@ func (o *InterfaceRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *InterfaceRequest) SetType(v string) {
+func (o *InterfaceRequest) SetType(v InterfaceTypeValue) {
o.Type = v
}
@@ -558,9 +552,9 @@ func (o *InterfaceRequest) UnsetSpeed() {
}
// GetDuplex returns the Duplex field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InterfaceRequest) GetDuplex() string {
+func (o *InterfaceRequest) GetDuplex() InterfaceRequestDuplex {
if o == nil || IsNil(o.Duplex.Get()) {
- var ret string
+ var ret InterfaceRequestDuplex
return ret
}
return *o.Duplex.Get()
@@ -569,7 +563,7 @@ func (o *InterfaceRequest) GetDuplex() string {
// GetDuplexOk returns a tuple with the Duplex field value if set, nil otherwise
// and a 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) GetDuplexOk() (*string, bool) {
+func (o *InterfaceRequest) GetDuplexOk() (*InterfaceRequestDuplex, bool) {
if o == nil {
return nil, false
}
@@ -585,8 +579,8 @@ func (o *InterfaceRequest) HasDuplex() bool {
return false
}
-// SetDuplex gets a reference to the given NullableString and assigns it to the Duplex field.
-func (o *InterfaceRequest) SetDuplex(v string) {
+// SetDuplex gets a reference to the given NullableInterfaceRequestDuplex and assigns it to the Duplex field.
+func (o *InterfaceRequest) SetDuplex(v InterfaceRequestDuplex) {
o.Duplex.Set(&v)
}
@@ -708,9 +702,9 @@ func (o *InterfaceRequest) SetDescription(v string) {
}
// GetMode returns the Mode field value if set, zero value otherwise.
-func (o *InterfaceRequest) GetMode() string {
+func (o *InterfaceRequest) GetMode() InterfaceModeValue {
if o == nil || IsNil(o.Mode) {
- var ret string
+ var ret InterfaceModeValue
return ret
}
return *o.Mode
@@ -718,7 +712,7 @@ func (o *InterfaceRequest) GetMode() string {
// GetModeOk returns a tuple with the Mode field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *InterfaceRequest) GetModeOk() (*string, bool) {
+func (o *InterfaceRequest) GetModeOk() (*InterfaceModeValue, bool) {
if o == nil || IsNil(o.Mode) {
return nil, false
}
@@ -734,15 +728,15 @@ func (o *InterfaceRequest) HasMode() bool {
return false
}
-// SetMode gets a reference to the given string and assigns it to the Mode field.
-func (o *InterfaceRequest) SetMode(v string) {
+// SetMode gets a reference to the given InterfaceModeValue and assigns it to the Mode field.
+func (o *InterfaceRequest) SetMode(v InterfaceModeValue) {
o.Mode = &v
}
// GetRfRole returns the RfRole field value if set, zero value otherwise.
-func (o *InterfaceRequest) GetRfRole() string {
+func (o *InterfaceRequest) GetRfRole() InterfaceRfRoleValue {
if o == nil || IsNil(o.RfRole) {
- var ret string
+ var ret InterfaceRfRoleValue
return ret
}
return *o.RfRole
@@ -750,7 +744,7 @@ func (o *InterfaceRequest) GetRfRole() string {
// GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *InterfaceRequest) GetRfRoleOk() (*string, bool) {
+func (o *InterfaceRequest) GetRfRoleOk() (*InterfaceRfRoleValue, bool) {
if o == nil || IsNil(o.RfRole) {
return nil, false
}
@@ -766,15 +760,15 @@ func (o *InterfaceRequest) HasRfRole() bool {
return false
}
-// SetRfRole gets a reference to the given string and assigns it to the RfRole field.
-func (o *InterfaceRequest) SetRfRole(v string) {
+// SetRfRole gets a reference to the given InterfaceRfRoleValue and assigns it to the RfRole field.
+func (o *InterfaceRequest) SetRfRole(v InterfaceRfRoleValue) {
o.RfRole = &v
}
// GetRfChannel returns the RfChannel field value if set, zero value otherwise.
-func (o *InterfaceRequest) GetRfChannel() string {
+func (o *InterfaceRequest) GetRfChannel() InterfaceRfChannelValue {
if o == nil || IsNil(o.RfChannel) {
- var ret string
+ var ret InterfaceRfChannelValue
return ret
}
return *o.RfChannel
@@ -782,7 +776,7 @@ func (o *InterfaceRequest) GetRfChannel() string {
// GetRfChannelOk returns a tuple with the RfChannel field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *InterfaceRequest) GetRfChannelOk() (*string, bool) {
+func (o *InterfaceRequest) GetRfChannelOk() (*InterfaceRfChannelValue, bool) {
if o == nil || IsNil(o.RfChannel) {
return nil, false
}
@@ -798,15 +792,15 @@ func (o *InterfaceRequest) HasRfChannel() bool {
return false
}
-// SetRfChannel gets a reference to the given string and assigns it to the RfChannel field.
-func (o *InterfaceRequest) SetRfChannel(v string) {
+// SetRfChannel gets a reference to the given InterfaceRfChannelValue and assigns it to the RfChannel field.
+func (o *InterfaceRequest) SetRfChannel(v InterfaceRfChannelValue) {
o.RfChannel = &v
}
// GetPoeMode returns the PoeMode field value if set, zero value otherwise.
-func (o *InterfaceRequest) GetPoeMode() string {
+func (o *InterfaceRequest) GetPoeMode() InterfacePoeModeValue {
if o == nil || IsNil(o.PoeMode) {
- var ret string
+ var ret InterfacePoeModeValue
return ret
}
return *o.PoeMode
@@ -814,7 +808,7 @@ func (o *InterfaceRequest) GetPoeMode() string {
// GetPoeModeOk returns a tuple with the PoeMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *InterfaceRequest) GetPoeModeOk() (*string, bool) {
+func (o *InterfaceRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool) {
if o == nil || IsNil(o.PoeMode) {
return nil, false
}
@@ -830,15 +824,15 @@ func (o *InterfaceRequest) HasPoeMode() bool {
return false
}
-// SetPoeMode gets a reference to the given string and assigns it to the PoeMode field.
-func (o *InterfaceRequest) SetPoeMode(v string) {
+// SetPoeMode gets a reference to the given InterfacePoeModeValue and assigns it to the PoeMode field.
+func (o *InterfaceRequest) SetPoeMode(v InterfacePoeModeValue) {
o.PoeMode = &v
}
// GetPoeType returns the PoeType field value if set, zero value otherwise.
-func (o *InterfaceRequest) GetPoeType() string {
+func (o *InterfaceRequest) GetPoeType() InterfacePoeTypeValue {
if o == nil || IsNil(o.PoeType) {
- var ret string
+ var ret InterfacePoeTypeValue
return ret
}
return *o.PoeType
@@ -846,7 +840,7 @@ func (o *InterfaceRequest) GetPoeType() string {
// GetPoeTypeOk returns a tuple with the PoeType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *InterfaceRequest) GetPoeTypeOk() (*string, bool) {
+func (o *InterfaceRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool) {
if o == nil || IsNil(o.PoeType) {
return nil, false
}
@@ -862,8 +856,8 @@ func (o *InterfaceRequest) HasPoeType() bool {
return false
}
-// SetPoeType gets a reference to the given string and assigns it to the PoeType field.
-func (o *InterfaceRequest) SetPoeType(v string) {
+// SetPoeType gets a reference to the given InterfacePoeTypeValue and assigns it to the PoeType field.
+func (o *InterfaceRequest) SetPoeType(v InterfacePoeTypeValue) {
o.PoeType = &v
}
@@ -1350,10 +1344,33 @@ func (o InterfaceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InterfaceRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "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)
+ }
+ }
+
varInterfaceRequest := _InterfaceRequest{}
- err = json.Unmarshal(bytes, &varInterfaceRequest)
+ err = json.Unmarshal(data, &varInterfaceRequest)
if err != nil {
return err
@@ -1363,7 +1380,7 @@ func (o *InterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "vdcs")
delete(additionalProperties, "module")
diff --git a/model_interface_request_duplex.go b/model_interface_request_duplex.go
new file mode 100644
index 0000000000..650bbe9885
--- /dev/null
+++ b/model_interface_request_duplex.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfaceRequestDuplex * `half` - Half * `full` - Full * `auto` - Auto
+type InterfaceRequestDuplex string
+
+// List of InterfaceRequest_duplex
+const (
+ INTERFACEREQUESTDUPLEX_HALF InterfaceRequestDuplex = "half"
+ INTERFACEREQUESTDUPLEX_FULL InterfaceRequestDuplex = "full"
+ INTERFACEREQUESTDUPLEX_AUTO InterfaceRequestDuplex = "auto"
+ INTERFACEREQUESTDUPLEX_EMPTY InterfaceRequestDuplex = ""
+)
+
+// All allowed values of InterfaceRequestDuplex enum
+var AllowedInterfaceRequestDuplexEnumValues = []InterfaceRequestDuplex{
+ "half",
+ "full",
+ "auto",
+ "",
+}
+
+func (v *InterfaceRequestDuplex) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceRequestDuplex(value)
+ for _, existing := range AllowedInterfaceRequestDuplexEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceRequestDuplex", value)
+}
+
+// NewInterfaceRequestDuplexFromValue returns a pointer to a valid InterfaceRequestDuplex
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceRequestDuplexFromValue(v string) (*InterfaceRequestDuplex, error) {
+ ev := InterfaceRequestDuplex(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceRequestDuplex: valid values are %v", v, AllowedInterfaceRequestDuplexEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceRequestDuplex) IsValid() bool {
+ for _, existing := range AllowedInterfaceRequestDuplexEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to InterfaceRequest_duplex value
+func (v InterfaceRequestDuplex) Ptr() *InterfaceRequestDuplex {
+ return &v
+}
+
+type NullableInterfaceRequestDuplex struct {
+ value *InterfaceRequestDuplex
+ isSet bool
+}
+
+func (v NullableInterfaceRequestDuplex) Get() *InterfaceRequestDuplex {
+ return v.value
+}
+
+func (v *NullableInterfaceRequestDuplex) Set(val *InterfaceRequestDuplex) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceRequestDuplex) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceRequestDuplex) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceRequestDuplex(val *InterfaceRequestDuplex) *NullableInterfaceRequestDuplex {
+ return &NullableInterfaceRequestDuplex{value: val, isSet: true}
+}
+
+func (v NullableInterfaceRequestDuplex) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceRequestDuplex) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_rf_channel.go b/model_interface_rf_channel.go
index 37cc06a083..94e1670412 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &InterfaceRfChannel{}
// InterfaceRfChannel struct for InterfaceRfChannel
type InterfaceRfChannel struct {
- // * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *InterfaceRfChannelValue `json:"value,omitempty"`
+ Label *InterfaceRfChannelLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewInterfaceRfChannelWithDefaults() *InterfaceRfChannel {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *InterfaceRfChannel) GetValue() string {
+func (o *InterfaceRfChannel) GetValue() InterfaceRfChannelValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret InterfaceRfChannelValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *InterfaceRfChannel) GetValue() string {
// 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 *InterfaceRfChannel) GetValueOk() (*string, bool) {
+func (o *InterfaceRfChannel) GetValueOk() (*InterfaceRfChannelValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *InterfaceRfChannel) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *InterfaceRfChannel) SetValue(v string) {
+// SetValue gets a reference to the given InterfaceRfChannelValue and assigns it to the Value field.
+func (o *InterfaceRfChannel) SetValue(v InterfaceRfChannelValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *InterfaceRfChannel) GetLabel() string {
+func (o *InterfaceRfChannel) GetLabel() InterfaceRfChannelLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret InterfaceRfChannelLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *InterfaceRfChannel) 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 *InterfaceRfChannel) GetLabelOk() (*string, bool) {
+func (o *InterfaceRfChannel) GetLabelOk() (*InterfaceRfChannelLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *InterfaceRfChannel) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *InterfaceRfChannel) SetLabel(v string) {
+// SetLabel gets a reference to the given InterfaceRfChannelLabel and assigns it to the Label field.
+func (o *InterfaceRfChannel) SetLabel(v InterfaceRfChannelLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o InterfaceRfChannel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InterfaceRfChannel) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InterfaceRfChannel) UnmarshalJSON(data []byte) (err error) {
varInterfaceRfChannel := _InterfaceRfChannel{}
- err = json.Unmarshal(bytes, &varInterfaceRfChannel)
+ err = json.Unmarshal(data, &varInterfaceRfChannel)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *InterfaceRfChannel) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_interface_rf_channel_label.go b/model_interface_rf_channel_label.go
new file mode 100644
index 0000000000..779b327112
--- /dev/null
+++ b/model_interface_rf_channel_label.go
@@ -0,0 +1,500 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfaceRfChannelLabel the model 'InterfaceRfChannelLabel'
+type InterfaceRfChannelLabel string
+
+// List of Interface_rf_channel_label
+const (
+ INTERFACERFCHANNELLABEL__1__2412_MHZ InterfaceRfChannelLabel = "1 (2412 MHz)"
+ INTERFACERFCHANNELLABEL__2__2417_MHZ InterfaceRfChannelLabel = "2 (2417 MHz)"
+ INTERFACERFCHANNELLABEL__3__2422_MHZ InterfaceRfChannelLabel = "3 (2422 MHz)"
+ INTERFACERFCHANNELLABEL__4__2427_MHZ InterfaceRfChannelLabel = "4 (2427 MHz)"
+ INTERFACERFCHANNELLABEL__5__2432_MHZ InterfaceRfChannelLabel = "5 (2432 MHz)"
+ INTERFACERFCHANNELLABEL__6__2437_MHZ InterfaceRfChannelLabel = "6 (2437 MHz)"
+ INTERFACERFCHANNELLABEL__7__2442_MHZ InterfaceRfChannelLabel = "7 (2442 MHz)"
+ INTERFACERFCHANNELLABEL__8__2447_MHZ InterfaceRfChannelLabel = "8 (2447 MHz)"
+ INTERFACERFCHANNELLABEL__9__2452_MHZ InterfaceRfChannelLabel = "9 (2452 MHz)"
+ INTERFACERFCHANNELLABEL__10__2457_MHZ InterfaceRfChannelLabel = "10 (2457 MHz)"
+ INTERFACERFCHANNELLABEL__11__2462_MHZ InterfaceRfChannelLabel = "11 (2462 MHz)"
+ INTERFACERFCHANNELLABEL__12__2467_MHZ InterfaceRfChannelLabel = "12 (2467 MHz)"
+ INTERFACERFCHANNELLABEL__13__2472_MHZ InterfaceRfChannelLabel = "13 (2472 MHz)"
+ INTERFACERFCHANNELLABEL__32__5160_20_MHZ InterfaceRfChannelLabel = "32 (5160/20 MHz)"
+ INTERFACERFCHANNELLABEL__34__5170_40_MHZ InterfaceRfChannelLabel = "34 (5170/40 MHz)"
+ INTERFACERFCHANNELLABEL__36__5180_20_MHZ InterfaceRfChannelLabel = "36 (5180/20 MHz)"
+ INTERFACERFCHANNELLABEL__38__5190_40_MHZ InterfaceRfChannelLabel = "38 (5190/40 MHz)"
+ INTERFACERFCHANNELLABEL__40__5200_20_MHZ InterfaceRfChannelLabel = "40 (5200/20 MHz)"
+ INTERFACERFCHANNELLABEL__42__5210_80_MHZ InterfaceRfChannelLabel = "42 (5210/80 MHz)"
+ INTERFACERFCHANNELLABEL__44__5220_20_MHZ InterfaceRfChannelLabel = "44 (5220/20 MHz)"
+ INTERFACERFCHANNELLABEL__46__5230_40_MHZ InterfaceRfChannelLabel = "46 (5230/40 MHz)"
+ INTERFACERFCHANNELLABEL__48__5240_20_MHZ InterfaceRfChannelLabel = "48 (5240/20 MHz)"
+ INTERFACERFCHANNELLABEL__50__5250_160_MHZ InterfaceRfChannelLabel = "50 (5250/160 MHz)"
+ INTERFACERFCHANNELLABEL__52__5260_20_MHZ InterfaceRfChannelLabel = "52 (5260/20 MHz)"
+ INTERFACERFCHANNELLABEL__54__5270_40_MHZ InterfaceRfChannelLabel = "54 (5270/40 MHz)"
+ INTERFACERFCHANNELLABEL__56__5280_20_MHZ InterfaceRfChannelLabel = "56 (5280/20 MHz)"
+ INTERFACERFCHANNELLABEL__58__5290_80_MHZ InterfaceRfChannelLabel = "58 (5290/80 MHz)"
+ INTERFACERFCHANNELLABEL__60__5300_20_MHZ InterfaceRfChannelLabel = "60 (5300/20 MHz)"
+ INTERFACERFCHANNELLABEL__62__5310_40_MHZ InterfaceRfChannelLabel = "62 (5310/40 MHz)"
+ INTERFACERFCHANNELLABEL__64__5320_20_MHZ InterfaceRfChannelLabel = "64 (5320/20 MHz)"
+ INTERFACERFCHANNELLABEL__100__5500_20_MHZ InterfaceRfChannelLabel = "100 (5500/20 MHz)"
+ INTERFACERFCHANNELLABEL__102__5510_40_MHZ InterfaceRfChannelLabel = "102 (5510/40 MHz)"
+ INTERFACERFCHANNELLABEL__104__5520_20_MHZ InterfaceRfChannelLabel = "104 (5520/20 MHz)"
+ INTERFACERFCHANNELLABEL__106__5530_80_MHZ InterfaceRfChannelLabel = "106 (5530/80 MHz)"
+ INTERFACERFCHANNELLABEL__108__5540_20_MHZ InterfaceRfChannelLabel = "108 (5540/20 MHz)"
+ INTERFACERFCHANNELLABEL__110__5550_40_MHZ InterfaceRfChannelLabel = "110 (5550/40 MHz)"
+ INTERFACERFCHANNELLABEL__112__5560_20_MHZ InterfaceRfChannelLabel = "112 (5560/20 MHz)"
+ INTERFACERFCHANNELLABEL__114__5570_160_MHZ InterfaceRfChannelLabel = "114 (5570/160 MHz)"
+ INTERFACERFCHANNELLABEL__116__5580_20_MHZ InterfaceRfChannelLabel = "116 (5580/20 MHz)"
+ INTERFACERFCHANNELLABEL__118__5590_40_MHZ InterfaceRfChannelLabel = "118 (5590/40 MHz)"
+ INTERFACERFCHANNELLABEL__120__5600_20_MHZ InterfaceRfChannelLabel = "120 (5600/20 MHz)"
+ INTERFACERFCHANNELLABEL__122__5610_80_MHZ InterfaceRfChannelLabel = "122 (5610/80 MHz)"
+ INTERFACERFCHANNELLABEL__124__5620_20_MHZ InterfaceRfChannelLabel = "124 (5620/20 MHz)"
+ INTERFACERFCHANNELLABEL__126__5630_40_MHZ InterfaceRfChannelLabel = "126 (5630/40 MHz)"
+ INTERFACERFCHANNELLABEL__128__5640_20_MHZ InterfaceRfChannelLabel = "128 (5640/20 MHz)"
+ INTERFACERFCHANNELLABEL__132__5660_20_MHZ InterfaceRfChannelLabel = "132 (5660/20 MHz)"
+ INTERFACERFCHANNELLABEL__134__5670_40_MHZ InterfaceRfChannelLabel = "134 (5670/40 MHz)"
+ INTERFACERFCHANNELLABEL__136__5680_20_MHZ InterfaceRfChannelLabel = "136 (5680/20 MHz)"
+ INTERFACERFCHANNELLABEL__138__5690_80_MHZ InterfaceRfChannelLabel = "138 (5690/80 MHz)"
+ INTERFACERFCHANNELLABEL__140__5700_20_MHZ InterfaceRfChannelLabel = "140 (5700/20 MHz)"
+ INTERFACERFCHANNELLABEL__142__5710_40_MHZ InterfaceRfChannelLabel = "142 (5710/40 MHz)"
+ INTERFACERFCHANNELLABEL__144__5720_20_MHZ InterfaceRfChannelLabel = "144 (5720/20 MHz)"
+ INTERFACERFCHANNELLABEL__149__5745_20_MHZ InterfaceRfChannelLabel = "149 (5745/20 MHz)"
+ INTERFACERFCHANNELLABEL__151__5755_40_MHZ InterfaceRfChannelLabel = "151 (5755/40 MHz)"
+ INTERFACERFCHANNELLABEL__153__5765_20_MHZ InterfaceRfChannelLabel = "153 (5765/20 MHz)"
+ INTERFACERFCHANNELLABEL__155__5775_80_MHZ InterfaceRfChannelLabel = "155 (5775/80 MHz)"
+ INTERFACERFCHANNELLABEL__157__5785_20_MHZ InterfaceRfChannelLabel = "157 (5785/20 MHz)"
+ INTERFACERFCHANNELLABEL__159__5795_40_MHZ InterfaceRfChannelLabel = "159 (5795/40 MHz)"
+ INTERFACERFCHANNELLABEL__161__5805_20_MHZ InterfaceRfChannelLabel = "161 (5805/20 MHz)"
+ INTERFACERFCHANNELLABEL__163__5815_160_MHZ InterfaceRfChannelLabel = "163 (5815/160 MHz)"
+ INTERFACERFCHANNELLABEL__165__5825_20_MHZ InterfaceRfChannelLabel = "165 (5825/20 MHz)"
+ INTERFACERFCHANNELLABEL__167__5835_40_MHZ InterfaceRfChannelLabel = "167 (5835/40 MHz)"
+ INTERFACERFCHANNELLABEL__169__5845_20_MHZ InterfaceRfChannelLabel = "169 (5845/20 MHz)"
+ INTERFACERFCHANNELLABEL__171__5855_80_MHZ InterfaceRfChannelLabel = "171 (5855/80 MHz)"
+ INTERFACERFCHANNELLABEL__173__5865_20_MHZ InterfaceRfChannelLabel = "173 (5865/20 MHz)"
+ INTERFACERFCHANNELLABEL__175__5875_40_MHZ InterfaceRfChannelLabel = "175 (5875/40 MHz)"
+ INTERFACERFCHANNELLABEL__177__5885_20_MHZ InterfaceRfChannelLabel = "177 (5885/20 MHz)"
+ INTERFACERFCHANNELLABEL__1__5955_20_MHZ InterfaceRfChannelLabel = "1 (5955/20 MHz)"
+ INTERFACERFCHANNELLABEL__3__5965_40_MHZ InterfaceRfChannelLabel = "3 (5965/40 MHz)"
+ INTERFACERFCHANNELLABEL__5__5975_20_MHZ InterfaceRfChannelLabel = "5 (5975/20 MHz)"
+ INTERFACERFCHANNELLABEL__7__5985_80_MHZ InterfaceRfChannelLabel = "7 (5985/80 MHz)"
+ INTERFACERFCHANNELLABEL__9__5995_20_MHZ InterfaceRfChannelLabel = "9 (5995/20 MHz)"
+ INTERFACERFCHANNELLABEL__11__6005_40_MHZ InterfaceRfChannelLabel = "11 (6005/40 MHz)"
+ INTERFACERFCHANNELLABEL__13__6015_20_MHZ InterfaceRfChannelLabel = "13 (6015/20 MHz)"
+ INTERFACERFCHANNELLABEL__15__6025_160_MHZ InterfaceRfChannelLabel = "15 (6025/160 MHz)"
+ INTERFACERFCHANNELLABEL__17__6035_20_MHZ InterfaceRfChannelLabel = "17 (6035/20 MHz)"
+ INTERFACERFCHANNELLABEL__19__6045_40_MHZ InterfaceRfChannelLabel = "19 (6045/40 MHz)"
+ INTERFACERFCHANNELLABEL__21__6055_20_MHZ InterfaceRfChannelLabel = "21 (6055/20 MHz)"
+ INTERFACERFCHANNELLABEL__23__6065_80_MHZ InterfaceRfChannelLabel = "23 (6065/80 MHz)"
+ INTERFACERFCHANNELLABEL__25__6075_20_MHZ InterfaceRfChannelLabel = "25 (6075/20 MHz)"
+ INTERFACERFCHANNELLABEL__27__6085_40_MHZ InterfaceRfChannelLabel = "27 (6085/40 MHz)"
+ INTERFACERFCHANNELLABEL__29__6095_20_MHZ InterfaceRfChannelLabel = "29 (6095/20 MHz)"
+ INTERFACERFCHANNELLABEL__31__6105_320_MHZ InterfaceRfChannelLabel = "31 (6105/320 MHz)"
+ INTERFACERFCHANNELLABEL__33__6115_20_MHZ InterfaceRfChannelLabel = "33 (6115/20 MHz)"
+ INTERFACERFCHANNELLABEL__35__6125_40_MHZ InterfaceRfChannelLabel = "35 (6125/40 MHz)"
+ INTERFACERFCHANNELLABEL__37__6135_20_MHZ InterfaceRfChannelLabel = "37 (6135/20 MHz)"
+ INTERFACERFCHANNELLABEL__39__6145_80_MHZ InterfaceRfChannelLabel = "39 (6145/80 MHz)"
+ INTERFACERFCHANNELLABEL__41__6155_20_MHZ InterfaceRfChannelLabel = "41 (6155/20 MHz)"
+ INTERFACERFCHANNELLABEL__43__6165_40_MHZ InterfaceRfChannelLabel = "43 (6165/40 MHz)"
+ INTERFACERFCHANNELLABEL__45__6175_20_MHZ InterfaceRfChannelLabel = "45 (6175/20 MHz)"
+ INTERFACERFCHANNELLABEL__47__6185_160_MHZ InterfaceRfChannelLabel = "47 (6185/160 MHz)"
+ INTERFACERFCHANNELLABEL__49__6195_20_MHZ InterfaceRfChannelLabel = "49 (6195/20 MHz)"
+ INTERFACERFCHANNELLABEL__51__6205_40_MHZ InterfaceRfChannelLabel = "51 (6205/40 MHz)"
+ INTERFACERFCHANNELLABEL__53__6215_20_MHZ InterfaceRfChannelLabel = "53 (6215/20 MHz)"
+ INTERFACERFCHANNELLABEL__55__6225_80_MHZ InterfaceRfChannelLabel = "55 (6225/80 MHz)"
+ INTERFACERFCHANNELLABEL__57__6235_20_MHZ InterfaceRfChannelLabel = "57 (6235/20 MHz)"
+ INTERFACERFCHANNELLABEL__59__6245_40_MHZ InterfaceRfChannelLabel = "59 (6245/40 MHz)"
+ INTERFACERFCHANNELLABEL__61__6255_20_MHZ InterfaceRfChannelLabel = "61 (6255/20 MHz)"
+ INTERFACERFCHANNELLABEL__65__6275_20_MHZ InterfaceRfChannelLabel = "65 (6275/20 MHz)"
+ INTERFACERFCHANNELLABEL__67__6285_40_MHZ InterfaceRfChannelLabel = "67 (6285/40 MHz)"
+ INTERFACERFCHANNELLABEL__69__6295_20_MHZ InterfaceRfChannelLabel = "69 (6295/20 MHz)"
+ INTERFACERFCHANNELLABEL__71__6305_80_MHZ InterfaceRfChannelLabel = "71 (6305/80 MHz)"
+ INTERFACERFCHANNELLABEL__73__6315_20_MHZ InterfaceRfChannelLabel = "73 (6315/20 MHz)"
+ INTERFACERFCHANNELLABEL__75__6325_40_MHZ InterfaceRfChannelLabel = "75 (6325/40 MHz)"
+ INTERFACERFCHANNELLABEL__77__6335_20_MHZ InterfaceRfChannelLabel = "77 (6335/20 MHz)"
+ INTERFACERFCHANNELLABEL__79__6345_160_MHZ InterfaceRfChannelLabel = "79 (6345/160 MHz)"
+ INTERFACERFCHANNELLABEL__81__6355_20_MHZ InterfaceRfChannelLabel = "81 (6355/20 MHz)"
+ INTERFACERFCHANNELLABEL__83__6365_40_MHZ InterfaceRfChannelLabel = "83 (6365/40 MHz)"
+ INTERFACERFCHANNELLABEL__85__6375_20_MHZ InterfaceRfChannelLabel = "85 (6375/20 MHz)"
+ INTERFACERFCHANNELLABEL__87__6385_80_MHZ InterfaceRfChannelLabel = "87 (6385/80 MHz)"
+ INTERFACERFCHANNELLABEL__89__6395_20_MHZ InterfaceRfChannelLabel = "89 (6395/20 MHz)"
+ INTERFACERFCHANNELLABEL__91__6405_40_MHZ InterfaceRfChannelLabel = "91 (6405/40 MHz)"
+ INTERFACERFCHANNELLABEL__93__6415_20_MHZ InterfaceRfChannelLabel = "93 (6415/20 MHz)"
+ INTERFACERFCHANNELLABEL__95__6425_320_MHZ InterfaceRfChannelLabel = "95 (6425/320 MHz)"
+ INTERFACERFCHANNELLABEL__97__6435_20_MHZ InterfaceRfChannelLabel = "97 (6435/20 MHz)"
+ INTERFACERFCHANNELLABEL__99__6445_40_MHZ InterfaceRfChannelLabel = "99 (6445/40 MHz)"
+ INTERFACERFCHANNELLABEL__101__6455_20_MHZ InterfaceRfChannelLabel = "101 (6455/20 MHz)"
+ INTERFACERFCHANNELLABEL__103__6465_80_MHZ InterfaceRfChannelLabel = "103 (6465/80 MHz)"
+ INTERFACERFCHANNELLABEL__105__6475_20_MHZ InterfaceRfChannelLabel = "105 (6475/20 MHz)"
+ INTERFACERFCHANNELLABEL__107__6485_40_MHZ InterfaceRfChannelLabel = "107 (6485/40 MHz)"
+ INTERFACERFCHANNELLABEL__109__6495_20_MHZ InterfaceRfChannelLabel = "109 (6495/20 MHz)"
+ INTERFACERFCHANNELLABEL__111__6505_160_MHZ InterfaceRfChannelLabel = "111 (6505/160 MHz)"
+ INTERFACERFCHANNELLABEL__113__6515_20_MHZ InterfaceRfChannelLabel = "113 (6515/20 MHz)"
+ INTERFACERFCHANNELLABEL__115__6525_40_MHZ InterfaceRfChannelLabel = "115 (6525/40 MHz)"
+ INTERFACERFCHANNELLABEL__117__6535_20_MHZ InterfaceRfChannelLabel = "117 (6535/20 MHz)"
+ INTERFACERFCHANNELLABEL__119__6545_80_MHZ InterfaceRfChannelLabel = "119 (6545/80 MHz)"
+ INTERFACERFCHANNELLABEL__121__6555_20_MHZ InterfaceRfChannelLabel = "121 (6555/20 MHz)"
+ INTERFACERFCHANNELLABEL__123__6565_40_MHZ InterfaceRfChannelLabel = "123 (6565/40 MHz)"
+ INTERFACERFCHANNELLABEL__125__6575_20_MHZ InterfaceRfChannelLabel = "125 (6575/20 MHz)"
+ INTERFACERFCHANNELLABEL__129__6595_20_MHZ InterfaceRfChannelLabel = "129 (6595/20 MHz)"
+ INTERFACERFCHANNELLABEL__131__6605_40_MHZ InterfaceRfChannelLabel = "131 (6605/40 MHz)"
+ INTERFACERFCHANNELLABEL__133__6615_20_MHZ InterfaceRfChannelLabel = "133 (6615/20 MHz)"
+ INTERFACERFCHANNELLABEL__135__6625_80_MHZ InterfaceRfChannelLabel = "135 (6625/80 MHz)"
+ INTERFACERFCHANNELLABEL__137__6635_20_MHZ InterfaceRfChannelLabel = "137 (6635/20 MHz)"
+ INTERFACERFCHANNELLABEL__139__6645_40_MHZ InterfaceRfChannelLabel = "139 (6645/40 MHz)"
+ INTERFACERFCHANNELLABEL__141__6655_20_MHZ InterfaceRfChannelLabel = "141 (6655/20 MHz)"
+ INTERFACERFCHANNELLABEL__143__6665_160_MHZ InterfaceRfChannelLabel = "143 (6665/160 MHz)"
+ INTERFACERFCHANNELLABEL__145__6675_20_MHZ InterfaceRfChannelLabel = "145 (6675/20 MHz)"
+ INTERFACERFCHANNELLABEL__147__6685_40_MHZ InterfaceRfChannelLabel = "147 (6685/40 MHz)"
+ INTERFACERFCHANNELLABEL__149__6695_20_MHZ InterfaceRfChannelLabel = "149 (6695/20 MHz)"
+ INTERFACERFCHANNELLABEL__151__6705_80_MHZ InterfaceRfChannelLabel = "151 (6705/80 MHz)"
+ INTERFACERFCHANNELLABEL__153__6715_20_MHZ InterfaceRfChannelLabel = "153 (6715/20 MHz)"
+ INTERFACERFCHANNELLABEL__155__6725_40_MHZ InterfaceRfChannelLabel = "155 (6725/40 MHz)"
+ INTERFACERFCHANNELLABEL__157__6735_20_MHZ InterfaceRfChannelLabel = "157 (6735/20 MHz)"
+ INTERFACERFCHANNELLABEL__159__6745_320_MHZ InterfaceRfChannelLabel = "159 (6745/320 MHz)"
+ INTERFACERFCHANNELLABEL__161__6755_20_MHZ InterfaceRfChannelLabel = "161 (6755/20 MHz)"
+ INTERFACERFCHANNELLABEL__163__6765_40_MHZ InterfaceRfChannelLabel = "163 (6765/40 MHz)"
+ INTERFACERFCHANNELLABEL__165__6775_20_MHZ InterfaceRfChannelLabel = "165 (6775/20 MHz)"
+ INTERFACERFCHANNELLABEL__167__6785_80_MHZ InterfaceRfChannelLabel = "167 (6785/80 MHz)"
+ INTERFACERFCHANNELLABEL__169__6795_20_MHZ InterfaceRfChannelLabel = "169 (6795/20 MHz)"
+ INTERFACERFCHANNELLABEL__171__6805_40_MHZ InterfaceRfChannelLabel = "171 (6805/40 MHz)"
+ INTERFACERFCHANNELLABEL__173__6815_20_MHZ InterfaceRfChannelLabel = "173 (6815/20 MHz)"
+ INTERFACERFCHANNELLABEL__175__6825_160_MHZ InterfaceRfChannelLabel = "175 (6825/160 MHz)"
+ INTERFACERFCHANNELLABEL__177__6835_20_MHZ InterfaceRfChannelLabel = "177 (6835/20 MHz)"
+ INTERFACERFCHANNELLABEL__179__6845_40_MHZ InterfaceRfChannelLabel = "179 (6845/40 MHz)"
+ INTERFACERFCHANNELLABEL__181__6855_20_MHZ InterfaceRfChannelLabel = "181 (6855/20 MHz)"
+ INTERFACERFCHANNELLABEL__183__6865_80_MHZ InterfaceRfChannelLabel = "183 (6865/80 MHz)"
+ INTERFACERFCHANNELLABEL__185__6875_20_MHZ InterfaceRfChannelLabel = "185 (6875/20 MHz)"
+ INTERFACERFCHANNELLABEL__187__6885_40_MHZ InterfaceRfChannelLabel = "187 (6885/40 MHz)"
+ INTERFACERFCHANNELLABEL__189__6895_20_MHZ InterfaceRfChannelLabel = "189 (6895/20 MHz)"
+ INTERFACERFCHANNELLABEL__193__6915_20_MHZ InterfaceRfChannelLabel = "193 (6915/20 MHz)"
+ INTERFACERFCHANNELLABEL__195__6925_40_MHZ InterfaceRfChannelLabel = "195 (6925/40 MHz)"
+ INTERFACERFCHANNELLABEL__197__6935_20_MHZ InterfaceRfChannelLabel = "197 (6935/20 MHz)"
+ INTERFACERFCHANNELLABEL__199__6945_80_MHZ InterfaceRfChannelLabel = "199 (6945/80 MHz)"
+ INTERFACERFCHANNELLABEL__201__6955_20_MHZ InterfaceRfChannelLabel = "201 (6955/20 MHz)"
+ INTERFACERFCHANNELLABEL__203__6965_40_MHZ InterfaceRfChannelLabel = "203 (6965/40 MHz)"
+ INTERFACERFCHANNELLABEL__205__6975_20_MHZ InterfaceRfChannelLabel = "205 (6975/20 MHz)"
+ INTERFACERFCHANNELLABEL__207__6985_160_MHZ InterfaceRfChannelLabel = "207 (6985/160 MHz)"
+ INTERFACERFCHANNELLABEL__209__6995_20_MHZ InterfaceRfChannelLabel = "209 (6995/20 MHz)"
+ INTERFACERFCHANNELLABEL__211__7005_40_MHZ InterfaceRfChannelLabel = "211 (7005/40 MHz)"
+ INTERFACERFCHANNELLABEL__213__7015_20_MHZ InterfaceRfChannelLabel = "213 (7015/20 MHz)"
+ INTERFACERFCHANNELLABEL__215__7025_80_MHZ InterfaceRfChannelLabel = "215 (7025/80 MHz)"
+ INTERFACERFCHANNELLABEL__217__7035_20_MHZ InterfaceRfChannelLabel = "217 (7035/20 MHz)"
+ INTERFACERFCHANNELLABEL__219__7045_40_MHZ InterfaceRfChannelLabel = "219 (7045/40 MHz)"
+ INTERFACERFCHANNELLABEL__221__7055_20_MHZ InterfaceRfChannelLabel = "221 (7055/20 MHz)"
+ INTERFACERFCHANNELLABEL__225__7075_20_MHZ InterfaceRfChannelLabel = "225 (7075/20 MHz)"
+ INTERFACERFCHANNELLABEL__227__7085_40_MHZ InterfaceRfChannelLabel = "227 (7085/40 MHz)"
+ INTERFACERFCHANNELLABEL__229__7095_20_MHZ InterfaceRfChannelLabel = "229 (7095/20 MHz)"
+ INTERFACERFCHANNELLABEL__233__7115_20_MHZ InterfaceRfChannelLabel = "233 (7115/20 MHz)"
+ INTERFACERFCHANNELLABEL__1__58_32_2_16_GHZ InterfaceRfChannelLabel = "1 (58.32/2.16 GHz)"
+ INTERFACERFCHANNELLABEL__2__60_48_2_16_GHZ InterfaceRfChannelLabel = "2 (60.48/2.16 GHz)"
+ INTERFACERFCHANNELLABEL__3__62_64_2_16_GHZ InterfaceRfChannelLabel = "3 (62.64/2.16 GHz)"
+ INTERFACERFCHANNELLABEL__4__64_80_2_16_GHZ InterfaceRfChannelLabel = "4 (64.80/2.16 GHz)"
+ INTERFACERFCHANNELLABEL__5__66_96_2_16_GHZ InterfaceRfChannelLabel = "5 (66.96/2.16 GHz)"
+ INTERFACERFCHANNELLABEL__6__69_12_2_16_GHZ InterfaceRfChannelLabel = "6 (69.12/2.16 GHz)"
+ INTERFACERFCHANNELLABEL__9__59_40_4_32_GHZ InterfaceRfChannelLabel = "9 (59.40/4.32 GHz)"
+ INTERFACERFCHANNELLABEL__10__61_56_4_32_GHZ InterfaceRfChannelLabel = "10 (61.56/4.32 GHz)"
+ INTERFACERFCHANNELLABEL__11__63_72_4_32_GHZ InterfaceRfChannelLabel = "11 (63.72/4.32 GHz)"
+ INTERFACERFCHANNELLABEL__12__65_88_4_32_GHZ InterfaceRfChannelLabel = "12 (65.88/4.32 GHz)"
+ INTERFACERFCHANNELLABEL__13__68_04_4_32_GHZ InterfaceRfChannelLabel = "13 (68.04/4.32 GHz)"
+ INTERFACERFCHANNELLABEL__17__60_48_6_48_GHZ InterfaceRfChannelLabel = "17 (60.48/6.48 GHz)"
+ INTERFACERFCHANNELLABEL__18__62_64_6_48_GHZ InterfaceRfChannelLabel = "18 (62.64/6.48 GHz)"
+ INTERFACERFCHANNELLABEL__19__64_80_6_48_GHZ InterfaceRfChannelLabel = "19 (64.80/6.48 GHz)"
+ INTERFACERFCHANNELLABEL__20__66_96_6_48_GHZ InterfaceRfChannelLabel = "20 (66.96/6.48 GHz)"
+ INTERFACERFCHANNELLABEL__25__61_56_8_64_GHZ InterfaceRfChannelLabel = "25 (61.56/8.64 GHz)"
+ INTERFACERFCHANNELLABEL__26__63_72_8_64_GHZ InterfaceRfChannelLabel = "26 (63.72/8.64 GHz)"
+ INTERFACERFCHANNELLABEL__27__65_88_8_64_GHZ InterfaceRfChannelLabel = "27 (65.88/8.64 GHz)"
+)
+
+// All allowed values of InterfaceRfChannelLabel enum
+var AllowedInterfaceRfChannelLabelEnumValues = []InterfaceRfChannelLabel{
+ "1 (2412 MHz)",
+ "2 (2417 MHz)",
+ "3 (2422 MHz)",
+ "4 (2427 MHz)",
+ "5 (2432 MHz)",
+ "6 (2437 MHz)",
+ "7 (2442 MHz)",
+ "8 (2447 MHz)",
+ "9 (2452 MHz)",
+ "10 (2457 MHz)",
+ "11 (2462 MHz)",
+ "12 (2467 MHz)",
+ "13 (2472 MHz)",
+ "32 (5160/20 MHz)",
+ "34 (5170/40 MHz)",
+ "36 (5180/20 MHz)",
+ "38 (5190/40 MHz)",
+ "40 (5200/20 MHz)",
+ "42 (5210/80 MHz)",
+ "44 (5220/20 MHz)",
+ "46 (5230/40 MHz)",
+ "48 (5240/20 MHz)",
+ "50 (5250/160 MHz)",
+ "52 (5260/20 MHz)",
+ "54 (5270/40 MHz)",
+ "56 (5280/20 MHz)",
+ "58 (5290/80 MHz)",
+ "60 (5300/20 MHz)",
+ "62 (5310/40 MHz)",
+ "64 (5320/20 MHz)",
+ "100 (5500/20 MHz)",
+ "102 (5510/40 MHz)",
+ "104 (5520/20 MHz)",
+ "106 (5530/80 MHz)",
+ "108 (5540/20 MHz)",
+ "110 (5550/40 MHz)",
+ "112 (5560/20 MHz)",
+ "114 (5570/160 MHz)",
+ "116 (5580/20 MHz)",
+ "118 (5590/40 MHz)",
+ "120 (5600/20 MHz)",
+ "122 (5610/80 MHz)",
+ "124 (5620/20 MHz)",
+ "126 (5630/40 MHz)",
+ "128 (5640/20 MHz)",
+ "132 (5660/20 MHz)",
+ "134 (5670/40 MHz)",
+ "136 (5680/20 MHz)",
+ "138 (5690/80 MHz)",
+ "140 (5700/20 MHz)",
+ "142 (5710/40 MHz)",
+ "144 (5720/20 MHz)",
+ "149 (5745/20 MHz)",
+ "151 (5755/40 MHz)",
+ "153 (5765/20 MHz)",
+ "155 (5775/80 MHz)",
+ "157 (5785/20 MHz)",
+ "159 (5795/40 MHz)",
+ "161 (5805/20 MHz)",
+ "163 (5815/160 MHz)",
+ "165 (5825/20 MHz)",
+ "167 (5835/40 MHz)",
+ "169 (5845/20 MHz)",
+ "171 (5855/80 MHz)",
+ "173 (5865/20 MHz)",
+ "175 (5875/40 MHz)",
+ "177 (5885/20 MHz)",
+ "1 (5955/20 MHz)",
+ "3 (5965/40 MHz)",
+ "5 (5975/20 MHz)",
+ "7 (5985/80 MHz)",
+ "9 (5995/20 MHz)",
+ "11 (6005/40 MHz)",
+ "13 (6015/20 MHz)",
+ "15 (6025/160 MHz)",
+ "17 (6035/20 MHz)",
+ "19 (6045/40 MHz)",
+ "21 (6055/20 MHz)",
+ "23 (6065/80 MHz)",
+ "25 (6075/20 MHz)",
+ "27 (6085/40 MHz)",
+ "29 (6095/20 MHz)",
+ "31 (6105/320 MHz)",
+ "33 (6115/20 MHz)",
+ "35 (6125/40 MHz)",
+ "37 (6135/20 MHz)",
+ "39 (6145/80 MHz)",
+ "41 (6155/20 MHz)",
+ "43 (6165/40 MHz)",
+ "45 (6175/20 MHz)",
+ "47 (6185/160 MHz)",
+ "49 (6195/20 MHz)",
+ "51 (6205/40 MHz)",
+ "53 (6215/20 MHz)",
+ "55 (6225/80 MHz)",
+ "57 (6235/20 MHz)",
+ "59 (6245/40 MHz)",
+ "61 (6255/20 MHz)",
+ "65 (6275/20 MHz)",
+ "67 (6285/40 MHz)",
+ "69 (6295/20 MHz)",
+ "71 (6305/80 MHz)",
+ "73 (6315/20 MHz)",
+ "75 (6325/40 MHz)",
+ "77 (6335/20 MHz)",
+ "79 (6345/160 MHz)",
+ "81 (6355/20 MHz)",
+ "83 (6365/40 MHz)",
+ "85 (6375/20 MHz)",
+ "87 (6385/80 MHz)",
+ "89 (6395/20 MHz)",
+ "91 (6405/40 MHz)",
+ "93 (6415/20 MHz)",
+ "95 (6425/320 MHz)",
+ "97 (6435/20 MHz)",
+ "99 (6445/40 MHz)",
+ "101 (6455/20 MHz)",
+ "103 (6465/80 MHz)",
+ "105 (6475/20 MHz)",
+ "107 (6485/40 MHz)",
+ "109 (6495/20 MHz)",
+ "111 (6505/160 MHz)",
+ "113 (6515/20 MHz)",
+ "115 (6525/40 MHz)",
+ "117 (6535/20 MHz)",
+ "119 (6545/80 MHz)",
+ "121 (6555/20 MHz)",
+ "123 (6565/40 MHz)",
+ "125 (6575/20 MHz)",
+ "129 (6595/20 MHz)",
+ "131 (6605/40 MHz)",
+ "133 (6615/20 MHz)",
+ "135 (6625/80 MHz)",
+ "137 (6635/20 MHz)",
+ "139 (6645/40 MHz)",
+ "141 (6655/20 MHz)",
+ "143 (6665/160 MHz)",
+ "145 (6675/20 MHz)",
+ "147 (6685/40 MHz)",
+ "149 (6695/20 MHz)",
+ "151 (6705/80 MHz)",
+ "153 (6715/20 MHz)",
+ "155 (6725/40 MHz)",
+ "157 (6735/20 MHz)",
+ "159 (6745/320 MHz)",
+ "161 (6755/20 MHz)",
+ "163 (6765/40 MHz)",
+ "165 (6775/20 MHz)",
+ "167 (6785/80 MHz)",
+ "169 (6795/20 MHz)",
+ "171 (6805/40 MHz)",
+ "173 (6815/20 MHz)",
+ "175 (6825/160 MHz)",
+ "177 (6835/20 MHz)",
+ "179 (6845/40 MHz)",
+ "181 (6855/20 MHz)",
+ "183 (6865/80 MHz)",
+ "185 (6875/20 MHz)",
+ "187 (6885/40 MHz)",
+ "189 (6895/20 MHz)",
+ "193 (6915/20 MHz)",
+ "195 (6925/40 MHz)",
+ "197 (6935/20 MHz)",
+ "199 (6945/80 MHz)",
+ "201 (6955/20 MHz)",
+ "203 (6965/40 MHz)",
+ "205 (6975/20 MHz)",
+ "207 (6985/160 MHz)",
+ "209 (6995/20 MHz)",
+ "211 (7005/40 MHz)",
+ "213 (7015/20 MHz)",
+ "215 (7025/80 MHz)",
+ "217 (7035/20 MHz)",
+ "219 (7045/40 MHz)",
+ "221 (7055/20 MHz)",
+ "225 (7075/20 MHz)",
+ "227 (7085/40 MHz)",
+ "229 (7095/20 MHz)",
+ "233 (7115/20 MHz)",
+ "1 (58.32/2.16 GHz)",
+ "2 (60.48/2.16 GHz)",
+ "3 (62.64/2.16 GHz)",
+ "4 (64.80/2.16 GHz)",
+ "5 (66.96/2.16 GHz)",
+ "6 (69.12/2.16 GHz)",
+ "9 (59.40/4.32 GHz)",
+ "10 (61.56/4.32 GHz)",
+ "11 (63.72/4.32 GHz)",
+ "12 (65.88/4.32 GHz)",
+ "13 (68.04/4.32 GHz)",
+ "17 (60.48/6.48 GHz)",
+ "18 (62.64/6.48 GHz)",
+ "19 (64.80/6.48 GHz)",
+ "20 (66.96/6.48 GHz)",
+ "25 (61.56/8.64 GHz)",
+ "26 (63.72/8.64 GHz)",
+ "27 (65.88/8.64 GHz)",
+}
+
+func (v *InterfaceRfChannelLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceRfChannelLabel(value)
+ for _, existing := range AllowedInterfaceRfChannelLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceRfChannelLabel", value)
+}
+
+// NewInterfaceRfChannelLabelFromValue returns a pointer to a valid InterfaceRfChannelLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceRfChannelLabelFromValue(v string) (*InterfaceRfChannelLabel, error) {
+ ev := InterfaceRfChannelLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceRfChannelLabel: valid values are %v", v, AllowedInterfaceRfChannelLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceRfChannelLabel) IsValid() bool {
+ for _, existing := range AllowedInterfaceRfChannelLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_rf_channel_label value
+func (v InterfaceRfChannelLabel) Ptr() *InterfaceRfChannelLabel {
+ return &v
+}
+
+type NullableInterfaceRfChannelLabel struct {
+ value *InterfaceRfChannelLabel
+ isSet bool
+}
+
+func (v NullableInterfaceRfChannelLabel) Get() *InterfaceRfChannelLabel {
+ return v.value
+}
+
+func (v *NullableInterfaceRfChannelLabel) Set(val *InterfaceRfChannelLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceRfChannelLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceRfChannelLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceRfChannelLabel(val *InterfaceRfChannelLabel) *NullableInterfaceRfChannelLabel {
+ return &NullableInterfaceRfChannelLabel{value: val, isSet: true}
+}
+
+func (v NullableInterfaceRfChannelLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceRfChannelLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_rf_channel_value.go b/model_interface_rf_channel_value.go
new file mode 100644
index 0000000000..ea15b1e872
--- /dev/null
+++ b/model_interface_rf_channel_value.go
@@ -0,0 +1,502 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfaceRfChannelValue * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)
+type InterfaceRfChannelValue string
+
+// List of Interface_rf_channel_value
+const (
+ INTERFACERFCHANNELVALUE__2_4G_1_2412_22 InterfaceRfChannelValue = "2.4g-1-2412-22"
+ INTERFACERFCHANNELVALUE__2_4G_2_2417_22 InterfaceRfChannelValue = "2.4g-2-2417-22"
+ INTERFACERFCHANNELVALUE__2_4G_3_2422_22 InterfaceRfChannelValue = "2.4g-3-2422-22"
+ INTERFACERFCHANNELVALUE__2_4G_4_2427_22 InterfaceRfChannelValue = "2.4g-4-2427-22"
+ INTERFACERFCHANNELVALUE__2_4G_5_2432_22 InterfaceRfChannelValue = "2.4g-5-2432-22"
+ INTERFACERFCHANNELVALUE__2_4G_6_2437_22 InterfaceRfChannelValue = "2.4g-6-2437-22"
+ INTERFACERFCHANNELVALUE__2_4G_7_2442_22 InterfaceRfChannelValue = "2.4g-7-2442-22"
+ INTERFACERFCHANNELVALUE__2_4G_8_2447_22 InterfaceRfChannelValue = "2.4g-8-2447-22"
+ INTERFACERFCHANNELVALUE__2_4G_9_2452_22 InterfaceRfChannelValue = "2.4g-9-2452-22"
+ INTERFACERFCHANNELVALUE__2_4G_10_2457_22 InterfaceRfChannelValue = "2.4g-10-2457-22"
+ INTERFACERFCHANNELVALUE__2_4G_11_2462_22 InterfaceRfChannelValue = "2.4g-11-2462-22"
+ INTERFACERFCHANNELVALUE__2_4G_12_2467_22 InterfaceRfChannelValue = "2.4g-12-2467-22"
+ INTERFACERFCHANNELVALUE__2_4G_13_2472_22 InterfaceRfChannelValue = "2.4g-13-2472-22"
+ INTERFACERFCHANNELVALUE__5G_32_5160_20 InterfaceRfChannelValue = "5g-32-5160-20"
+ INTERFACERFCHANNELVALUE__5G_34_5170_40 InterfaceRfChannelValue = "5g-34-5170-40"
+ INTERFACERFCHANNELVALUE__5G_36_5180_20 InterfaceRfChannelValue = "5g-36-5180-20"
+ INTERFACERFCHANNELVALUE__5G_38_5190_40 InterfaceRfChannelValue = "5g-38-5190-40"
+ INTERFACERFCHANNELVALUE__5G_40_5200_20 InterfaceRfChannelValue = "5g-40-5200-20"
+ INTERFACERFCHANNELVALUE__5G_42_5210_80 InterfaceRfChannelValue = "5g-42-5210-80"
+ INTERFACERFCHANNELVALUE__5G_44_5220_20 InterfaceRfChannelValue = "5g-44-5220-20"
+ INTERFACERFCHANNELVALUE__5G_46_5230_40 InterfaceRfChannelValue = "5g-46-5230-40"
+ INTERFACERFCHANNELVALUE__5G_48_5240_20 InterfaceRfChannelValue = "5g-48-5240-20"
+ INTERFACERFCHANNELVALUE__5G_50_5250_160 InterfaceRfChannelValue = "5g-50-5250-160"
+ INTERFACERFCHANNELVALUE__5G_52_5260_20 InterfaceRfChannelValue = "5g-52-5260-20"
+ INTERFACERFCHANNELVALUE__5G_54_5270_40 InterfaceRfChannelValue = "5g-54-5270-40"
+ INTERFACERFCHANNELVALUE__5G_56_5280_20 InterfaceRfChannelValue = "5g-56-5280-20"
+ INTERFACERFCHANNELVALUE__5G_58_5290_80 InterfaceRfChannelValue = "5g-58-5290-80"
+ INTERFACERFCHANNELVALUE__5G_60_5300_20 InterfaceRfChannelValue = "5g-60-5300-20"
+ INTERFACERFCHANNELVALUE__5G_62_5310_40 InterfaceRfChannelValue = "5g-62-5310-40"
+ INTERFACERFCHANNELVALUE__5G_64_5320_20 InterfaceRfChannelValue = "5g-64-5320-20"
+ INTERFACERFCHANNELVALUE__5G_100_5500_20 InterfaceRfChannelValue = "5g-100-5500-20"
+ INTERFACERFCHANNELVALUE__5G_102_5510_40 InterfaceRfChannelValue = "5g-102-5510-40"
+ INTERFACERFCHANNELVALUE__5G_104_5520_20 InterfaceRfChannelValue = "5g-104-5520-20"
+ INTERFACERFCHANNELVALUE__5G_106_5530_80 InterfaceRfChannelValue = "5g-106-5530-80"
+ INTERFACERFCHANNELVALUE__5G_108_5540_20 InterfaceRfChannelValue = "5g-108-5540-20"
+ INTERFACERFCHANNELVALUE__5G_110_5550_40 InterfaceRfChannelValue = "5g-110-5550-40"
+ INTERFACERFCHANNELVALUE__5G_112_5560_20 InterfaceRfChannelValue = "5g-112-5560-20"
+ INTERFACERFCHANNELVALUE__5G_114_5570_160 InterfaceRfChannelValue = "5g-114-5570-160"
+ INTERFACERFCHANNELVALUE__5G_116_5580_20 InterfaceRfChannelValue = "5g-116-5580-20"
+ INTERFACERFCHANNELVALUE__5G_118_5590_40 InterfaceRfChannelValue = "5g-118-5590-40"
+ INTERFACERFCHANNELVALUE__5G_120_5600_20 InterfaceRfChannelValue = "5g-120-5600-20"
+ INTERFACERFCHANNELVALUE__5G_122_5610_80 InterfaceRfChannelValue = "5g-122-5610-80"
+ INTERFACERFCHANNELVALUE__5G_124_5620_20 InterfaceRfChannelValue = "5g-124-5620-20"
+ INTERFACERFCHANNELVALUE__5G_126_5630_40 InterfaceRfChannelValue = "5g-126-5630-40"
+ INTERFACERFCHANNELVALUE__5G_128_5640_20 InterfaceRfChannelValue = "5g-128-5640-20"
+ INTERFACERFCHANNELVALUE__5G_132_5660_20 InterfaceRfChannelValue = "5g-132-5660-20"
+ INTERFACERFCHANNELVALUE__5G_134_5670_40 InterfaceRfChannelValue = "5g-134-5670-40"
+ INTERFACERFCHANNELVALUE__5G_136_5680_20 InterfaceRfChannelValue = "5g-136-5680-20"
+ INTERFACERFCHANNELVALUE__5G_138_5690_80 InterfaceRfChannelValue = "5g-138-5690-80"
+ INTERFACERFCHANNELVALUE__5G_140_5700_20 InterfaceRfChannelValue = "5g-140-5700-20"
+ INTERFACERFCHANNELVALUE__5G_142_5710_40 InterfaceRfChannelValue = "5g-142-5710-40"
+ INTERFACERFCHANNELVALUE__5G_144_5720_20 InterfaceRfChannelValue = "5g-144-5720-20"
+ INTERFACERFCHANNELVALUE__5G_149_5745_20 InterfaceRfChannelValue = "5g-149-5745-20"
+ INTERFACERFCHANNELVALUE__5G_151_5755_40 InterfaceRfChannelValue = "5g-151-5755-40"
+ INTERFACERFCHANNELVALUE__5G_153_5765_20 InterfaceRfChannelValue = "5g-153-5765-20"
+ INTERFACERFCHANNELVALUE__5G_155_5775_80 InterfaceRfChannelValue = "5g-155-5775-80"
+ INTERFACERFCHANNELVALUE__5G_157_5785_20 InterfaceRfChannelValue = "5g-157-5785-20"
+ INTERFACERFCHANNELVALUE__5G_159_5795_40 InterfaceRfChannelValue = "5g-159-5795-40"
+ INTERFACERFCHANNELVALUE__5G_161_5805_20 InterfaceRfChannelValue = "5g-161-5805-20"
+ INTERFACERFCHANNELVALUE__5G_163_5815_160 InterfaceRfChannelValue = "5g-163-5815-160"
+ INTERFACERFCHANNELVALUE__5G_165_5825_20 InterfaceRfChannelValue = "5g-165-5825-20"
+ INTERFACERFCHANNELVALUE__5G_167_5835_40 InterfaceRfChannelValue = "5g-167-5835-40"
+ INTERFACERFCHANNELVALUE__5G_169_5845_20 InterfaceRfChannelValue = "5g-169-5845-20"
+ INTERFACERFCHANNELVALUE__5G_171_5855_80 InterfaceRfChannelValue = "5g-171-5855-80"
+ INTERFACERFCHANNELVALUE__5G_173_5865_20 InterfaceRfChannelValue = "5g-173-5865-20"
+ INTERFACERFCHANNELVALUE__5G_175_5875_40 InterfaceRfChannelValue = "5g-175-5875-40"
+ INTERFACERFCHANNELVALUE__5G_177_5885_20 InterfaceRfChannelValue = "5g-177-5885-20"
+ INTERFACERFCHANNELVALUE__6G_1_5955_20 InterfaceRfChannelValue = "6g-1-5955-20"
+ INTERFACERFCHANNELVALUE__6G_3_5965_40 InterfaceRfChannelValue = "6g-3-5965-40"
+ INTERFACERFCHANNELVALUE__6G_5_5975_20 InterfaceRfChannelValue = "6g-5-5975-20"
+ INTERFACERFCHANNELVALUE__6G_7_5985_80 InterfaceRfChannelValue = "6g-7-5985-80"
+ INTERFACERFCHANNELVALUE__6G_9_5995_20 InterfaceRfChannelValue = "6g-9-5995-20"
+ INTERFACERFCHANNELVALUE__6G_11_6005_40 InterfaceRfChannelValue = "6g-11-6005-40"
+ INTERFACERFCHANNELVALUE__6G_13_6015_20 InterfaceRfChannelValue = "6g-13-6015-20"
+ INTERFACERFCHANNELVALUE__6G_15_6025_160 InterfaceRfChannelValue = "6g-15-6025-160"
+ INTERFACERFCHANNELVALUE__6G_17_6035_20 InterfaceRfChannelValue = "6g-17-6035-20"
+ INTERFACERFCHANNELVALUE__6G_19_6045_40 InterfaceRfChannelValue = "6g-19-6045-40"
+ INTERFACERFCHANNELVALUE__6G_21_6055_20 InterfaceRfChannelValue = "6g-21-6055-20"
+ INTERFACERFCHANNELVALUE__6G_23_6065_80 InterfaceRfChannelValue = "6g-23-6065-80"
+ INTERFACERFCHANNELVALUE__6G_25_6075_20 InterfaceRfChannelValue = "6g-25-6075-20"
+ INTERFACERFCHANNELVALUE__6G_27_6085_40 InterfaceRfChannelValue = "6g-27-6085-40"
+ INTERFACERFCHANNELVALUE__6G_29_6095_20 InterfaceRfChannelValue = "6g-29-6095-20"
+ INTERFACERFCHANNELVALUE__6G_31_6105_320 InterfaceRfChannelValue = "6g-31-6105-320"
+ INTERFACERFCHANNELVALUE__6G_33_6115_20 InterfaceRfChannelValue = "6g-33-6115-20"
+ INTERFACERFCHANNELVALUE__6G_35_6125_40 InterfaceRfChannelValue = "6g-35-6125-40"
+ INTERFACERFCHANNELVALUE__6G_37_6135_20 InterfaceRfChannelValue = "6g-37-6135-20"
+ INTERFACERFCHANNELVALUE__6G_39_6145_80 InterfaceRfChannelValue = "6g-39-6145-80"
+ INTERFACERFCHANNELVALUE__6G_41_6155_20 InterfaceRfChannelValue = "6g-41-6155-20"
+ INTERFACERFCHANNELVALUE__6G_43_6165_40 InterfaceRfChannelValue = "6g-43-6165-40"
+ INTERFACERFCHANNELVALUE__6G_45_6175_20 InterfaceRfChannelValue = "6g-45-6175-20"
+ INTERFACERFCHANNELVALUE__6G_47_6185_160 InterfaceRfChannelValue = "6g-47-6185-160"
+ INTERFACERFCHANNELVALUE__6G_49_6195_20 InterfaceRfChannelValue = "6g-49-6195-20"
+ INTERFACERFCHANNELVALUE__6G_51_6205_40 InterfaceRfChannelValue = "6g-51-6205-40"
+ INTERFACERFCHANNELVALUE__6G_53_6215_20 InterfaceRfChannelValue = "6g-53-6215-20"
+ INTERFACERFCHANNELVALUE__6G_55_6225_80 InterfaceRfChannelValue = "6g-55-6225-80"
+ INTERFACERFCHANNELVALUE__6G_57_6235_20 InterfaceRfChannelValue = "6g-57-6235-20"
+ INTERFACERFCHANNELVALUE__6G_59_6245_40 InterfaceRfChannelValue = "6g-59-6245-40"
+ INTERFACERFCHANNELVALUE__6G_61_6255_20 InterfaceRfChannelValue = "6g-61-6255-20"
+ INTERFACERFCHANNELVALUE__6G_65_6275_20 InterfaceRfChannelValue = "6g-65-6275-20"
+ INTERFACERFCHANNELVALUE__6G_67_6285_40 InterfaceRfChannelValue = "6g-67-6285-40"
+ INTERFACERFCHANNELVALUE__6G_69_6295_20 InterfaceRfChannelValue = "6g-69-6295-20"
+ INTERFACERFCHANNELVALUE__6G_71_6305_80 InterfaceRfChannelValue = "6g-71-6305-80"
+ INTERFACERFCHANNELVALUE__6G_73_6315_20 InterfaceRfChannelValue = "6g-73-6315-20"
+ INTERFACERFCHANNELVALUE__6G_75_6325_40 InterfaceRfChannelValue = "6g-75-6325-40"
+ INTERFACERFCHANNELVALUE__6G_77_6335_20 InterfaceRfChannelValue = "6g-77-6335-20"
+ INTERFACERFCHANNELVALUE__6G_79_6345_160 InterfaceRfChannelValue = "6g-79-6345-160"
+ INTERFACERFCHANNELVALUE__6G_81_6355_20 InterfaceRfChannelValue = "6g-81-6355-20"
+ INTERFACERFCHANNELVALUE__6G_83_6365_40 InterfaceRfChannelValue = "6g-83-6365-40"
+ INTERFACERFCHANNELVALUE__6G_85_6375_20 InterfaceRfChannelValue = "6g-85-6375-20"
+ INTERFACERFCHANNELVALUE__6G_87_6385_80 InterfaceRfChannelValue = "6g-87-6385-80"
+ INTERFACERFCHANNELVALUE__6G_89_6395_20 InterfaceRfChannelValue = "6g-89-6395-20"
+ INTERFACERFCHANNELVALUE__6G_91_6405_40 InterfaceRfChannelValue = "6g-91-6405-40"
+ INTERFACERFCHANNELVALUE__6G_93_6415_20 InterfaceRfChannelValue = "6g-93-6415-20"
+ INTERFACERFCHANNELVALUE__6G_95_6425_320 InterfaceRfChannelValue = "6g-95-6425-320"
+ INTERFACERFCHANNELVALUE__6G_97_6435_20 InterfaceRfChannelValue = "6g-97-6435-20"
+ INTERFACERFCHANNELVALUE__6G_99_6445_40 InterfaceRfChannelValue = "6g-99-6445-40"
+ INTERFACERFCHANNELVALUE__6G_101_6455_20 InterfaceRfChannelValue = "6g-101-6455-20"
+ INTERFACERFCHANNELVALUE__6G_103_6465_80 InterfaceRfChannelValue = "6g-103-6465-80"
+ INTERFACERFCHANNELVALUE__6G_105_6475_20 InterfaceRfChannelValue = "6g-105-6475-20"
+ INTERFACERFCHANNELVALUE__6G_107_6485_40 InterfaceRfChannelValue = "6g-107-6485-40"
+ INTERFACERFCHANNELVALUE__6G_109_6495_20 InterfaceRfChannelValue = "6g-109-6495-20"
+ INTERFACERFCHANNELVALUE__6G_111_6505_160 InterfaceRfChannelValue = "6g-111-6505-160"
+ INTERFACERFCHANNELVALUE__6G_113_6515_20 InterfaceRfChannelValue = "6g-113-6515-20"
+ INTERFACERFCHANNELVALUE__6G_115_6525_40 InterfaceRfChannelValue = "6g-115-6525-40"
+ INTERFACERFCHANNELVALUE__6G_117_6535_20 InterfaceRfChannelValue = "6g-117-6535-20"
+ INTERFACERFCHANNELVALUE__6G_119_6545_80 InterfaceRfChannelValue = "6g-119-6545-80"
+ INTERFACERFCHANNELVALUE__6G_121_6555_20 InterfaceRfChannelValue = "6g-121-6555-20"
+ INTERFACERFCHANNELVALUE__6G_123_6565_40 InterfaceRfChannelValue = "6g-123-6565-40"
+ INTERFACERFCHANNELVALUE__6G_125_6575_20 InterfaceRfChannelValue = "6g-125-6575-20"
+ INTERFACERFCHANNELVALUE__6G_129_6595_20 InterfaceRfChannelValue = "6g-129-6595-20"
+ INTERFACERFCHANNELVALUE__6G_131_6605_40 InterfaceRfChannelValue = "6g-131-6605-40"
+ INTERFACERFCHANNELVALUE__6G_133_6615_20 InterfaceRfChannelValue = "6g-133-6615-20"
+ INTERFACERFCHANNELVALUE__6G_135_6625_80 InterfaceRfChannelValue = "6g-135-6625-80"
+ INTERFACERFCHANNELVALUE__6G_137_6635_20 InterfaceRfChannelValue = "6g-137-6635-20"
+ INTERFACERFCHANNELVALUE__6G_139_6645_40 InterfaceRfChannelValue = "6g-139-6645-40"
+ INTERFACERFCHANNELVALUE__6G_141_6655_20 InterfaceRfChannelValue = "6g-141-6655-20"
+ INTERFACERFCHANNELVALUE__6G_143_6665_160 InterfaceRfChannelValue = "6g-143-6665-160"
+ INTERFACERFCHANNELVALUE__6G_145_6675_20 InterfaceRfChannelValue = "6g-145-6675-20"
+ INTERFACERFCHANNELVALUE__6G_147_6685_40 InterfaceRfChannelValue = "6g-147-6685-40"
+ INTERFACERFCHANNELVALUE__6G_149_6695_20 InterfaceRfChannelValue = "6g-149-6695-20"
+ INTERFACERFCHANNELVALUE__6G_151_6705_80 InterfaceRfChannelValue = "6g-151-6705-80"
+ INTERFACERFCHANNELVALUE__6G_153_6715_20 InterfaceRfChannelValue = "6g-153-6715-20"
+ INTERFACERFCHANNELVALUE__6G_155_6725_40 InterfaceRfChannelValue = "6g-155-6725-40"
+ INTERFACERFCHANNELVALUE__6G_157_6735_20 InterfaceRfChannelValue = "6g-157-6735-20"
+ INTERFACERFCHANNELVALUE__6G_159_6745_320 InterfaceRfChannelValue = "6g-159-6745-320"
+ INTERFACERFCHANNELVALUE__6G_161_6755_20 InterfaceRfChannelValue = "6g-161-6755-20"
+ INTERFACERFCHANNELVALUE__6G_163_6765_40 InterfaceRfChannelValue = "6g-163-6765-40"
+ INTERFACERFCHANNELVALUE__6G_165_6775_20 InterfaceRfChannelValue = "6g-165-6775-20"
+ INTERFACERFCHANNELVALUE__6G_167_6785_80 InterfaceRfChannelValue = "6g-167-6785-80"
+ INTERFACERFCHANNELVALUE__6G_169_6795_20 InterfaceRfChannelValue = "6g-169-6795-20"
+ INTERFACERFCHANNELVALUE__6G_171_6805_40 InterfaceRfChannelValue = "6g-171-6805-40"
+ INTERFACERFCHANNELVALUE__6G_173_6815_20 InterfaceRfChannelValue = "6g-173-6815-20"
+ INTERFACERFCHANNELVALUE__6G_175_6825_160 InterfaceRfChannelValue = "6g-175-6825-160"
+ INTERFACERFCHANNELVALUE__6G_177_6835_20 InterfaceRfChannelValue = "6g-177-6835-20"
+ INTERFACERFCHANNELVALUE__6G_179_6845_40 InterfaceRfChannelValue = "6g-179-6845-40"
+ INTERFACERFCHANNELVALUE__6G_181_6855_20 InterfaceRfChannelValue = "6g-181-6855-20"
+ INTERFACERFCHANNELVALUE__6G_183_6865_80 InterfaceRfChannelValue = "6g-183-6865-80"
+ INTERFACERFCHANNELVALUE__6G_185_6875_20 InterfaceRfChannelValue = "6g-185-6875-20"
+ INTERFACERFCHANNELVALUE__6G_187_6885_40 InterfaceRfChannelValue = "6g-187-6885-40"
+ INTERFACERFCHANNELVALUE__6G_189_6895_20 InterfaceRfChannelValue = "6g-189-6895-20"
+ INTERFACERFCHANNELVALUE__6G_193_6915_20 InterfaceRfChannelValue = "6g-193-6915-20"
+ INTERFACERFCHANNELVALUE__6G_195_6925_40 InterfaceRfChannelValue = "6g-195-6925-40"
+ INTERFACERFCHANNELVALUE__6G_197_6935_20 InterfaceRfChannelValue = "6g-197-6935-20"
+ INTERFACERFCHANNELVALUE__6G_199_6945_80 InterfaceRfChannelValue = "6g-199-6945-80"
+ INTERFACERFCHANNELVALUE__6G_201_6955_20 InterfaceRfChannelValue = "6g-201-6955-20"
+ INTERFACERFCHANNELVALUE__6G_203_6965_40 InterfaceRfChannelValue = "6g-203-6965-40"
+ INTERFACERFCHANNELVALUE__6G_205_6975_20 InterfaceRfChannelValue = "6g-205-6975-20"
+ INTERFACERFCHANNELVALUE__6G_207_6985_160 InterfaceRfChannelValue = "6g-207-6985-160"
+ INTERFACERFCHANNELVALUE__6G_209_6995_20 InterfaceRfChannelValue = "6g-209-6995-20"
+ INTERFACERFCHANNELVALUE__6G_211_7005_40 InterfaceRfChannelValue = "6g-211-7005-40"
+ INTERFACERFCHANNELVALUE__6G_213_7015_20 InterfaceRfChannelValue = "6g-213-7015-20"
+ INTERFACERFCHANNELVALUE__6G_215_7025_80 InterfaceRfChannelValue = "6g-215-7025-80"
+ INTERFACERFCHANNELVALUE__6G_217_7035_20 InterfaceRfChannelValue = "6g-217-7035-20"
+ INTERFACERFCHANNELVALUE__6G_219_7045_40 InterfaceRfChannelValue = "6g-219-7045-40"
+ INTERFACERFCHANNELVALUE__6G_221_7055_20 InterfaceRfChannelValue = "6g-221-7055-20"
+ INTERFACERFCHANNELVALUE__6G_225_7075_20 InterfaceRfChannelValue = "6g-225-7075-20"
+ INTERFACERFCHANNELVALUE__6G_227_7085_40 InterfaceRfChannelValue = "6g-227-7085-40"
+ INTERFACERFCHANNELVALUE__6G_229_7095_20 InterfaceRfChannelValue = "6g-229-7095-20"
+ INTERFACERFCHANNELVALUE__6G_233_7115_20 InterfaceRfChannelValue = "6g-233-7115-20"
+ INTERFACERFCHANNELVALUE__60G_1_58320_2160 InterfaceRfChannelValue = "60g-1-58320-2160"
+ INTERFACERFCHANNELVALUE__60G_2_60480_2160 InterfaceRfChannelValue = "60g-2-60480-2160"
+ INTERFACERFCHANNELVALUE__60G_3_62640_2160 InterfaceRfChannelValue = "60g-3-62640-2160"
+ INTERFACERFCHANNELVALUE__60G_4_64800_2160 InterfaceRfChannelValue = "60g-4-64800-2160"
+ INTERFACERFCHANNELVALUE__60G_5_66960_2160 InterfaceRfChannelValue = "60g-5-66960-2160"
+ INTERFACERFCHANNELVALUE__60G_6_69120_2160 InterfaceRfChannelValue = "60g-6-69120-2160"
+ INTERFACERFCHANNELVALUE__60G_9_59400_4320 InterfaceRfChannelValue = "60g-9-59400-4320"
+ INTERFACERFCHANNELVALUE__60G_10_61560_4320 InterfaceRfChannelValue = "60g-10-61560-4320"
+ INTERFACERFCHANNELVALUE__60G_11_63720_4320 InterfaceRfChannelValue = "60g-11-63720-4320"
+ INTERFACERFCHANNELVALUE__60G_12_65880_4320 InterfaceRfChannelValue = "60g-12-65880-4320"
+ INTERFACERFCHANNELVALUE__60G_13_68040_4320 InterfaceRfChannelValue = "60g-13-68040-4320"
+ INTERFACERFCHANNELVALUE__60G_17_60480_6480 InterfaceRfChannelValue = "60g-17-60480-6480"
+ INTERFACERFCHANNELVALUE__60G_18_62640_6480 InterfaceRfChannelValue = "60g-18-62640-6480"
+ INTERFACERFCHANNELVALUE__60G_19_64800_6480 InterfaceRfChannelValue = "60g-19-64800-6480"
+ INTERFACERFCHANNELVALUE__60G_20_66960_6480 InterfaceRfChannelValue = "60g-20-66960-6480"
+ INTERFACERFCHANNELVALUE__60G_25_61560_6480 InterfaceRfChannelValue = "60g-25-61560-6480"
+ INTERFACERFCHANNELVALUE__60G_26_63720_6480 InterfaceRfChannelValue = "60g-26-63720-6480"
+ INTERFACERFCHANNELVALUE__60G_27_65880_6480 InterfaceRfChannelValue = "60g-27-65880-6480"
+ INTERFACERFCHANNELVALUE_EMPTY InterfaceRfChannelValue = ""
+)
+
+// All allowed values of InterfaceRfChannelValue enum
+var AllowedInterfaceRfChannelValueEnumValues = []InterfaceRfChannelValue{
+ "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",
+ "",
+}
+
+func (v *InterfaceRfChannelValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceRfChannelValue(value)
+ for _, existing := range AllowedInterfaceRfChannelValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceRfChannelValue", value)
+}
+
+// NewInterfaceRfChannelValueFromValue returns a pointer to a valid InterfaceRfChannelValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceRfChannelValueFromValue(v string) (*InterfaceRfChannelValue, error) {
+ ev := InterfaceRfChannelValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceRfChannelValue: valid values are %v", v, AllowedInterfaceRfChannelValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceRfChannelValue) IsValid() bool {
+ for _, existing := range AllowedInterfaceRfChannelValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_rf_channel_value value
+func (v InterfaceRfChannelValue) Ptr() *InterfaceRfChannelValue {
+ return &v
+}
+
+type NullableInterfaceRfChannelValue struct {
+ value *InterfaceRfChannelValue
+ isSet bool
+}
+
+func (v NullableInterfaceRfChannelValue) Get() *InterfaceRfChannelValue {
+ return v.value
+}
+
+func (v *NullableInterfaceRfChannelValue) Set(val *InterfaceRfChannelValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceRfChannelValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceRfChannelValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceRfChannelValue(val *InterfaceRfChannelValue) *NullableInterfaceRfChannelValue {
+ return &NullableInterfaceRfChannelValue{value: val, isSet: true}
+}
+
+func (v NullableInterfaceRfChannelValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceRfChannelValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_rf_role.go b/model_interface_rf_role.go
index 23a46eb6e6..7e13bcfcf7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &InterfaceRfRole{}
// InterfaceRfRole struct for InterfaceRfRole
type InterfaceRfRole struct {
- // * `ap` - Access point * `station` - Station
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *InterfaceRfRoleValue `json:"value,omitempty"`
+ Label *InterfaceRfRoleLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewInterfaceRfRoleWithDefaults() *InterfaceRfRole {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *InterfaceRfRole) GetValue() string {
+func (o *InterfaceRfRole) GetValue() InterfaceRfRoleValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret InterfaceRfRoleValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *InterfaceRfRole) GetValue() string {
// 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 *InterfaceRfRole) GetValueOk() (*string, bool) {
+func (o *InterfaceRfRole) GetValueOk() (*InterfaceRfRoleValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *InterfaceRfRole) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *InterfaceRfRole) SetValue(v string) {
+// SetValue gets a reference to the given InterfaceRfRoleValue and assigns it to the Value field.
+func (o *InterfaceRfRole) SetValue(v InterfaceRfRoleValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *InterfaceRfRole) GetLabel() string {
+func (o *InterfaceRfRole) GetLabel() InterfaceRfRoleLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret InterfaceRfRoleLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *InterfaceRfRole) 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 *InterfaceRfRole) GetLabelOk() (*string, bool) {
+func (o *InterfaceRfRole) GetLabelOk() (*InterfaceRfRoleLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *InterfaceRfRole) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *InterfaceRfRole) SetLabel(v string) {
+// SetLabel gets a reference to the given InterfaceRfRoleLabel and assigns it to the Label field.
+func (o *InterfaceRfRole) SetLabel(v InterfaceRfRoleLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o InterfaceRfRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InterfaceRfRole) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InterfaceRfRole) UnmarshalJSON(data []byte) (err error) {
varInterfaceRfRole := _InterfaceRfRole{}
- err = json.Unmarshal(bytes, &varInterfaceRfRole)
+ err = json.Unmarshal(data, &varInterfaceRfRole)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *InterfaceRfRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_interface_rf_role_label.go b/model_interface_rf_role_label.go
new file mode 100644
index 0000000000..f14314fffa
--- /dev/null
+++ b/model_interface_rf_role_label.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfaceRfRoleLabel the model 'InterfaceRfRoleLabel'
+type InterfaceRfRoleLabel string
+
+// List of Interface_rf_role_label
+const (
+ INTERFACERFROLELABEL_ACCESS_POINT InterfaceRfRoleLabel = "Access point"
+ INTERFACERFROLELABEL_STATION InterfaceRfRoleLabel = "Station"
+)
+
+// All allowed values of InterfaceRfRoleLabel enum
+var AllowedInterfaceRfRoleLabelEnumValues = []InterfaceRfRoleLabel{
+ "Access point",
+ "Station",
+}
+
+func (v *InterfaceRfRoleLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceRfRoleLabel(value)
+ for _, existing := range AllowedInterfaceRfRoleLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceRfRoleLabel", value)
+}
+
+// NewInterfaceRfRoleLabelFromValue returns a pointer to a valid InterfaceRfRoleLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceRfRoleLabelFromValue(v string) (*InterfaceRfRoleLabel, error) {
+ ev := InterfaceRfRoleLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceRfRoleLabel: valid values are %v", v, AllowedInterfaceRfRoleLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceRfRoleLabel) IsValid() bool {
+ for _, existing := range AllowedInterfaceRfRoleLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_rf_role_label value
+func (v InterfaceRfRoleLabel) Ptr() *InterfaceRfRoleLabel {
+ return &v
+}
+
+type NullableInterfaceRfRoleLabel struct {
+ value *InterfaceRfRoleLabel
+ isSet bool
+}
+
+func (v NullableInterfaceRfRoleLabel) Get() *InterfaceRfRoleLabel {
+ return v.value
+}
+
+func (v *NullableInterfaceRfRoleLabel) Set(val *InterfaceRfRoleLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceRfRoleLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceRfRoleLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceRfRoleLabel(val *InterfaceRfRoleLabel) *NullableInterfaceRfRoleLabel {
+ return &NullableInterfaceRfRoleLabel{value: val, isSet: true}
+}
+
+func (v NullableInterfaceRfRoleLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceRfRoleLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_rf_role_value.go b/model_interface_rf_role_value.go
new file mode 100644
index 0000000000..2b8bc724c2
--- /dev/null
+++ b/model_interface_rf_role_value.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfaceRfRoleValue * `ap` - Access point * `station` - Station
+type InterfaceRfRoleValue string
+
+// List of Interface_rf_role_value
+const (
+ INTERFACERFROLEVALUE_AP InterfaceRfRoleValue = "ap"
+ INTERFACERFROLEVALUE_STATION InterfaceRfRoleValue = "station"
+ INTERFACERFROLEVALUE_EMPTY InterfaceRfRoleValue = ""
+)
+
+// All allowed values of InterfaceRfRoleValue enum
+var AllowedInterfaceRfRoleValueEnumValues = []InterfaceRfRoleValue{
+ "ap",
+ "station",
+ "",
+}
+
+func (v *InterfaceRfRoleValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceRfRoleValue(value)
+ for _, existing := range AllowedInterfaceRfRoleValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceRfRoleValue", value)
+}
+
+// NewInterfaceRfRoleValueFromValue returns a pointer to a valid InterfaceRfRoleValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceRfRoleValueFromValue(v string) (*InterfaceRfRoleValue, error) {
+ ev := InterfaceRfRoleValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceRfRoleValue: valid values are %v", v, AllowedInterfaceRfRoleValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceRfRoleValue) IsValid() bool {
+ for _, existing := range AllowedInterfaceRfRoleValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_rf_role_value value
+func (v InterfaceRfRoleValue) Ptr() *InterfaceRfRoleValue {
+ return &v
+}
+
+type NullableInterfaceRfRoleValue struct {
+ value *InterfaceRfRoleValue
+ isSet bool
+}
+
+func (v NullableInterfaceRfRoleValue) Get() *InterfaceRfRoleValue {
+ return v.value
+}
+
+func (v *NullableInterfaceRfRoleValue) Set(val *InterfaceRfRoleValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceRfRoleValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceRfRoleValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceRfRoleValue(val *InterfaceRfRoleValue) *NullableInterfaceRfRoleValue {
+ return &NullableInterfaceRfRoleValue{value: val, isSet: true}
+}
+
+func (v NullableInterfaceRfRoleValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceRfRoleValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_template.go b/model_interface_template.go
index b0c83da6ca..cb89d9ef1c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -681,10 +682,37 @@ func (o InterfaceTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InterfaceTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InterfaceTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varInterfaceTemplate := _InterfaceTemplate{}
- err = json.Unmarshal(bytes, &varInterfaceTemplate)
+ err = json.Unmarshal(data, &varInterfaceTemplate)
if err != nil {
return err
@@ -694,7 +722,7 @@ func (o *InterfaceTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_interface_template_poe_mode.go b/model_interface_template_poe_mode.go
index 254bd8a3c7..b76f1d7475 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &InterfaceTemplatePoeMode{}
// InterfaceTemplatePoeMode struct for InterfaceTemplatePoeMode
type InterfaceTemplatePoeMode struct {
- // * `pd` - PD * `pse` - PSE
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *InterfacePoeModeValue `json:"value,omitempty"`
+ Label *InterfacePoeModeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewInterfaceTemplatePoeModeWithDefaults() *InterfaceTemplatePoeMode {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *InterfaceTemplatePoeMode) GetValue() string {
+func (o *InterfaceTemplatePoeMode) GetValue() InterfacePoeModeValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret InterfacePoeModeValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *InterfaceTemplatePoeMode) GetValue() string {
// 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 *InterfaceTemplatePoeMode) GetValueOk() (*string, bool) {
+func (o *InterfaceTemplatePoeMode) GetValueOk() (*InterfacePoeModeValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *InterfaceTemplatePoeMode) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *InterfaceTemplatePoeMode) SetValue(v string) {
+// SetValue gets a reference to the given InterfacePoeModeValue and assigns it to the Value field.
+func (o *InterfaceTemplatePoeMode) SetValue(v InterfacePoeModeValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *InterfaceTemplatePoeMode) GetLabel() string {
+func (o *InterfaceTemplatePoeMode) GetLabel() InterfacePoeModeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret InterfacePoeModeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *InterfaceTemplatePoeMode) 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 *InterfaceTemplatePoeMode) GetLabelOk() (*string, bool) {
+func (o *InterfaceTemplatePoeMode) GetLabelOk() (*InterfacePoeModeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *InterfaceTemplatePoeMode) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *InterfaceTemplatePoeMode) SetLabel(v string) {
+// SetLabel gets a reference to the given InterfacePoeModeLabel and assigns it to the Label field.
+func (o *InterfaceTemplatePoeMode) SetLabel(v InterfacePoeModeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o InterfaceTemplatePoeMode) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InterfaceTemplatePoeMode) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InterfaceTemplatePoeMode) UnmarshalJSON(data []byte) (err error) {
varInterfaceTemplatePoeMode := _InterfaceTemplatePoeMode{}
- err = json.Unmarshal(bytes, &varInterfaceTemplatePoeMode)
+ err = json.Unmarshal(data, &varInterfaceTemplatePoeMode)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *InterfaceTemplatePoeMode) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_interface_template_poe_type.go b/model_interface_template_poe_type.go
index 36ced1d24b..afd67f5ab6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &InterfaceTemplatePoeType{}
// InterfaceTemplatePoeType struct for InterfaceTemplatePoeType
type InterfaceTemplatePoeType struct {
- // * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair)
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *InterfacePoeTypeValue `json:"value,omitempty"`
+ Label *InterfacePoeTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewInterfaceTemplatePoeTypeWithDefaults() *InterfaceTemplatePoeType {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *InterfaceTemplatePoeType) GetValue() string {
+func (o *InterfaceTemplatePoeType) GetValue() InterfacePoeTypeValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret InterfacePoeTypeValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *InterfaceTemplatePoeType) GetValue() string {
// 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 *InterfaceTemplatePoeType) GetValueOk() (*string, bool) {
+func (o *InterfaceTemplatePoeType) GetValueOk() (*InterfacePoeTypeValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *InterfaceTemplatePoeType) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *InterfaceTemplatePoeType) SetValue(v string) {
+// SetValue gets a reference to the given InterfacePoeTypeValue and assigns it to the Value field.
+func (o *InterfaceTemplatePoeType) SetValue(v InterfacePoeTypeValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *InterfaceTemplatePoeType) GetLabel() string {
+func (o *InterfaceTemplatePoeType) GetLabel() InterfacePoeTypeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret InterfacePoeTypeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *InterfaceTemplatePoeType) 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 *InterfaceTemplatePoeType) GetLabelOk() (*string, bool) {
+func (o *InterfaceTemplatePoeType) GetLabelOk() (*InterfacePoeTypeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *InterfaceTemplatePoeType) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *InterfaceTemplatePoeType) SetLabel(v string) {
+// SetLabel gets a reference to the given InterfacePoeTypeLabel and assigns it to the Label field.
+func (o *InterfaceTemplatePoeType) SetLabel(v InterfacePoeTypeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o InterfaceTemplatePoeType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InterfaceTemplatePoeType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InterfaceTemplatePoeType) UnmarshalJSON(data []byte) (err error) {
varInterfaceTemplatePoeType := _InterfaceTemplatePoeType{}
- err = json.Unmarshal(bytes, &varInterfaceTemplatePoeType)
+ err = json.Unmarshal(data, &varInterfaceTemplatePoeType)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *InterfaceTemplatePoeType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_interface_template_request.go b/model_interface_template_request.go
index 595273978c..fbb6453152 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 InterfaceTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,19 +25,15 @@ type InterfaceTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other
- Type string `json:"type"`
- Enabled *bool `json:"enabled,omitempty"`
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- Bridge NullableNestedInterfaceTemplateRequest `json:"bridge,omitempty"`
- // * `pd` - PD * `pse` - PSE
- PoeMode NullableString `json:"poe_mode,omitempty"`
- // * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair)
- PoeType NullableString `json:"poe_type,omitempty"`
- // * `ap` - Access point * `station` - Station
- RfRole NullableString `json:"rf_role,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type InterfaceTypeValue `json:"type"`
+ Enabled *bool `json:"enabled,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Bridge NullableNestedInterfaceTemplateRequest `json:"bridge,omitempty"`
+ PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"`
+ PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"`
+ RfRole NullableInterfaceTemplateRequestRfRole `json:"rf_role,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -46,7 +43,7 @@ type _InterfaceTemplateRequest InterfaceTemplateRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewInterfaceTemplateRequest(name string, type_ string) *InterfaceTemplateRequest {
+func NewInterfaceTemplateRequest(name string, type_ InterfaceTypeValue) *InterfaceTemplateRequest {
this := InterfaceTemplateRequest{}
this.Name = name
this.Type = type_
@@ -204,9 +201,9 @@ func (o *InterfaceTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value
-func (o *InterfaceTemplateRequest) GetType() string {
+func (o *InterfaceTemplateRequest) GetType() InterfaceTypeValue {
if o == nil {
- var ret string
+ var ret InterfaceTypeValue
return ret
}
@@ -215,7 +212,7 @@ func (o *InterfaceTemplateRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *InterfaceTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *InterfaceTemplateRequest) GetTypeOk() (*InterfaceTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -223,7 +220,7 @@ func (o *InterfaceTemplateRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *InterfaceTemplateRequest) SetType(v string) {
+func (o *InterfaceTemplateRequest) SetType(v InterfaceTypeValue) {
o.Type = v
}
@@ -367,9 +364,9 @@ func (o *InterfaceTemplateRequest) UnsetBridge() {
}
// GetPoeMode returns the PoeMode field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InterfaceTemplateRequest) GetPoeMode() string {
+func (o *InterfaceTemplateRequest) GetPoeMode() InterfaceTemplateRequestPoeMode {
if o == nil || IsNil(o.PoeMode.Get()) {
- var ret string
+ var ret InterfaceTemplateRequestPoeMode
return ret
}
return *o.PoeMode.Get()
@@ -378,7 +375,7 @@ func (o *InterfaceTemplateRequest) GetPoeMode() string {
// GetPoeModeOk returns a tuple with the PoeMode field value if set, nil otherwise
// and a 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) GetPoeModeOk() (*string, bool) {
+func (o *InterfaceTemplateRequest) GetPoeModeOk() (*InterfaceTemplateRequestPoeMode, bool) {
if o == nil {
return nil, false
}
@@ -394,8 +391,8 @@ func (o *InterfaceTemplateRequest) HasPoeMode() bool {
return false
}
-// SetPoeMode gets a reference to the given NullableString and assigns it to the PoeMode field.
-func (o *InterfaceTemplateRequest) SetPoeMode(v string) {
+// SetPoeMode gets a reference to the given NullableInterfaceTemplateRequestPoeMode and assigns it to the PoeMode field.
+func (o *InterfaceTemplateRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode) {
o.PoeMode.Set(&v)
}
@@ -410,9 +407,9 @@ func (o *InterfaceTemplateRequest) UnsetPoeMode() {
}
// GetPoeType returns the PoeType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InterfaceTemplateRequest) GetPoeType() string {
+func (o *InterfaceTemplateRequest) GetPoeType() InterfaceTemplateRequestPoeType {
if o == nil || IsNil(o.PoeType.Get()) {
- var ret string
+ var ret InterfaceTemplateRequestPoeType
return ret
}
return *o.PoeType.Get()
@@ -421,7 +418,7 @@ func (o *InterfaceTemplateRequest) GetPoeType() string {
// GetPoeTypeOk returns a tuple with the PoeType field value if set, nil otherwise
// and a 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) GetPoeTypeOk() (*string, bool) {
+func (o *InterfaceTemplateRequest) GetPoeTypeOk() (*InterfaceTemplateRequestPoeType, bool) {
if o == nil {
return nil, false
}
@@ -437,8 +434,8 @@ func (o *InterfaceTemplateRequest) HasPoeType() bool {
return false
}
-// SetPoeType gets a reference to the given NullableString and assigns it to the PoeType field.
-func (o *InterfaceTemplateRequest) SetPoeType(v string) {
+// SetPoeType gets a reference to the given NullableInterfaceTemplateRequestPoeType and assigns it to the PoeType field.
+func (o *InterfaceTemplateRequest) SetPoeType(v InterfaceTemplateRequestPoeType) {
o.PoeType.Set(&v)
}
@@ -453,9 +450,9 @@ func (o *InterfaceTemplateRequest) UnsetPoeType() {
}
// GetRfRole returns the RfRole field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InterfaceTemplateRequest) GetRfRole() string {
+func (o *InterfaceTemplateRequest) GetRfRole() InterfaceTemplateRequestRfRole {
if o == nil || IsNil(o.RfRole.Get()) {
- var ret string
+ var ret InterfaceTemplateRequestRfRole
return ret
}
return *o.RfRole.Get()
@@ -464,7 +461,7 @@ func (o *InterfaceTemplateRequest) GetRfRole() string {
// GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *InterfaceTemplateRequest) GetRfRoleOk() (*string, bool) {
+func (o *InterfaceTemplateRequest) GetRfRoleOk() (*InterfaceTemplateRequestRfRole, bool) {
if o == nil {
return nil, false
}
@@ -480,8 +477,8 @@ func (o *InterfaceTemplateRequest) HasRfRole() bool {
return false
}
-// SetRfRole gets a reference to the given NullableString and assigns it to the RfRole field.
-func (o *InterfaceTemplateRequest) SetRfRole(v string) {
+// SetRfRole gets a reference to the given NullableInterfaceTemplateRequestRfRole and assigns it to the RfRole field.
+func (o *InterfaceTemplateRequest) SetRfRole(v InterfaceTemplateRequestRfRole) {
o.RfRole.Set(&v)
}
@@ -545,10 +542,32 @@ func (o InterfaceTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InterfaceTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "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)
+ }
+ }
+
varInterfaceTemplateRequest := _InterfaceTemplateRequest{}
- err = json.Unmarshal(bytes, &varInterfaceTemplateRequest)
+ err = json.Unmarshal(data, &varInterfaceTemplateRequest)
if err != nil {
return err
@@ -558,7 +577,7 @@ func (o *InterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_interface_template_request_poe_mode.go b/model_interface_template_request_poe_mode.go
new file mode 100644
index 0000000000..b4d14f74c1
--- /dev/null
+++ b/model_interface_template_request_poe_mode.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfaceTemplateRequestPoeMode * `pd` - PD * `pse` - PSE
+type InterfaceTemplateRequestPoeMode string
+
+// List of InterfaceTemplateRequest_poe_mode
+const (
+ INTERFACETEMPLATEREQUESTPOEMODE_PD InterfaceTemplateRequestPoeMode = "pd"
+ INTERFACETEMPLATEREQUESTPOEMODE_PSE InterfaceTemplateRequestPoeMode = "pse"
+ INTERFACETEMPLATEREQUESTPOEMODE_EMPTY InterfaceTemplateRequestPoeMode = ""
+)
+
+// All allowed values of InterfaceTemplateRequestPoeMode enum
+var AllowedInterfaceTemplateRequestPoeModeEnumValues = []InterfaceTemplateRequestPoeMode{
+ "pd",
+ "pse",
+ "",
+}
+
+func (v *InterfaceTemplateRequestPoeMode) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceTemplateRequestPoeMode(value)
+ for _, existing := range AllowedInterfaceTemplateRequestPoeModeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceTemplateRequestPoeMode", value)
+}
+
+// NewInterfaceTemplateRequestPoeModeFromValue returns a pointer to a valid InterfaceTemplateRequestPoeMode
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceTemplateRequestPoeModeFromValue(v string) (*InterfaceTemplateRequestPoeMode, error) {
+ ev := InterfaceTemplateRequestPoeMode(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceTemplateRequestPoeMode: valid values are %v", v, AllowedInterfaceTemplateRequestPoeModeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceTemplateRequestPoeMode) IsValid() bool {
+ for _, existing := range AllowedInterfaceTemplateRequestPoeModeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to InterfaceTemplateRequest_poe_mode value
+func (v InterfaceTemplateRequestPoeMode) Ptr() *InterfaceTemplateRequestPoeMode {
+ return &v
+}
+
+type NullableInterfaceTemplateRequestPoeMode struct {
+ value *InterfaceTemplateRequestPoeMode
+ isSet bool
+}
+
+func (v NullableInterfaceTemplateRequestPoeMode) Get() *InterfaceTemplateRequestPoeMode {
+ return v.value
+}
+
+func (v *NullableInterfaceTemplateRequestPoeMode) Set(val *InterfaceTemplateRequestPoeMode) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceTemplateRequestPoeMode) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceTemplateRequestPoeMode) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceTemplateRequestPoeMode(val *InterfaceTemplateRequestPoeMode) *NullableInterfaceTemplateRequestPoeMode {
+ return &NullableInterfaceTemplateRequestPoeMode{value: val, isSet: true}
+}
+
+func (v NullableInterfaceTemplateRequestPoeMode) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceTemplateRequestPoeMode) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_template_request_poe_type.go b/model_interface_template_request_poe_type.go
new file mode 100644
index 0000000000..14a1205c03
--- /dev/null
+++ b/model_interface_template_request_poe_type.go
@@ -0,0 +1,124 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfaceTemplateRequestPoeType * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair)
+type InterfaceTemplateRequestPoeType string
+
+// List of InterfaceTemplateRequest_poe_type
+const (
+ INTERFACETEMPLATEREQUESTPOETYPE_TYPE1_IEEE802_3AF InterfaceTemplateRequestPoeType = "type1-ieee802.3af"
+ INTERFACETEMPLATEREQUESTPOETYPE_TYPE2_IEEE802_3AT InterfaceTemplateRequestPoeType = "type2-ieee802.3at"
+ INTERFACETEMPLATEREQUESTPOETYPE_TYPE3_IEEE802_3BT InterfaceTemplateRequestPoeType = "type3-ieee802.3bt"
+ INTERFACETEMPLATEREQUESTPOETYPE_TYPE4_IEEE802_3BT InterfaceTemplateRequestPoeType = "type4-ieee802.3bt"
+ INTERFACETEMPLATEREQUESTPOETYPE_PASSIVE_24V_2PAIR InterfaceTemplateRequestPoeType = "passive-24v-2pair"
+ INTERFACETEMPLATEREQUESTPOETYPE_PASSIVE_24V_4PAIR InterfaceTemplateRequestPoeType = "passive-24v-4pair"
+ INTERFACETEMPLATEREQUESTPOETYPE_PASSIVE_48V_2PAIR InterfaceTemplateRequestPoeType = "passive-48v-2pair"
+ INTERFACETEMPLATEREQUESTPOETYPE_PASSIVE_48V_4PAIR InterfaceTemplateRequestPoeType = "passive-48v-4pair"
+ INTERFACETEMPLATEREQUESTPOETYPE_EMPTY InterfaceTemplateRequestPoeType = ""
+)
+
+// All allowed values of InterfaceTemplateRequestPoeType enum
+var AllowedInterfaceTemplateRequestPoeTypeEnumValues = []InterfaceTemplateRequestPoeType{
+ "type1-ieee802.3af",
+ "type2-ieee802.3at",
+ "type3-ieee802.3bt",
+ "type4-ieee802.3bt",
+ "passive-24v-2pair",
+ "passive-24v-4pair",
+ "passive-48v-2pair",
+ "passive-48v-4pair",
+ "",
+}
+
+func (v *InterfaceTemplateRequestPoeType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceTemplateRequestPoeType(value)
+ for _, existing := range AllowedInterfaceTemplateRequestPoeTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceTemplateRequestPoeType", value)
+}
+
+// NewInterfaceTemplateRequestPoeTypeFromValue returns a pointer to a valid InterfaceTemplateRequestPoeType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceTemplateRequestPoeTypeFromValue(v string) (*InterfaceTemplateRequestPoeType, error) {
+ ev := InterfaceTemplateRequestPoeType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceTemplateRequestPoeType: valid values are %v", v, AllowedInterfaceTemplateRequestPoeTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceTemplateRequestPoeType) IsValid() bool {
+ for _, existing := range AllowedInterfaceTemplateRequestPoeTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to InterfaceTemplateRequest_poe_type value
+func (v InterfaceTemplateRequestPoeType) Ptr() *InterfaceTemplateRequestPoeType {
+ return &v
+}
+
+type NullableInterfaceTemplateRequestPoeType struct {
+ value *InterfaceTemplateRequestPoeType
+ isSet bool
+}
+
+func (v NullableInterfaceTemplateRequestPoeType) Get() *InterfaceTemplateRequestPoeType {
+ return v.value
+}
+
+func (v *NullableInterfaceTemplateRequestPoeType) Set(val *InterfaceTemplateRequestPoeType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceTemplateRequestPoeType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceTemplateRequestPoeType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceTemplateRequestPoeType(val *InterfaceTemplateRequestPoeType) *NullableInterfaceTemplateRequestPoeType {
+ return &NullableInterfaceTemplateRequestPoeType{value: val, isSet: true}
+}
+
+func (v NullableInterfaceTemplateRequestPoeType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceTemplateRequestPoeType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_template_request_rf_role.go b/model_interface_template_request_rf_role.go
new file mode 100644
index 0000000000..6b2f9e6ce9
--- /dev/null
+++ b/model_interface_template_request_rf_role.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfaceTemplateRequestRfRole * `ap` - Access point * `station` - Station
+type InterfaceTemplateRequestRfRole string
+
+// List of InterfaceTemplateRequest_rf_role
+const (
+ INTERFACETEMPLATEREQUESTRFROLE_AP InterfaceTemplateRequestRfRole = "ap"
+ INTERFACETEMPLATEREQUESTRFROLE_STATION InterfaceTemplateRequestRfRole = "station"
+ INTERFACETEMPLATEREQUESTRFROLE_EMPTY InterfaceTemplateRequestRfRole = ""
+)
+
+// All allowed values of InterfaceTemplateRequestRfRole enum
+var AllowedInterfaceTemplateRequestRfRoleEnumValues = []InterfaceTemplateRequestRfRole{
+ "ap",
+ "station",
+ "",
+}
+
+func (v *InterfaceTemplateRequestRfRole) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceTemplateRequestRfRole(value)
+ for _, existing := range AllowedInterfaceTemplateRequestRfRoleEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceTemplateRequestRfRole", value)
+}
+
+// NewInterfaceTemplateRequestRfRoleFromValue returns a pointer to a valid InterfaceTemplateRequestRfRole
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceTemplateRequestRfRoleFromValue(v string) (*InterfaceTemplateRequestRfRole, error) {
+ ev := InterfaceTemplateRequestRfRole(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceTemplateRequestRfRole: valid values are %v", v, AllowedInterfaceTemplateRequestRfRoleEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceTemplateRequestRfRole) IsValid() bool {
+ for _, existing := range AllowedInterfaceTemplateRequestRfRoleEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to InterfaceTemplateRequest_rf_role value
+func (v InterfaceTemplateRequestRfRole) Ptr() *InterfaceTemplateRequestRfRole {
+ return &v
+}
+
+type NullableInterfaceTemplateRequestRfRole struct {
+ value *InterfaceTemplateRequestRfRole
+ isSet bool
+}
+
+func (v NullableInterfaceTemplateRequestRfRole) Get() *InterfaceTemplateRequestRfRole {
+ return v.value
+}
+
+func (v *NullableInterfaceTemplateRequestRfRole) Set(val *InterfaceTemplateRequestRfRole) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceTemplateRequestRfRole) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceTemplateRequestRfRole) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceTemplateRequestRfRole(val *InterfaceTemplateRequestRfRole) *NullableInterfaceTemplateRequestRfRole {
+ return &NullableInterfaceTemplateRequestRfRole{value: val, isSet: true}
+}
+
+func (v NullableInterfaceTemplateRequestRfRole) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceTemplateRequestRfRole) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_template_rf_role.go b/model_interface_template_rf_role.go
index 9a3e119e51..cb8d9dd32e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &InterfaceTemplateRfRole{}
// InterfaceTemplateRfRole struct for InterfaceTemplateRfRole
type InterfaceTemplateRfRole struct {
- // * `ap` - Access point * `station` - Station
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *InterfaceRfRoleValue `json:"value,omitempty"`
+ Label *InterfaceRfRoleLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewInterfaceTemplateRfRoleWithDefaults() *InterfaceTemplateRfRole {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *InterfaceTemplateRfRole) GetValue() string {
+func (o *InterfaceTemplateRfRole) GetValue() InterfaceRfRoleValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret InterfaceRfRoleValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *InterfaceTemplateRfRole) GetValue() string {
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *InterfaceTemplateRfRole) GetValueOk() (*string, bool) {
+func (o *InterfaceTemplateRfRole) GetValueOk() (*InterfaceRfRoleValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *InterfaceTemplateRfRole) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *InterfaceTemplateRfRole) SetValue(v string) {
+// SetValue gets a reference to the given InterfaceRfRoleValue and assigns it to the Value field.
+func (o *InterfaceTemplateRfRole) SetValue(v InterfaceRfRoleValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *InterfaceTemplateRfRole) GetLabel() string {
+func (o *InterfaceTemplateRfRole) GetLabel() InterfaceRfRoleLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret InterfaceRfRoleLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *InterfaceTemplateRfRole) 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 *InterfaceTemplateRfRole) GetLabelOk() (*string, bool) {
+func (o *InterfaceTemplateRfRole) GetLabelOk() (*InterfaceRfRoleLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *InterfaceTemplateRfRole) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *InterfaceTemplateRfRole) SetLabel(v string) {
+// SetLabel gets a reference to the given InterfaceRfRoleLabel and assigns it to the Label field.
+func (o *InterfaceTemplateRfRole) SetLabel(v InterfaceRfRoleLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o InterfaceTemplateRfRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InterfaceTemplateRfRole) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InterfaceTemplateRfRole) UnmarshalJSON(data []byte) (err error) {
varInterfaceTemplateRfRole := _InterfaceTemplateRfRole{}
- err = json.Unmarshal(bytes, &varInterfaceTemplateRfRole)
+ err = json.Unmarshal(data, &varInterfaceTemplateRfRole)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *InterfaceTemplateRfRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_interface_type.go b/model_interface_type.go
index 99ccf9da04..d7f02dc074 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &InterfaceType{}
// InterfaceType struct for InterfaceType
type InterfaceType struct {
- // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *InterfaceTypeValue `json:"value,omitempty"`
+ Label *InterfaceTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewInterfaceTypeWithDefaults() *InterfaceType {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *InterfaceType) GetValue() string {
+func (o *InterfaceType) GetValue() InterfaceTypeValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret InterfaceTypeValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *InterfaceType) GetValue() string {
// 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 *InterfaceType) GetValueOk() (*string, bool) {
+func (o *InterfaceType) GetValueOk() (*InterfaceTypeValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *InterfaceType) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *InterfaceType) SetValue(v string) {
+// SetValue gets a reference to the given InterfaceTypeValue and assigns it to the Value field.
+func (o *InterfaceType) SetValue(v InterfaceTypeValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *InterfaceType) GetLabel() string {
+func (o *InterfaceType) GetLabel() InterfaceTypeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret InterfaceTypeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *InterfaceType) 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 *InterfaceType) GetLabelOk() (*string, bool) {
+func (o *InterfaceType) GetLabelOk() (*InterfaceTypeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *InterfaceType) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *InterfaceType) SetLabel(v string) {
+// SetLabel gets a reference to the given InterfaceTypeLabel and assigns it to the Label field.
+func (o *InterfaceType) SetLabel(v InterfaceTypeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o InterfaceType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InterfaceType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InterfaceType) UnmarshalJSON(data []byte) (err error) {
varInterfaceType := _InterfaceType{}
- err = json.Unmarshal(bytes, &varInterfaceType)
+ err = json.Unmarshal(data, &varInterfaceType)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *InterfaceType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_interface_type_label.go b/model_interface_type_label.go
new file mode 100644
index 0000000000..a1f765209b
--- /dev/null
+++ b/model_interface_type_label.go
@@ -0,0 +1,336 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InterfaceTypeLabel the model 'InterfaceTypeLabel'
+type InterfaceTypeLabel string
+
+// List of Interface_type_label
+const (
+ INTERFACETYPELABEL_VIRTUAL InterfaceTypeLabel = "Virtual"
+ INTERFACETYPELABEL_BRIDGE InterfaceTypeLabel = "Bridge"
+ INTERFACETYPELABEL_LINK_AGGREGATION_GROUP__LAG InterfaceTypeLabel = "Link Aggregation Group (LAG)"
+ INTERFACETYPELABEL__100_BASE_FX__10_100_ME_FIBER InterfaceTypeLabel = "100BASE-FX (10/100ME FIBER)"
+ INTERFACETYPELABEL__100_BASE_LFX__10_100_ME_FIBER InterfaceTypeLabel = "100BASE-LFX (10/100ME FIBER)"
+ INTERFACETYPELABEL__100_BASE_TX__10_100_ME InterfaceTypeLabel = "100BASE-TX (10/100ME)"
+ INTERFACETYPELABEL__100_BASE_T1__10_100_ME_SINGLE_PAIR InterfaceTypeLabel = "100BASE-T1 (10/100ME Single Pair)"
+ INTERFACETYPELABEL__1000_BASE_T__1_GE InterfaceTypeLabel = "1000BASE-T (1GE)"
+ INTERFACETYPELABEL__2_5_GBASE_T__2_5_GE InterfaceTypeLabel = "2.5GBASE-T (2.5GE)"
+ INTERFACETYPELABEL__5_GBASE_T__5_GE InterfaceTypeLabel = "5GBASE-T (5GE)"
+ INTERFACETYPELABEL__10_GBASE_T__10_GE InterfaceTypeLabel = "10GBASE-T (10GE)"
+ INTERFACETYPELABEL__10_GBASE_CX4__10_GE InterfaceTypeLabel = "10GBASE-CX4 (10GE)"
+ INTERFACETYPELABEL_GBIC__1_GE InterfaceTypeLabel = "GBIC (1GE)"
+ INTERFACETYPELABEL_SFP__1_GE InterfaceTypeLabel = "SFP (1GE)"
+ INTERFACETYPELABEL_SFP__10_GE InterfaceTypeLabel = "SFP+ (10GE)"
+ INTERFACETYPELABEL_XFP__10_GE InterfaceTypeLabel = "XFP (10GE)"
+ INTERFACETYPELABEL_XENPAK__10_GE InterfaceTypeLabel = "XENPAK (10GE)"
+ INTERFACETYPELABEL_X2__10_GE InterfaceTypeLabel = "X2 (10GE)"
+ INTERFACETYPELABEL_SFP28__25_GE InterfaceTypeLabel = "SFP28 (25GE)"
+ INTERFACETYPELABEL_SFP56__50_GE InterfaceTypeLabel = "SFP56 (50GE)"
+ INTERFACETYPELABEL_QSFP__40_GE InterfaceTypeLabel = "QSFP+ (40GE)"
+ INTERFACETYPELABEL_QSFP28__50_GE InterfaceTypeLabel = "QSFP28 (50GE)"
+ INTERFACETYPELABEL_CFP__100_GE InterfaceTypeLabel = "CFP (100GE)"
+ INTERFACETYPELABEL_CFP2__100_GE InterfaceTypeLabel = "CFP2 (100GE)"
+ INTERFACETYPELABEL_CFP2__200_GE InterfaceTypeLabel = "CFP2 (200GE)"
+ INTERFACETYPELABEL_CFP2__400_GE InterfaceTypeLabel = "CFP2 (400GE)"
+ INTERFACETYPELABEL_CFP4__100_GE InterfaceTypeLabel = "CFP4 (100GE)"
+ INTERFACETYPELABEL_CXP__100_GE InterfaceTypeLabel = "CXP (100GE)"
+ INTERFACETYPELABEL_CISCO_CPAK__100_GE InterfaceTypeLabel = "Cisco CPAK (100GE)"
+ INTERFACETYPELABEL_DSFP__100_GE InterfaceTypeLabel = "DSFP (100GE)"
+ INTERFACETYPELABEL_SFP_DD__100_GE InterfaceTypeLabel = "SFP-DD (100GE)"
+ INTERFACETYPELABEL_QSFP28__100_GE InterfaceTypeLabel = "QSFP28 (100GE)"
+ INTERFACETYPELABEL_QSFP_DD__100_GE InterfaceTypeLabel = "QSFP-DD (100GE)"
+ INTERFACETYPELABEL_QSFP56__200_GE InterfaceTypeLabel = "QSFP56 (200GE)"
+ INTERFACETYPELABEL_QSFP_DD__200_GE InterfaceTypeLabel = "QSFP-DD (200GE)"
+ INTERFACETYPELABEL_QSFP112__400_GE InterfaceTypeLabel = "QSFP112 (400GE)"
+ INTERFACETYPELABEL_QSFP_DD__400_GE InterfaceTypeLabel = "QSFP-DD (400GE)"
+ INTERFACETYPELABEL_OSFP__400_GE InterfaceTypeLabel = "OSFP (400GE)"
+ INTERFACETYPELABEL_OSFP_RHS__400_GE InterfaceTypeLabel = "OSFP-RHS (400GE)"
+ INTERFACETYPELABEL_CDFP__400_GE InterfaceTypeLabel = "CDFP (400GE)"
+ INTERFACETYPELABEL_CPF8__400_GE InterfaceTypeLabel = "CPF8 (400GE)"
+ INTERFACETYPELABEL_QSFP_DD__800_GE InterfaceTypeLabel = "QSFP-DD (800GE)"
+ INTERFACETYPELABEL_OSFP__800_GE InterfaceTypeLabel = "OSFP (800GE)"
+ INTERFACETYPELABEL__1000_BASE_KX__1_GE InterfaceTypeLabel = "1000BASE-KX (1GE)"
+ INTERFACETYPELABEL__10_GBASE_KR__10_GE InterfaceTypeLabel = "10GBASE-KR (10GE)"
+ INTERFACETYPELABEL__10_GBASE_KX4__10_GE InterfaceTypeLabel = "10GBASE-KX4 (10GE)"
+ INTERFACETYPELABEL__25_GBASE_KR__25_GE InterfaceTypeLabel = "25GBASE-KR (25GE)"
+ INTERFACETYPELABEL__40_GBASE_KR4__40_GE InterfaceTypeLabel = "40GBASE-KR4 (40GE)"
+ INTERFACETYPELABEL__50_GBASE_KR__50_GE InterfaceTypeLabel = "50GBASE-KR (50GE)"
+ INTERFACETYPELABEL__100_GBASE_KP4__100_GE InterfaceTypeLabel = "100GBASE-KP4 (100GE)"
+ INTERFACETYPELABEL__100_GBASE_KR2__100_GE InterfaceTypeLabel = "100GBASE-KR2 (100GE)"
+ INTERFACETYPELABEL__100_GBASE_KR4__100_GE InterfaceTypeLabel = "100GBASE-KR4 (100GE)"
+ INTERFACETYPELABEL_IEEE_802_11A InterfaceTypeLabel = "IEEE 802.11a"
+ INTERFACETYPELABEL_IEEE_802_11B_G InterfaceTypeLabel = "IEEE 802.11b/g"
+ INTERFACETYPELABEL_IEEE_802_11N InterfaceTypeLabel = "IEEE 802.11n"
+ INTERFACETYPELABEL_IEEE_802_11AC InterfaceTypeLabel = "IEEE 802.11ac"
+ INTERFACETYPELABEL_IEEE_802_11AD InterfaceTypeLabel = "IEEE 802.11ad"
+ INTERFACETYPELABEL_IEEE_802_11AX InterfaceTypeLabel = "IEEE 802.11ax"
+ INTERFACETYPELABEL_IEEE_802_11AY InterfaceTypeLabel = "IEEE 802.11ay"
+ INTERFACETYPELABEL_IEEE_802_15_1__BLUETOOTH InterfaceTypeLabel = "IEEE 802.15.1 (Bluetooth)"
+ INTERFACETYPELABEL_OTHER__WIRELESS InterfaceTypeLabel = "Other (Wireless)"
+ INTERFACETYPELABEL_GSM InterfaceTypeLabel = "GSM"
+ INTERFACETYPELABEL_CDMA InterfaceTypeLabel = "CDMA"
+ INTERFACETYPELABEL_LTE InterfaceTypeLabel = "LTE"
+ INTERFACETYPELABEL_OC_3_STM_1 InterfaceTypeLabel = "OC-3/STM-1"
+ INTERFACETYPELABEL_OC_12_STM_4 InterfaceTypeLabel = "OC-12/STM-4"
+ INTERFACETYPELABEL_OC_48_STM_16 InterfaceTypeLabel = "OC-48/STM-16"
+ INTERFACETYPELABEL_OC_192_STM_64 InterfaceTypeLabel = "OC-192/STM-64"
+ INTERFACETYPELABEL_OC_768_STM_256 InterfaceTypeLabel = "OC-768/STM-256"
+ INTERFACETYPELABEL_OC_1920_STM_640 InterfaceTypeLabel = "OC-1920/STM-640"
+ INTERFACETYPELABEL_OC_3840_STM_1234 InterfaceTypeLabel = "OC-3840/STM-1234"
+ INTERFACETYPELABEL_SFP__1_GFC InterfaceTypeLabel = "SFP (1GFC)"
+ INTERFACETYPELABEL_SFP__2_GFC InterfaceTypeLabel = "SFP (2GFC)"
+ INTERFACETYPELABEL_SFP__4_GFC InterfaceTypeLabel = "SFP (4GFC)"
+ INTERFACETYPELABEL_SFP__8_GFC InterfaceTypeLabel = "SFP+ (8GFC)"
+ INTERFACETYPELABEL_SFP__16_GFC InterfaceTypeLabel = "SFP+ (16GFC)"
+ INTERFACETYPELABEL_SFP28__32_GFC InterfaceTypeLabel = "SFP28 (32GFC)"
+ INTERFACETYPELABEL_QSFP__64_GFC InterfaceTypeLabel = "QSFP+ (64GFC)"
+ INTERFACETYPELABEL_QSFP28__128_GFC InterfaceTypeLabel = "QSFP28 (128GFC)"
+ INTERFACETYPELABEL_SDR__2_GBPS InterfaceTypeLabel = "SDR (2 Gbps)"
+ INTERFACETYPELABEL_DDR__4_GBPS InterfaceTypeLabel = "DDR (4 Gbps)"
+ INTERFACETYPELABEL_QDR__8_GBPS InterfaceTypeLabel = "QDR (8 Gbps)"
+ INTERFACETYPELABEL_FDR10__10_GBPS InterfaceTypeLabel = "FDR10 (10 Gbps)"
+ INTERFACETYPELABEL_FDR__13_5_GBPS InterfaceTypeLabel = "FDR (13.5 Gbps)"
+ INTERFACETYPELABEL_EDR__25_GBPS InterfaceTypeLabel = "EDR (25 Gbps)"
+ INTERFACETYPELABEL_HDR__50_GBPS InterfaceTypeLabel = "HDR (50 Gbps)"
+ INTERFACETYPELABEL_NDR__100_GBPS InterfaceTypeLabel = "NDR (100 Gbps)"
+ INTERFACETYPELABEL_XDR__250_GBPS InterfaceTypeLabel = "XDR (250 Gbps)"
+ INTERFACETYPELABEL_T1__1_544_MBPS InterfaceTypeLabel = "T1 (1.544 Mbps)"
+ INTERFACETYPELABEL_E1__2_048_MBPS InterfaceTypeLabel = "E1 (2.048 Mbps)"
+ INTERFACETYPELABEL_T3__45_MBPS InterfaceTypeLabel = "T3 (45 Mbps)"
+ INTERFACETYPELABEL_E3__34_MBPS InterfaceTypeLabel = "E3 (34 Mbps)"
+ INTERFACETYPELABEL_X_DSL InterfaceTypeLabel = "xDSL"
+ INTERFACETYPELABEL_DOCSIS InterfaceTypeLabel = "DOCSIS"
+ INTERFACETYPELABEL_GPON__2_5_GBPS___1_25_GPS InterfaceTypeLabel = "GPON (2.5 Gbps / 1.25 Gps)"
+ 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_CISCO_STACK_WISE InterfaceTypeLabel = "Cisco StackWise"
+ INTERFACETYPELABEL_CISCO_STACK_WISE_PLUS InterfaceTypeLabel = "Cisco StackWise Plus"
+ INTERFACETYPELABEL_CISCO_FLEX_STACK InterfaceTypeLabel = "Cisco FlexStack"
+ INTERFACETYPELABEL_CISCO_FLEX_STACK_PLUS InterfaceTypeLabel = "Cisco FlexStack Plus"
+ INTERFACETYPELABEL_CISCO_STACK_WISE_80 InterfaceTypeLabel = "Cisco StackWise-80"
+ INTERFACETYPELABEL_CISCO_STACK_WISE_160 InterfaceTypeLabel = "Cisco StackWise-160"
+ INTERFACETYPELABEL_CISCO_STACK_WISE_320 InterfaceTypeLabel = "Cisco StackWise-320"
+ INTERFACETYPELABEL_CISCO_STACK_WISE_480 InterfaceTypeLabel = "Cisco StackWise-480"
+ INTERFACETYPELABEL_CISCO_STACK_WISE_1_T InterfaceTypeLabel = "Cisco StackWise-1T"
+ INTERFACETYPELABEL_JUNIPER_VCP InterfaceTypeLabel = "Juniper VCP"
+ INTERFACETYPELABEL_EXTREME_SUMMIT_STACK InterfaceTypeLabel = "Extreme SummitStack"
+ INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_128 InterfaceTypeLabel = "Extreme SummitStack-128"
+ INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_256 InterfaceTypeLabel = "Extreme SummitStack-256"
+ INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_512 InterfaceTypeLabel = "Extreme SummitStack-512"
+ INTERFACETYPELABEL_OTHER InterfaceTypeLabel = "Other"
+)
+
+// All allowed values of InterfaceTypeLabel enum
+var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{
+ "Virtual",
+ "Bridge",
+ "Link Aggregation Group (LAG)",
+ "100BASE-FX (10/100ME FIBER)",
+ "100BASE-LFX (10/100ME FIBER)",
+ "100BASE-TX (10/100ME)",
+ "100BASE-T1 (10/100ME Single Pair)",
+ "1000BASE-T (1GE)",
+ "2.5GBASE-T (2.5GE)",
+ "5GBASE-T (5GE)",
+ "10GBASE-T (10GE)",
+ "10GBASE-CX4 (10GE)",
+ "GBIC (1GE)",
+ "SFP (1GE)",
+ "SFP+ (10GE)",
+ "XFP (10GE)",
+ "XENPAK (10GE)",
+ "X2 (10GE)",
+ "SFP28 (25GE)",
+ "SFP56 (50GE)",
+ "QSFP+ (40GE)",
+ "QSFP28 (50GE)",
+ "CFP (100GE)",
+ "CFP2 (100GE)",
+ "CFP2 (200GE)",
+ "CFP2 (400GE)",
+ "CFP4 (100GE)",
+ "CXP (100GE)",
+ "Cisco CPAK (100GE)",
+ "DSFP (100GE)",
+ "SFP-DD (100GE)",
+ "QSFP28 (100GE)",
+ "QSFP-DD (100GE)",
+ "QSFP56 (200GE)",
+ "QSFP-DD (200GE)",
+ "QSFP112 (400GE)",
+ "QSFP-DD (400GE)",
+ "OSFP (400GE)",
+ "OSFP-RHS (400GE)",
+ "CDFP (400GE)",
+ "CPF8 (400GE)",
+ "QSFP-DD (800GE)",
+ "OSFP (800GE)",
+ "1000BASE-KX (1GE)",
+ "10GBASE-KR (10GE)",
+ "10GBASE-KX4 (10GE)",
+ "25GBASE-KR (25GE)",
+ "40GBASE-KR4 (40GE)",
+ "50GBASE-KR (50GE)",
+ "100GBASE-KP4 (100GE)",
+ "100GBASE-KR2 (100GE)",
+ "100GBASE-KR4 (100GE)",
+ "IEEE 802.11a",
+ "IEEE 802.11b/g",
+ "IEEE 802.11n",
+ "IEEE 802.11ac",
+ "IEEE 802.11ad",
+ "IEEE 802.11ax",
+ "IEEE 802.11ay",
+ "IEEE 802.15.1 (Bluetooth)",
+ "Other (Wireless)",
+ "GSM",
+ "CDMA",
+ "LTE",
+ "OC-3/STM-1",
+ "OC-12/STM-4",
+ "OC-48/STM-16",
+ "OC-192/STM-64",
+ "OC-768/STM-256",
+ "OC-1920/STM-640",
+ "OC-3840/STM-1234",
+ "SFP (1GFC)",
+ "SFP (2GFC)",
+ "SFP (4GFC)",
+ "SFP+ (8GFC)",
+ "SFP+ (16GFC)",
+ "SFP28 (32GFC)",
+ "QSFP+ (64GFC)",
+ "QSFP28 (128GFC)",
+ "SDR (2 Gbps)",
+ "DDR (4 Gbps)",
+ "QDR (8 Gbps)",
+ "FDR10 (10 Gbps)",
+ "FDR (13.5 Gbps)",
+ "EDR (25 Gbps)",
+ "HDR (50 Gbps)",
+ "NDR (100 Gbps)",
+ "XDR (250 Gbps)",
+ "T1 (1.544 Mbps)",
+ "E1 (2.048 Mbps)",
+ "T3 (45 Mbps)",
+ "E3 (34 Mbps)",
+ "xDSL",
+ "DOCSIS",
+ "GPON (2.5 Gbps / 1.25 Gps)",
+ "XG-PON (10 Gbps / 2.5 Gbps)",
+ "XGS-PON (10 Gbps)",
+ "NG-PON2 (TWDM-PON) (4x10 Gbps)",
+ "EPON (1 Gbps)",
+ "10G-EPON (10 Gbps)",
+ "Cisco StackWise",
+ "Cisco StackWise Plus",
+ "Cisco FlexStack",
+ "Cisco FlexStack Plus",
+ "Cisco StackWise-80",
+ "Cisco StackWise-160",
+ "Cisco StackWise-320",
+ "Cisco StackWise-480",
+ "Cisco StackWise-1T",
+ "Juniper VCP",
+ "Extreme SummitStack",
+ "Extreme SummitStack-128",
+ "Extreme SummitStack-256",
+ "Extreme SummitStack-512",
+ "Other",
+}
+
+func (v *InterfaceTypeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceTypeLabel(value)
+ for _, existing := range AllowedInterfaceTypeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceTypeLabel", value)
+}
+
+// NewInterfaceTypeLabelFromValue returns a pointer to a valid InterfaceTypeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceTypeLabelFromValue(v string) (*InterfaceTypeLabel, error) {
+ ev := InterfaceTypeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceTypeLabel: valid values are %v", v, AllowedInterfaceTypeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceTypeLabel) IsValid() bool {
+ for _, existing := range AllowedInterfaceTypeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_type_label value
+func (v InterfaceTypeLabel) Ptr() *InterfaceTypeLabel {
+ return &v
+}
+
+type NullableInterfaceTypeLabel struct {
+ value *InterfaceTypeLabel
+ isSet bool
+}
+
+func (v NullableInterfaceTypeLabel) Get() *InterfaceTypeLabel {
+ return v.value
+}
+
+func (v *NullableInterfaceTypeLabel) Set(val *InterfaceTypeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceTypeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceTypeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceTypeLabel(val *InterfaceTypeLabel) *NullableInterfaceTypeLabel {
+ return &NullableInterfaceTypeLabel{value: val, isSet: true}
+}
+
+func (v NullableInterfaceTypeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceTypeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_type_value.go b/model_interface_type_value.go
new file mode 100644
index 0000000000..43ac10db97
--- /dev/null
+++ b/model_interface_type_value.go
@@ -0,0 +1,336 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "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) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other
+type InterfaceTypeValue string
+
+// List of Interface_type_value
+const (
+ INTERFACETYPEVALUE_VIRTUAL InterfaceTypeValue = "virtual"
+ INTERFACETYPEVALUE_BRIDGE InterfaceTypeValue = "bridge"
+ INTERFACETYPEVALUE_LAG InterfaceTypeValue = "lag"
+ INTERFACETYPEVALUE__100BASE_FX InterfaceTypeValue = "100base-fx"
+ INTERFACETYPEVALUE__100BASE_LFX InterfaceTypeValue = "100base-lfx"
+ INTERFACETYPEVALUE__100BASE_TX InterfaceTypeValue = "100base-tx"
+ INTERFACETYPEVALUE__100BASE_T1 InterfaceTypeValue = "100base-t1"
+ INTERFACETYPEVALUE__1000BASE_T InterfaceTypeValue = "1000base-t"
+ INTERFACETYPEVALUE__2_5GBASE_T InterfaceTypeValue = "2.5gbase-t"
+ INTERFACETYPEVALUE__5GBASE_T InterfaceTypeValue = "5gbase-t"
+ INTERFACETYPEVALUE__10GBASE_T InterfaceTypeValue = "10gbase-t"
+ INTERFACETYPEVALUE__10GBASE_CX4 InterfaceTypeValue = "10gbase-cx4"
+ INTERFACETYPEVALUE__1000BASE_X_GBIC InterfaceTypeValue = "1000base-x-gbic"
+ INTERFACETYPEVALUE__1000BASE_X_SFP InterfaceTypeValue = "1000base-x-sfp"
+ INTERFACETYPEVALUE__10GBASE_X_SFPP InterfaceTypeValue = "10gbase-x-sfpp"
+ INTERFACETYPEVALUE__10GBASE_X_XFP InterfaceTypeValue = "10gbase-x-xfp"
+ INTERFACETYPEVALUE__10GBASE_X_XENPAK InterfaceTypeValue = "10gbase-x-xenpak"
+ INTERFACETYPEVALUE__10GBASE_X_X2 InterfaceTypeValue = "10gbase-x-x2"
+ INTERFACETYPEVALUE__25GBASE_X_SFP28 InterfaceTypeValue = "25gbase-x-sfp28"
+ INTERFACETYPEVALUE__50GBASE_X_SFP56 InterfaceTypeValue = "50gbase-x-sfp56"
+ INTERFACETYPEVALUE__40GBASE_X_QSFPP InterfaceTypeValue = "40gbase-x-qsfpp"
+ INTERFACETYPEVALUE__50GBASE_X_SFP28 InterfaceTypeValue = "50gbase-x-sfp28"
+ INTERFACETYPEVALUE__100GBASE_X_CFP InterfaceTypeValue = "100gbase-x-cfp"
+ INTERFACETYPEVALUE__100GBASE_X_CFP2 InterfaceTypeValue = "100gbase-x-cfp2"
+ INTERFACETYPEVALUE__200GBASE_X_CFP2 InterfaceTypeValue = "200gbase-x-cfp2"
+ INTERFACETYPEVALUE__400GBASE_X_CFP2 InterfaceTypeValue = "400gbase-x-cfp2"
+ INTERFACETYPEVALUE__100GBASE_X_CFP4 InterfaceTypeValue = "100gbase-x-cfp4"
+ INTERFACETYPEVALUE__100GBASE_X_CXP InterfaceTypeValue = "100gbase-x-cxp"
+ INTERFACETYPEVALUE__100GBASE_X_CPAK InterfaceTypeValue = "100gbase-x-cpak"
+ INTERFACETYPEVALUE__100GBASE_X_DSFP InterfaceTypeValue = "100gbase-x-dsfp"
+ INTERFACETYPEVALUE__100GBASE_X_SFPDD InterfaceTypeValue = "100gbase-x-sfpdd"
+ INTERFACETYPEVALUE__100GBASE_X_QSFP28 InterfaceTypeValue = "100gbase-x-qsfp28"
+ INTERFACETYPEVALUE__100GBASE_X_QSFPDD InterfaceTypeValue = "100gbase-x-qsfpdd"
+ INTERFACETYPEVALUE__200GBASE_X_QSFP56 InterfaceTypeValue = "200gbase-x-qsfp56"
+ INTERFACETYPEVALUE__200GBASE_X_QSFPDD InterfaceTypeValue = "200gbase-x-qsfpdd"
+ INTERFACETYPEVALUE__400GBASE_X_QSFP112 InterfaceTypeValue = "400gbase-x-qsfp112"
+ INTERFACETYPEVALUE__400GBASE_X_QSFPDD InterfaceTypeValue = "400gbase-x-qsfpdd"
+ INTERFACETYPEVALUE__400GBASE_X_OSFP InterfaceTypeValue = "400gbase-x-osfp"
+ INTERFACETYPEVALUE__400GBASE_X_OSFP_RHS InterfaceTypeValue = "400gbase-x-osfp-rhs"
+ INTERFACETYPEVALUE__400GBASE_X_CDFP InterfaceTypeValue = "400gbase-x-cdfp"
+ INTERFACETYPEVALUE__400GBASE_X_CFP8 InterfaceTypeValue = "400gbase-x-cfp8"
+ INTERFACETYPEVALUE__800GBASE_X_QSFPDD InterfaceTypeValue = "800gbase-x-qsfpdd"
+ INTERFACETYPEVALUE__800GBASE_X_OSFP InterfaceTypeValue = "800gbase-x-osfp"
+ INTERFACETYPEVALUE__1000BASE_KX InterfaceTypeValue = "1000base-kx"
+ INTERFACETYPEVALUE__10GBASE_KR InterfaceTypeValue = "10gbase-kr"
+ INTERFACETYPEVALUE__10GBASE_KX4 InterfaceTypeValue = "10gbase-kx4"
+ INTERFACETYPEVALUE__25GBASE_KR InterfaceTypeValue = "25gbase-kr"
+ INTERFACETYPEVALUE__40GBASE_KR4 InterfaceTypeValue = "40gbase-kr4"
+ INTERFACETYPEVALUE__50GBASE_KR InterfaceTypeValue = "50gbase-kr"
+ INTERFACETYPEVALUE__100GBASE_KP4 InterfaceTypeValue = "100gbase-kp4"
+ INTERFACETYPEVALUE__100GBASE_KR2 InterfaceTypeValue = "100gbase-kr2"
+ INTERFACETYPEVALUE__100GBASE_KR4 InterfaceTypeValue = "100gbase-kr4"
+ INTERFACETYPEVALUE_IEEE802_11A InterfaceTypeValue = "ieee802.11a"
+ INTERFACETYPEVALUE_IEEE802_11G InterfaceTypeValue = "ieee802.11g"
+ INTERFACETYPEVALUE_IEEE802_11N InterfaceTypeValue = "ieee802.11n"
+ INTERFACETYPEVALUE_IEEE802_11AC InterfaceTypeValue = "ieee802.11ac"
+ INTERFACETYPEVALUE_IEEE802_11AD InterfaceTypeValue = "ieee802.11ad"
+ INTERFACETYPEVALUE_IEEE802_11AX InterfaceTypeValue = "ieee802.11ax"
+ INTERFACETYPEVALUE_IEEE802_11AY InterfaceTypeValue = "ieee802.11ay"
+ INTERFACETYPEVALUE_IEEE802_15_1 InterfaceTypeValue = "ieee802.15.1"
+ INTERFACETYPEVALUE_OTHER_WIRELESS InterfaceTypeValue = "other-wireless"
+ INTERFACETYPEVALUE_GSM InterfaceTypeValue = "gsm"
+ INTERFACETYPEVALUE_CDMA InterfaceTypeValue = "cdma"
+ INTERFACETYPEVALUE_LTE InterfaceTypeValue = "lte"
+ INTERFACETYPEVALUE_SONET_OC3 InterfaceTypeValue = "sonet-oc3"
+ INTERFACETYPEVALUE_SONET_OC12 InterfaceTypeValue = "sonet-oc12"
+ INTERFACETYPEVALUE_SONET_OC48 InterfaceTypeValue = "sonet-oc48"
+ INTERFACETYPEVALUE_SONET_OC192 InterfaceTypeValue = "sonet-oc192"
+ INTERFACETYPEVALUE_SONET_OC768 InterfaceTypeValue = "sonet-oc768"
+ INTERFACETYPEVALUE_SONET_OC1920 InterfaceTypeValue = "sonet-oc1920"
+ INTERFACETYPEVALUE_SONET_OC3840 InterfaceTypeValue = "sonet-oc3840"
+ INTERFACETYPEVALUE__1GFC_SFP InterfaceTypeValue = "1gfc-sfp"
+ INTERFACETYPEVALUE__2GFC_SFP InterfaceTypeValue = "2gfc-sfp"
+ INTERFACETYPEVALUE__4GFC_SFP InterfaceTypeValue = "4gfc-sfp"
+ INTERFACETYPEVALUE__8GFC_SFPP InterfaceTypeValue = "8gfc-sfpp"
+ INTERFACETYPEVALUE__16GFC_SFPP InterfaceTypeValue = "16gfc-sfpp"
+ INTERFACETYPEVALUE__32GFC_SFP28 InterfaceTypeValue = "32gfc-sfp28"
+ INTERFACETYPEVALUE__64GFC_QSFPP InterfaceTypeValue = "64gfc-qsfpp"
+ INTERFACETYPEVALUE__128GFC_QSFP28 InterfaceTypeValue = "128gfc-qsfp28"
+ INTERFACETYPEVALUE_INFINIBAND_SDR InterfaceTypeValue = "infiniband-sdr"
+ INTERFACETYPEVALUE_INFINIBAND_DDR InterfaceTypeValue = "infiniband-ddr"
+ INTERFACETYPEVALUE_INFINIBAND_QDR InterfaceTypeValue = "infiniband-qdr"
+ INTERFACETYPEVALUE_INFINIBAND_FDR10 InterfaceTypeValue = "infiniband-fdr10"
+ INTERFACETYPEVALUE_INFINIBAND_FDR InterfaceTypeValue = "infiniband-fdr"
+ INTERFACETYPEVALUE_INFINIBAND_EDR InterfaceTypeValue = "infiniband-edr"
+ INTERFACETYPEVALUE_INFINIBAND_HDR InterfaceTypeValue = "infiniband-hdr"
+ INTERFACETYPEVALUE_INFINIBAND_NDR InterfaceTypeValue = "infiniband-ndr"
+ INTERFACETYPEVALUE_INFINIBAND_XDR InterfaceTypeValue = "infiniband-xdr"
+ INTERFACETYPEVALUE_T1 InterfaceTypeValue = "t1"
+ INTERFACETYPEVALUE_E1 InterfaceTypeValue = "e1"
+ INTERFACETYPEVALUE_T3 InterfaceTypeValue = "t3"
+ INTERFACETYPEVALUE_E3 InterfaceTypeValue = "e3"
+ INTERFACETYPEVALUE_XDSL InterfaceTypeValue = "xdsl"
+ INTERFACETYPEVALUE_DOCSIS InterfaceTypeValue = "docsis"
+ INTERFACETYPEVALUE_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_CISCO_STACKWISE InterfaceTypeValue = "cisco-stackwise"
+ INTERFACETYPEVALUE_CISCO_STACKWISE_PLUS InterfaceTypeValue = "cisco-stackwise-plus"
+ INTERFACETYPEVALUE_CISCO_FLEXSTACK InterfaceTypeValue = "cisco-flexstack"
+ INTERFACETYPEVALUE_CISCO_FLEXSTACK_PLUS InterfaceTypeValue = "cisco-flexstack-plus"
+ INTERFACETYPEVALUE_CISCO_STACKWISE_80 InterfaceTypeValue = "cisco-stackwise-80"
+ INTERFACETYPEVALUE_CISCO_STACKWISE_160 InterfaceTypeValue = "cisco-stackwise-160"
+ INTERFACETYPEVALUE_CISCO_STACKWISE_320 InterfaceTypeValue = "cisco-stackwise-320"
+ INTERFACETYPEVALUE_CISCO_STACKWISE_480 InterfaceTypeValue = "cisco-stackwise-480"
+ INTERFACETYPEVALUE_CISCO_STACKWISE_1T InterfaceTypeValue = "cisco-stackwise-1t"
+ INTERFACETYPEVALUE_JUNIPER_VCP InterfaceTypeValue = "juniper-vcp"
+ INTERFACETYPEVALUE_EXTREME_SUMMITSTACK InterfaceTypeValue = "extreme-summitstack"
+ INTERFACETYPEVALUE_EXTREME_SUMMITSTACK_128 InterfaceTypeValue = "extreme-summitstack-128"
+ INTERFACETYPEVALUE_EXTREME_SUMMITSTACK_256 InterfaceTypeValue = "extreme-summitstack-256"
+ INTERFACETYPEVALUE_EXTREME_SUMMITSTACK_512 InterfaceTypeValue = "extreme-summitstack-512"
+ INTERFACETYPEVALUE_OTHER InterfaceTypeValue = "other"
+)
+
+// All allowed values of InterfaceTypeValue enum
+var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{
+ "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",
+ "64gfc-qsfpp",
+ "128gfc-qsfp28",
+ "infiniband-sdr",
+ "infiniband-ddr",
+ "infiniband-qdr",
+ "infiniband-fdr10",
+ "infiniband-fdr",
+ "infiniband-edr",
+ "infiniband-hdr",
+ "infiniband-ndr",
+ "infiniband-xdr",
+ "t1",
+ "e1",
+ "t3",
+ "e3",
+ "xdsl",
+ "docsis",
+ "gpon",
+ "xg-pon",
+ "xgs-pon",
+ "ng-pon2",
+ "epon",
+ "10g-epon",
+ "cisco-stackwise",
+ "cisco-stackwise-plus",
+ "cisco-flexstack",
+ "cisco-flexstack-plus",
+ "cisco-stackwise-80",
+ "cisco-stackwise-160",
+ "cisco-stackwise-320",
+ "cisco-stackwise-480",
+ "cisco-stackwise-1t",
+ "juniper-vcp",
+ "extreme-summitstack",
+ "extreme-summitstack-128",
+ "extreme-summitstack-256",
+ "extreme-summitstack-512",
+ "other",
+}
+
+func (v *InterfaceTypeValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := InterfaceTypeValue(value)
+ for _, existing := range AllowedInterfaceTypeValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid InterfaceTypeValue", value)
+}
+
+// NewInterfaceTypeValueFromValue returns a pointer to a valid InterfaceTypeValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewInterfaceTypeValueFromValue(v string) (*InterfaceTypeValue, error) {
+ ev := InterfaceTypeValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for InterfaceTypeValue: valid values are %v", v, AllowedInterfaceTypeValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v InterfaceTypeValue) IsValid() bool {
+ for _, existing := range AllowedInterfaceTypeValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Interface_type_value value
+func (v InterfaceTypeValue) Ptr() *InterfaceTypeValue {
+ return &v
+}
+
+type NullableInterfaceTypeValue struct {
+ value *InterfaceTypeValue
+ isSet bool
+}
+
+func (v NullableInterfaceTypeValue) Get() *InterfaceTypeValue {
+ return v.value
+}
+
+func (v *NullableInterfaceTypeValue) Set(val *InterfaceTypeValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceTypeValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceTypeValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceTypeValue(val *InterfaceTypeValue) *NullableInterfaceTypeValue {
+ return &NullableInterfaceTypeValue{value: val, isSet: true}
+}
+
+func (v NullableInterfaceTypeValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceTypeValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_inventory_item.go b/model_inventory_item.go
index f51a8a3139..067b34b144 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -40,7 +41,7 @@ type InventoryItem struct {
Description *string `json:"description,omitempty"`
ComponentType NullableString `json:"component_type,omitempty"`
ComponentId NullableInt64 `json:"component_id,omitempty"`
- Component map[string]interface{} `json:"component"`
+ Component interface{} `json:"component"`
Tags []NestedTag `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
@@ -55,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 map[string]interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItem {
+func NewInventoryItem(id int32, url string, display string, device NestedDevice, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItem {
this := InventoryItem{}
this.Id = id
this.Url = url
@@ -616,10 +617,10 @@ func (o *InventoryItem) UnsetComponentId() {
}
// GetComponent returns the Component field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *InventoryItem) GetComponent() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *InventoryItem) GetComponent() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -629,15 +630,15 @@ func (o *InventoryItem) GetComponent() map[string]interface{} {
// GetComponentOk returns a tuple with the Component 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 *InventoryItem) GetComponentOk() (map[string]interface{}, bool) {
+func (o *InventoryItem) GetComponentOk() (*interface{}, bool) {
if o == nil || IsNil(o.Component) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Component, true
+ return &o.Component, true
}
// SetComponent sets field value
-func (o *InventoryItem) SetComponent(v map[string]interface{}) {
+func (o *InventoryItem) SetComponent(v interface{}) {
o.Component = v
}
@@ -849,10 +850,39 @@ func (o InventoryItem) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InventoryItem) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InventoryItem) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "component",
+ "created",
+ "last_updated",
+ "_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)
+ }
+ }
+
varInventoryItem := _InventoryItem{}
- err = json.Unmarshal(bytes, &varInventoryItem)
+ err = json.Unmarshal(data, &varInventoryItem)
if err != nil {
return err
@@ -862,7 +892,7 @@ func (o *InventoryItem) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_inventory_item_request.go b/model_inventory_item_request.go
index b9a6f88652..fc59016325 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 InventoryItemRequest type satisfies the MappedNullable interface at compile time
@@ -651,10 +652,32 @@ func (o InventoryItemRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InventoryItemRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InventoryItemRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varInventoryItemRequest := _InventoryItemRequest{}
- err = json.Unmarshal(bytes, &varInventoryItemRequest)
+ err = json.Unmarshal(data, &varInventoryItemRequest)
if err != nil {
return err
@@ -664,7 +687,7 @@ func (o *InventoryItemRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "parent")
delete(additionalProperties, "name")
diff --git a/model_inventory_item_role.go b/model_inventory_item_role.go
index a7a03cfb6f..5b3a54a1e9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -424,10 +425,38 @@ func (o InventoryItemRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InventoryItemRole) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InventoryItemRole) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "inventoryitem_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)
+ }
+ }
+
varInventoryItemRole := _InventoryItemRole{}
- err = json.Unmarshal(bytes, &varInventoryItemRole)
+ err = json.Unmarshal(data, &varInventoryItemRole)
if err != nil {
return err
@@ -437,7 +466,7 @@ func (o *InventoryItemRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_inventory_item_role_request.go b/model_inventory_item_role_request.go
index 5f3ff0c330..0dd0a32cad 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 InventoryItemRoleRequest type satisfies the MappedNullable interface at compile time
@@ -257,10 +258,32 @@ func (o InventoryItemRoleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InventoryItemRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InventoryItemRoleRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varInventoryItemRoleRequest := _InventoryItemRoleRequest{}
- err = json.Unmarshal(bytes, &varInventoryItemRoleRequest)
+ err = json.Unmarshal(data, &varInventoryItemRoleRequest)
if err != nil {
return err
@@ -270,7 +293,7 @@ func (o *InventoryItemRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "color")
diff --git a/model_inventory_item_template.go b/model_inventory_item_template.go
index 3a9141e196..65e7c23e97 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -32,14 +33,14 @@ type InventoryItemTemplate struct {
Role NullableNestedInventoryItemRole `json:"role,omitempty"`
Manufacturer NullableNestedManufacturer `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
- PartId *string `json:"part_id,omitempty"`
- Description *string `json:"description,omitempty"`
- ComponentType NullableString `json:"component_type,omitempty"`
- ComponentId NullableInt64 `json:"component_id,omitempty"`
- Component map[string]interface{} `json:"component"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- Depth int32 `json:"_depth"`
+ PartId *string `json:"part_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ ComponentType NullableString `json:"component_type,omitempty"`
+ ComponentId NullableInt64 `json:"component_id,omitempty"`
+ Component interface{} `json:"component"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -49,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 map[string]interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItemTemplate {
+func NewInventoryItemTemplate(id int32, url string, display string, deviceType NestedDeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItemTemplate {
this := InventoryItemTemplate{}
this.Id = id
this.Url = url
@@ -503,10 +504,10 @@ func (o *InventoryItemTemplate) UnsetComponentId() {
}
// GetComponent returns the Component field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *InventoryItemTemplate) GetComponent() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *InventoryItemTemplate) GetComponent() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -516,15 +517,15 @@ func (o *InventoryItemTemplate) GetComponent() map[string]interface{} {
// GetComponentOk returns a tuple with the Component 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 *InventoryItemTemplate) GetComponentOk() (map[string]interface{}, bool) {
+func (o *InventoryItemTemplate) GetComponentOk() (*interface{}, bool) {
if o == nil || IsNil(o.Component) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Component, true
+ return &o.Component, true
}
// SetComponent sets field value
-func (o *InventoryItemTemplate) SetComponent(v map[string]interface{}) {
+func (o *InventoryItemTemplate) SetComponent(v interface{}) {
o.Component = v
}
@@ -657,10 +658,39 @@ func (o InventoryItemTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InventoryItemTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InventoryItemTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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_type",
+ "name",
+ "component",
+ "created",
+ "last_updated",
+ "_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)
+ }
+ }
+
varInventoryItemTemplate := _InventoryItemTemplate{}
- err = json.Unmarshal(bytes, &varInventoryItemTemplate)
+ err = json.Unmarshal(data, &varInventoryItemTemplate)
if err != nil {
return err
@@ -670,7 +700,7 @@ func (o *InventoryItemTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_inventory_item_template_request.go b/model_inventory_item_template_request.go
index 577a146edf..3fa26aeb25 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 InventoryItemTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -459,10 +460,32 @@ func (o InventoryItemTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *InventoryItemTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *InventoryItemTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varInventoryItemTemplateRequest := _InventoryItemTemplateRequest{}
- err = json.Unmarshal(bytes, &varInventoryItemTemplateRequest)
+ err = json.Unmarshal(data, &varInventoryItemTemplateRequest)
if err != nil {
return err
@@ -472,7 +495,7 @@ func (o *InventoryItemTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "parent")
delete(additionalProperties, "name")
diff --git a/model_ip_address.go b/model_ip_address.go
index 356c00bb7f..135d8db269 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -31,7 +32,7 @@ type IPAddress struct {
Role *IPAddressRole `json:"role,omitempty"`
AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
- AssignedObject map[string]interface{} `json:"assigned_object"`
+ AssignedObject interface{} `json:"assigned_object"`
NatInside NullableNestedIPAddress `json:"nat_inside,omitempty"`
NatOutside []NestedIPAddress `json:"nat_outside"`
// Hostname or FQDN (not case-sensitive)
@@ -51,7 +52,7 @@ 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 map[string]interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime) *IPAddress {
+func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, assignedObject interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime) *IPAddress {
this := IPAddress{}
this.Id = id
this.Url = url
@@ -430,10 +431,10 @@ func (o *IPAddress) UnsetAssignedObjectId() {
}
// GetAssignedObject returns the AssignedObject field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *IPAddress) GetAssignedObject() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *IPAddress) GetAssignedObject() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -443,15 +444,15 @@ func (o *IPAddress) GetAssignedObject() map[string]interface{} {
// 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() (map[string]interface{}, bool) {
+func (o *IPAddress) GetAssignedObjectOk() (*interface{}, bool) {
if o == nil || IsNil(o.AssignedObject) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.AssignedObject, true
+ return &o.AssignedObject, true
}
// SetAssignedObject sets field value
-func (o *IPAddress) SetAssignedObject(v map[string]interface{}) {
+func (o *IPAddress) SetAssignedObject(v interface{}) {
o.AssignedObject = v
}
@@ -799,10 +800,39 @@ func (o IPAddress) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *IPAddress) UnmarshalJSON(bytes []byte) (err error) {
+func (o *IPAddress) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "assigned_object",
+ "nat_outside",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varIPAddress := _IPAddress{}
- err = json.Unmarshal(bytes, &varIPAddress)
+ err = json.Unmarshal(data, &varIPAddress)
if err != nil {
return err
@@ -812,7 +842,7 @@ func (o *IPAddress) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_ip_address_request.go b/model_ip_address_request.go
index 441e22996a..f542f79bc2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 IPAddressRequest type satisfies the MappedNullable interface at compile time
@@ -19,13 +20,11 @@ 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"`
- // * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC
- Status *string `json:"status,omitempty"`
- // * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP
- Role *string `json:"role,omitempty"`
+ 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"`
@@ -169,9 +168,9 @@ func (o *IPAddressRequest) UnsetTenant() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *IPAddressRequest) GetStatus() string {
+func (o *IPAddressRequest) GetStatus() IPAddressStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret IPAddressStatusValue
return ret
}
return *o.Status
@@ -179,7 +178,7 @@ func (o *IPAddressRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *IPAddressRequest) GetStatusOk() (*IPAddressStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -195,15 +194,15 @@ func (o *IPAddressRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *IPAddressRequest) SetStatus(v string) {
+// 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() string {
+func (o *IPAddressRequest) GetRole() IPAddressRoleValue {
if o == nil || IsNil(o.Role) {
- var ret string
+ var ret IPAddressRoleValue
return ret
}
return *o.Role
@@ -211,7 +210,7 @@ func (o *IPAddressRequest) GetRole() string {
// 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() (*string, bool) {
+func (o *IPAddressRequest) GetRoleOk() (*IPAddressRoleValue, bool) {
if o == nil || IsNil(o.Role) {
return nil, false
}
@@ -227,8 +226,8 @@ func (o *IPAddressRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given string and assigns it to the Role field.
-func (o *IPAddressRequest) SetRole(v string) {
+// SetRole gets a reference to the given IPAddressRoleValue and assigns it to the Role field.
+func (o *IPAddressRequest) SetRole(v IPAddressRoleValue) {
o.Role = &v
}
@@ -576,10 +575,31 @@ func (o IPAddressRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *IPAddressRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *IPAddressRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varIPAddressRequest := _IPAddressRequest{}
- err = json.Unmarshal(bytes, &varIPAddressRequest)
+ err = json.Unmarshal(data, &varIPAddressRequest)
if err != nil {
return err
@@ -589,7 +609,7 @@ func (o *IPAddressRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "address")
delete(additionalProperties, "vrf")
delete(additionalProperties, "tenant")
diff --git a/model_ip_address_role.go b/model_ip_address_role.go
index 50a112a474..b01aecc733 100644
--- a/model_ip_address_role.go
+++ b/model_ip_address_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &IPAddressRole{}
// IPAddressRole struct for IPAddressRole
type IPAddressRole struct {
- // * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *IPAddressRoleValue `json:"value,omitempty"`
+ Label *IPAddressRoleLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewIPAddressRoleWithDefaults() *IPAddressRole {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *IPAddressRole) GetValue() string {
+func (o *IPAddressRole) GetValue() IPAddressRoleValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret IPAddressRoleValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *IPAddressRole) GetValue() string {
// 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() (*string, bool) {
+func (o *IPAddressRole) GetValueOk() (*IPAddressRoleValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *IPAddressRole) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *IPAddressRole) SetValue(v string) {
+// 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() string {
+func (o *IPAddressRole) GetLabel() IPAddressRoleLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret IPAddressRoleLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *IPAddressRole) 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 *IPAddressRole) GetLabelOk() (*string, bool) {
+func (o *IPAddressRole) GetLabelOk() (*IPAddressRoleLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *IPAddressRole) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *IPAddressRole) SetLabel(v string) {
+// SetLabel gets a reference to the given IPAddressRoleLabel and assigns it to the Label field.
+func (o *IPAddressRole) SetLabel(v IPAddressRoleLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o IPAddressRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *IPAddressRole) UnmarshalJSON(bytes []byte) (err error) {
+func (o *IPAddressRole) UnmarshalJSON(data []byte) (err error) {
varIPAddressRole := _IPAddressRole{}
- err = json.Unmarshal(bytes, &varIPAddressRole)
+ err = json.Unmarshal(data, &varIPAddressRole)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *IPAddressRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_ip_address_role_label.go b/model_ip_address_role_label.go
new file mode 100644
index 0000000000..54cc71a854
--- /dev/null
+++ b/model_ip_address_role_label.go
@@ -0,0 +1,122 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..a0979870f0
--- /dev/null
+++ b/model_ip_address_role_value.go
@@ -0,0 +1,124 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
index be98918cd2..26f0c5fb10 100644
--- a/model_ip_address_status.go
+++ b/model_ip_address_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &IPAddressStatus{}
// IPAddressStatus struct for IPAddressStatus
type IPAddressStatus struct {
- // * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *IPAddressStatusValue `json:"value,omitempty"`
+ Label *IPAddressStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewIPAddressStatusWithDefaults() *IPAddressStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *IPAddressStatus) GetValue() string {
+func (o *IPAddressStatus) GetValue() IPAddressStatusValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret IPAddressStatusValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *IPAddressStatus) GetValue() string {
// 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() (*string, bool) {
+func (o *IPAddressStatus) GetValueOk() (*IPAddressStatusValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *IPAddressStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *IPAddressStatus) SetValue(v string) {
+// 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() string {
+func (o *IPAddressStatus) GetLabel() IPAddressStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret IPAddressStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *IPAddressStatus) 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 *IPAddressStatus) GetLabelOk() (*string, bool) {
+func (o *IPAddressStatus) GetLabelOk() (*IPAddressStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *IPAddressStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *IPAddressStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given IPAddressStatusLabel and assigns it to the Label field.
+func (o *IPAddressStatus) SetLabel(v IPAddressStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o IPAddressStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *IPAddressStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *IPAddressStatus) UnmarshalJSON(data []byte) (err error) {
varIPAddressStatus := _IPAddressStatus{}
- err = json.Unmarshal(bytes, &varIPAddressStatus)
+ err = json.Unmarshal(data, &varIPAddressStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *IPAddressStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_ip_address_status_label.go b/model_ip_address_status_label.go
new file mode 100644
index 0000000000..72887588c9
--- /dev/null
+++ b/model_ip_address_status_label.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..027103b531
--- /dev/null
+++ b/model_ip_address_status_value.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 f69a1978ed..5e14a853a0 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -665,10 +666,39 @@ func (o IPRange) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *IPRange) UnmarshalJSON(bytes []byte) (err error) {
+func (o *IPRange) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "start_address",
+ "end_address",
+ "size",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varIPRange := _IPRange{}
- err = json.Unmarshal(bytes, &varIPRange)
+ err = json.Unmarshal(data, &varIPRange)
if err != nil {
return err
@@ -678,7 +708,7 @@ func (o *IPRange) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_ip_range_request.go b/model_ip_range_request.go
index e7b96ffb83..54b0d98e9a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 IPRangeRequest type satisfies the MappedNullable interface at compile time
@@ -23,13 +24,12 @@ type IPRangeRequest struct {
EndAddress string `json:"end_address"`
Vrf NullableNestedVRFRequest `json:"vrf,omitempty"`
Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- // * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
- Role NullableNestedRoleRequest `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Status *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"`
// Treat as 100% utilized
MarkUtilized *bool `json:"mark_utilized,omitempty"`
AdditionalProperties map[string]interface{}
@@ -191,9 +191,9 @@ func (o *IPRangeRequest) UnsetTenant() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *IPRangeRequest) GetStatus() string {
+func (o *IPRangeRequest) GetStatus() IPRangeStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret IPRangeStatusValue
return ret
}
return *o.Status
@@ -201,7 +201,7 @@ func (o *IPRangeRequest) GetStatus() string {
// 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 *IPRangeRequest) GetStatusOk() (*string, bool) {
+func (o *IPRangeRequest) GetStatusOk() (*IPRangeStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -217,8 +217,8 @@ func (o *IPRangeRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *IPRangeRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given IPRangeStatusValue and assigns it to the Status field.
+func (o *IPRangeRequest) SetStatus(v IPRangeStatusValue) {
o.Status = &v
}
@@ -472,10 +472,32 @@ func (o IPRangeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *IPRangeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *IPRangeRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "start_address",
+ "end_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)
+ }
+ }
+
varIPRangeRequest := _IPRangeRequest{}
- err = json.Unmarshal(bytes, &varIPRangeRequest)
+ err = json.Unmarshal(data, &varIPRangeRequest)
if err != nil {
return err
@@ -485,7 +507,7 @@ func (o *IPRangeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "start_address")
delete(additionalProperties, "end_address")
delete(additionalProperties, "vrf")
diff --git a/model_ip_range_status.go b/model_ip_range_status.go
index 19d985bc39..cdc5424dd7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &IPRangeStatus{}
// IPRangeStatus struct for IPRangeStatus
type IPRangeStatus struct {
- // * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *IPRangeStatusValue `json:"value,omitempty"`
+ Label *IPRangeStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewIPRangeStatusWithDefaults() *IPRangeStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *IPRangeStatus) GetValue() string {
+func (o *IPRangeStatus) GetValue() IPRangeStatusValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret IPRangeStatusValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *IPRangeStatus) GetValue() string {
// 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 *IPRangeStatus) GetValueOk() (*string, bool) {
+func (o *IPRangeStatus) GetValueOk() (*IPRangeStatusValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *IPRangeStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *IPRangeStatus) SetValue(v string) {
+// SetValue gets a reference to the given IPRangeStatusValue and assigns it to the Value field.
+func (o *IPRangeStatus) SetValue(v IPRangeStatusValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *IPRangeStatus) GetLabel() string {
+func (o *IPRangeStatus) GetLabel() IPRangeStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret IPRangeStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *IPRangeStatus) 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 *IPRangeStatus) GetLabelOk() (*string, bool) {
+func (o *IPRangeStatus) GetLabelOk() (*IPRangeStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *IPRangeStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *IPRangeStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given IPRangeStatusLabel and assigns it to the Label field.
+func (o *IPRangeStatus) SetLabel(v IPRangeStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o IPRangeStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *IPRangeStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *IPRangeStatus) UnmarshalJSON(data []byte) (err error) {
varIPRangeStatus := _IPRangeStatus{}
- err = json.Unmarshal(bytes, &varIPRangeStatus)
+ err = json.Unmarshal(data, &varIPRangeStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *IPRangeStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_ip_range_status_label.go b/model_ip_range_status_label.go
new file mode 100644
index 0000000000..ba7e473159
--- /dev/null
+++ b/model_ip_range_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: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IPRangeStatusLabel the model 'IPRangeStatusLabel'
+type IPRangeStatusLabel string
+
+// List of IPRange_status_label
+const (
+ IPRANGESTATUSLABEL_ACTIVE IPRangeStatusLabel = "Active"
+ IPRANGESTATUSLABEL_RESERVED IPRangeStatusLabel = "Reserved"
+ IPRANGESTATUSLABEL_DEPRECATED IPRangeStatusLabel = "Deprecated"
+)
+
+// All allowed values of IPRangeStatusLabel enum
+var AllowedIPRangeStatusLabelEnumValues = []IPRangeStatusLabel{
+ "Active",
+ "Reserved",
+ "Deprecated",
+}
+
+func (v *IPRangeStatusLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IPRangeStatusLabel(value)
+ for _, existing := range AllowedIPRangeStatusLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IPRangeStatusLabel", value)
+}
+
+// NewIPRangeStatusLabelFromValue returns a pointer to a valid IPRangeStatusLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIPRangeStatusLabelFromValue(v string) (*IPRangeStatusLabel, error) {
+ ev := IPRangeStatusLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IPRangeStatusLabel: valid values are %v", v, AllowedIPRangeStatusLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IPRangeStatusLabel) IsValid() bool {
+ for _, existing := range AllowedIPRangeStatusLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IPRange_status_label value
+func (v IPRangeStatusLabel) Ptr() *IPRangeStatusLabel {
+ return &v
+}
+
+type NullableIPRangeStatusLabel struct {
+ value *IPRangeStatusLabel
+ isSet bool
+}
+
+func (v NullableIPRangeStatusLabel) Get() *IPRangeStatusLabel {
+ return v.value
+}
+
+func (v *NullableIPRangeStatusLabel) Set(val *IPRangeStatusLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPRangeStatusLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPRangeStatusLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPRangeStatusLabel(val *IPRangeStatusLabel) *NullableIPRangeStatusLabel {
+ return &NullableIPRangeStatusLabel{value: val, isSet: true}
+}
+
+func (v NullableIPRangeStatusLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPRangeStatusLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_range_status_value.go b/model_ip_range_status_value.go
new file mode 100644
index 0000000000..56bed92923
--- /dev/null
+++ b/model_ip_range_status_value.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IPRangeStatusValue * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
+type IPRangeStatusValue string
+
+// List of IPRange_status_value
+const (
+ IPRANGESTATUSVALUE_ACTIVE IPRangeStatusValue = "active"
+ IPRANGESTATUSVALUE_RESERVED IPRangeStatusValue = "reserved"
+ IPRANGESTATUSVALUE_DEPRECATED IPRangeStatusValue = "deprecated"
+)
+
+// All allowed values of IPRangeStatusValue enum
+var AllowedIPRangeStatusValueEnumValues = []IPRangeStatusValue{
+ "active",
+ "reserved",
+ "deprecated",
+}
+
+func (v *IPRangeStatusValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IPRangeStatusValue(value)
+ for _, existing := range AllowedIPRangeStatusValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IPRangeStatusValue", value)
+}
+
+// NewIPRangeStatusValueFromValue returns a pointer to a valid IPRangeStatusValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIPRangeStatusValueFromValue(v string) (*IPRangeStatusValue, error) {
+ ev := IPRangeStatusValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IPRangeStatusValue: valid values are %v", v, AllowedIPRangeStatusValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IPRangeStatusValue) IsValid() bool {
+ for _, existing := range AllowedIPRangeStatusValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IPRange_status_value value
+func (v IPRangeStatusValue) Ptr() *IPRangeStatusValue {
+ return &v
+}
+
+type NullableIPRangeStatusValue struct {
+ value *IPRangeStatusValue
+ isSet bool
+}
+
+func (v NullableIPRangeStatusValue) Get() *IPRangeStatusValue {
+ return v.value
+}
+
+func (v *NullableIPRangeStatusValue) Set(val *IPRangeStatusValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPRangeStatusValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPRangeStatusValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPRangeStatusValue(val *IPRangeStatusValue) *NullableIPRangeStatusValue {
+ return &NullableIPRangeStatusValue{value: val, isSet: true}
+}
+
+func (v NullableIPRangeStatusValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPRangeStatusValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_sec_policy.go b/model_ip_sec_policy.go
new file mode 100644
index 0000000000..945e0665ef
--- /dev/null
+++ b/model_ip_sec_policy.go
@@ -0,0 +1,538 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the IPSecPolicy type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IPSecPolicy{}
+
+// IPSecPolicy Adds support for custom fields and tags.
+type IPSecPolicy struct {
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Proposals []int32 `json:"proposals,omitempty"`
+ PfsGroup *IKEProposalGroup `json:"pfs_group,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IPSecPolicy IPSecPolicy
+
+// NewIPSecPolicy instantiates a new IPSecPolicy object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIPSecPolicy(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *IPSecPolicy {
+ this := IPSecPolicy{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.Name = name
+ this.Created = created
+ this.LastUpdated = lastUpdated
+ return &this
+}
+
+// NewIPSecPolicyWithDefaults instantiates a new IPSecPolicy object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIPSecPolicyWithDefaults() *IPSecPolicy {
+ this := IPSecPolicy{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *IPSecPolicy) 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 *IPSecPolicy) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *IPSecPolicy) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *IPSecPolicy) 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 *IPSecPolicy) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *IPSecPolicy) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplay returns the Display field value
+func (o *IPSecPolicy) 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 *IPSecPolicy) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *IPSecPolicy) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetName returns the Name field value
+func (o *IPSecPolicy) 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 *IPSecPolicy) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *IPSecPolicy) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *IPSecPolicy) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *IPSecPolicy) 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 *IPSecPolicy) 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 *IPSecPolicy) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetProposals returns the Proposals field value if set, zero value otherwise.
+func (o *IPSecPolicy) GetProposals() []int32 {
+ if o == nil || IsNil(o.Proposals) {
+ var ret []int32
+ return ret
+ }
+ return o.Proposals
+}
+
+// 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) {
+ if o == nil || IsNil(o.Proposals) {
+ return nil, false
+ }
+ return o.Proposals, true
+}
+
+// HasProposals returns a boolean if a field has been set.
+func (o *IPSecPolicy) 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 *IPSecPolicy) SetProposals(v []int32) {
+ o.Proposals = v
+}
+
+// GetPfsGroup returns the PfsGroup field value if set, zero value otherwise.
+func (o *IPSecPolicy) GetPfsGroup() IKEProposalGroup {
+ if o == nil || IsNil(o.PfsGroup) {
+ var ret IKEProposalGroup
+ return ret
+ }
+ return *o.PfsGroup
+}
+
+// GetPfsGroupOk returns a tuple with the PfsGroup field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *IPSecPolicy) GetPfsGroupOk() (*IKEProposalGroup, bool) {
+ if o == nil || IsNil(o.PfsGroup) {
+ return nil, false
+ }
+ return o.PfsGroup, true
+}
+
+// HasPfsGroup returns a boolean if a field has been set.
+func (o *IPSecPolicy) HasPfsGroup() bool {
+ if o != nil && !IsNil(o.PfsGroup) {
+ return true
+ }
+
+ return false
+}
+
+// SetPfsGroup gets a reference to the given IKEProposalGroup and assigns it to the PfsGroup field.
+func (o *IPSecPolicy) SetPfsGroup(v IKEProposalGroup) {
+ o.PfsGroup = &v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *IPSecPolicy) 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 *IPSecPolicy) 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 *IPSecPolicy) 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 *IPSecPolicy) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *IPSecPolicy) 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 *IPSecPolicy) 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 *IPSecPolicy) 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 *IPSecPolicy) SetTags(v []NestedTag) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *IPSecPolicy) 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 *IPSecPolicy) 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 *IPSecPolicy) 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 *IPSecPolicy) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetCreated returns the Created field value
+// If the value is explicit nil, the zero value for time.Time will be returned
+func (o *IPSecPolicy) 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 *IPSecPolicy) GetCreatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Created.Get(), o.Created.IsSet()
+}
+
+// SetCreated sets field value
+func (o *IPSecPolicy) 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 *IPSecPolicy) 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 *IPSecPolicy) GetLastUpdatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.LastUpdated.Get(), o.LastUpdated.IsSet()
+}
+
+// SetLastUpdated sets field value
+func (o *IPSecPolicy) SetLastUpdated(v time.Time) {
+ o.LastUpdated.Set(&v)
+}
+
+func (o IPSecPolicy) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IPSecPolicy) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ toSerialize["display"] = o.Display
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.Proposals) {
+ toSerialize["proposals"] = o.Proposals
+ }
+ if !IsNil(o.PfsGroup) {
+ toSerialize["pfs_group"] = o.PfsGroup
+ }
+ 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
+ }
+
+ return toSerialize, nil
+}
+
+func (o *IPSecPolicy) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
+ varIPSecPolicy := _IPSecPolicy{}
+
+ err = json.Unmarshal(data, &varIPSecPolicy)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IPSecPolicy(varIPSecPolicy)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "proposals")
+ delete(additionalProperties, "pfs_group")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "created")
+ delete(additionalProperties, "last_updated")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableIPSecPolicy struct {
+ value *IPSecPolicy
+ isSet bool
+}
+
+func (v NullableIPSecPolicy) Get() *IPSecPolicy {
+ return v.value
+}
+
+func (v *NullableIPSecPolicy) Set(val *IPSecPolicy) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPSecPolicy) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPSecPolicy) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPSecPolicy(val *IPSecPolicy) *NullableIPSecPolicy {
+ return &NullableIPSecPolicy{value: val, isSet: true}
+}
+
+func (v NullableIPSecPolicy) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPSecPolicy) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_sec_policy_request.go b/model_ip_sec_policy_request.go
new file mode 100644
index 0000000000..7e06c57760
--- /dev/null
+++ b/model_ip_sec_policy_request.go
@@ -0,0 +1,388 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the IPSecPolicyRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IPSecPolicyRequest{}
+
+// IPSecPolicyRequest Adds support for custom fields and tags.
+type IPSecPolicyRequest struct {
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Proposals []int32 `json:"proposals,omitempty"`
+ PfsGroup *IKEProposalGroupValue `json:"pfs_group,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IPSecPolicyRequest IPSecPolicyRequest
+
+// NewIPSecPolicyRequest instantiates a new IPSecPolicyRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIPSecPolicyRequest(name string) *IPSecPolicyRequest {
+ this := IPSecPolicyRequest{}
+ this.Name = name
+ return &this
+}
+
+// NewIPSecPolicyRequestWithDefaults instantiates a new IPSecPolicyRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIPSecPolicyRequestWithDefaults() *IPSecPolicyRequest {
+ this := IPSecPolicyRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *IPSecPolicyRequest) 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 *IPSecPolicyRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *IPSecPolicyRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *IPSecPolicyRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *IPSecPolicyRequest) 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 *IPSecPolicyRequest) 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 *IPSecPolicyRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetProposals returns the Proposals field value if set, zero value otherwise.
+func (o *IPSecPolicyRequest) GetProposals() []int32 {
+ if o == nil || IsNil(o.Proposals) {
+ var ret []int32
+ return ret
+ }
+ return o.Proposals
+}
+
+// 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 *IPSecPolicyRequest) GetProposalsOk() ([]int32, bool) {
+ if o == nil || IsNil(o.Proposals) {
+ return nil, false
+ }
+ return o.Proposals, true
+}
+
+// HasProposals returns a boolean if a field has been set.
+func (o *IPSecPolicyRequest) 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 *IPSecPolicyRequest) SetProposals(v []int32) {
+ o.Proposals = v
+}
+
+// GetPfsGroup returns the PfsGroup field value if set, zero value otherwise.
+func (o *IPSecPolicyRequest) GetPfsGroup() IKEProposalGroupValue {
+ if o == nil || IsNil(o.PfsGroup) {
+ var ret IKEProposalGroupValue
+ return ret
+ }
+ return *o.PfsGroup
+}
+
+// GetPfsGroupOk returns a tuple with the PfsGroup field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *IPSecPolicyRequest) GetPfsGroupOk() (*IKEProposalGroupValue, bool) {
+ if o == nil || IsNil(o.PfsGroup) {
+ return nil, false
+ }
+ return o.PfsGroup, true
+}
+
+// HasPfsGroup returns a boolean if a field has been set.
+func (o *IPSecPolicyRequest) HasPfsGroup() bool {
+ if o != nil && !IsNil(o.PfsGroup) {
+ return true
+ }
+
+ return false
+}
+
+// SetPfsGroup gets a reference to the given IKEProposalGroupValue and assigns it to the PfsGroup field.
+func (o *IPSecPolicyRequest) SetPfsGroup(v IKEProposalGroupValue) {
+ o.PfsGroup = &v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *IPSecPolicyRequest) 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 *IPSecPolicyRequest) 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 *IPSecPolicyRequest) 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 *IPSecPolicyRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *IPSecPolicyRequest) 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 *IPSecPolicyRequest) 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 *IPSecPolicyRequest) 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 *IPSecPolicyRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *IPSecPolicyRequest) 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 *IPSecPolicyRequest) 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 *IPSecPolicyRequest) 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 *IPSecPolicyRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o IPSecPolicyRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IPSecPolicyRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.Proposals) {
+ toSerialize["proposals"] = o.Proposals
+ }
+ if !IsNil(o.PfsGroup) {
+ toSerialize["pfs_group"] = o.PfsGroup
+ }
+ 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 *IPSecPolicyRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
+ varIPSecPolicyRequest := _IPSecPolicyRequest{}
+
+ err = json.Unmarshal(data, &varIPSecPolicyRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IPSecPolicyRequest(varIPSecPolicyRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "proposals")
+ delete(additionalProperties, "pfs_group")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableIPSecPolicyRequest struct {
+ value *IPSecPolicyRequest
+ isSet bool
+}
+
+func (v NullableIPSecPolicyRequest) Get() *IPSecPolicyRequest {
+ return v.value
+}
+
+func (v *NullableIPSecPolicyRequest) Set(val *IPSecPolicyRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPSecPolicyRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPSecPolicyRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPSecPolicyRequest(val *IPSecPolicyRequest) *NullableIPSecPolicyRequest {
+ return &NullableIPSecPolicyRequest{value: val, isSet: true}
+}
+
+func (v NullableIPSecPolicyRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPSecPolicyRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_sec_profile.go b/model_ip_sec_profile.go
new file mode 100644
index 0000000000..e0c0ac5bb9
--- /dev/null
+++ b/model_ip_sec_profile.go
@@ -0,0 +1,551 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the IPSecProfile type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IPSecProfile{}
+
+// IPSecProfile Adds support for custom fields and tags.
+type IPSecProfile struct {
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Mode IPSecProfileMode `json:"mode"`
+ IkePolicy NestedIKEPolicy `json:"ike_policy"`
+ IpsecPolicy NestedIPSecPolicy `json:"ipsec_policy"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IPSecProfile IPSecProfile
+
+// NewIPSecProfile instantiates a new IPSecProfile object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := IPSecProfile{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.Name = name
+ this.Mode = mode
+ this.IkePolicy = ikePolicy
+ this.IpsecPolicy = ipsecPolicy
+ this.Created = created
+ this.LastUpdated = lastUpdated
+ return &this
+}
+
+// NewIPSecProfileWithDefaults instantiates a new IPSecProfile object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIPSecProfileWithDefaults() *IPSecProfile {
+ this := IPSecProfile{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *IPSecProfile) 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 *IPSecProfile) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *IPSecProfile) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *IPSecProfile) 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 *IPSecProfile) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *IPSecProfile) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplay returns the Display field value
+func (o *IPSecProfile) 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 *IPSecProfile) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *IPSecProfile) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetName returns the Name field value
+func (o *IPSecProfile) 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 *IPSecProfile) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *IPSecProfile) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *IPSecProfile) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *IPSecProfile) 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 *IPSecProfile) 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 *IPSecProfile) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetMode returns the Mode field value
+func (o *IPSecProfile) GetMode() IPSecProfileMode {
+ if o == nil {
+ var ret IPSecProfileMode
+ return ret
+ }
+
+ return o.Mode
+}
+
+// GetModeOk returns a tuple with the Mode field value
+// and a boolean to check if the value has been set.
+func (o *IPSecProfile) GetModeOk() (*IPSecProfileMode, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Mode, true
+}
+
+// SetMode sets field value
+func (o *IPSecProfile) SetMode(v IPSecProfileMode) {
+ o.Mode = v
+}
+
+// GetIkePolicy returns the IkePolicy field value
+func (o *IPSecProfile) GetIkePolicy() NestedIKEPolicy {
+ if o == nil {
+ var ret NestedIKEPolicy
+ return ret
+ }
+
+ return o.IkePolicy
+}
+
+// GetIkePolicyOk returns a tuple with the IkePolicy field value
+// and a boolean to check if the value has been set.
+func (o *IPSecProfile) GetIkePolicyOk() (*NestedIKEPolicy, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.IkePolicy, true
+}
+
+// SetIkePolicy sets field value
+func (o *IPSecProfile) SetIkePolicy(v NestedIKEPolicy) {
+ o.IkePolicy = v
+}
+
+// GetIpsecPolicy returns the IpsecPolicy field value
+func (o *IPSecProfile) GetIpsecPolicy() NestedIPSecPolicy {
+ if o == nil {
+ var ret NestedIPSecPolicy
+ return ret
+ }
+
+ return o.IpsecPolicy
+}
+
+// GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value
+// and a boolean to check if the value has been set.
+func (o *IPSecProfile) GetIpsecPolicyOk() (*NestedIPSecPolicy, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.IpsecPolicy, true
+}
+
+// SetIpsecPolicy sets field value
+func (o *IPSecProfile) SetIpsecPolicy(v NestedIPSecPolicy) {
+ o.IpsecPolicy = v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *IPSecProfile) GetComments() string {
+ if o == nil || IsNil(o.Comments) {
+ 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 *IPSecProfile) 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 *IPSecProfile) 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 *IPSecProfile) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *IPSecProfile) 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 *IPSecProfile) 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 *IPSecProfile) 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 *IPSecProfile) SetTags(v []NestedTag) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *IPSecProfile) 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 *IPSecProfile) 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 *IPSecProfile) 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 *IPSecProfile) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetCreated returns the Created field value
+// If the value is explicit nil, the zero value for time.Time will be returned
+func (o *IPSecProfile) 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 *IPSecProfile) GetCreatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Created.Get(), o.Created.IsSet()
+}
+
+// SetCreated sets field value
+func (o *IPSecProfile) 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 *IPSecProfile) 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 *IPSecProfile) GetLastUpdatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.LastUpdated.Get(), o.LastUpdated.IsSet()
+}
+
+// SetLastUpdated sets field value
+func (o *IPSecProfile) SetLastUpdated(v time.Time) {
+ o.LastUpdated.Set(&v)
+}
+
+func (o IPSecProfile) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IPSecProfile) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ toSerialize["display"] = o.Display
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["mode"] = o.Mode
+ toSerialize["ike_policy"] = o.IkePolicy
+ toSerialize["ipsec_policy"] = o.IpsecPolicy
+ 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
+ }
+
+ return toSerialize, nil
+}
+
+func (o *IPSecProfile) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "mode",
+ "ike_policy",
+ "ipsec_policy",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
+ varIPSecProfile := _IPSecProfile{}
+
+ err = json.Unmarshal(data, &varIPSecProfile)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IPSecProfile(varIPSecProfile)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "mode")
+ delete(additionalProperties, "ike_policy")
+ delete(additionalProperties, "ipsec_policy")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "created")
+ delete(additionalProperties, "last_updated")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableIPSecProfile struct {
+ value *IPSecProfile
+ isSet bool
+}
+
+func (v NullableIPSecProfile) Get() *IPSecProfile {
+ return v.value
+}
+
+func (v *NullableIPSecProfile) Set(val *IPSecProfile) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPSecProfile) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPSecProfile) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPSecProfile(val *IPSecProfile) *NullableIPSecProfile {
+ return &NullableIPSecProfile{value: val, isSet: true}
+}
+
+func (v NullableIPSecProfile) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPSecProfile) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_sec_profile_mode.go b/model_ip_sec_profile_mode.go
new file mode 100644
index 0000000000..9e55174cfe
--- /dev/null
+++ b/model_ip_sec_profile_mode.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the IPSecProfileMode type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IPSecProfileMode{}
+
+// IPSecProfileMode struct for IPSecProfileMode
+type IPSecProfileMode struct {
+ Value *IPSecProfileModeValue `json:"value,omitempty"`
+ Label *IPSecProfileModeLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IPSecProfileMode IPSecProfileMode
+
+// NewIPSecProfileMode instantiates a new IPSecProfileMode object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIPSecProfileMode() *IPSecProfileMode {
+ this := IPSecProfileMode{}
+ return &this
+}
+
+// NewIPSecProfileModeWithDefaults instantiates a new IPSecProfileMode object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIPSecProfileModeWithDefaults() *IPSecProfileMode {
+ this := IPSecProfileMode{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *IPSecProfileMode) GetValue() IPSecProfileModeValue {
+ if o == nil || IsNil(o.Value) {
+ var ret IPSecProfileModeValue
+ 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 *IPSecProfileMode) GetValueOk() (*IPSecProfileModeValue, 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 *IPSecProfileMode) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given IPSecProfileModeValue and assigns it to the Value field.
+func (o *IPSecProfileMode) SetValue(v IPSecProfileModeValue) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *IPSecProfileMode) GetLabel() IPSecProfileModeLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret IPSecProfileModeLabel
+ 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 *IPSecProfileMode) GetLabelOk() (*IPSecProfileModeLabel, 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 *IPSecProfileMode) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given IPSecProfileModeLabel and assigns it to the Label field.
+func (o *IPSecProfileMode) SetLabel(v IPSecProfileModeLabel) {
+ o.Label = &v
+}
+
+func (o IPSecProfileMode) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IPSecProfileMode) 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 *IPSecProfileMode) UnmarshalJSON(data []byte) (err error) {
+ varIPSecProfileMode := _IPSecProfileMode{}
+
+ err = json.Unmarshal(data, &varIPSecProfileMode)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IPSecProfileMode(varIPSecProfileMode)
+
+ 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 NullableIPSecProfileMode struct {
+ value *IPSecProfileMode
+ isSet bool
+}
+
+func (v NullableIPSecProfileMode) Get() *IPSecProfileMode {
+ return v.value
+}
+
+func (v *NullableIPSecProfileMode) Set(val *IPSecProfileMode) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPSecProfileMode) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPSecProfileMode) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPSecProfileMode(val *IPSecProfileMode) *NullableIPSecProfileMode {
+ return &NullableIPSecProfileMode{value: val, isSet: true}
+}
+
+func (v NullableIPSecProfileMode) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPSecProfileMode) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_sec_profile_mode_label.go b/model_ip_sec_profile_mode_label.go
new file mode 100644
index 0000000000..2ce43e2a4a
--- /dev/null
+++ b/model_ip_sec_profile_mode_label.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IPSecProfileModeLabel the model 'IPSecProfileModeLabel'
+type IPSecProfileModeLabel string
+
+// List of IPSecProfile_mode_label
+const (
+ IPSECPROFILEMODELABEL_ESP IPSecProfileModeLabel = "ESP"
+ IPSECPROFILEMODELABEL_AH IPSecProfileModeLabel = "AH"
+)
+
+// All allowed values of IPSecProfileModeLabel enum
+var AllowedIPSecProfileModeLabelEnumValues = []IPSecProfileModeLabel{
+ "ESP",
+ "AH",
+}
+
+func (v *IPSecProfileModeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IPSecProfileModeLabel(value)
+ for _, existing := range AllowedIPSecProfileModeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IPSecProfileModeLabel", value)
+}
+
+// NewIPSecProfileModeLabelFromValue returns a pointer to a valid IPSecProfileModeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIPSecProfileModeLabelFromValue(v string) (*IPSecProfileModeLabel, error) {
+ ev := IPSecProfileModeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IPSecProfileModeLabel: valid values are %v", v, AllowedIPSecProfileModeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IPSecProfileModeLabel) IsValid() bool {
+ for _, existing := range AllowedIPSecProfileModeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IPSecProfile_mode_label value
+func (v IPSecProfileModeLabel) Ptr() *IPSecProfileModeLabel {
+ return &v
+}
+
+type NullableIPSecProfileModeLabel struct {
+ value *IPSecProfileModeLabel
+ isSet bool
+}
+
+func (v NullableIPSecProfileModeLabel) Get() *IPSecProfileModeLabel {
+ return v.value
+}
+
+func (v *NullableIPSecProfileModeLabel) Set(val *IPSecProfileModeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPSecProfileModeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPSecProfileModeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPSecProfileModeLabel(val *IPSecProfileModeLabel) *NullableIPSecProfileModeLabel {
+ return &NullableIPSecProfileModeLabel{value: val, isSet: true}
+}
+
+func (v NullableIPSecProfileModeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPSecProfileModeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_sec_profile_mode_value.go b/model_ip_sec_profile_mode_value.go
new file mode 100644
index 0000000000..252b22d03b
--- /dev/null
+++ b/model_ip_sec_profile_mode_value.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IPSecProfileModeValue * `esp` - ESP * `ah` - AH
+type IPSecProfileModeValue string
+
+// List of IPSecProfile_mode_value
+const (
+ IPSECPROFILEMODEVALUE_ESP IPSecProfileModeValue = "esp"
+ IPSECPROFILEMODEVALUE_AH IPSecProfileModeValue = "ah"
+)
+
+// All allowed values of IPSecProfileModeValue enum
+var AllowedIPSecProfileModeValueEnumValues = []IPSecProfileModeValue{
+ "esp",
+ "ah",
+}
+
+func (v *IPSecProfileModeValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IPSecProfileModeValue(value)
+ for _, existing := range AllowedIPSecProfileModeValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IPSecProfileModeValue", value)
+}
+
+// NewIPSecProfileModeValueFromValue returns a pointer to a valid IPSecProfileModeValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIPSecProfileModeValueFromValue(v string) (*IPSecProfileModeValue, error) {
+ ev := IPSecProfileModeValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IPSecProfileModeValue: valid values are %v", v, AllowedIPSecProfileModeValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IPSecProfileModeValue) IsValid() bool {
+ for _, existing := range AllowedIPSecProfileModeValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IPSecProfile_mode_value value
+func (v IPSecProfileModeValue) Ptr() *IPSecProfileModeValue {
+ return &v
+}
+
+type NullableIPSecProfileModeValue struct {
+ value *IPSecProfileModeValue
+ isSet bool
+}
+
+func (v NullableIPSecProfileModeValue) Get() *IPSecProfileModeValue {
+ return v.value
+}
+
+func (v *NullableIPSecProfileModeValue) Set(val *IPSecProfileModeValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPSecProfileModeValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPSecProfileModeValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPSecProfileModeValue(val *IPSecProfileModeValue) *NullableIPSecProfileModeValue {
+ return &NullableIPSecProfileModeValue{value: val, isSet: true}
+}
+
+func (v NullableIPSecProfileModeValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPSecProfileModeValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_sec_profile_request.go b/model_ip_sec_profile_request.go
new file mode 100644
index 0000000000..049de04025
--- /dev/null
+++ b/model_ip_sec_profile_request.go
@@ -0,0 +1,401 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the IPSecProfileRequest type satisfies the MappedNullable interface at compile time
+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"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IPSecProfileRequest IPSecProfileRequest
+
+// NewIPSecProfileRequest instantiates a new IPSecProfileRequest object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := IPSecProfileRequest{}
+ this.Name = name
+ this.Mode = mode
+ this.IkePolicy = ikePolicy
+ this.IpsecPolicy = ipsecPolicy
+ return &this
+}
+
+// NewIPSecProfileRequestWithDefaults instantiates a new IPSecProfileRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIPSecProfileRequestWithDefaults() *IPSecProfileRequest {
+ this := IPSecProfileRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *IPSecProfileRequest) 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 *IPSecProfileRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *IPSecProfileRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *IPSecProfileRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *IPSecProfileRequest) 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 *IPSecProfileRequest) 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 *IPSecProfileRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetMode returns the Mode field value
+func (o *IPSecProfileRequest) GetMode() IPSecProfileModeValue {
+ if o == nil {
+ var ret IPSecProfileModeValue
+ return ret
+ }
+
+ return o.Mode
+}
+
+// GetModeOk returns a tuple with the Mode field value
+// and a boolean to check if the value has been set.
+func (o *IPSecProfileRequest) GetModeOk() (*IPSecProfileModeValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Mode, true
+}
+
+// SetMode sets field value
+func (o *IPSecProfileRequest) SetMode(v IPSecProfileModeValue) {
+ o.Mode = v
+}
+
+// GetIkePolicy returns the IkePolicy field value
+func (o *IPSecProfileRequest) GetIkePolicy() NestedIKEPolicyRequest {
+ if o == nil {
+ var ret NestedIKEPolicyRequest
+ return ret
+ }
+
+ return o.IkePolicy
+}
+
+// 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) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.IkePolicy, true
+}
+
+// SetIkePolicy sets field value
+func (o *IPSecProfileRequest) SetIkePolicy(v NestedIKEPolicyRequest) {
+ o.IkePolicy = v
+}
+
+// GetIpsecPolicy returns the IpsecPolicy field value
+func (o *IPSecProfileRequest) GetIpsecPolicy() NestedIPSecPolicyRequest {
+ if o == nil {
+ var ret NestedIPSecPolicyRequest
+ return ret
+ }
+
+ return o.IpsecPolicy
+}
+
+// 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) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.IpsecPolicy, true
+}
+
+// SetIpsecPolicy sets field value
+func (o *IPSecProfileRequest) SetIpsecPolicy(v NestedIPSecPolicyRequest) {
+ o.IpsecPolicy = v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *IPSecProfileRequest) GetComments() string {
+ if o == nil || IsNil(o.Comments) {
+ 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 *IPSecProfileRequest) 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 *IPSecProfileRequest) 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 *IPSecProfileRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *IPSecProfileRequest) 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 *IPSecProfileRequest) 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 *IPSecProfileRequest) 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 *IPSecProfileRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *IPSecProfileRequest) 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 *IPSecProfileRequest) 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 *IPSecProfileRequest) 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 *IPSecProfileRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o IPSecProfileRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IPSecProfileRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["mode"] = o.Mode
+ toSerialize["ike_policy"] = o.IkePolicy
+ toSerialize["ipsec_policy"] = o.IpsecPolicy
+ 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 *IPSecProfileRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "mode",
+ "ike_policy",
+ "ipsec_policy",
+ }
+
+ 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)
+ }
+ }
+
+ varIPSecProfileRequest := _IPSecProfileRequest{}
+
+ err = json.Unmarshal(data, &varIPSecProfileRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IPSecProfileRequest(varIPSecProfileRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "mode")
+ delete(additionalProperties, "ike_policy")
+ delete(additionalProperties, "ipsec_policy")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableIPSecProfileRequest struct {
+ value *IPSecProfileRequest
+ isSet bool
+}
+
+func (v NullableIPSecProfileRequest) Get() *IPSecProfileRequest {
+ return v.value
+}
+
+func (v *NullableIPSecProfileRequest) Set(val *IPSecProfileRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPSecProfileRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPSecProfileRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPSecProfileRequest(val *IPSecProfileRequest) *NullableIPSecProfileRequest {
+ return &NullableIPSecProfileRequest{value: val, isSet: true}
+}
+
+func (v NullableIPSecProfileRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPSecProfileRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_sec_proposal.go b/model_ip_sec_proposal.go
new file mode 100644
index 0000000000..6742e9c8f9
--- /dev/null
+++ b/model_ip_sec_proposal.go
@@ -0,0 +1,620 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the IPSecProposal type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IPSecProposal{}
+
+// IPSecProposal Adds support for custom fields and tags.
+type IPSecProposal struct {
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"`
+ AuthenticationAlgorithm IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm"`
+ // Security association lifetime (seconds)
+ SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"`
+ // Security association lifetime (in kilobytes)
+ SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IPSecProposal IPSecProposal
+
+// NewIPSecProposal instantiates a new IPSecProposal object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIPSecProposal(id int32, url string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime) *IPSecProposal {
+ this := IPSecProposal{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.Name = name
+ this.EncryptionAlgorithm = encryptionAlgorithm
+ this.AuthenticationAlgorithm = authenticationAlgorithm
+ this.Created = created
+ this.LastUpdated = lastUpdated
+ return &this
+}
+
+// NewIPSecProposalWithDefaults instantiates a new IPSecProposal object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIPSecProposalWithDefaults() *IPSecProposal {
+ this := IPSecProposal{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *IPSecProposal) 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 *IPSecProposal) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *IPSecProposal) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *IPSecProposal) 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 *IPSecProposal) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *IPSecProposal) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplay returns the Display field value
+func (o *IPSecProposal) 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 *IPSecProposal) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *IPSecProposal) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetName returns the Name field value
+func (o *IPSecProposal) 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 *IPSecProposal) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *IPSecProposal) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *IPSecProposal) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *IPSecProposal) 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 *IPSecProposal) 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 *IPSecProposal) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value
+func (o *IPSecProposal) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithm {
+ if o == nil {
+ var ret IKEProposalEncryptionAlgorithm
+ return ret
+ }
+
+ return o.EncryptionAlgorithm
+}
+
+// GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value
+// and a boolean to check if the value has been set.
+func (o *IPSecProposal) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithm, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.EncryptionAlgorithm, true
+}
+
+// SetEncryptionAlgorithm sets field value
+func (o *IPSecProposal) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithm) {
+ o.EncryptionAlgorithm = v
+}
+
+// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value
+func (o *IPSecProposal) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithm {
+ if o == nil {
+ var ret IKEProposalAuthenticationAlgorithm
+ return ret
+ }
+
+ return o.AuthenticationAlgorithm
+}
+
+// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value
+// and a boolean to check if the value has been set.
+func (o *IPSecProposal) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithm, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.AuthenticationAlgorithm, true
+}
+
+// SetAuthenticationAlgorithm sets field value
+func (o *IPSecProposal) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithm) {
+ o.AuthenticationAlgorithm = v
+}
+
+// GetSaLifetimeSeconds returns the SaLifetimeSeconds field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *IPSecProposal) GetSaLifetimeSeconds() int32 {
+ if o == nil || IsNil(o.SaLifetimeSeconds.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.SaLifetimeSeconds.Get()
+}
+
+// GetSaLifetimeSecondsOk returns a tuple with the SaLifetimeSeconds field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *IPSecProposal) GetSaLifetimeSecondsOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SaLifetimeSeconds.Get(), o.SaLifetimeSeconds.IsSet()
+}
+
+// HasSaLifetimeSeconds returns a boolean if a field has been set.
+func (o *IPSecProposal) HasSaLifetimeSeconds() bool {
+ if o != nil && o.SaLifetimeSeconds.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSaLifetimeSeconds gets a reference to the given NullableInt32 and assigns it to the SaLifetimeSeconds field.
+func (o *IPSecProposal) SetSaLifetimeSeconds(v int32) {
+ o.SaLifetimeSeconds.Set(&v)
+}
+
+// SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil
+func (o *IPSecProposal) SetSaLifetimeSecondsNil() {
+ o.SaLifetimeSeconds.Set(nil)
+}
+
+// UnsetSaLifetimeSeconds ensures that no value is present for SaLifetimeSeconds, not even an explicit nil
+func (o *IPSecProposal) UnsetSaLifetimeSeconds() {
+ o.SaLifetimeSeconds.Unset()
+}
+
+// GetSaLifetimeData returns the SaLifetimeData field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *IPSecProposal) GetSaLifetimeData() int32 {
+ if o == nil || IsNil(o.SaLifetimeData.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.SaLifetimeData.Get()
+}
+
+// GetSaLifetimeDataOk returns a tuple with the SaLifetimeData field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *IPSecProposal) GetSaLifetimeDataOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SaLifetimeData.Get(), o.SaLifetimeData.IsSet()
+}
+
+// HasSaLifetimeData returns a boolean if a field has been set.
+func (o *IPSecProposal) HasSaLifetimeData() bool {
+ if o != nil && o.SaLifetimeData.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSaLifetimeData gets a reference to the given NullableInt32 and assigns it to the SaLifetimeData field.
+func (o *IPSecProposal) SetSaLifetimeData(v int32) {
+ o.SaLifetimeData.Set(&v)
+}
+
+// SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil
+func (o *IPSecProposal) SetSaLifetimeDataNil() {
+ o.SaLifetimeData.Set(nil)
+}
+
+// UnsetSaLifetimeData ensures that no value is present for SaLifetimeData, not even an explicit nil
+func (o *IPSecProposal) UnsetSaLifetimeData() {
+ o.SaLifetimeData.Unset()
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *IPSecProposal) 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 *IPSecProposal) 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 *IPSecProposal) 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 *IPSecProposal) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *IPSecProposal) 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 *IPSecProposal) 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 *IPSecProposal) 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 *IPSecProposal) SetTags(v []NestedTag) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *IPSecProposal) 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 *IPSecProposal) 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 *IPSecProposal) 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 *IPSecProposal) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetCreated returns the Created field value
+// If the value is explicit nil, the zero value for time.Time will be returned
+func (o *IPSecProposal) 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 *IPSecProposal) GetCreatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Created.Get(), o.Created.IsSet()
+}
+
+// SetCreated sets field value
+func (o *IPSecProposal) 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 *IPSecProposal) 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 *IPSecProposal) GetLastUpdatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.LastUpdated.Get(), o.LastUpdated.IsSet()
+}
+
+// SetLastUpdated sets field value
+func (o *IPSecProposal) SetLastUpdated(v time.Time) {
+ o.LastUpdated.Set(&v)
+}
+
+func (o IPSecProposal) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IPSecProposal) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ toSerialize["display"] = o.Display
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm
+ toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm
+ if o.SaLifetimeSeconds.IsSet() {
+ toSerialize["sa_lifetime_seconds"] = o.SaLifetimeSeconds.Get()
+ }
+ if o.SaLifetimeData.IsSet() {
+ toSerialize["sa_lifetime_data"] = o.SaLifetimeData.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
+ }
+
+ return toSerialize, nil
+}
+
+func (o *IPSecProposal) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "encryption_algorithm",
+ "authentication_algorithm",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
+ varIPSecProposal := _IPSecProposal{}
+
+ err = json.Unmarshal(data, &varIPSecProposal)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IPSecProposal(varIPSecProposal)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "encryption_algorithm")
+ delete(additionalProperties, "authentication_algorithm")
+ delete(additionalProperties, "sa_lifetime_seconds")
+ delete(additionalProperties, "sa_lifetime_data")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "created")
+ delete(additionalProperties, "last_updated")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableIPSecProposal struct {
+ value *IPSecProposal
+ isSet bool
+}
+
+func (v NullableIPSecProposal) Get() *IPSecProposal {
+ return v.value
+}
+
+func (v *NullableIPSecProposal) Set(val *IPSecProposal) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPSecProposal) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPSecProposal) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPSecProposal(val *IPSecProposal) *NullableIPSecProposal {
+ return &NullableIPSecProposal{value: val, isSet: true}
+}
+
+func (v NullableIPSecProposal) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPSecProposal) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_sec_proposal_request.go b/model_ip_sec_proposal_request.go
new file mode 100644
index 0000000000..79c9e81009
--- /dev/null
+++ b/model_ip_sec_proposal_request.go
@@ -0,0 +1,470 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the IPSecProposalRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IPSecProposalRequest{}
+
+// IPSecProposalRequest Adds support for custom fields and tags.
+type IPSecProposalRequest struct {
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"`
+ AuthenticationAlgorithm IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm"`
+ // Security association lifetime (seconds)
+ SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"`
+ // Security association lifetime (in kilobytes)
+ SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _IPSecProposalRequest IPSecProposalRequest
+
+// NewIPSecProposalRequest instantiates a new IPSecProposalRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewIPSecProposalRequest(name string, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue) *IPSecProposalRequest {
+ this := IPSecProposalRequest{}
+ this.Name = name
+ this.EncryptionAlgorithm = encryptionAlgorithm
+ this.AuthenticationAlgorithm = authenticationAlgorithm
+ return &this
+}
+
+// NewIPSecProposalRequestWithDefaults instantiates a new IPSecProposalRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewIPSecProposalRequestWithDefaults() *IPSecProposalRequest {
+ this := IPSecProposalRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *IPSecProposalRequest) 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 *IPSecProposalRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *IPSecProposalRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *IPSecProposalRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *IPSecProposalRequest) 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 *IPSecProposalRequest) 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 *IPSecProposalRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value
+func (o *IPSecProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue {
+ if o == nil {
+ var ret IKEProposalEncryptionAlgorithmValue
+ return ret
+ }
+
+ return o.EncryptionAlgorithm
+}
+
+// GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value
+// and a boolean to check if the value has been set.
+func (o *IPSecProposalRequest) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithmValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.EncryptionAlgorithm, true
+}
+
+// SetEncryptionAlgorithm sets field value
+func (o *IPSecProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithmValue) {
+ o.EncryptionAlgorithm = v
+}
+
+// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value
+func (o *IPSecProposalRequest) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithmValue {
+ if o == nil {
+ var ret IKEProposalAuthenticationAlgorithmValue
+ return ret
+ }
+
+ return o.AuthenticationAlgorithm
+}
+
+// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value
+// and a boolean to check if the value has been set.
+func (o *IPSecProposalRequest) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithmValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.AuthenticationAlgorithm, true
+}
+
+// SetAuthenticationAlgorithm sets field value
+func (o *IPSecProposalRequest) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithmValue) {
+ o.AuthenticationAlgorithm = v
+}
+
+// GetSaLifetimeSeconds returns the SaLifetimeSeconds field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *IPSecProposalRequest) GetSaLifetimeSeconds() int32 {
+ if o == nil || IsNil(o.SaLifetimeSeconds.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.SaLifetimeSeconds.Get()
+}
+
+// GetSaLifetimeSecondsOk returns a tuple with the SaLifetimeSeconds field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *IPSecProposalRequest) GetSaLifetimeSecondsOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SaLifetimeSeconds.Get(), o.SaLifetimeSeconds.IsSet()
+}
+
+// HasSaLifetimeSeconds returns a boolean if a field has been set.
+func (o *IPSecProposalRequest) HasSaLifetimeSeconds() bool {
+ if o != nil && o.SaLifetimeSeconds.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSaLifetimeSeconds gets a reference to the given NullableInt32 and assigns it to the SaLifetimeSeconds field.
+func (o *IPSecProposalRequest) SetSaLifetimeSeconds(v int32) {
+ o.SaLifetimeSeconds.Set(&v)
+}
+
+// SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil
+func (o *IPSecProposalRequest) SetSaLifetimeSecondsNil() {
+ o.SaLifetimeSeconds.Set(nil)
+}
+
+// UnsetSaLifetimeSeconds ensures that no value is present for SaLifetimeSeconds, not even an explicit nil
+func (o *IPSecProposalRequest) UnsetSaLifetimeSeconds() {
+ o.SaLifetimeSeconds.Unset()
+}
+
+// GetSaLifetimeData returns the SaLifetimeData field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *IPSecProposalRequest) GetSaLifetimeData() int32 {
+ if o == nil || IsNil(o.SaLifetimeData.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.SaLifetimeData.Get()
+}
+
+// GetSaLifetimeDataOk returns a tuple with the SaLifetimeData field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *IPSecProposalRequest) GetSaLifetimeDataOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SaLifetimeData.Get(), o.SaLifetimeData.IsSet()
+}
+
+// HasSaLifetimeData returns a boolean if a field has been set.
+func (o *IPSecProposalRequest) HasSaLifetimeData() bool {
+ if o != nil && o.SaLifetimeData.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSaLifetimeData gets a reference to the given NullableInt32 and assigns it to the SaLifetimeData field.
+func (o *IPSecProposalRequest) SetSaLifetimeData(v int32) {
+ o.SaLifetimeData.Set(&v)
+}
+
+// SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil
+func (o *IPSecProposalRequest) SetSaLifetimeDataNil() {
+ o.SaLifetimeData.Set(nil)
+}
+
+// UnsetSaLifetimeData ensures that no value is present for SaLifetimeData, not even an explicit nil
+func (o *IPSecProposalRequest) UnsetSaLifetimeData() {
+ o.SaLifetimeData.Unset()
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *IPSecProposalRequest) 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 *IPSecProposalRequest) 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 *IPSecProposalRequest) 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 *IPSecProposalRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *IPSecProposalRequest) 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 *IPSecProposalRequest) 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 *IPSecProposalRequest) 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 *IPSecProposalRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *IPSecProposalRequest) 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 *IPSecProposalRequest) 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 *IPSecProposalRequest) 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 *IPSecProposalRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o IPSecProposalRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IPSecProposalRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm
+ toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm
+ if o.SaLifetimeSeconds.IsSet() {
+ toSerialize["sa_lifetime_seconds"] = o.SaLifetimeSeconds.Get()
+ }
+ if o.SaLifetimeData.IsSet() {
+ toSerialize["sa_lifetime_data"] = o.SaLifetimeData.Get()
+ }
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *IPSecProposalRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "encryption_algorithm",
+ "authentication_algorithm",
+ }
+
+ 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)
+ }
+ }
+
+ varIPSecProposalRequest := _IPSecProposalRequest{}
+
+ err = json.Unmarshal(data, &varIPSecProposalRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = IPSecProposalRequest(varIPSecProposalRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "encryption_algorithm")
+ delete(additionalProperties, "authentication_algorithm")
+ delete(additionalProperties, "sa_lifetime_seconds")
+ delete(additionalProperties, "sa_lifetime_data")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableIPSecProposalRequest struct {
+ value *IPSecProposalRequest
+ isSet bool
+}
+
+func (v NullableIPSecProposalRequest) Get() *IPSecProposalRequest {
+ return v.value
+}
+
+func (v *NullableIPSecProposalRequest) Set(val *IPSecProposalRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPSecProposalRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPSecProposalRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPSecProposalRequest(val *IPSecProposalRequest) *NullableIPSecProposalRequest {
+ return &NullableIPSecProposalRequest{value: val, isSet: true}
+}
+
+func (v NullableIPSecProposalRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPSecProposalRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_job.go b/model_job.go
index d5059660f7..841c3d6641 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -30,12 +31,13 @@ type Job struct {
Created time.Time `json:"created"`
Scheduled NullableTime `json:"scheduled,omitempty"`
// Recurrence interval (in minutes)
- Interval NullableInt32 `json:"interval,omitempty"`
- Started NullableTime `json:"started,omitempty"`
- Completed NullableTime `json:"completed,omitempty"`
- User NestedUser `json:"user"`
- Data map[string]interface{} `json:"data,omitempty"`
- JobId string `json:"job_id"`
+ Interval NullableInt32 `json:"interval,omitempty"`
+ Started NullableTime `json:"started,omitempty"`
+ Completed NullableTime `json:"completed,omitempty"`
+ User NestedUser `json:"user"`
+ Data interface{} `json:"data,omitempty"`
+ Error string `json:"error"`
+ JobId string `json:"job_id"`
AdditionalProperties map[string]interface{}
}
@@ -45,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, jobId string) *Job {
+func NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user NestedUser, error_ string, jobId string) *Job {
this := Job{}
this.Id = id
this.Url = url
@@ -55,6 +57,7 @@ func NewJob(id int32, url string, display string, objectType string, name string
this.Status = status
this.Created = created
this.User = user
+ this.Error = error_
this.JobId = jobId
return &this
}
@@ -475,9 +478,9 @@ func (o *Job) SetUser(v NestedUser) {
}
// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Job) GetData() map[string]interface{} {
+func (o *Job) GetData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.Data
@@ -486,11 +489,11 @@ func (o *Job) GetData() map[string]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 *Job) GetDataOk() (map[string]interface{}, bool) {
+func (o *Job) GetDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.Data) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Data, true
+ return &o.Data, true
}
// HasData returns a boolean if a field has been set.
@@ -502,11 +505,35 @@ func (o *Job) HasData() bool {
return false
}
-// SetData gets a reference to the given map[string]interface{} and assigns it to the Data field.
-func (o *Job) SetData(v map[string]interface{}) {
+// SetData gets a reference to the given interface{} and assigns it to the Data field.
+func (o *Job) SetData(v interface{}) {
o.Data = v
}
+// GetError returns the Error field value
+func (o *Job) GetError() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Error
+}
+
+// GetErrorOk returns a tuple with the Error field value
+// and a boolean to check if the value has been set.
+func (o *Job) GetErrorOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Error, true
+}
+
+// SetError sets field value
+func (o *Job) SetError(v string) {
+ o.Error = v
+}
+
// GetJobId returns the JobId field value
func (o *Job) GetJobId() string {
if o == nil {
@@ -567,6 +594,7 @@ func (o Job) ToMap() (map[string]interface{}, error) {
if o.Data != nil {
toSerialize["data"] = o.Data
}
+ toSerialize["error"] = o.Error
toSerialize["job_id"] = o.JobId
for key, value := range o.AdditionalProperties {
@@ -576,10 +604,40 @@ func (o Job) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Job) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Job) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "url",
+ "display",
+ "object_type",
+ "name",
+ "status",
+ "created",
+ "user",
+ "error",
+ "job_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)
+ }
+ }
+
varJob := _Job{}
- err = json.Unmarshal(bytes, &varJob)
+ err = json.Unmarshal(data, &varJob)
if err != nil {
return err
@@ -589,7 +647,7 @@ func (o *Job) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
@@ -604,6 +662,7 @@ func (o *Job) UnmarshalJSON(bytes []byte) (err error) {
delete(additionalProperties, "completed")
delete(additionalProperties, "user")
delete(additionalProperties, "data")
+ delete(additionalProperties, "error")
delete(additionalProperties, "job_id")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_job_status.go b/model_job_status.go
index c7b72dfe67..0bb3c2d450 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &JobStatus{}
// JobStatus struct for JobStatus
type JobStatus struct {
- // * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *JobStatusValue `json:"value,omitempty"`
+ Label *JobStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewJobStatusWithDefaults() *JobStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *JobStatus) GetValue() string {
+func (o *JobStatus) GetValue() JobStatusValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret JobStatusValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *JobStatus) GetValue() string {
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *JobStatus) GetValueOk() (*string, bool) {
+func (o *JobStatus) GetValueOk() (*JobStatusValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *JobStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *JobStatus) SetValue(v string) {
+// SetValue gets a reference to the given JobStatusValue and assigns it to the Value field.
+func (o *JobStatus) SetValue(v JobStatusValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *JobStatus) GetLabel() string {
+func (o *JobStatus) GetLabel() JobStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret JobStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *JobStatus) 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 *JobStatus) GetLabelOk() (*string, bool) {
+func (o *JobStatus) GetLabelOk() (*JobStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *JobStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *JobStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given JobStatusLabel and assigns it to the Label field.
+func (o *JobStatus) SetLabel(v JobStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o JobStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *JobStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *JobStatus) UnmarshalJSON(data []byte) (err error) {
varJobStatus := _JobStatus{}
- err = json.Unmarshal(bytes, &varJobStatus)
+ err = json.Unmarshal(data, &varJobStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *JobStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_job_status_label.go b/model_job_status_label.go
new file mode 100644
index 0000000000..79a2d4c4e9
--- /dev/null
+++ b/model_job_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: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// JobStatusLabel the model 'JobStatusLabel'
+type JobStatusLabel string
+
+// List of Job_status_label
+const (
+ JOBSTATUSLABEL_PENDING JobStatusLabel = "Pending"
+ JOBSTATUSLABEL_SCHEDULED JobStatusLabel = "Scheduled"
+ JOBSTATUSLABEL_RUNNING JobStatusLabel = "Running"
+ JOBSTATUSLABEL_COMPLETED JobStatusLabel = "Completed"
+ JOBSTATUSLABEL_ERRORED JobStatusLabel = "Errored"
+ JOBSTATUSLABEL_FAILED JobStatusLabel = "Failed"
+)
+
+// All allowed values of JobStatusLabel enum
+var AllowedJobStatusLabelEnumValues = []JobStatusLabel{
+ "Pending",
+ "Scheduled",
+ "Running",
+ "Completed",
+ "Errored",
+ "Failed",
+}
+
+func (v *JobStatusLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := JobStatusLabel(value)
+ for _, existing := range AllowedJobStatusLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid JobStatusLabel", value)
+}
+
+// NewJobStatusLabelFromValue returns a pointer to a valid JobStatusLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewJobStatusLabelFromValue(v string) (*JobStatusLabel, error) {
+ ev := JobStatusLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for JobStatusLabel: valid values are %v", v, AllowedJobStatusLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v JobStatusLabel) IsValid() bool {
+ for _, existing := range AllowedJobStatusLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Job_status_label value
+func (v JobStatusLabel) Ptr() *JobStatusLabel {
+ return &v
+}
+
+type NullableJobStatusLabel struct {
+ value *JobStatusLabel
+ isSet bool
+}
+
+func (v NullableJobStatusLabel) Get() *JobStatusLabel {
+ return v.value
+}
+
+func (v *NullableJobStatusLabel) Set(val *JobStatusLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableJobStatusLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableJobStatusLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableJobStatusLabel(val *JobStatusLabel) *NullableJobStatusLabel {
+ return &NullableJobStatusLabel{value: val, isSet: true}
+}
+
+func (v NullableJobStatusLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableJobStatusLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_job_status_value.go b/model_job_status_value.go
new file mode 100644
index 0000000000..6999ce0f69
--- /dev/null
+++ b/model_job_status_value.go
@@ -0,0 +1,118 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// JobStatusValue * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed
+type JobStatusValue string
+
+// List of Job_status_value
+const (
+ JOBSTATUSVALUE_PENDING JobStatusValue = "pending"
+ JOBSTATUSVALUE_SCHEDULED JobStatusValue = "scheduled"
+ JOBSTATUSVALUE_RUNNING JobStatusValue = "running"
+ JOBSTATUSVALUE_COMPLETED JobStatusValue = "completed"
+ JOBSTATUSVALUE_ERRORED JobStatusValue = "errored"
+ JOBSTATUSVALUE_FAILED JobStatusValue = "failed"
+)
+
+// All allowed values of JobStatusValue enum
+var AllowedJobStatusValueEnumValues = []JobStatusValue{
+ "pending",
+ "scheduled",
+ "running",
+ "completed",
+ "errored",
+ "failed",
+}
+
+func (v *JobStatusValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := JobStatusValue(value)
+ for _, existing := range AllowedJobStatusValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid JobStatusValue", value)
+}
+
+// NewJobStatusValueFromValue returns a pointer to a valid JobStatusValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewJobStatusValueFromValue(v string) (*JobStatusValue, error) {
+ ev := JobStatusValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for JobStatusValue: valid values are %v", v, AllowedJobStatusValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v JobStatusValue) IsValid() bool {
+ for _, existing := range AllowedJobStatusValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Job_status_value value
+func (v JobStatusValue) Ptr() *JobStatusValue {
+ return &v
+}
+
+type NullableJobStatusValue struct {
+ value *JobStatusValue
+ isSet bool
+}
+
+func (v NullableJobStatusValue) Get() *JobStatusValue {
+ return v.value
+}
+
+func (v *NullableJobStatusValue) Set(val *JobStatusValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableJobStatusValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableJobStatusValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableJobStatusValue(val *JobStatusValue) *NullableJobStatusValue {
+ return &NullableJobStatusValue{value: val, isSet: true}
+}
+
+func (v NullableJobStatusValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableJobStatusValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_journal_entry.go b/model_journal_entry.go
index 59f631c522..7db50ed88f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -25,7 +26,7 @@ type JournalEntry struct {
Display string `json:"display"`
AssignedObjectType string `json:"assigned_object_type"`
AssignedObjectId int64 `json:"assigned_object_id"`
- AssignedObject map[string]interface{} `json:"assigned_object"`
+ AssignedObject interface{} `json:"assigned_object"`
Created NullableTime `json:"created"`
CreatedBy NullableInt32 `json:"created_by,omitempty"`
Kind *JournalEntryKind `json:"kind,omitempty"`
@@ -42,7 +43,7 @@ type _JournalEntry JournalEntry
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, assignedObject map[string]interface{}, created NullableTime, comments string, lastUpdated NullableTime) *JournalEntry {
+func NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime) *JournalEntry {
this := JournalEntry{}
this.Id = id
this.Url = url
@@ -185,10 +186,10 @@ func (o *JournalEntry) SetAssignedObjectId(v int64) {
}
// GetAssignedObject returns the AssignedObject field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *JournalEntry) GetAssignedObject() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *JournalEntry) GetAssignedObject() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -198,15 +199,15 @@ func (o *JournalEntry) GetAssignedObject() map[string]interface{} {
// 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 *JournalEntry) GetAssignedObjectOk() (map[string]interface{}, bool) {
+func (o *JournalEntry) GetAssignedObjectOk() (*interface{}, bool) {
if o == nil || IsNil(o.AssignedObject) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.AssignedObject, true
+ return &o.AssignedObject, true
}
// SetAssignedObject sets field value
-func (o *JournalEntry) SetAssignedObject(v map[string]interface{}) {
+func (o *JournalEntry) SetAssignedObject(v interface{}) {
o.AssignedObject = v
}
@@ -466,10 +467,39 @@ func (o JournalEntry) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *JournalEntry) UnmarshalJSON(bytes []byte) (err error) {
+func (o *JournalEntry) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "assigned_object_type",
+ "assigned_object_id",
+ "assigned_object",
+ "created",
+ "comments",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varJournalEntry := _JournalEntry{}
- err = json.Unmarshal(bytes, &varJournalEntry)
+ err = json.Unmarshal(data, &varJournalEntry)
if err != nil {
return err
@@ -479,7 +509,7 @@ func (o *JournalEntry) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_journal_entry_kind.go b/model_journal_entry_kind.go
index 193d862420..65c5f9ca04 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &JournalEntryKind{}
// JournalEntryKind struct for JournalEntryKind
type JournalEntryKind struct {
- // * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *JournalEntryKindValue `json:"value,omitempty"`
+ Label *JournalEntryKindLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewJournalEntryKindWithDefaults() *JournalEntryKind {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *JournalEntryKind) GetValue() string {
+func (o *JournalEntryKind) GetValue() JournalEntryKindValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret JournalEntryKindValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *JournalEntryKind) GetValue() string {
// 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 *JournalEntryKind) GetValueOk() (*string, bool) {
+func (o *JournalEntryKind) GetValueOk() (*JournalEntryKindValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *JournalEntryKind) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *JournalEntryKind) SetValue(v string) {
+// SetValue gets a reference to the given JournalEntryKindValue and assigns it to the Value field.
+func (o *JournalEntryKind) SetValue(v JournalEntryKindValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *JournalEntryKind) GetLabel() string {
+func (o *JournalEntryKind) GetLabel() JournalEntryKindLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret JournalEntryKindLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *JournalEntryKind) 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 *JournalEntryKind) GetLabelOk() (*string, bool) {
+func (o *JournalEntryKind) GetLabelOk() (*JournalEntryKindLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *JournalEntryKind) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *JournalEntryKind) SetLabel(v string) {
+// SetLabel gets a reference to the given JournalEntryKindLabel and assigns it to the Label field.
+func (o *JournalEntryKind) SetLabel(v JournalEntryKindLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o JournalEntryKind) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *JournalEntryKind) UnmarshalJSON(bytes []byte) (err error) {
+func (o *JournalEntryKind) UnmarshalJSON(data []byte) (err error) {
varJournalEntryKind := _JournalEntryKind{}
- err = json.Unmarshal(bytes, &varJournalEntryKind)
+ err = json.Unmarshal(data, &varJournalEntryKind)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *JournalEntryKind) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_journal_entry_kind_label.go b/model_journal_entry_kind_label.go
new file mode 100644
index 0000000000..cf1139d573
--- /dev/null
+++ b/model_journal_entry_kind_label.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// JournalEntryKindLabel the model 'JournalEntryKindLabel'
+type JournalEntryKindLabel string
+
+// List of JournalEntry_kind_label
+const (
+ JOURNALENTRYKINDLABEL_INFO JournalEntryKindLabel = "Info"
+ JOURNALENTRYKINDLABEL_SUCCESS JournalEntryKindLabel = "Success"
+ JOURNALENTRYKINDLABEL_WARNING JournalEntryKindLabel = "Warning"
+ JOURNALENTRYKINDLABEL_DANGER JournalEntryKindLabel = "Danger"
+)
+
+// All allowed values of JournalEntryKindLabel enum
+var AllowedJournalEntryKindLabelEnumValues = []JournalEntryKindLabel{
+ "Info",
+ "Success",
+ "Warning",
+ "Danger",
+}
+
+func (v *JournalEntryKindLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := JournalEntryKindLabel(value)
+ for _, existing := range AllowedJournalEntryKindLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid JournalEntryKindLabel", value)
+}
+
+// NewJournalEntryKindLabelFromValue returns a pointer to a valid JournalEntryKindLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewJournalEntryKindLabelFromValue(v string) (*JournalEntryKindLabel, error) {
+ ev := JournalEntryKindLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for JournalEntryKindLabel: valid values are %v", v, AllowedJournalEntryKindLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v JournalEntryKindLabel) IsValid() bool {
+ for _, existing := range AllowedJournalEntryKindLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to JournalEntry_kind_label value
+func (v JournalEntryKindLabel) Ptr() *JournalEntryKindLabel {
+ return &v
+}
+
+type NullableJournalEntryKindLabel struct {
+ value *JournalEntryKindLabel
+ isSet bool
+}
+
+func (v NullableJournalEntryKindLabel) Get() *JournalEntryKindLabel {
+ return v.value
+}
+
+func (v *NullableJournalEntryKindLabel) Set(val *JournalEntryKindLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableJournalEntryKindLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableJournalEntryKindLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableJournalEntryKindLabel(val *JournalEntryKindLabel) *NullableJournalEntryKindLabel {
+ return &NullableJournalEntryKindLabel{value: val, isSet: true}
+}
+
+func (v NullableJournalEntryKindLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableJournalEntryKindLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_journal_entry_kind_value.go b/model_journal_entry_kind_value.go
new file mode 100644
index 0000000000..85859e55e1
--- /dev/null
+++ b/model_journal_entry_kind_value.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// JournalEntryKindValue * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger
+type JournalEntryKindValue string
+
+// List of JournalEntry_kind_value
+const (
+ JOURNALENTRYKINDVALUE_INFO JournalEntryKindValue = "info"
+ JOURNALENTRYKINDVALUE_SUCCESS JournalEntryKindValue = "success"
+ JOURNALENTRYKINDVALUE_WARNING JournalEntryKindValue = "warning"
+ JOURNALENTRYKINDVALUE_DANGER JournalEntryKindValue = "danger"
+)
+
+// All allowed values of JournalEntryKindValue enum
+var AllowedJournalEntryKindValueEnumValues = []JournalEntryKindValue{
+ "info",
+ "success",
+ "warning",
+ "danger",
+}
+
+func (v *JournalEntryKindValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := JournalEntryKindValue(value)
+ for _, existing := range AllowedJournalEntryKindValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid JournalEntryKindValue", value)
+}
+
+// NewJournalEntryKindValueFromValue returns a pointer to a valid JournalEntryKindValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewJournalEntryKindValueFromValue(v string) (*JournalEntryKindValue, error) {
+ ev := JournalEntryKindValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for JournalEntryKindValue: valid values are %v", v, AllowedJournalEntryKindValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v JournalEntryKindValue) IsValid() bool {
+ for _, existing := range AllowedJournalEntryKindValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to JournalEntry_kind_value value
+func (v JournalEntryKindValue) Ptr() *JournalEntryKindValue {
+ return &v
+}
+
+type NullableJournalEntryKindValue struct {
+ value *JournalEntryKindValue
+ isSet bool
+}
+
+func (v NullableJournalEntryKindValue) Get() *JournalEntryKindValue {
+ return v.value
+}
+
+func (v *NullableJournalEntryKindValue) Set(val *JournalEntryKindValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableJournalEntryKindValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableJournalEntryKindValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableJournalEntryKindValue(val *JournalEntryKindValue) *NullableJournalEntryKindValue {
+ return &NullableJournalEntryKindValue{value: val, isSet: true}
+}
+
+func (v NullableJournalEntryKindValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableJournalEntryKindValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_journal_entry_request.go b/model_journal_entry_request.go
index b1d481965c..3a0cb7e706 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 JournalEntryRequest type satisfies the MappedNullable interface at compile time
@@ -19,11 +20,10 @@ var _ MappedNullable = &JournalEntryRequest{}
// JournalEntryRequest Adds support for custom fields and tags.
type JournalEntryRequest struct {
- AssignedObjectType string `json:"assigned_object_type"`
- AssignedObjectId int64 `json:"assigned_object_id"`
- CreatedBy NullableInt32 `json:"created_by,omitempty"`
- // * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger
- Kind *string `json:"kind,omitempty"`
+ AssignedObjectType string `json:"assigned_object_type"`
+ AssignedObjectId int64 `json:"assigned_object_id"`
+ CreatedBy NullableInt32 `json:"created_by,omitempty"`
+ Kind *JournalEntryKindValue `json:"kind,omitempty"`
Comments string `json:"comments"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -144,9 +144,9 @@ func (o *JournalEntryRequest) UnsetCreatedBy() {
}
// GetKind returns the Kind field value if set, zero value otherwise.
-func (o *JournalEntryRequest) GetKind() string {
+func (o *JournalEntryRequest) GetKind() JournalEntryKindValue {
if o == nil || IsNil(o.Kind) {
- var ret string
+ var ret JournalEntryKindValue
return ret
}
return *o.Kind
@@ -154,7 +154,7 @@ func (o *JournalEntryRequest) GetKind() string {
// GetKindOk returns a tuple with the Kind field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *JournalEntryRequest) GetKindOk() (*string, bool) {
+func (o *JournalEntryRequest) GetKindOk() (*JournalEntryKindValue, bool) {
if o == nil || IsNil(o.Kind) {
return nil, false
}
@@ -170,8 +170,8 @@ func (o *JournalEntryRequest) HasKind() bool {
return false
}
-// SetKind gets a reference to the given string and assigns it to the Kind field.
-func (o *JournalEntryRequest) SetKind(v string) {
+// SetKind gets a reference to the given JournalEntryKindValue and assigns it to the Kind field.
+func (o *JournalEntryRequest) SetKind(v JournalEntryKindValue) {
o.Kind = &v
}
@@ -296,10 +296,33 @@ func (o JournalEntryRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *JournalEntryRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *JournalEntryRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "assigned_object_type",
+ "assigned_object_id",
+ "comments",
+ }
+
+ 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)
+ }
+ }
+
varJournalEntryRequest := _JournalEntryRequest{}
- err = json.Unmarshal(bytes, &varJournalEntryRequest)
+ err = json.Unmarshal(data, &varJournalEntryRequest)
if err != nil {
return err
@@ -309,7 +332,7 @@ func (o *JournalEntryRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "assigned_object_type")
delete(additionalProperties, "assigned_object_id")
delete(additionalProperties, "created_by")
diff --git a/model_l2_vpn.go b/model_l2_vpn.go
index f410b9c18b..e2783e3ec9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -599,10 +600,37 @@ func (o L2VPN) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *L2VPN) UnmarshalJSON(bytes []byte) (err error) {
+func (o *L2VPN) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varL2VPN := _L2VPN{}
- err = json.Unmarshal(bytes, &varL2VPN)
+ err = json.Unmarshal(data, &varL2VPN)
if err != nil {
return err
@@ -612,7 +640,7 @@ func (o *L2VPN) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_l2_vpn_request.go b/model_l2_vpn_request.go
index 7911a9a7de..6b646ca9a8 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 L2VPNRequest type satisfies the MappedNullable interface at compile time
@@ -19,11 +20,10 @@ 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"`
- // * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree
- Type *string `json:"type,omitempty"`
+ 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"`
@@ -147,9 +147,9 @@ func (o *L2VPNRequest) SetSlug(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *L2VPNRequest) GetType() string {
+func (o *L2VPNRequest) GetType() L2VPNTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret L2VPNTypeValue
return ret
}
return *o.Type
@@ -157,7 +157,7 @@ func (o *L2VPNRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *L2VPNRequest) GetTypeOk() (*string, bool) {
+func (o *L2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -173,8 +173,8 @@ func (o *L2VPNRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *L2VPNRequest) SetType(v string) {
+// SetType gets a reference to the given L2VPNTypeValue and assigns it to the Type field.
+func (o *L2VPNRequest) SetType(v L2VPNTypeValue) {
o.Type = &v
}
@@ -460,10 +460,32 @@ func (o L2VPNRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *L2VPNRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *L2VPNRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varL2VPNRequest := _L2VPNRequest{}
- err = json.Unmarshal(bytes, &varL2VPNRequest)
+ err = json.Unmarshal(data, &varL2VPNRequest)
if err != nil {
return err
@@ -473,7 +495,7 @@ func (o *L2VPNRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "identifier")
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
diff --git a/model_l2_vpn_termination.go b/model_l2_vpn_termination.go
index 875085fed0..de37674e15 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -26,7 +27,7 @@ type L2VPNTermination struct {
L2vpn NestedL2VPN `json:"l2vpn"`
AssignedObjectType string `json:"assigned_object_type"`
AssignedObjectId int64 `json:"assigned_object_id"`
- AssignedObject map[string]interface{} `json:"assigned_object"`
+ AssignedObject interface{} `json:"assigned_object"`
Tags []NestedTag `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
@@ -40,7 +41,7 @@ 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 map[string]interface{}, created NullableTime, lastUpdated NullableTime) *L2VPNTermination {
+func NewL2VPNTermination(id int32, url string, display string, l2vpn NestedL2VPN, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, lastUpdated NullableTime) *L2VPNTermination {
this := L2VPNTermination{}
this.Id = id
this.Url = url
@@ -207,10 +208,10 @@ func (o *L2VPNTermination) SetAssignedObjectId(v int64) {
}
// GetAssignedObject returns the AssignedObject field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *L2VPNTermination) GetAssignedObject() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *L2VPNTermination) GetAssignedObject() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -220,15 +221,15 @@ func (o *L2VPNTermination) GetAssignedObject() map[string]interface{} {
// 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() (map[string]interface{}, bool) {
+func (o *L2VPNTermination) GetAssignedObjectOk() (*interface{}, bool) {
if o == nil || IsNil(o.AssignedObject) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.AssignedObject, true
+ return &o.AssignedObject, true
}
// SetAssignedObject sets field value
-func (o *L2VPNTermination) SetAssignedObject(v map[string]interface{}) {
+func (o *L2VPNTermination) SetAssignedObject(v interface{}) {
o.AssignedObject = v
}
@@ -383,10 +384,39 @@ func (o L2VPNTermination) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *L2VPNTermination) UnmarshalJSON(bytes []byte) (err error) {
+func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "assigned_object_type",
+ "assigned_object_id",
+ "assigned_object",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varL2VPNTermination := _L2VPNTermination{}
- err = json.Unmarshal(bytes, &varL2VPNTermination)
+ err = json.Unmarshal(data, &varL2VPNTermination)
if err != nil {
return err
@@ -396,7 +426,7 @@ func (o *L2VPNTermination) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_l2_vpn_termination_request.go b/model_l2_vpn_termination_request.go
index dc6ee9e735..a902a0d17f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 L2VPNTerminationRequest type satisfies the MappedNullable interface at compile time
@@ -212,10 +213,33 @@ func (o L2VPNTerminationRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *L2VPNTerminationRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *L2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varL2VPNTerminationRequest := _L2VPNTerminationRequest{}
- err = json.Unmarshal(bytes, &varL2VPNTerminationRequest)
+ err = json.Unmarshal(data, &varL2VPNTerminationRequest)
if err != nil {
return err
@@ -225,7 +249,7 @@ func (o *L2VPNTerminationRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "l2vpn")
delete(additionalProperties, "assigned_object_type")
delete(additionalProperties, "assigned_object_id")
diff --git a/model_l2_vpn_type.go b/model_l2_vpn_type.go
index f62d973e1d..f575f74081 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &L2VPNType{}
// L2VPNType struct for L2VPNType
type L2VPNType struct {
- // * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *L2VPNTypeValue `json:"value,omitempty"`
+ Label *L2VPNTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewL2VPNTypeWithDefaults() *L2VPNType {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *L2VPNType) GetValue() string {
+func (o *L2VPNType) GetValue() L2VPNTypeValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret L2VPNTypeValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *L2VPNType) GetValue() string {
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *L2VPNType) GetValueOk() (*string, bool) {
+func (o *L2VPNType) GetValueOk() (*L2VPNTypeValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *L2VPNType) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *L2VPNType) SetValue(v string) {
+// SetValue gets a reference to the given L2VPNTypeValue and assigns it to the Value field.
+func (o *L2VPNType) SetValue(v L2VPNTypeValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *L2VPNType) GetLabel() string {
+func (o *L2VPNType) GetLabel() L2VPNTypeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret L2VPNTypeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *L2VPNType) 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 *L2VPNType) GetLabelOk() (*string, bool) {
+func (o *L2VPNType) GetLabelOk() (*L2VPNTypeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *L2VPNType) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *L2VPNType) SetLabel(v string) {
+// SetLabel gets a reference to the given L2VPNTypeLabel and assigns it to the Label field.
+func (o *L2VPNType) SetLabel(v L2VPNTypeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o L2VPNType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *L2VPNType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *L2VPNType) UnmarshalJSON(data []byte) (err error) {
varL2VPNType := _L2VPNType{}
- err = json.Unmarshal(bytes, &varL2VPNType)
+ err = json.Unmarshal(data, &varL2VPNType)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *L2VPNType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_l2_vpn_type_label.go b/model_l2_vpn_type_label.go
new file mode 100644
index 0000000000..efcb31bfdd
--- /dev/null
+++ b/model_l2_vpn_type_label.go
@@ -0,0 +1,130 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// L2VPNTypeLabel the model 'L2VPNTypeLabel'
+type L2VPNTypeLabel string
+
+// List of L2VPN_type_label
+const (
+ L2VPNTYPELABEL_VPWS L2VPNTypeLabel = "VPWS"
+ L2VPNTYPELABEL_VPLS L2VPNTypeLabel = "VPLS"
+ L2VPNTYPELABEL_VXLAN L2VPNTypeLabel = "VXLAN"
+ L2VPNTYPELABEL_VXLAN_EVPN L2VPNTypeLabel = "VXLAN-EVPN"
+ L2VPNTYPELABEL_MPLS_EVPN L2VPNTypeLabel = "MPLS EVPN"
+ L2VPNTYPELABEL_PBB_EVPN L2VPNTypeLabel = "PBB EVPN"
+ L2VPNTYPELABEL_EPL L2VPNTypeLabel = "EPL"
+ L2VPNTYPELABEL_EVPL L2VPNTypeLabel = "EVPL"
+ L2VPNTYPELABEL_ETHERNET_PRIVATE_LAN L2VPNTypeLabel = "Ethernet Private LAN"
+ L2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_LAN L2VPNTypeLabel = "Ethernet Virtual Private LAN"
+ L2VPNTYPELABEL_ETHERNET_PRIVATE_TREE L2VPNTypeLabel = "Ethernet Private Tree"
+ L2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_TREE L2VPNTypeLabel = "Ethernet Virtual Private Tree"
+)
+
+// All allowed values of L2VPNTypeLabel enum
+var AllowedL2VPNTypeLabelEnumValues = []L2VPNTypeLabel{
+ "VPWS",
+ "VPLS",
+ "VXLAN",
+ "VXLAN-EVPN",
+ "MPLS EVPN",
+ "PBB EVPN",
+ "EPL",
+ "EVPL",
+ "Ethernet Private LAN",
+ "Ethernet Virtual Private LAN",
+ "Ethernet Private Tree",
+ "Ethernet Virtual Private Tree",
+}
+
+func (v *L2VPNTypeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := L2VPNTypeLabel(value)
+ for _, existing := range AllowedL2VPNTypeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid L2VPNTypeLabel", value)
+}
+
+// NewL2VPNTypeLabelFromValue returns a pointer to a valid L2VPNTypeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewL2VPNTypeLabelFromValue(v string) (*L2VPNTypeLabel, error) {
+ ev := L2VPNTypeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for L2VPNTypeLabel: valid values are %v", v, AllowedL2VPNTypeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v L2VPNTypeLabel) IsValid() bool {
+ for _, existing := range AllowedL2VPNTypeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to L2VPN_type_label value
+func (v L2VPNTypeLabel) Ptr() *L2VPNTypeLabel {
+ return &v
+}
+
+type NullableL2VPNTypeLabel struct {
+ value *L2VPNTypeLabel
+ isSet bool
+}
+
+func (v NullableL2VPNTypeLabel) Get() *L2VPNTypeLabel {
+ return v.value
+}
+
+func (v *NullableL2VPNTypeLabel) Set(val *L2VPNTypeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableL2VPNTypeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableL2VPNTypeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableL2VPNTypeLabel(val *L2VPNTypeLabel) *NullableL2VPNTypeLabel {
+ return &NullableL2VPNTypeLabel{value: val, isSet: true}
+}
+
+func (v NullableL2VPNTypeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableL2VPNTypeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_l2_vpn_type_value.go b/model_l2_vpn_type_value.go
new file mode 100644
index 0000000000..a9e166e402
--- /dev/null
+++ b/model_l2_vpn_type_value.go
@@ -0,0 +1,130 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// L2VPNTypeValue * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree
+type L2VPNTypeValue string
+
+// List of L2VPN_type_value
+const (
+ L2VPNTYPEVALUE_VPWS L2VPNTypeValue = "vpws"
+ L2VPNTYPEVALUE_VPLS L2VPNTypeValue = "vpls"
+ L2VPNTYPEVALUE_VXLAN L2VPNTypeValue = "vxlan"
+ L2VPNTYPEVALUE_VXLAN_EVPN L2VPNTypeValue = "vxlan-evpn"
+ L2VPNTYPEVALUE_MPLS_EVPN L2VPNTypeValue = "mpls-evpn"
+ L2VPNTYPEVALUE_PBB_EVPN L2VPNTypeValue = "pbb-evpn"
+ L2VPNTYPEVALUE_EPL L2VPNTypeValue = "epl"
+ L2VPNTYPEVALUE_EVPL L2VPNTypeValue = "evpl"
+ L2VPNTYPEVALUE_EP_LAN L2VPNTypeValue = "ep-lan"
+ L2VPNTYPEVALUE_EVP_LAN L2VPNTypeValue = "evp-lan"
+ L2VPNTYPEVALUE_EP_TREE L2VPNTypeValue = "ep-tree"
+ L2VPNTYPEVALUE_EVP_TREE L2VPNTypeValue = "evp-tree"
+)
+
+// All allowed values of L2VPNTypeValue enum
+var AllowedL2VPNTypeValueEnumValues = []L2VPNTypeValue{
+ "vpws",
+ "vpls",
+ "vxlan",
+ "vxlan-evpn",
+ "mpls-evpn",
+ "pbb-evpn",
+ "epl",
+ "evpl",
+ "ep-lan",
+ "evp-lan",
+ "ep-tree",
+ "evp-tree",
+}
+
+func (v *L2VPNTypeValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := L2VPNTypeValue(value)
+ for _, existing := range AllowedL2VPNTypeValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid L2VPNTypeValue", value)
+}
+
+// NewL2VPNTypeValueFromValue returns a pointer to a valid L2VPNTypeValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewL2VPNTypeValueFromValue(v string) (*L2VPNTypeValue, error) {
+ ev := L2VPNTypeValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for L2VPNTypeValue: valid values are %v", v, AllowedL2VPNTypeValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v L2VPNTypeValue) IsValid() bool {
+ for _, existing := range AllowedL2VPNTypeValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to L2VPN_type_value value
+func (v L2VPNTypeValue) Ptr() *L2VPNTypeValue {
+ return &v
+}
+
+type NullableL2VPNTypeValue struct {
+ value *L2VPNTypeValue
+ isSet bool
+}
+
+func (v NullableL2VPNTypeValue) Get() *L2VPNTypeValue {
+ return v.value
+}
+
+func (v *NullableL2VPNTypeValue) Set(val *L2VPNTypeValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableL2VPNTypeValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableL2VPNTypeValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableL2VPNTypeValue(val *L2VPNTypeValue) *NullableL2VPNTypeValue {
+ return &NullableL2VPNTypeValue{value: val, isSet: true}
+}
+
+func (v NullableL2VPNTypeValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableL2VPNTypeValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_location.go b/model_location.go
index e8d3dfa636..6f802fea09 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -599,10 +600,41 @@ func (o Location) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Location) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Location) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "site",
+ "created",
+ "last_updated",
+ "rack_count",
+ "device_count",
+ "_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)
+ }
+ }
+
varLocation := _Location{}
- err = json.Unmarshal(bytes, &varLocation)
+ err = json.Unmarshal(data, &varLocation)
if err != nil {
return err
@@ -612,7 +644,7 @@ func (o *Location) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_location_request.go b/model_location_request.go
index 4742dc6e58..ff0c000c68 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 LocationRequest type satisfies the MappedNullable interface at compile time
@@ -19,16 +20,15 @@ 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"`
- // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired
- Status *string `json:"status,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -170,9 +170,9 @@ func (o *LocationRequest) UnsetParent() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *LocationRequest) GetStatus() string {
+func (o *LocationRequest) GetStatus() LocationStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret LocationStatusValue
return ret
}
return *o.Status
@@ -180,7 +180,7 @@ func (o *LocationRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *LocationRequest) GetStatusOk() (*LocationStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -196,8 +196,8 @@ func (o *LocationRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *LocationRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field.
+func (o *LocationRequest) SetStatus(v LocationStatusValue) {
o.Status = &v
}
@@ -379,10 +379,33 @@ func (o LocationRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *LocationRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "site",
+ }
+
+ 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)
+ }
+ }
+
varLocationRequest := _LocationRequest{}
- err = json.Unmarshal(bytes, &varLocationRequest)
+ err = json.Unmarshal(data, &varLocationRequest)
if err != nil {
return err
@@ -392,7 +415,7 @@ func (o *LocationRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "site")
diff --git a/model_location_status.go b/model_location_status.go
index cca4fe7c50..f01bebb341 100644
--- a/model_location_status.go
+++ b/model_location_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &LocationStatus{}
// LocationStatus struct for LocationStatus
type LocationStatus struct {
- // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *LocationStatusValue `json:"value,omitempty"`
+ Label *LocationStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewLocationStatusWithDefaults() *LocationStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *LocationStatus) GetValue() string {
+func (o *LocationStatus) GetValue() LocationStatusValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret LocationStatusValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *LocationStatus) GetValue() string {
// 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() (*string, bool) {
+func (o *LocationStatus) GetValueOk() (*LocationStatusValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *LocationStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *LocationStatus) SetValue(v string) {
+// 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() string {
+func (o *LocationStatus) GetLabel() LocationStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret LocationStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *LocationStatus) 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 *LocationStatus) GetLabelOk() (*string, bool) {
+func (o *LocationStatus) GetLabelOk() (*LocationStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *LocationStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *LocationStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given LocationStatusLabel and assigns it to the Label field.
+func (o *LocationStatus) SetLabel(v LocationStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o LocationStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *LocationStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *LocationStatus) UnmarshalJSON(data []byte) (err error) {
varLocationStatus := _LocationStatus{}
- err = json.Unmarshal(bytes, &varLocationStatus)
+ err = json.Unmarshal(data, &varLocationStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *LocationStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_location_status_label.go b/model_location_status_label.go
new file mode 100644
index 0000000000..82a686c691
--- /dev/null
+++ b/model_location_status_label.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..5b2df10970
--- /dev/null
+++ b/model_location_status_value.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 306f0851c3..956a5c4c53 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -442,10 +443,40 @@ func (o Manufacturer) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Manufacturer) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "devicetype_count",
+ "inventoryitem_count",
+ "platform_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)
+ }
+ }
+
varManufacturer := _Manufacturer{}
- err = json.Unmarshal(bytes, &varManufacturer)
+ err = json.Unmarshal(data, &varManufacturer)
if err != nil {
return err
@@ -455,7 +486,7 @@ func (o *Manufacturer) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_manufacturer_request.go b/model_manufacturer_request.go
index a2333cfeb3..7e78abcd62 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ManufacturerRequest type satisfies the MappedNullable interface at compile time
@@ -221,10 +222,32 @@ func (o ManufacturerRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ManufacturerRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ManufacturerRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varManufacturerRequest := _ManufacturerRequest{}
- err = json.Unmarshal(bytes, &varManufacturerRequest)
+ err = json.Unmarshal(data, &varManufacturerRequest)
if err != nil {
return err
@@ -234,7 +257,7 @@ func (o *ManufacturerRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "description")
diff --git a/model_module.go b/model_module.go
index c3d095309c..924f447b0d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -544,10 +545,38 @@ func (o Module) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Module) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Module) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "module_type",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varModule := _Module{}
- err = json.Unmarshal(bytes, &varModule)
+ err = json.Unmarshal(data, &varModule)
if err != nil {
return err
@@ -557,7 +586,7 @@ func (o *Module) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_module_bay.go b/model_module_bay.go
index dde453a182..5474c146ae 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -482,10 +483,37 @@ func (o ModuleBay) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ModuleBay) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ModuleBay) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varModuleBay := _ModuleBay{}
- err = json.Unmarshal(bytes, &varModuleBay)
+ err = json.Unmarshal(data, &varModuleBay)
if err != nil {
return err
@@ -495,7 +523,7 @@ func (o *ModuleBay) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_module_bay_nested_module.go b/model_module_bay_nested_module.go
index 5ade118f51..df5af28bf9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ModuleBayNestedModule type satisfies the MappedNullable interface at compile time
@@ -176,10 +177,33 @@ func (o ModuleBayNestedModule) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ModuleBayNestedModule) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ModuleBayNestedModule) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "url",
+ "display",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
varModuleBayNestedModule := _ModuleBayNestedModule{}
- err = json.Unmarshal(bytes, &varModuleBayNestedModule)
+ err = json.Unmarshal(data, &varModuleBayNestedModule)
if err != nil {
return err
@@ -189,7 +213,7 @@ func (o *ModuleBayNestedModule) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_module_bay_nested_module_request.go b/model_module_bay_nested_module_request.go
index bdfc4fd853..e15ede0df7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -95,10 +95,10 @@ func (o ModuleBayNestedModuleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ModuleBayNestedModuleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ModuleBayNestedModuleRequest) UnmarshalJSON(data []byte) (err error) {
varModuleBayNestedModuleRequest := _ModuleBayNestedModuleRequest{}
- err = json.Unmarshal(bytes, &varModuleBayNestedModuleRequest)
+ err = json.Unmarshal(data, &varModuleBayNestedModuleRequest)
if err != nil {
return err
@@ -108,7 +108,7 @@ func (o *ModuleBayNestedModuleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "serial")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_module_bay_request.go b/model_module_bay_request.go
index 601f53be8e..14acce746e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ModuleBayRequest type satisfies the MappedNullable interface at compile time
@@ -342,10 +343,32 @@ func (o ModuleBayRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ModuleBayRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varModuleBayRequest := _ModuleBayRequest{}
- err = json.Unmarshal(bytes, &varModuleBayRequest)
+ err = json.Unmarshal(data, &varModuleBayRequest)
if err != nil {
return err
@@ -355,7 +378,7 @@ func (o *ModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "name")
delete(additionalProperties, "installed_module")
diff --git a/model_module_bay_template.go b/model_module_bay_template.go
index 8317343b31..9b7a64d3c7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -364,10 +365,37 @@ func (o ModuleBayTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ModuleBayTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ModuleBayTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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_type",
+ "name",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varModuleBayTemplate := _ModuleBayTemplate{}
- err = json.Unmarshal(bytes, &varModuleBayTemplate)
+ err = json.Unmarshal(data, &varModuleBayTemplate)
if err != nil {
return err
@@ -377,7 +405,7 @@ func (o *ModuleBayTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_module_bay_template_request.go b/model_module_bay_template_request.go
index 757e5e239f..7232e7d14b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ModuleBayTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -224,10 +225,32 @@ func (o ModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ModuleBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varModuleBayTemplateRequest := _ModuleBayTemplateRequest{}
- err = json.Unmarshal(bytes, &varModuleBayTemplateRequest)
+ err = json.Unmarshal(data, &varModuleBayTemplateRequest)
if err != nil {
return err
@@ -237,7 +260,7 @@ func (o *ModuleBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "name")
delete(additionalProperties, "label")
diff --git a/model_module_nested_module_bay.go b/model_module_nested_module_bay.go
index 5908049a46..c49bd0f8dc 100644
--- a/model_module_nested_module_bay.go
+++ b/model_module_nested_module_bay.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ModuleNestedModuleBay type satisfies the MappedNullable interface at compile time
@@ -167,10 +168,34 @@ func (o ModuleNestedModuleBay) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ModuleNestedModuleBay) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varModuleNestedModuleBay)
+ err = json.Unmarshal(data, &varModuleNestedModuleBay)
if err != nil {
return err
@@ -180,7 +205,7 @@ func (o *ModuleNestedModuleBay) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_module_nested_module_bay_request.go b/model_module_nested_module_bay_request.go
index 2056a217d4..4faba65f30 100644
--- a/model_module_nested_module_bay_request.go
+++ b/model_module_nested_module_bay_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ModuleNestedModuleBayRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o ModuleNestedModuleBayRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ModuleNestedModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varModuleNestedModuleBayRequest)
+ err = json.Unmarshal(data, &varModuleNestedModuleBayRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *ModuleNestedModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_module_request.go b/model_module_request.go
index da3108667b..2860746079 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ModuleRequest type satisfies the MappedNullable interface at compile time
@@ -22,9 +23,8 @@ type ModuleRequest struct {
Device NestedDeviceRequest `json:"device"`
ModuleBay NestedModuleBayRequest `json:"module_bay"`
ModuleType NestedModuleTypeRequest `json:"module_type"`
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ 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"`
@@ -129,9 +129,9 @@ func (o *ModuleRequest) SetModuleType(v NestedModuleTypeRequest) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *ModuleRequest) GetStatus() string {
+func (o *ModuleRequest) GetStatus() ModuleStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret ModuleStatusValue
return ret
}
return *o.Status
@@ -139,7 +139,7 @@ func (o *ModuleRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *ModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -155,8 +155,8 @@ func (o *ModuleRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *ModuleRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field.
+func (o *ModuleRequest) SetStatus(v ModuleStatusValue) {
o.Status = &v
}
@@ -405,10 +405,33 @@ func (o ModuleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ModuleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ModuleRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "device",
+ "module_bay",
+ "module_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)
+ }
+ }
+
varModuleRequest := _ModuleRequest{}
- err = json.Unmarshal(bytes, &varModuleRequest)
+ err = json.Unmarshal(data, &varModuleRequest)
if err != nil {
return err
@@ -418,7 +441,7 @@ func (o *ModuleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module_bay")
delete(additionalProperties, "module_type")
diff --git a/model_module_status.go b/model_module_status.go
index 1063275085..65a9c24bcb 100644
--- a/model_module_status.go
+++ b/model_module_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &ModuleStatus{}
// ModuleStatus struct for ModuleStatus
type ModuleStatus struct {
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *ModuleStatusValue `json:"value,omitempty"`
+ Label *ModuleStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewModuleStatusWithDefaults() *ModuleStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *ModuleStatus) GetValue() string {
+func (o *ModuleStatus) GetValue() ModuleStatusValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret ModuleStatusValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *ModuleStatus) GetValue() string {
// 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() (*string, bool) {
+func (o *ModuleStatus) GetValueOk() (*ModuleStatusValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *ModuleStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *ModuleStatus) SetValue(v string) {
+// 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() string {
+func (o *ModuleStatus) GetLabel() ModuleStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret ModuleStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *ModuleStatus) 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 *ModuleStatus) GetLabelOk() (*string, bool) {
+func (o *ModuleStatus) GetLabelOk() (*ModuleStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *ModuleStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *ModuleStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given ModuleStatusLabel and assigns it to the Label field.
+func (o *ModuleStatus) SetLabel(v ModuleStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o ModuleStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ModuleStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ModuleStatus) UnmarshalJSON(data []byte) (err error) {
varModuleStatus := _ModuleStatus{}
- err = json.Unmarshal(bytes, &varModuleStatus)
+ err = json.Unmarshal(data, &varModuleStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *ModuleStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_module_status_label.go b/model_module_status_label.go
new file mode 100644
index 0000000000..b7776706be
--- /dev/null
+++ b/model_module_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: 3.7.0 (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
new file mode 100644
index 0000000000..2345f22504
--- /dev/null
+++ b/model_module_status_value.go
@@ -0,0 +1,118 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 64cf0b237a..b3c01a9d8b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -528,10 +529,37 @@ func (o ModuleType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ModuleType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ModuleType) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varModuleType := _ModuleType{}
- err = json.Unmarshal(bytes, &varModuleType)
+ err = json.Unmarshal(data, &varModuleType)
if err != nil {
return err
@@ -541,7 +569,7 @@ func (o *ModuleType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_module_type_request.go b/model_module_type_request.go
index 1692a6698a..fa6d3cea4b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ModuleTypeRequest type satisfies the MappedNullable interface at compile time
@@ -22,14 +23,13 @@ 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"`
- // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
- WeightUnit NullableString `json:"weight_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -178,9 +178,9 @@ func (o *ModuleTypeRequest) UnsetWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ModuleTypeRequest) GetWeightUnit() string {
+func (o *ModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit {
if o == nil || IsNil(o.WeightUnit.Get()) {
- var ret string
+ var ret DeviceTypeRequestWeightUnit
return ret
}
return *o.WeightUnit.Get()
@@ -189,7 +189,7 @@ func (o *ModuleTypeRequest) GetWeightUnit() string {
// 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() (*string, bool) {
+func (o *ModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) {
if o == nil {
return nil, false
}
@@ -205,8 +205,8 @@ func (o *ModuleTypeRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given NullableString and assigns it to the WeightUnit field.
-func (o *ModuleTypeRequest) SetWeightUnit(v string) {
+// 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)
}
@@ -389,10 +389,32 @@ func (o ModuleTypeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ModuleTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ModuleTypeRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "manufacturer",
+ "model",
+ }
+
+ 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)
+ }
+ }
+
varModuleTypeRequest := _ModuleTypeRequest{}
- err = json.Unmarshal(bytes, &varModuleTypeRequest)
+ err = json.Unmarshal(data, &varModuleTypeRequest)
if err != nil {
return err
@@ -402,7 +424,7 @@ func (o *ModuleTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "manufacturer")
delete(additionalProperties, "model")
delete(additionalProperties, "part_number")
diff --git a/model_nested_cable.go b/model_nested_cable.go
index d00be48186..ce948fa182 100644
--- a/model_nested_cable.go
+++ b/model_nested_cable.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedCable type satisfies the MappedNullable interface at compile time
@@ -176,10 +177,33 @@ func (o NestedCable) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedCable) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedCable)
+ err = json.Unmarshal(data, &varNestedCable)
if err != nil {
return err
@@ -189,7 +213,7 @@ func (o *NestedCable) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_cable_request.go b/model_nested_cable_request.go
index 1882bbfc21..d4b241f8bc 100644
--- a/model_nested_cable_request.go
+++ b/model_nested_cable_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -95,10 +95,10 @@ func (o NestedCableRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedCableRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedCableRequest) UnmarshalJSON(data []byte) (err error) {
varNestedCableRequest := _NestedCableRequest{}
- err = json.Unmarshal(bytes, &varNestedCableRequest)
+ err = json.Unmarshal(data, &varNestedCableRequest)
if err != nil {
return err
@@ -108,7 +108,7 @@ func (o *NestedCableRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_circuit.go b/model_nested_circuit.go
index 30cc218cec..729a2acc38 100644
--- a/model_nested_circuit.go
+++ b/model_nested_circuit.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedCircuit type satisfies the MappedNullable interface at compile time
@@ -168,10 +169,34 @@ func (o NestedCircuit) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedCircuit) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedCircuit)
+ err = json.Unmarshal(data, &varNestedCircuit)
if err != nil {
return err
@@ -181,7 +206,7 @@ func (o *NestedCircuit) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_circuit_request.go b/model_nested_circuit_request.go
index 41218cd08d..7433e89254 100644
--- a/model_nested_circuit_request.go
+++ b/model_nested_circuit_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedCircuitRequest type satisfies the MappedNullable interface at compile time
@@ -87,10 +88,31 @@ func (o NestedCircuitRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedCircuitRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedCircuitRequest)
+ err = json.Unmarshal(data, &varNestedCircuitRequest)
if err != nil {
return err
@@ -100,7 +122,7 @@ func (o *NestedCircuitRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "cid")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_circuit_type.go b/model_nested_circuit_type.go
index 2a4db399fe..b75857c1ea 100644
--- a/model_nested_circuit_type.go
+++ b/model_nested_circuit_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedCircuitType type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedCircuitType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedCircuitType) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedCircuitType)
+ err = json.Unmarshal(data, &varNestedCircuitType)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedCircuitType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_circuit_type_request.go b/model_nested_circuit_type_request.go
index b91c5e7a56..029f4fd1fd 100644
--- a/model_nested_circuit_type_request.go
+++ b/model_nested_circuit_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedCircuitTypeRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedCircuitTypeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedCircuitTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedCircuitTypeRequest)
+ err = json.Unmarshal(data, &varNestedCircuitTypeRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedCircuitTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_cluster.go b/model_nested_cluster.go
index 6c87585deb..44d480abb0 100644
--- a/model_nested_cluster.go
+++ b/model_nested_cluster.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedCluster type satisfies the MappedNullable interface at compile time
@@ -167,10 +168,34 @@ func (o NestedCluster) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedCluster) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedCluster)
+ err = json.Unmarshal(data, &varNestedCluster)
if err != nil {
return err
@@ -180,7 +205,7 @@ func (o *NestedCluster) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_cluster_group.go b/model_nested_cluster_group.go
index 326f70fd73..36fb9dc806 100644
--- a/model_nested_cluster_group.go
+++ b/model_nested_cluster_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedClusterGroup type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedClusterGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedClusterGroup) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedClusterGroup)
+ err = json.Unmarshal(data, &varNestedClusterGroup)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedClusterGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_cluster_group_request.go b/model_nested_cluster_group_request.go
index 50dfa65580..767894b7a4 100644
--- a/model_nested_cluster_group_request.go
+++ b/model_nested_cluster_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedClusterGroupRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedClusterGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedClusterGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedClusterGroupRequest)
+ err = json.Unmarshal(data, &varNestedClusterGroupRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedClusterGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_cluster_request.go b/model_nested_cluster_request.go
index 690d54c8bb..9e315b7dc7 100644
--- a/model_nested_cluster_request.go
+++ b/model_nested_cluster_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedClusterRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedClusterRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedClusterRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedClusterRequest)
+ err = json.Unmarshal(data, &varNestedClusterRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedClusterRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_cluster_type.go b/model_nested_cluster_type.go
index eebb43e944..7ca2b3a841 100644
--- a/model_nested_cluster_type.go
+++ b/model_nested_cluster_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedClusterType type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedClusterType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedClusterType) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedClusterType)
+ err = json.Unmarshal(data, &varNestedClusterType)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedClusterType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_cluster_type_request.go b/model_nested_cluster_type_request.go
index 0679ac39c0..0e02677881 100644
--- a/model_nested_cluster_type_request.go
+++ b/model_nested_cluster_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedClusterTypeRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedClusterTypeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedClusterTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedClusterTypeRequest)
+ err = json.Unmarshal(data, &varNestedClusterTypeRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedClusterTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_config_template.go b/model_nested_config_template.go
index a125623d02..1f96926797 100644
--- a/model_nested_config_template.go
+++ b/model_nested_config_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedConfigTemplate type satisfies the MappedNullable interface at compile time
@@ -167,10 +168,34 @@ func (o NestedConfigTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedConfigTemplate) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedConfigTemplate)
+ err = json.Unmarshal(data, &varNestedConfigTemplate)
if err != nil {
return err
@@ -180,7 +205,7 @@ func (o *NestedConfigTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_config_template_request.go b/model_nested_config_template_request.go
index cf73b3d6cf..1e52442d84 100644
--- a/model_nested_config_template_request.go
+++ b/model_nested_config_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedConfigTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedConfigTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedConfigTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedConfigTemplateRequest)
+ err = json.Unmarshal(data, &varNestedConfigTemplateRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedConfigTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_contact.go b/model_nested_contact.go
index 56fdea8a6c..059d5c6937 100644
--- a/model_nested_contact.go
+++ b/model_nested_contact.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedContact type satisfies the MappedNullable interface at compile time
@@ -167,10 +168,34 @@ func (o NestedContact) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedContact) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedContact)
+ err = json.Unmarshal(data, &varNestedContact)
if err != nil {
return err
@@ -180,7 +205,7 @@ func (o *NestedContact) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_contact_group.go b/model_nested_contact_group.go
index 246354df26..4cf7937572 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedContactGroup type satisfies the MappedNullable interface at compile time
@@ -221,10 +222,36 @@ func (o NestedContactGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedContactGroup) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedContactGroup) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedContactGroup := _NestedContactGroup{}
- err = json.Unmarshal(bytes, &varNestedContactGroup)
+ err = json.Unmarshal(data, &varNestedContactGroup)
if err != nil {
return err
@@ -234,7 +261,7 @@ func (o *NestedContactGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_contact_group_request.go b/model_nested_contact_group_request.go
index a732a02bb8..d70211d1c7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedContactGroupRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedContactGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedContactGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedContactGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedContactGroupRequest := _NestedContactGroupRequest{}
- err = json.Unmarshal(bytes, &varNestedContactGroupRequest)
+ err = json.Unmarshal(data, &varNestedContactGroupRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedContactGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_contact_request.go b/model_nested_contact_request.go
index a29bf7d1a3..13601b1a7d 100644
--- a/model_nested_contact_request.go
+++ b/model_nested_contact_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedContactRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedContactRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedContactRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedContactRequest)
+ err = json.Unmarshal(data, &varNestedContactRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedContactRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_contact_role.go b/model_nested_contact_role.go
index 5268553d73..b1a58abc92 100644
--- a/model_nested_contact_role.go
+++ b/model_nested_contact_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedContactRole type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedContactRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedContactRole) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedContactRole)
+ err = json.Unmarshal(data, &varNestedContactRole)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedContactRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_contact_role_request.go b/model_nested_contact_role_request.go
index 8b9d694313..a32ca1d7a3 100644
--- a/model_nested_contact_role_request.go
+++ b/model_nested_contact_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedContactRoleRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedContactRoleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedContactRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedContactRoleRequest)
+ err = json.Unmarshal(data, &varNestedContactRoleRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedContactRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_custom_field_choice_set.go b/model_nested_custom_field_choice_set.go
index 8d15fb33f8..9fb265e2ba 100644
--- a/model_nested_custom_field_choice_set.go
+++ b/model_nested_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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedCustomFieldChoiceSet type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedCustomFieldChoiceSet) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedCustomFieldChoiceSet) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedCustomFieldChoiceSet)
+ err = json.Unmarshal(data, &varNestedCustomFieldChoiceSet)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedCustomFieldChoiceSet) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_custom_field_choice_set_request.go b/model_nested_custom_field_choice_set_request.go
index 80f0555568..d564918fdd 100644
--- a/model_nested_custom_field_choice_set_request.go
+++ b/model_nested_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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedCustomFieldChoiceSetRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedCustomFieldChoiceSetRequest) ToMap() (map[string]interface{}, erro
return toSerialize, nil
}
-func (o *NestedCustomFieldChoiceSetRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedCustomFieldChoiceSetRequest)
+ err = json.Unmarshal(data, &varNestedCustomFieldChoiceSetRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedCustomFieldChoiceSetRequest) UnmarshalJSON(bytes []byte) (err err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_data_file.go b/model_nested_data_file.go
index e35dbda543..7fd760f893 100644
--- a/model_nested_data_file.go
+++ b/model_nested_data_file.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedDataFile type satisfies the MappedNullable interface at compile time
@@ -168,10 +169,34 @@ func (o NestedDataFile) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedDataFile) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedDataFile)
+ err = json.Unmarshal(data, &varNestedDataFile)
if err != nil {
return err
@@ -181,7 +206,7 @@ func (o *NestedDataFile) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_data_source.go b/model_nested_data_source.go
index 81af3fd13c..294fd7c299 100644
--- a/model_nested_data_source.go
+++ b/model_nested_data_source.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedDataSource type satisfies the MappedNullable interface at compile time
@@ -167,10 +168,34 @@ func (o NestedDataSource) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedDataSource) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedDataSource)
+ err = json.Unmarshal(data, &varNestedDataSource)
if err != nil {
return err
@@ -180,7 +205,7 @@ func (o *NestedDataSource) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_data_source_request.go b/model_nested_data_source_request.go
index adc406ba12..b47c092e7d 100644
--- a/model_nested_data_source_request.go
+++ b/model_nested_data_source_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedDataSourceRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedDataSourceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedDataSourceRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedDataSourceRequest)
+ err = json.Unmarshal(data, &varNestedDataSourceRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedDataSourceRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_device.go b/model_nested_device.go
index e43a46efad..7e27c9240d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedDevice type satisfies the MappedNullable interface at compile time
@@ -187,10 +188,33 @@ func (o NestedDevice) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedDevice) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedDevice) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedDevice := _NestedDevice{}
- err = json.Unmarshal(bytes, &varNestedDevice)
+ err = json.Unmarshal(data, &varNestedDevice)
if err != nil {
return err
@@ -200,7 +224,7 @@ func (o *NestedDevice) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_device_request.go b/model_nested_device_request.go
index f244ec2c0a..b1edde3b75 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -106,10 +106,10 @@ func (o NestedDeviceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedDeviceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedDeviceRequest) UnmarshalJSON(data []byte) (err error) {
varNestedDeviceRequest := _NestedDeviceRequest{}
- err = json.Unmarshal(bytes, &varNestedDeviceRequest)
+ err = json.Unmarshal(data, &varNestedDeviceRequest)
if err != nil {
return err
@@ -119,7 +119,7 @@ func (o *NestedDeviceRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_device_role.go b/model_nested_device_role.go
index a3eeae31f2..6e2736b07b 100644
--- a/model_nested_device_role.go
+++ b/model_nested_device_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedDeviceRole type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedDeviceRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedDeviceRole) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedDeviceRole)
+ err = json.Unmarshal(data, &varNestedDeviceRole)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedDeviceRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_device_role_request.go b/model_nested_device_role_request.go
index 0a45eac6d4..c1e0d79345 100644
--- a/model_nested_device_role_request.go
+++ b/model_nested_device_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedDeviceRoleRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedDeviceRoleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedDeviceRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedDeviceRoleRequest)
+ err = json.Unmarshal(data, &varNestedDeviceRoleRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedDeviceRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_device_type.go b/model_nested_device_type.go
index 8a43615395..512c43335b 100644
--- a/model_nested_device_type.go
+++ b/model_nested_device_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedDeviceType type satisfies the MappedNullable interface at compile time
@@ -221,10 +222,36 @@ func (o NestedDeviceType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedDeviceType) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedDeviceType)
+ err = json.Unmarshal(data, &varNestedDeviceType)
if err != nil {
return err
@@ -234,7 +261,7 @@ func (o *NestedDeviceType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_device_type_request.go b/model_nested_device_type_request.go
index 7907796a05..658cc766cd 100644
--- a/model_nested_device_type_request.go
+++ b/model_nested_device_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedDeviceTypeRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedDeviceTypeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedDeviceTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedDeviceTypeRequest)
+ err = json.Unmarshal(data, &varNestedDeviceTypeRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedDeviceTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "model")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_fhrp_group.go b/model_nested_fhrp_group.go
index 8d26e8c6d7..d4a220d337 100644
--- a/model_nested_fhrp_group.go
+++ b/model_nested_fhrp_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedFHRPGroup type satisfies the MappedNullable interface at compile time
@@ -19,12 +20,11 @@ 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"`
- // * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other
- Protocol string `json:"protocol"`
- GroupId int32 `json:"group_id"`
+ 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{}
}
@@ -34,7 +34,7 @@ type _NestedFHRPGroup NestedFHRPGroup
// This constructor will assign default values to properties that have it defined,
// and 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 string, groupId int32) *NestedFHRPGroup {
+func NewNestedFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32) *NestedFHRPGroup {
this := NestedFHRPGroup{}
this.Id = id
this.Url = url
@@ -125,9 +125,9 @@ func (o *NestedFHRPGroup) SetDisplay(v string) {
}
// GetProtocol returns the Protocol field value
-func (o *NestedFHRPGroup) GetProtocol() string {
+func (o *NestedFHRPGroup) GetProtocol() FHRPGroupProtocol {
if o == nil {
- var ret string
+ var ret FHRPGroupProtocol
return ret
}
@@ -136,7 +136,7 @@ func (o *NestedFHRPGroup) GetProtocol() string {
// GetProtocolOk returns a tuple with the Protocol field value
// and a boolean to check if the value has been set.
-func (o *NestedFHRPGroup) GetProtocolOk() (*string, bool) {
+func (o *NestedFHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool) {
if o == nil {
return nil, false
}
@@ -144,7 +144,7 @@ func (o *NestedFHRPGroup) GetProtocolOk() (*string, bool) {
}
// SetProtocol sets field value
-func (o *NestedFHRPGroup) SetProtocol(v string) {
+func (o *NestedFHRPGroup) SetProtocol(v FHRPGroupProtocol) {
o.Protocol = v
}
@@ -195,10 +195,35 @@ func (o NestedFHRPGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedFHRPGroup) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedFHRPGroup)
+ err = json.Unmarshal(data, &varNestedFHRPGroup)
if err != nil {
return err
@@ -208,7 +233,7 @@ func (o *NestedFHRPGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_fhrp_group_request.go b/model_nested_fhrp_group_request.go
index 144e03f7fe..1121286d1a 100644
--- a/model_nested_fhrp_group_request.go
+++ b/model_nested_fhrp_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedFHRPGroupRequest type satisfies the MappedNullable interface at compile time
@@ -19,9 +20,8 @@ var _ MappedNullable = &NestedFHRPGroupRequest{}
// NestedFHRPGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedFHRPGroupRequest struct {
- // * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other
- Protocol string `json:"protocol"`
- GroupId int32 `json:"group_id"`
+ Protocol FHRPGroupProtocol `json:"protocol"`
+ GroupId int32 `json:"group_id"`
AdditionalProperties map[string]interface{}
}
@@ -31,7 +31,7 @@ type _NestedFHRPGroupRequest NestedFHRPGroupRequest
// This constructor will assign default values to properties that have it defined,
// and 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 string, groupId int32) *NestedFHRPGroupRequest {
+func NewNestedFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32) *NestedFHRPGroupRequest {
this := NestedFHRPGroupRequest{}
this.Protocol = protocol
this.GroupId = groupId
@@ -47,9 +47,9 @@ func NewNestedFHRPGroupRequestWithDefaults() *NestedFHRPGroupRequest {
}
// GetProtocol returns the Protocol field value
-func (o *NestedFHRPGroupRequest) GetProtocol() string {
+func (o *NestedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol {
if o == nil {
- var ret string
+ var ret FHRPGroupProtocol
return ret
}
@@ -58,7 +58,7 @@ func (o *NestedFHRPGroupRequest) GetProtocol() string {
// GetProtocolOk returns a tuple with the Protocol field value
// and a boolean to check if the value has been set.
-func (o *NestedFHRPGroupRequest) GetProtocolOk() (*string, bool) {
+func (o *NestedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) {
if o == nil {
return nil, false
}
@@ -66,7 +66,7 @@ func (o *NestedFHRPGroupRequest) GetProtocolOk() (*string, bool) {
}
// SetProtocol sets field value
-func (o *NestedFHRPGroupRequest) SetProtocol(v string) {
+func (o *NestedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) {
o.Protocol = v
}
@@ -114,10 +114,32 @@ func (o NestedFHRPGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedFHRPGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedFHRPGroupRequest)
+ err = json.Unmarshal(data, &varNestedFHRPGroupRequest)
if err != nil {
return err
@@ -127,7 +149,7 @@ func (o *NestedFHRPGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "protocol")
delete(additionalProperties, "group_id")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_ike_policy.go b/model_nested_ike_policy.go
new file mode 100644
index 0000000000..0fdb5a57fe
--- /dev/null
+++ b/model_nested_ike_policy.go
@@ -0,0 +1,253 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..f7618e0d66
--- /dev/null
+++ b/model_nested_ike_policy_request.go
@@ -0,0 +1,166 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 69f3004c86..a3cdc41085 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedInterface type satisfies the MappedNullable interface at compile time
@@ -268,10 +269,36 @@ func (o NestedInterface) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedInterface) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedInterface) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedInterface := _NestedInterface{}
- err = json.Unmarshal(bytes, &varNestedInterface)
+ err = json.Unmarshal(data, &varNestedInterface)
if err != nil {
return err
@@ -281,7 +308,7 @@ func (o *NestedInterface) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_interface_request.go b/model_nested_interface_request.go
index f939fd0cd6..8e815f8985 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedInterfaceRequest type satisfies the MappedNullable interface at compile time
@@ -133,10 +134,31 @@ func (o NestedInterfaceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedInterfaceRequest := _NestedInterfaceRequest{}
- err = json.Unmarshal(bytes, &varNestedInterfaceRequest)
+ err = json.Unmarshal(data, &varNestedInterfaceRequest)
if err != nil {
return err
@@ -146,7 +168,7 @@ func (o *NestedInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "cable")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_interface_template.go b/model_nested_interface_template.go
index 878ee4edaf..43650c6588 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedInterfaceTemplate type satisfies the MappedNullable interface at compile time
@@ -168,10 +169,34 @@ func (o NestedInterfaceTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedInterfaceTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedInterfaceTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedInterfaceTemplate := _NestedInterfaceTemplate{}
- err = json.Unmarshal(bytes, &varNestedInterfaceTemplate)
+ err = json.Unmarshal(data, &varNestedInterfaceTemplate)
if err != nil {
return err
@@ -181,7 +206,7 @@ func (o *NestedInterfaceTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_interface_template_request.go b/model_nested_interface_template_request.go
index cea0f81d22..b095d65b6c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedInterfaceTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -87,10 +88,31 @@ func (o NestedInterfaceTemplateRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *NestedInterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedInterfaceTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedInterfaceTemplateRequest := _NestedInterfaceTemplateRequest{}
- err = json.Unmarshal(bytes, &varNestedInterfaceTemplateRequest)
+ err = json.Unmarshal(data, &varNestedInterfaceTemplateRequest)
if err != nil {
return err
@@ -100,7 +122,7 @@ func (o *NestedInterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_inventory_item_role.go b/model_nested_inventory_item_role.go
index 311b930308..d8a6363700 100644
--- a/model_nested_inventory_item_role.go
+++ b/model_nested_inventory_item_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedInventoryItemRole type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedInventoryItemRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedInventoryItemRole) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedInventoryItemRole)
+ err = json.Unmarshal(data, &varNestedInventoryItemRole)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedInventoryItemRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_inventory_item_role_request.go b/model_nested_inventory_item_role_request.go
index 4cbb968469..e5918ea1a2 100644
--- a/model_nested_inventory_item_role_request.go
+++ b/model_nested_inventory_item_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedInventoryItemRoleRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedInventoryItemRoleRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *NestedInventoryItemRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedInventoryItemRoleRequest)
+ err = json.Unmarshal(data, &varNestedInventoryItemRoleRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedInventoryItemRoleRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_ip_address.go b/model_nested_ip_address.go
index 177f6ce817..d2f573aec3 100644
--- a/model_nested_ip_address.go
+++ b/model_nested_ip_address.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedIPAddress type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedIPAddress) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedIPAddress) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedIPAddress)
+ err = json.Unmarshal(data, &varNestedIPAddress)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedIPAddress) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_ip_address_request.go b/model_nested_ip_address_request.go
index 259c0104df..a6b7169818 100644
--- a/model_nested_ip_address_request.go
+++ b/model_nested_ip_address_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedIPAddressRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedIPAddressRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedIPAddressRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedIPAddressRequest)
+ err = json.Unmarshal(data, &varNestedIPAddressRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedIPAddressRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "address")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_ip_sec_policy.go b/model_nested_ip_sec_policy.go
new file mode 100644
index 0000000000..5ef27f51dc
--- /dev/null
+++ b/model_nested_ip_sec_policy.go
@@ -0,0 +1,253 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..b8ddcf65d5
--- /dev/null
+++ b/model_nested_ip_sec_policy_request.go
@@ -0,0 +1,166 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..23d27c5898
--- /dev/null
+++ b/model_nested_ip_sec_profile.go
@@ -0,0 +1,253 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..0dc27189ce
--- /dev/null
+++ b/model_nested_ip_sec_profile_request.go
@@ -0,0 +1,166 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
index 85a771bb5a..47d87bfe82 100644
--- a/model_nested_l2_vpn.go
+++ b/model_nested_l2_vpn.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedL2VPN type satisfies the MappedNullable interface at compile time
@@ -19,14 +20,13 @@ 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"`
- // * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree
- Type string `json:"type"`
+ 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{}
}
@@ -36,7 +36,7 @@ type _NestedL2VPN NestedL2VPN
// This constructor will assign default values to properties that have it defined,
// and 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_ string) *NestedL2VPN {
+func NewNestedL2VPN(id int32, url string, display string, name string, slug string, type_ L2VPNTypeValue) *NestedL2VPN {
this := NestedL2VPN{}
this.Id = id
this.Url = url
@@ -219,9 +219,9 @@ func (o *NestedL2VPN) SetSlug(v string) {
}
// GetType returns the Type field value
-func (o *NestedL2VPN) GetType() string {
+func (o *NestedL2VPN) GetType() L2VPNTypeValue {
if o == nil {
- var ret string
+ var ret L2VPNTypeValue
return ret
}
@@ -230,7 +230,7 @@ func (o *NestedL2VPN) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *NestedL2VPN) GetTypeOk() (*string, bool) {
+func (o *NestedL2VPN) GetTypeOk() (*L2VPNTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -238,7 +238,7 @@ func (o *NestedL2VPN) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *NestedL2VPN) SetType(v string) {
+func (o *NestedL2VPN) SetType(v L2VPNTypeValue) {
o.Type = v
}
@@ -269,10 +269,36 @@ func (o NestedL2VPN) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedL2VPN) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedL2VPN)
+ err = json.Unmarshal(data, &varNestedL2VPN)
if err != nil {
return err
@@ -282,7 +308,7 @@ func (o *NestedL2VPN) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_l2_vpn_request.go b/model_nested_l2_vpn_request.go
index 05755a6951..c60a858f3b 100644
--- a/model_nested_l2_vpn_request.go
+++ b/model_nested_l2_vpn_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedL2VPNRequest type satisfies the MappedNullable interface at compile time
@@ -19,11 +20,10 @@ var _ MappedNullable = &NestedL2VPNRequest{}
// NestedL2VPNRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedL2VPNRequest struct {
- Identifier NullableInt64 `json:"identifier,omitempty"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- // * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree
- Type string `json:"type"`
+ Identifier NullableInt64 `json:"identifier,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type L2VPNTypeValue `json:"type"`
AdditionalProperties map[string]interface{}
}
@@ -33,7 +33,7 @@ type _NestedL2VPNRequest NestedL2VPNRequest
// This constructor will assign default values to properties that have it defined,
// and 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_ string) *NestedL2VPNRequest {
+func NewNestedL2VPNRequest(name string, slug string, type_ L2VPNTypeValue) *NestedL2VPNRequest {
this := NestedL2VPNRequest{}
this.Name = name
this.Slug = slug
@@ -141,9 +141,9 @@ func (o *NestedL2VPNRequest) SetSlug(v string) {
}
// GetType returns the Type field value
-func (o *NestedL2VPNRequest) GetType() string {
+func (o *NestedL2VPNRequest) GetType() L2VPNTypeValue {
if o == nil {
- var ret string
+ var ret L2VPNTypeValue
return ret
}
@@ -152,7 +152,7 @@ func (o *NestedL2VPNRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *NestedL2VPNRequest) GetTypeOk() (*string, bool) {
+func (o *NestedL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -160,7 +160,7 @@ func (o *NestedL2VPNRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *NestedL2VPNRequest) SetType(v string) {
+func (o *NestedL2VPNRequest) SetType(v L2VPNTypeValue) {
o.Type = v
}
@@ -188,10 +188,33 @@ func (o NestedL2VPNRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedL2VPNRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedL2VPNRequest)
+ err = json.Unmarshal(data, &varNestedL2VPNRequest)
if err != nil {
return err
@@ -201,7 +224,7 @@ func (o *NestedL2VPNRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "identifier")
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
diff --git a/model_nested_l2_vpn_termination.go b/model_nested_l2_vpn_termination.go
index 7c13e9866a..544a1549c2 100644
--- a/model_nested_l2_vpn_termination.go
+++ b/model_nested_l2_vpn_termination.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedL2VPNTermination type satisfies the MappedNullable interface at compile time
@@ -167,10 +168,34 @@ func (o NestedL2VPNTermination) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedL2VPNTermination) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedL2VPNTermination)
+ err = json.Unmarshal(data, &varNestedL2VPNTermination)
if err != nil {
return err
@@ -180,7 +205,7 @@ func (o *NestedL2VPNTermination) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_l2_vpn_termination_request.go b/model_nested_l2_vpn_termination_request.go
index 26093b0b1e..47245ae543 100644
--- a/model_nested_l2_vpn_termination_request.go
+++ b/model_nested_l2_vpn_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedL2VPNTerminationRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedL2VPNTerminationRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedL2VPNTerminationRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedL2VPNTerminationRequest)
+ err = json.Unmarshal(data, &varNestedL2VPNTerminationRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedL2VPNTerminationRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "l2vpn")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_location.go b/model_nested_location.go
index f255ae61bb..be068dd21e 100644
--- a/model_nested_location.go
+++ b/model_nested_location.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedLocation type satisfies the MappedNullable interface at compile time
@@ -221,10 +222,36 @@ func (o NestedLocation) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedLocation) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedLocation)
+ err = json.Unmarshal(data, &varNestedLocation)
if err != nil {
return err
@@ -234,7 +261,7 @@ func (o *NestedLocation) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_location_request.go b/model_nested_location_request.go
index de3a3659fa..b9773ce1ea 100644
--- a/model_nested_location_request.go
+++ b/model_nested_location_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedLocationRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedLocationRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedLocationRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedLocationRequest)
+ err = json.Unmarshal(data, &varNestedLocationRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedLocationRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_manufacturer.go b/model_nested_manufacturer.go
index 8322cca3e9..c6f064bfc5 100644
--- a/model_nested_manufacturer.go
+++ b/model_nested_manufacturer.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedManufacturer type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedManufacturer) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedManufacturer) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedManufacturer)
+ err = json.Unmarshal(data, &varNestedManufacturer)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedManufacturer) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_manufacturer_request.go b/model_nested_manufacturer_request.go
index 2b3a70afb8..7ef53a0fe0 100644
--- a/model_nested_manufacturer_request.go
+++ b/model_nested_manufacturer_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedManufacturerRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedManufacturerRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedManufacturerRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedManufacturerRequest)
+ err = json.Unmarshal(data, &varNestedManufacturerRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedManufacturerRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_module.go b/model_nested_module.go
index 9559de082a..5fec7e17e4 100644
--- a/model_nested_module.go
+++ b/model_nested_module.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedModule type satisfies the MappedNullable interface at compile time
@@ -221,10 +222,36 @@ func (o NestedModule) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedModule) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedModule) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "module_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)
+ }
+ }
+
varNestedModule := _NestedModule{}
- err = json.Unmarshal(bytes, &varNestedModule)
+ err = json.Unmarshal(data, &varNestedModule)
if err != nil {
return err
@@ -234,7 +261,7 @@ func (o *NestedModule) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_module_bay.go b/model_nested_module_bay.go
index d1f926ae0f..51e1d4e8d9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedModuleBay type satisfies the MappedNullable interface at compile time
@@ -196,10 +197,35 @@ func (o NestedModuleBay) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedModuleBay) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedModuleBay) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "module",
+ "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)
+ }
+ }
+
varNestedModuleBay := _NestedModuleBay{}
- err = json.Unmarshal(bytes, &varNestedModuleBay)
+ err = json.Unmarshal(data, &varNestedModuleBay)
if err != nil {
return err
@@ -209,7 +235,7 @@ func (o *NestedModuleBay) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_module_bay_request.go b/model_nested_module_bay_request.go
index ca3f9125aa..bf4e31eda5 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedModuleBayRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedModuleBayRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedModuleBayRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedModuleBayRequest := _NestedModuleBayRequest{}
- err = json.Unmarshal(bytes, &varNestedModuleBayRequest)
+ err = json.Unmarshal(data, &varNestedModuleBayRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_module_type.go b/model_nested_module_type.go
index 0ac5e12898..3cf5c7ee0c 100644
--- a/model_nested_module_type.go
+++ b/model_nested_module_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedModuleType type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedModuleType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedModuleType) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedModuleType)
+ err = json.Unmarshal(data, &varNestedModuleType)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedModuleType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_module_type_request.go b/model_nested_module_type_request.go
index b60223e5c7..15714f428d 100644
--- a/model_nested_module_type_request.go
+++ b/model_nested_module_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedModuleTypeRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedModuleTypeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedModuleTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedModuleTypeRequest)
+ err = json.Unmarshal(data, &varNestedModuleTypeRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedModuleTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "model")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_platform.go b/model_nested_platform.go
index 639fc4c83d..c232103410 100644
--- a/model_nested_platform.go
+++ b/model_nested_platform.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedPlatform type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedPlatform) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedPlatform) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedPlatform)
+ err = json.Unmarshal(data, &varNestedPlatform)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedPlatform) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_platform_request.go b/model_nested_platform_request.go
index f977eca266..7e4a230959 100644
--- a/model_nested_platform_request.go
+++ b/model_nested_platform_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedPlatformRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedPlatformRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedPlatformRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedPlatformRequest)
+ err = json.Unmarshal(data, &varNestedPlatformRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedPlatformRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_power_panel.go b/model_nested_power_panel.go
index 0e7dbe343f..4895f6783a 100644
--- a/model_nested_power_panel.go
+++ b/model_nested_power_panel.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedPowerPanel type satisfies the MappedNullable interface at compile time
@@ -167,10 +168,34 @@ func (o NestedPowerPanel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedPowerPanel) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedPowerPanel)
+ err = json.Unmarshal(data, &varNestedPowerPanel)
if err != nil {
return err
@@ -180,7 +205,7 @@ func (o *NestedPowerPanel) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_power_panel_request.go b/model_nested_power_panel_request.go
index 813dd11ec2..05a39f1ea0 100644
--- a/model_nested_power_panel_request.go
+++ b/model_nested_power_panel_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedPowerPanelRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedPowerPanelRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedPowerPanelRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedPowerPanelRequest)
+ err = json.Unmarshal(data, &varNestedPowerPanelRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedPowerPanelRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_power_port.go b/model_nested_power_port.go
index 6268528fa6..eeaec78f70 100644
--- a/model_nested_power_port.go
+++ b/model_nested_power_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedPowerPort type satisfies the MappedNullable interface at compile time
@@ -268,10 +269,36 @@ func (o NestedPowerPort) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedPowerPort) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedPowerPort)
+ err = json.Unmarshal(data, &varNestedPowerPort)
if err != nil {
return err
@@ -281,7 +308,7 @@ func (o *NestedPowerPort) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_power_port_request.go b/model_nested_power_port_request.go
index 928b3656fb..4a8e8973dc 100644
--- a/model_nested_power_port_request.go
+++ b/model_nested_power_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedPowerPortRequest type satisfies the MappedNullable interface at compile time
@@ -133,10 +134,31 @@ func (o NestedPowerPortRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedPowerPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedPowerPortRequest)
+ err = json.Unmarshal(data, &varNestedPowerPortRequest)
if err != nil {
return err
@@ -146,7 +168,7 @@ func (o *NestedPowerPortRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "cable")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_power_port_template.go b/model_nested_power_port_template.go
index 86c3146310..6ab19a279e 100644
--- a/model_nested_power_port_template.go
+++ b/model_nested_power_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedPowerPortTemplate type satisfies the MappedNullable interface at compile time
@@ -168,10 +169,34 @@ func (o NestedPowerPortTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedPowerPortTemplate) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedPowerPortTemplate)
+ err = json.Unmarshal(data, &varNestedPowerPortTemplate)
if err != nil {
return err
@@ -181,7 +206,7 @@ func (o *NestedPowerPortTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_power_port_template_request.go b/model_nested_power_port_template_request.go
index b67c97e679..6b40acf064 100644
--- a/model_nested_power_port_template_request.go
+++ b/model_nested_power_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedPowerPortTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -87,10 +88,31 @@ func (o NestedPowerPortTemplateRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *NestedPowerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedPowerPortTemplateRequest)
+ err = json.Unmarshal(data, &varNestedPowerPortTemplateRequest)
if err != nil {
return err
@@ -100,7 +122,7 @@ func (o *NestedPowerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_provider.go b/model_nested_provider.go
index be2f41d6eb..bb6ad5e3fd 100644
--- a/model_nested_provider.go
+++ b/model_nested_provider.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedProvider type satisfies the MappedNullable interface at compile time
@@ -195,10 +196,35 @@ func (o NestedProvider) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedProvider) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedProvider) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedProvider := _NestedProvider{}
- err = json.Unmarshal(bytes, &varNestedProvider)
+ err = json.Unmarshal(data, &varNestedProvider)
if err != nil {
return err
@@ -208,7 +234,7 @@ func (o *NestedProvider) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_provider_account.go b/model_nested_provider_account.go
index 63a2920a92..58576f1cb7 100644
--- a/model_nested_provider_account.go
+++ b/model_nested_provider_account.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedProviderAccount type satisfies the MappedNullable interface at compile time
@@ -203,10 +204,34 @@ func (o NestedProviderAccount) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedProviderAccount) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedProviderAccount)
+ err = json.Unmarshal(data, &varNestedProviderAccount)
if err != nil {
return err
@@ -216,7 +241,7 @@ func (o *NestedProviderAccount) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_provider_account_request.go b/model_nested_provider_account_request.go
index 27dd4d8a20..c0c60fa8b5 100644
--- a/model_nested_provider_account_request.go
+++ b/model_nested_provider_account_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedProviderAccountRequest type satisfies the MappedNullable interface at compile time
@@ -122,10 +123,31 @@ func (o NestedProviderAccountRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedProviderAccountRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedProviderAccountRequest)
+ err = json.Unmarshal(data, &varNestedProviderAccountRequest)
if err != nil {
return err
@@ -135,7 +157,7 @@ func (o *NestedProviderAccountRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "account")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_provider_network.go b/model_nested_provider_network.go
index ffe73a8b82..2b099b8477 100644
--- a/model_nested_provider_network.go
+++ b/model_nested_provider_network.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedProviderNetwork type satisfies the MappedNullable interface at compile time
@@ -167,10 +168,34 @@ func (o NestedProviderNetwork) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedProviderNetwork) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedProviderNetwork)
+ err = json.Unmarshal(data, &varNestedProviderNetwork)
if err != nil {
return err
@@ -180,7 +205,7 @@ func (o *NestedProviderNetwork) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_provider_network_request.go b/model_nested_provider_network_request.go
index d6199ff25a..dcbffb6f77 100644
--- a/model_nested_provider_network_request.go
+++ b/model_nested_provider_network_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedProviderNetworkRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedProviderNetworkRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedProviderNetworkRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedProviderNetworkRequest)
+ err = json.Unmarshal(data, &varNestedProviderNetworkRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedProviderNetworkRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_provider_request.go b/model_nested_provider_request.go
index 8af356ff14..8062711c61 100644
--- a/model_nested_provider_request.go
+++ b/model_nested_provider_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedProviderRequest type satisfies the MappedNullable interface at compile time
@@ -114,10 +115,32 @@ func (o NestedProviderRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedProviderRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedProviderRequest)
+ err = json.Unmarshal(data, &varNestedProviderRequest)
if err != nil {
return err
@@ -127,7 +150,7 @@ func (o *NestedProviderRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_rack.go b/model_nested_rack.go
index 4cafd4979f..d0466b194b 100644
--- a/model_nested_rack.go
+++ b/model_nested_rack.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedRack type satisfies the MappedNullable interface at compile time
@@ -167,10 +168,34 @@ func (o NestedRack) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedRack) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedRack) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedRack := _NestedRack{}
- err = json.Unmarshal(bytes, &varNestedRack)
+ err = json.Unmarshal(data, &varNestedRack)
if err != nil {
return err
@@ -180,7 +205,7 @@ func (o *NestedRack) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_rack_request.go b/model_nested_rack_request.go
index dd2b27abbf..aba0e3f18f 100644
--- a/model_nested_rack_request.go
+++ b/model_nested_rack_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedRackRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedRackRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedRackRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedRackRequest)
+ err = json.Unmarshal(data, &varNestedRackRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedRackRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_rack_role.go b/model_nested_rack_role.go
index 64449b2503..45b7ed2fd2 100644
--- a/model_nested_rack_role.go
+++ b/model_nested_rack_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedRackRole type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedRackRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedRackRole) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedRackRole)
+ err = json.Unmarshal(data, &varNestedRackRole)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedRackRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_rack_role_request.go b/model_nested_rack_role_request.go
index 2731612639..1ed3dbe26d 100644
--- a/model_nested_rack_role_request.go
+++ b/model_nested_rack_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedRackRoleRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedRackRoleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedRackRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedRackRoleRequest)
+ err = json.Unmarshal(data, &varNestedRackRoleRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedRackRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_rear_port_template.go b/model_nested_rear_port_template.go
index b62392ef9b..3f57ea83ae 100644
--- a/model_nested_rear_port_template.go
+++ b/model_nested_rear_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedRearPortTemplate type satisfies the MappedNullable interface at compile time
@@ -168,10 +169,34 @@ func (o NestedRearPortTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedRearPortTemplate) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedRearPortTemplate)
+ err = json.Unmarshal(data, &varNestedRearPortTemplate)
if err != nil {
return err
@@ -181,7 +206,7 @@ func (o *NestedRearPortTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_rear_port_template_request.go b/model_nested_rear_port_template_request.go
index 451667c1fe..497435e026 100644
--- a/model_nested_rear_port_template_request.go
+++ b/model_nested_rear_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedRearPortTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -87,10 +88,31 @@ func (o NestedRearPortTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedRearPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedRearPortTemplateRequest)
+ err = json.Unmarshal(data, &varNestedRearPortTemplateRequest)
if err != nil {
return err
@@ -100,7 +122,7 @@ func (o *NestedRearPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_region.go b/model_nested_region.go
index d10957d0f3..0333ac7d8b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedRegion type satisfies the MappedNullable interface at compile time
@@ -221,10 +222,36 @@ func (o NestedRegion) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedRegion) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedRegion) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedRegion := _NestedRegion{}
- err = json.Unmarshal(bytes, &varNestedRegion)
+ err = json.Unmarshal(data, &varNestedRegion)
if err != nil {
return err
@@ -234,7 +261,7 @@ func (o *NestedRegion) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_region_request.go b/model_nested_region_request.go
index 220af84f8e..6ece6725de 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedRegionRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedRegionRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedRegionRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedRegionRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedRegionRequest := _NestedRegionRequest{}
- err = json.Unmarshal(bytes, &varNestedRegionRequest)
+ err = json.Unmarshal(data, &varNestedRegionRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedRegionRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_rir.go b/model_nested_rir.go
index c419dad113..48eefc1a1b 100644
--- a/model_nested_rir.go
+++ b/model_nested_rir.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedRIR type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedRIR) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedRIR) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedRIR)
+ err = json.Unmarshal(data, &varNestedRIR)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedRIR) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_rir_request.go b/model_nested_rir_request.go
index fc7d4cfcc7..529ced4b44 100644
--- a/model_nested_rir_request.go
+++ b/model_nested_rir_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedRIRRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedRIRRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedRIRRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedRIRRequest)
+ err = json.Unmarshal(data, &varNestedRIRRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedRIRRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_role.go b/model_nested_role.go
index 25e26c7135..9f256799cc 100644
--- a/model_nested_role.go
+++ b/model_nested_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedRole type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedRole) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedRole)
+ err = json.Unmarshal(data, &varNestedRole)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_role_request.go b/model_nested_role_request.go
index b6ce985793..bd67f75e64 100644
--- a/model_nested_role_request.go
+++ b/model_nested_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedRoleRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedRoleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedRoleRequest)
+ err = json.Unmarshal(data, &varNestedRoleRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_site.go b/model_nested_site.go
index 3ba76f5502..6330d66319 100644
--- a/model_nested_site.go
+++ b/model_nested_site.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedSite type satisfies the MappedNullable interface at compile time
@@ -195,10 +196,35 @@ func (o NestedSite) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedSite) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedSite)
+ err = json.Unmarshal(data, &varNestedSite)
if err != nil {
return err
@@ -208,7 +234,7 @@ func (o *NestedSite) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_site_group.go b/model_nested_site_group.go
index 5c5c1d686f..c2270e3537 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedSiteGroup type satisfies the MappedNullable interface at compile time
@@ -221,10 +222,36 @@ func (o NestedSiteGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedSiteGroup) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedSiteGroup) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedSiteGroup := _NestedSiteGroup{}
- err = json.Unmarshal(bytes, &varNestedSiteGroup)
+ err = json.Unmarshal(data, &varNestedSiteGroup)
if err != nil {
return err
@@ -234,7 +261,7 @@ func (o *NestedSiteGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_site_group_request.go b/model_nested_site_group_request.go
index 3935b1a606..380f98c6e0 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedSiteGroupRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedSiteGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedSiteGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedSiteGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedSiteGroupRequest := _NestedSiteGroupRequest{}
- err = json.Unmarshal(bytes, &varNestedSiteGroupRequest)
+ err = json.Unmarshal(data, &varNestedSiteGroupRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedSiteGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_site_request.go b/model_nested_site_request.go
index a4776de86c..b687d06a6d 100644
--- a/model_nested_site_request.go
+++ b/model_nested_site_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedSiteRequest type satisfies the MappedNullable interface at compile time
@@ -114,10 +115,32 @@ func (o NestedSiteRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedSiteRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedSiteRequest)
+ err = json.Unmarshal(data, &varNestedSiteRequest)
if err != nil {
return err
@@ -127,7 +150,7 @@ func (o *NestedSiteRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_tag.go b/model_nested_tag.go
index 7f1309cab3..fac832eea3 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedTag type satisfies the MappedNullable interface at compile time
@@ -230,10 +231,35 @@ func (o NestedTag) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedTag) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedTag) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedTag := _NestedTag{}
- err = json.Unmarshal(bytes, &varNestedTag)
+ err = json.Unmarshal(data, &varNestedTag)
if err != nil {
return err
@@ -243,7 +269,7 @@ func (o *NestedTag) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_tag_request.go b/model_nested_tag_request.go
index ac42a2dc74..4ab7472a9f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedTagRequest type satisfies the MappedNullable interface at compile time
@@ -149,10 +150,32 @@ func (o NestedTagRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedTagRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedTagRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedTagRequest := _NestedTagRequest{}
- err = json.Unmarshal(bytes, &varNestedTagRequest)
+ err = json.Unmarshal(data, &varNestedTagRequest)
if err != nil {
return err
@@ -162,7 +185,7 @@ func (o *NestedTagRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "color")
diff --git a/model_nested_tenant.go b/model_nested_tenant.go
index ca0b131924..ac53ed947c 100644
--- a/model_nested_tenant.go
+++ b/model_nested_tenant.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedTenant type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedTenant) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedTenant) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedTenant)
+ err = json.Unmarshal(data, &varNestedTenant)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedTenant) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_tenant_group.go b/model_nested_tenant_group.go
index 5fc5d61a73..abdf0583d1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedTenantGroup type satisfies the MappedNullable interface at compile time
@@ -221,10 +222,36 @@ func (o NestedTenantGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedTenantGroup) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedTenantGroup) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedTenantGroup := _NestedTenantGroup{}
- err = json.Unmarshal(bytes, &varNestedTenantGroup)
+ err = json.Unmarshal(data, &varNestedTenantGroup)
if err != nil {
return err
@@ -234,7 +261,7 @@ func (o *NestedTenantGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_tenant_group_request.go b/model_nested_tenant_group_request.go
index 4ff0e0686a..435eff41d9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedTenantGroupRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedTenantGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedTenantGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedTenantGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedTenantGroupRequest := _NestedTenantGroupRequest{}
- err = json.Unmarshal(bytes, &varNestedTenantGroupRequest)
+ err = json.Unmarshal(data, &varNestedTenantGroupRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedTenantGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_tenant_request.go b/model_nested_tenant_request.go
index 4f8aedebe2..3ba638f96a 100644
--- a/model_nested_tenant_request.go
+++ b/model_nested_tenant_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedTenantRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedTenantRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedTenantRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedTenantRequest)
+ err = json.Unmarshal(data, &varNestedTenantRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedTenantRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_tunnel.go b/model_nested_tunnel.go
new file mode 100644
index 0000000000..232505bd84
--- /dev/null
+++ b/model_nested_tunnel.go
@@ -0,0 +1,253 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..b8c2cc1494
--- /dev/null
+++ b/model_nested_tunnel_group.go
@@ -0,0 +1,282 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..dd73833da8
--- /dev/null
+++ b/model_nested_tunnel_group_request.go
@@ -0,0 +1,195 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..6870ad4d97
--- /dev/null
+++ b/model_nested_tunnel_request.go
@@ -0,0 +1,166 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 7426c1d477..540c29f087 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedUser type satisfies the MappedNullable interface at compile time
@@ -168,10 +169,34 @@ func (o NestedUser) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedUser) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedUser) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "url",
+ "display",
+ "username",
+ }
+
+ 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)
+ }
+ }
+
varNestedUser := _NestedUser{}
- err = json.Unmarshal(bytes, &varNestedUser)
+ err = json.Unmarshal(data, &varNestedUser)
if err != nil {
return err
@@ -181,7 +206,7 @@ func (o *NestedUser) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_user_request.go b/model_nested_user_request.go
index 8998d1a0b7..05a490ce9b 100644
--- a/model_nested_user_request.go
+++ b/model_nested_user_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedUserRequest type satisfies the MappedNullable interface at compile time
@@ -87,10 +88,31 @@ func (o NestedUserRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedUserRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedUserRequest)
+ err = json.Unmarshal(data, &varNestedUserRequest)
if err != nil {
return err
@@ -100,7 +122,7 @@ func (o *NestedUserRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "username")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_virtual_chassis.go b/model_nested_virtual_chassis.go
index fda4f971af..9f878d77a3 100644
--- a/model_nested_virtual_chassis.go
+++ b/model_nested_virtual_chassis.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedVirtualChassis type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedVirtualChassis) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedVirtualChassis) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedVirtualChassis)
+ err = json.Unmarshal(data, &varNestedVirtualChassis)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedVirtualChassis) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_virtual_chassis_request.go b/model_nested_virtual_chassis_request.go
index a80dfabbd1..d542245d66 100644
--- a/model_nested_virtual_chassis_request.go
+++ b/model_nested_virtual_chassis_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedVirtualChassisRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedVirtualChassisRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedVirtualChassisRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedVirtualChassisRequest)
+ err = json.Unmarshal(data, &varNestedVirtualChassisRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedVirtualChassisRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "master")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_virtual_machine.go b/model_nested_virtual_machine.go
index 3a5af4c522..bce22e718e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedVirtualMachine type satisfies the MappedNullable interface at compile time
@@ -167,10 +168,34 @@ func (o NestedVirtualMachine) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedVirtualMachine) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedVirtualMachine) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedVirtualMachine := _NestedVirtualMachine{}
- err = json.Unmarshal(bytes, &varNestedVirtualMachine)
+ err = json.Unmarshal(data, &varNestedVirtualMachine)
if err != nil {
return err
@@ -180,7 +205,7 @@ func (o *NestedVirtualMachine) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_virtual_machine_request.go b/model_nested_virtual_machine_request.go
index d5d6888e68..fb22b4c29e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedVirtualMachineRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedVirtualMachineRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedVirtualMachineRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedVirtualMachineRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedVirtualMachineRequest := _NestedVirtualMachineRequest{}
- err = json.Unmarshal(bytes, &varNestedVirtualMachineRequest)
+ err = json.Unmarshal(data, &varNestedVirtualMachineRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedVirtualMachineRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_vlan.go b/model_nested_vlan.go
index fbea7a6229..a2284c8a79 100644
--- a/model_nested_vlan.go
+++ b/model_nested_vlan.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedVLAN type satisfies the MappedNullable interface at compile time
@@ -195,10 +196,35 @@ func (o NestedVLAN) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedVLAN) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedVLAN)
+ err = json.Unmarshal(data, &varNestedVLAN)
if err != nil {
return err
@@ -208,7 +234,7 @@ func (o *NestedVLAN) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_vlan_group.go b/model_nested_vlan_group.go
index f6df76e609..10ccb03bae 100644
--- a/model_nested_vlan_group.go
+++ b/model_nested_vlan_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedVLANGroup type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedVLANGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedVLANGroup) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedVLANGroup)
+ err = json.Unmarshal(data, &varNestedVLANGroup)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedVLANGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_vlan_group_request.go b/model_nested_vlan_group_request.go
index 075715a287..e5d6cc210f 100644
--- a/model_nested_vlan_group_request.go
+++ b/model_nested_vlan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedVLANGroupRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedVLANGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedVLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedVLANGroupRequest)
+ err = json.Unmarshal(data, &varNestedVLANGroupRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedVLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_vlan_request.go b/model_nested_vlan_request.go
index 2d70badda4..9dae1b4323 100644
--- a/model_nested_vlan_request.go
+++ b/model_nested_vlan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedVLANRequest type satisfies the MappedNullable interface at compile time
@@ -114,10 +115,32 @@ func (o NestedVLANRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedVLANRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedVLANRequest)
+ err = json.Unmarshal(data, &varNestedVLANRequest)
if err != nil {
return err
@@ -127,7 +150,7 @@ func (o *NestedVLANRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "vid")
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_vm_interface.go b/model_nested_vm_interface.go
index 5807282aa1..7a06c7b721 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedVMInterface type satisfies the MappedNullable interface at compile time
@@ -194,10 +195,35 @@ func (o NestedVMInterface) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedVMInterface) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedVMInterface) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "url",
+ "display",
+ "virtual_machine",
+ "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)
+ }
+ }
+
varNestedVMInterface := _NestedVMInterface{}
- err = json.Unmarshal(bytes, &varNestedVMInterface)
+ err = json.Unmarshal(data, &varNestedVMInterface)
if err != nil {
return err
@@ -207,7 +233,7 @@ func (o *NestedVMInterface) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_vm_interface_request.go b/model_nested_vm_interface_request.go
index 7f7d541aa3..fb8569bcbb 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedVMInterfaceRequest type satisfies the MappedNullable interface at compile time
@@ -86,10 +87,31 @@ func (o NestedVMInterfaceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedVMInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedVMInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedVMInterfaceRequest := _NestedVMInterfaceRequest{}
- err = json.Unmarshal(bytes, &varNestedVMInterfaceRequest)
+ err = json.Unmarshal(data, &varNestedVMInterfaceRequest)
if err != nil {
return err
@@ -99,7 +121,7 @@ func (o *NestedVMInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_vrf.go b/model_nested_vrf.go
index 3fd1467d49..e580663577 100644
--- a/model_nested_vrf.go
+++ b/model_nested_vrf.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedVRF type satisfies the MappedNullable interface at compile time
@@ -215,10 +216,34 @@ func (o NestedVRF) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedVRF) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedVRF)
+ err = json.Unmarshal(data, &varNestedVRF)
if err != nil {
return err
@@ -228,7 +253,7 @@ func (o *NestedVRF) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_vrf_request.go b/model_nested_vrf_request.go
index 648d610cef..945c8eaf54 100644
--- a/model_nested_vrf_request.go
+++ b/model_nested_vrf_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedVRFRequest type satisfies the MappedNullable interface at compile time
@@ -134,10 +135,31 @@ func (o NestedVRFRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedVRFRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedVRFRequest)
+ err = json.Unmarshal(data, &varNestedVRFRequest)
if err != nil {
return err
@@ -147,7 +169,7 @@ func (o *NestedVRFRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "rd")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_wireless_lan_group.go b/model_nested_wireless_lan_group.go
index 8fcd84980c..3fa5749c5e 100644
--- a/model_nested_wireless_lan_group.go
+++ b/model_nested_wireless_lan_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedWirelessLANGroup type satisfies the MappedNullable interface at compile time
@@ -221,10 +222,36 @@ func (o NestedWirelessLANGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedWirelessLANGroup) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varNestedWirelessLANGroup)
+ err = json.Unmarshal(data, &varNestedWirelessLANGroup)
if err != nil {
return err
@@ -234,7 +261,7 @@ func (o *NestedWirelessLANGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_wireless_lan_group_request.go b/model_nested_wireless_lan_group_request.go
index 8edb02f84a..3e97313958 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedWirelessLANGroupRequest type satisfies the MappedNullable interface at compile time
@@ -113,10 +114,32 @@ func (o NestedWirelessLANGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedWirelessLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedWirelessLANGroupRequest := _NestedWirelessLANGroupRequest{}
- err = json.Unmarshal(bytes, &varNestedWirelessLANGroupRequest)
+ err = json.Unmarshal(data, &varNestedWirelessLANGroupRequest)
if err != nil {
return err
@@ -126,7 +149,7 @@ func (o *NestedWirelessLANGroupRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
o.AdditionalProperties = additionalProperties
diff --git a/model_nested_wireless_link.go b/model_nested_wireless_link.go
index 0de012568d..69621b426b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 NestedWirelessLink type satisfies the MappedNullable interface at compile time
@@ -176,10 +177,33 @@ func (o NestedWirelessLink) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedWirelessLink) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedWirelessLink) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varNestedWirelessLink := _NestedWirelessLink{}
- err = json.Unmarshal(bytes, &varNestedWirelessLink)
+ err = json.Unmarshal(data, &varNestedWirelessLink)
if err != nil {
return err
@@ -189,7 +213,7 @@ func (o *NestedWirelessLink) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_nested_wireless_link_request.go b/model_nested_wireless_link_request.go
index 6be667b910..95a7d35568 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -95,10 +95,10 @@ func (o NestedWirelessLinkRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedWirelessLinkRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *NestedWirelessLinkRequest) UnmarshalJSON(data []byte) (err error) {
varNestedWirelessLinkRequest := _NestedWirelessLinkRequest{}
- err = json.Unmarshal(bytes, &varNestedWirelessLinkRequest)
+ err = json.Unmarshal(data, &varNestedWirelessLinkRequest)
if err != nil {
return err
@@ -108,7 +108,7 @@ func (o *NestedWirelessLinkRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "ssid")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_object_change.go b/model_object_change.go
index 922bb7e1b1..2d7df50e80 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -20,19 +21,19 @@ var _ MappedNullable = &ObjectChange{}
// ObjectChange struct for ObjectChange
type ObjectChange struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Time time.Time `json:"time"`
- User NestedUser `json:"user"`
- UserName string `json:"user_name"`
- RequestId string `json:"request_id"`
- Action ObjectChangeAction `json:"action"`
- ChangedObjectType string `json:"changed_object_type"`
- ChangedObjectId int64 `json:"changed_object_id"`
- ChangedObject map[string]interface{} `json:"changed_object"`
- PrechangeData map[string]interface{} `json:"prechange_data"`
- PostchangeData map[string]interface{} `json:"postchange_data"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Time time.Time `json:"time"`
+ User NestedUser `json:"user"`
+ UserName string `json:"user_name"`
+ RequestId string `json:"request_id"`
+ Action ObjectChangeAction `json:"action"`
+ ChangedObjectType string `json:"changed_object_type"`
+ ChangedObjectId int64 `json:"changed_object_id"`
+ ChangedObject interface{} `json:"changed_object"`
+ PrechangeData interface{} `json:"prechange_data"`
+ PostchangeData interface{} `json:"postchange_data"`
AdditionalProperties map[string]interface{}
}
@@ -42,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 map[string]interface{}, prechangeData map[string]interface{}, postchangeData map[string]interface{}) *ObjectChange {
+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 {
this := ObjectChange{}
this.Id = id
this.Url = url
@@ -309,10 +310,10 @@ func (o *ObjectChange) SetChangedObjectId(v int64) {
}
// GetChangedObject returns the ChangedObject field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *ObjectChange) GetChangedObject() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *ObjectChange) GetChangedObject() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -322,23 +323,23 @@ func (o *ObjectChange) GetChangedObject() map[string]interface{} {
// GetChangedObjectOk returns a tuple with the ChangedObject 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 *ObjectChange) GetChangedObjectOk() (map[string]interface{}, bool) {
+func (o *ObjectChange) GetChangedObjectOk() (*interface{}, bool) {
if o == nil || IsNil(o.ChangedObject) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.ChangedObject, true
+ return &o.ChangedObject, true
}
// SetChangedObject sets field value
-func (o *ObjectChange) SetChangedObject(v map[string]interface{}) {
+func (o *ObjectChange) SetChangedObject(v interface{}) {
o.ChangedObject = v
}
// GetPrechangeData returns the PrechangeData field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *ObjectChange) GetPrechangeData() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *ObjectChange) GetPrechangeData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -348,23 +349,23 @@ func (o *ObjectChange) GetPrechangeData() map[string]interface{} {
// GetPrechangeDataOk returns a tuple with the PrechangeData 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 *ObjectChange) GetPrechangeDataOk() (map[string]interface{}, bool) {
+func (o *ObjectChange) GetPrechangeDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.PrechangeData) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.PrechangeData, true
+ return &o.PrechangeData, true
}
// SetPrechangeData sets field value
-func (o *ObjectChange) SetPrechangeData(v map[string]interface{}) {
+func (o *ObjectChange) SetPrechangeData(v interface{}) {
o.PrechangeData = v
}
// GetPostchangeData returns the PostchangeData field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *ObjectChange) GetPostchangeData() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *ObjectChange) GetPostchangeData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -374,15 +375,15 @@ func (o *ObjectChange) GetPostchangeData() map[string]interface{} {
// GetPostchangeDataOk returns a tuple with the PostchangeData 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 *ObjectChange) GetPostchangeDataOk() (map[string]interface{}, bool) {
+func (o *ObjectChange) GetPostchangeDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.PostchangeData) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.PostchangeData, true
+ return &o.PostchangeData, true
}
// SetPostchangeData sets field value
-func (o *ObjectChange) SetPostchangeData(v map[string]interface{}) {
+func (o *ObjectChange) SetPostchangeData(v interface{}) {
o.PostchangeData = v
}
@@ -423,10 +424,43 @@ func (o ObjectChange) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ObjectChange) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ObjectChange) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "time",
+ "user",
+ "user_name",
+ "request_id",
+ "action",
+ "changed_object_type",
+ "changed_object_id",
+ "changed_object",
+ "prechange_data",
+ "postchange_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)
+ }
+ }
+
varObjectChange := _ObjectChange{}
- err = json.Unmarshal(bytes, &varObjectChange)
+ err = json.Unmarshal(data, &varObjectChange)
if err != nil {
return err
@@ -436,7 +470,7 @@ func (o *ObjectChange) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_object_change_action.go b/model_object_change_action.go
index 5ab44b406b..b15eef2c0b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &ObjectChangeAction{}
// ObjectChangeAction struct for ObjectChangeAction
type ObjectChangeAction struct {
- // * `create` - Created * `update` - Updated * `delete` - Deleted
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *ObjectChangeActionValue `json:"value,omitempty"`
+ Label *ObjectChangeActionLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewObjectChangeActionWithDefaults() *ObjectChangeAction {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *ObjectChangeAction) GetValue() string {
+func (o *ObjectChangeAction) GetValue() ObjectChangeActionValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret ObjectChangeActionValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *ObjectChangeAction) GetValue() string {
// 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 *ObjectChangeAction) GetValueOk() (*string, bool) {
+func (o *ObjectChangeAction) GetValueOk() (*ObjectChangeActionValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *ObjectChangeAction) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *ObjectChangeAction) SetValue(v string) {
+// SetValue gets a reference to the given ObjectChangeActionValue and assigns it to the Value field.
+func (o *ObjectChangeAction) SetValue(v ObjectChangeActionValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *ObjectChangeAction) GetLabel() string {
+func (o *ObjectChangeAction) GetLabel() ObjectChangeActionLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret ObjectChangeActionLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *ObjectChangeAction) 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 *ObjectChangeAction) GetLabelOk() (*string, bool) {
+func (o *ObjectChangeAction) GetLabelOk() (*ObjectChangeActionLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *ObjectChangeAction) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *ObjectChangeAction) SetLabel(v string) {
+// SetLabel gets a reference to the given ObjectChangeActionLabel and assigns it to the Label field.
+func (o *ObjectChangeAction) SetLabel(v ObjectChangeActionLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o ObjectChangeAction) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ObjectChangeAction) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ObjectChangeAction) UnmarshalJSON(data []byte) (err error) {
varObjectChangeAction := _ObjectChangeAction{}
- err = json.Unmarshal(bytes, &varObjectChangeAction)
+ err = json.Unmarshal(data, &varObjectChangeAction)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *ObjectChangeAction) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_object_change_action_label.go b/model_object_change_action_label.go
new file mode 100644
index 0000000000..e3a1ba47be
--- /dev/null
+++ b/model_object_change_action_label.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ObjectChangeActionLabel the model 'ObjectChangeActionLabel'
+type ObjectChangeActionLabel string
+
+// List of ObjectChange_action_label
+const (
+ OBJECTCHANGEACTIONLABEL_CREATED ObjectChangeActionLabel = "Created"
+ OBJECTCHANGEACTIONLABEL_UPDATED ObjectChangeActionLabel = "Updated"
+ OBJECTCHANGEACTIONLABEL_DELETED ObjectChangeActionLabel = "Deleted"
+)
+
+// All allowed values of ObjectChangeActionLabel enum
+var AllowedObjectChangeActionLabelEnumValues = []ObjectChangeActionLabel{
+ "Created",
+ "Updated",
+ "Deleted",
+}
+
+func (v *ObjectChangeActionLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ObjectChangeActionLabel(value)
+ for _, existing := range AllowedObjectChangeActionLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ObjectChangeActionLabel", value)
+}
+
+// NewObjectChangeActionLabelFromValue returns a pointer to a valid ObjectChangeActionLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewObjectChangeActionLabelFromValue(v string) (*ObjectChangeActionLabel, error) {
+ ev := ObjectChangeActionLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ObjectChangeActionLabel: valid values are %v", v, AllowedObjectChangeActionLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ObjectChangeActionLabel) IsValid() bool {
+ for _, existing := range AllowedObjectChangeActionLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ObjectChange_action_label value
+func (v ObjectChangeActionLabel) Ptr() *ObjectChangeActionLabel {
+ return &v
+}
+
+type NullableObjectChangeActionLabel struct {
+ value *ObjectChangeActionLabel
+ isSet bool
+}
+
+func (v NullableObjectChangeActionLabel) Get() *ObjectChangeActionLabel {
+ return v.value
+}
+
+func (v *NullableObjectChangeActionLabel) Set(val *ObjectChangeActionLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableObjectChangeActionLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableObjectChangeActionLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableObjectChangeActionLabel(val *ObjectChangeActionLabel) *NullableObjectChangeActionLabel {
+ return &NullableObjectChangeActionLabel{value: val, isSet: true}
+}
+
+func (v NullableObjectChangeActionLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableObjectChangeActionLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_object_change_action_value.go b/model_object_change_action_value.go
new file mode 100644
index 0000000000..487730e258
--- /dev/null
+++ b/model_object_change_action_value.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ObjectChangeActionValue * `create` - Created * `update` - Updated * `delete` - Deleted
+type ObjectChangeActionValue string
+
+// List of ObjectChange_action_value
+const (
+ OBJECTCHANGEACTIONVALUE_CREATE ObjectChangeActionValue = "create"
+ OBJECTCHANGEACTIONVALUE_UPDATE ObjectChangeActionValue = "update"
+ OBJECTCHANGEACTIONVALUE_DELETE ObjectChangeActionValue = "delete"
+)
+
+// All allowed values of ObjectChangeActionValue enum
+var AllowedObjectChangeActionValueEnumValues = []ObjectChangeActionValue{
+ "create",
+ "update",
+ "delete",
+}
+
+func (v *ObjectChangeActionValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ObjectChangeActionValue(value)
+ for _, existing := range AllowedObjectChangeActionValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ObjectChangeActionValue", value)
+}
+
+// NewObjectChangeActionValueFromValue returns a pointer to a valid ObjectChangeActionValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewObjectChangeActionValueFromValue(v string) (*ObjectChangeActionValue, error) {
+ ev := ObjectChangeActionValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ObjectChangeActionValue: valid values are %v", v, AllowedObjectChangeActionValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ObjectChangeActionValue) IsValid() bool {
+ for _, existing := range AllowedObjectChangeActionValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ObjectChange_action_value value
+func (v ObjectChangeActionValue) Ptr() *ObjectChangeActionValue {
+ return &v
+}
+
+type NullableObjectChangeActionValue struct {
+ value *ObjectChangeActionValue
+ isSet bool
+}
+
+func (v NullableObjectChangeActionValue) Get() *ObjectChangeActionValue {
+ return v.value
+}
+
+func (v *NullableObjectChangeActionValue) Set(val *ObjectChangeActionValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableObjectChangeActionValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableObjectChangeActionValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableObjectChangeActionValue(val *ObjectChangeActionValue) *NullableObjectChangeActionValue {
+ return &NullableObjectChangeActionValue{value: val, isSet: true}
+}
+
+func (v NullableObjectChangeActionValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableObjectChangeActionValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_object_permission.go b/model_object_permission.go
index e1c4881d0d..fa4a78ef1d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ObjectPermission type satisfies the MappedNullable interface at compile time
@@ -31,7 +32,7 @@ type ObjectPermission struct {
// The list of actions granted by this permission
Actions []string `json:"actions"`
// Queryset filter matching the applicable objects of the selected type(s)
- Constraints map[string]interface{} `json:"constraints,omitempty"`
+ Constraints interface{} `json:"constraints,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -333,9 +334,9 @@ func (o *ObjectPermission) SetActions(v []string) {
}
// GetConstraints returns the Constraints field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ObjectPermission) GetConstraints() map[string]interface{} {
+func (o *ObjectPermission) GetConstraints() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.Constraints
@@ -344,11 +345,11 @@ func (o *ObjectPermission) GetConstraints() map[string]interface{} {
// 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 *ObjectPermission) GetConstraintsOk() (map[string]interface{}, bool) {
+func (o *ObjectPermission) GetConstraintsOk() (*interface{}, bool) {
if o == nil || IsNil(o.Constraints) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Constraints, true
+ return &o.Constraints, true
}
// HasConstraints returns a boolean if a field has been set.
@@ -360,8 +361,8 @@ func (o *ObjectPermission) HasConstraints() bool {
return false
}
-// SetConstraints gets a reference to the given map[string]interface{} and assigns it to the Constraints field.
-func (o *ObjectPermission) SetConstraints(v map[string]interface{}) {
+// SetConstraints gets a reference to the given interface{} and assigns it to the Constraints field.
+func (o *ObjectPermission) SetConstraints(v interface{}) {
o.Constraints = v
}
@@ -404,10 +405,36 @@ func (o ObjectPermission) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ObjectPermission) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ObjectPermission) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "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)
+ }
+ }
+
varObjectPermission := _ObjectPermission{}
- err = json.Unmarshal(bytes, &varObjectPermission)
+ err = json.Unmarshal(data, &varObjectPermission)
if err != nil {
return err
@@ -417,7 +444,7 @@ func (o *ObjectPermission) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_object_permission_request.go b/model_object_permission_request.go
index 23152f854c..9673d8b2a0 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ObjectPermissionRequest type satisfies the MappedNullable interface at compile time
@@ -28,7 +29,7 @@ type ObjectPermissionRequest struct {
// The list of actions granted by this permission
Actions []string `json:"actions"`
// Queryset filter matching the applicable objects of the selected type(s)
- Constraints map[string]interface{} `json:"constraints,omitempty"`
+ Constraints interface{} `json:"constraints,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -255,9 +256,9 @@ func (o *ObjectPermissionRequest) SetActions(v []string) {
}
// GetConstraints returns the Constraints field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ObjectPermissionRequest) GetConstraints() map[string]interface{} {
+func (o *ObjectPermissionRequest) GetConstraints() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.Constraints
@@ -266,11 +267,11 @@ func (o *ObjectPermissionRequest) GetConstraints() map[string]interface{} {
// 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() (map[string]interface{}, bool) {
+func (o *ObjectPermissionRequest) GetConstraintsOk() (*interface{}, bool) {
if o == nil || IsNil(o.Constraints) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Constraints, true
+ return &o.Constraints, true
}
// HasConstraints returns a boolean if a field has been set.
@@ -282,8 +283,8 @@ func (o *ObjectPermissionRequest) HasConstraints() bool {
return false
}
-// SetConstraints gets a reference to the given map[string]interface{} and assigns it to the Constraints field.
-func (o *ObjectPermissionRequest) SetConstraints(v map[string]interface{}) {
+// SetConstraints gets a reference to the given interface{} and assigns it to the Constraints field.
+func (o *ObjectPermissionRequest) SetConstraints(v interface{}) {
o.Constraints = v
}
@@ -323,10 +324,33 @@ func (o ObjectPermissionRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ObjectPermissionRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ObjectPermissionRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varObjectPermissionRequest := _ObjectPermissionRequest{}
- err = json.Unmarshal(bytes, &varObjectPermissionRequest)
+ err = json.Unmarshal(data, &varObjectPermissionRequest)
if err != nil {
return err
@@ -336,7 +360,7 @@ func (o *ObjectPermissionRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "description")
delete(additionalProperties, "enabled")
diff --git a/model_paginated_aggregate_list.go b/model_paginated_aggregate_list.go
index 233a7ec51a..c5c9ac242b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedAggregateList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedAggregateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedAggregateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedAggregateList := _PaginatedAggregateList{}
- err = json.Unmarshal(bytes, &varPaginatedAggregateList)
+ err = json.Unmarshal(data, &varPaginatedAggregateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedAggregateList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_asn_list.go b/model_paginated_asn_list.go
index 0d894e2083..be79d47980 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedASNList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedASNList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedASNList) UnmarshalJSON(data []byte) (err error) {
varPaginatedASNList := _PaginatedASNList{}
- err = json.Unmarshal(bytes, &varPaginatedASNList)
+ err = json.Unmarshal(data, &varPaginatedASNList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedASNList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_asn_range_list.go b/model_paginated_asn_range_list.go
index 077ab5d4d3..a014a721a4 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedASNRangeList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedASNRangeList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedASNRangeList) UnmarshalJSON(data []byte) (err error) {
varPaginatedASNRangeList := _PaginatedASNRangeList{}
- err = json.Unmarshal(bytes, &varPaginatedASNRangeList)
+ err = json.Unmarshal(data, &varPaginatedASNRangeList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedASNRangeList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_bookmark_list.go b/model_paginated_bookmark_list.go
index 9933eb6aed..51045d16ed 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedBookmarkList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedBookmarkList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedBookmarkList) UnmarshalJSON(data []byte) (err error) {
varPaginatedBookmarkList := _PaginatedBookmarkList{}
- err = json.Unmarshal(bytes, &varPaginatedBookmarkList)
+ err = json.Unmarshal(data, &varPaginatedBookmarkList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedBookmarkList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_cable_list.go b/model_paginated_cable_list.go
index 68558249d4..2ac1fee52e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedCableList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedCableList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedCableList) UnmarshalJSON(data []byte) (err error) {
varPaginatedCableList := _PaginatedCableList{}
- err = json.Unmarshal(bytes, &varPaginatedCableList)
+ err = json.Unmarshal(data, &varPaginatedCableList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedCableList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_cable_termination_list.go b/model_paginated_cable_termination_list.go
index c0143a2c03..67e6789df2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedCableTerminationList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedCableTerminationList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedCableTerminationList) UnmarshalJSON(data []byte) (err error) {
varPaginatedCableTerminationList := _PaginatedCableTerminationList{}
- err = json.Unmarshal(bytes, &varPaginatedCableTerminationList)
+ err = json.Unmarshal(data, &varPaginatedCableTerminationList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedCableTerminationList) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_circuit_list.go b/model_paginated_circuit_list.go
index e1ca6e3053..a375e2b958 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedCircuitList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedCircuitList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedCircuitList) UnmarshalJSON(data []byte) (err error) {
varPaginatedCircuitList := _PaginatedCircuitList{}
- err = json.Unmarshal(bytes, &varPaginatedCircuitList)
+ err = json.Unmarshal(data, &varPaginatedCircuitList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedCircuitList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_circuit_termination_list.go b/model_paginated_circuit_termination_list.go
index c7a0b97b85..6f5d4ff2d6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedCircuitTerminationList) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PaginatedCircuitTerminationList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedCircuitTerminationList) UnmarshalJSON(data []byte) (err error) {
varPaginatedCircuitTerminationList := _PaginatedCircuitTerminationList{}
- err = json.Unmarshal(bytes, &varPaginatedCircuitTerminationList)
+ err = json.Unmarshal(data, &varPaginatedCircuitTerminationList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedCircuitTerminationList) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_circuit_type_list.go b/model_paginated_circuit_type_list.go
index 7eab639011..1e6169e9c4 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedCircuitTypeList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedCircuitTypeList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedCircuitTypeList) UnmarshalJSON(data []byte) (err error) {
varPaginatedCircuitTypeList := _PaginatedCircuitTypeList{}
- err = json.Unmarshal(bytes, &varPaginatedCircuitTypeList)
+ err = json.Unmarshal(data, &varPaginatedCircuitTypeList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedCircuitTypeList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_cluster_group_list.go b/model_paginated_cluster_group_list.go
index 79ac84036a..b65e8236f7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedClusterGroupList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedClusterGroupList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedClusterGroupList) UnmarshalJSON(data []byte) (err error) {
varPaginatedClusterGroupList := _PaginatedClusterGroupList{}
- err = json.Unmarshal(bytes, &varPaginatedClusterGroupList)
+ err = json.Unmarshal(data, &varPaginatedClusterGroupList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedClusterGroupList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_cluster_list.go b/model_paginated_cluster_list.go
index f4b6f52292..9744fae131 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedClusterList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedClusterList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedClusterList) UnmarshalJSON(data []byte) (err error) {
varPaginatedClusterList := _PaginatedClusterList{}
- err = json.Unmarshal(bytes, &varPaginatedClusterList)
+ err = json.Unmarshal(data, &varPaginatedClusterList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedClusterList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_cluster_type_list.go b/model_paginated_cluster_type_list.go
index d522c57015..9489df4e5d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedClusterTypeList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedClusterTypeList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedClusterTypeList) UnmarshalJSON(data []byte) (err error) {
varPaginatedClusterTypeList := _PaginatedClusterTypeList{}
- err = json.Unmarshal(bytes, &varPaginatedClusterTypeList)
+ err = json.Unmarshal(data, &varPaginatedClusterTypeList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedClusterTypeList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_config_context_list.go b/model_paginated_config_context_list.go
index 8a439ac035..11888539b7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedConfigContextList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedConfigContextList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedConfigContextList) UnmarshalJSON(data []byte) (err error) {
varPaginatedConfigContextList := _PaginatedConfigContextList{}
- err = json.Unmarshal(bytes, &varPaginatedConfigContextList)
+ err = json.Unmarshal(data, &varPaginatedConfigContextList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedConfigContextList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_config_template_list.go b/model_paginated_config_template_list.go
index d4b8dc47a6..af231b9c7a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedConfigTemplateList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedConfigTemplateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedConfigTemplateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedConfigTemplateList := _PaginatedConfigTemplateList{}
- err = json.Unmarshal(bytes, &varPaginatedConfigTemplateList)
+ err = json.Unmarshal(data, &varPaginatedConfigTemplateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedConfigTemplateList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_console_port_list.go b/model_paginated_console_port_list.go
index 55e61c51ab..e08c289f8b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedConsolePortList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedConsolePortList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedConsolePortList) UnmarshalJSON(data []byte) (err error) {
varPaginatedConsolePortList := _PaginatedConsolePortList{}
- err = json.Unmarshal(bytes, &varPaginatedConsolePortList)
+ err = json.Unmarshal(data, &varPaginatedConsolePortList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedConsolePortList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_console_port_template_list.go b/model_paginated_console_port_template_list.go
index 1e5a70ae86..c8654c7869 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedConsolePortTemplateList) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *PaginatedConsolePortTemplateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedConsolePortTemplateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedConsolePortTemplateList := _PaginatedConsolePortTemplateList{}
- err = json.Unmarshal(bytes, &varPaginatedConsolePortTemplateList)
+ err = json.Unmarshal(data, &varPaginatedConsolePortTemplateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedConsolePortTemplateList) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_console_server_port_list.go b/model_paginated_console_server_port_list.go
index b7451022ba..1aae624394 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedConsoleServerPortList) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PaginatedConsoleServerPortList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedConsoleServerPortList) UnmarshalJSON(data []byte) (err error) {
varPaginatedConsoleServerPortList := _PaginatedConsoleServerPortList{}
- err = json.Unmarshal(bytes, &varPaginatedConsoleServerPortList)
+ err = json.Unmarshal(data, &varPaginatedConsoleServerPortList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedConsoleServerPortList) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_console_server_port_template_list.go b/model_paginated_console_server_port_template_list.go
index 993427d5f1..1ba70cb56f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedConsoleServerPortTemplateList) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PaginatedConsoleServerPortTemplateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedConsoleServerPortTemplateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedConsoleServerPortTemplateList := _PaginatedConsoleServerPortTemplateList{}
- err = json.Unmarshal(bytes, &varPaginatedConsoleServerPortTemplateList)
+ err = json.Unmarshal(data, &varPaginatedConsoleServerPortTemplateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedConsoleServerPortTemplateList) UnmarshalJSON(bytes []byte) (er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_contact_assignment_list.go b/model_paginated_contact_assignment_list.go
index fa696e04d8..14d65710f2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedContactAssignmentList) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PaginatedContactAssignmentList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedContactAssignmentList) UnmarshalJSON(data []byte) (err error) {
varPaginatedContactAssignmentList := _PaginatedContactAssignmentList{}
- err = json.Unmarshal(bytes, &varPaginatedContactAssignmentList)
+ err = json.Unmarshal(data, &varPaginatedContactAssignmentList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedContactAssignmentList) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_contact_group_list.go b/model_paginated_contact_group_list.go
index 6967e5b150..5189890ff5 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedContactGroupList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedContactGroupList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedContactGroupList) UnmarshalJSON(data []byte) (err error) {
varPaginatedContactGroupList := _PaginatedContactGroupList{}
- err = json.Unmarshal(bytes, &varPaginatedContactGroupList)
+ err = json.Unmarshal(data, &varPaginatedContactGroupList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedContactGroupList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_contact_list.go b/model_paginated_contact_list.go
index 1958b3c5ad..794d0ee1ee 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedContactList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedContactList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedContactList) UnmarshalJSON(data []byte) (err error) {
varPaginatedContactList := _PaginatedContactList{}
- err = json.Unmarshal(bytes, &varPaginatedContactList)
+ err = json.Unmarshal(data, &varPaginatedContactList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedContactList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_contact_role_list.go b/model_paginated_contact_role_list.go
index 9f4f6c41f7..8d995f2596 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedContactRoleList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedContactRoleList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedContactRoleList) UnmarshalJSON(data []byte) (err error) {
varPaginatedContactRoleList := _PaginatedContactRoleList{}
- err = json.Unmarshal(bytes, &varPaginatedContactRoleList)
+ err = json.Unmarshal(data, &varPaginatedContactRoleList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedContactRoleList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_content_type_list.go b/model_paginated_content_type_list.go
index 21c1b175ec..f6462a6dbf 100644
--- a/model_paginated_content_type_list.go
+++ b/model_paginated_content_type_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedContentTypeList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedContentTypeList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedContentTypeList) UnmarshalJSON(data []byte) (err error) {
varPaginatedContentTypeList := _PaginatedContentTypeList{}
- err = json.Unmarshal(bytes, &varPaginatedContentTypeList)
+ err = json.Unmarshal(data, &varPaginatedContentTypeList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedContentTypeList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_custom_field_choice_set_list.go b/model_paginated_custom_field_choice_set_list.go
index c20012d406..4eae266720 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedCustomFieldChoiceSetList) ToMap() (map[string]interface{}, erro
return toSerialize, nil
}
-func (o *PaginatedCustomFieldChoiceSetList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedCustomFieldChoiceSetList) UnmarshalJSON(data []byte) (err error) {
varPaginatedCustomFieldChoiceSetList := _PaginatedCustomFieldChoiceSetList{}
- err = json.Unmarshal(bytes, &varPaginatedCustomFieldChoiceSetList)
+ err = json.Unmarshal(data, &varPaginatedCustomFieldChoiceSetList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedCustomFieldChoiceSetList) UnmarshalJSON(bytes []byte) (err err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_custom_field_list.go b/model_paginated_custom_field_list.go
index fd49e17313..da2d17e0ac 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedCustomFieldList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedCustomFieldList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedCustomFieldList) UnmarshalJSON(data []byte) (err error) {
varPaginatedCustomFieldList := _PaginatedCustomFieldList{}
- err = json.Unmarshal(bytes, &varPaginatedCustomFieldList)
+ err = json.Unmarshal(data, &varPaginatedCustomFieldList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedCustomFieldList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_custom_link_list.go b/model_paginated_custom_link_list.go
index 3f0b132aa8..4daf43a4cd 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedCustomLinkList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedCustomLinkList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedCustomLinkList) UnmarshalJSON(data []byte) (err error) {
varPaginatedCustomLinkList := _PaginatedCustomLinkList{}
- err = json.Unmarshal(bytes, &varPaginatedCustomLinkList)
+ err = json.Unmarshal(data, &varPaginatedCustomLinkList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedCustomLinkList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_data_file_list.go b/model_paginated_data_file_list.go
index c4f925e82e..1c9a8f2049 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedDataFileList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedDataFileList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedDataFileList) UnmarshalJSON(data []byte) (err error) {
varPaginatedDataFileList := _PaginatedDataFileList{}
- err = json.Unmarshal(bytes, &varPaginatedDataFileList)
+ err = json.Unmarshal(data, &varPaginatedDataFileList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedDataFileList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_data_source_list.go b/model_paginated_data_source_list.go
index c5375adef1..6b0220fa35 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedDataSourceList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedDataSourceList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedDataSourceList) UnmarshalJSON(data []byte) (err error) {
varPaginatedDataSourceList := _PaginatedDataSourceList{}
- err = json.Unmarshal(bytes, &varPaginatedDataSourceList)
+ err = json.Unmarshal(data, &varPaginatedDataSourceList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedDataSourceList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_device_bay_list.go b/model_paginated_device_bay_list.go
index 24dee4f55c..9cc52c3ed7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedDeviceBayList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedDeviceBayList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedDeviceBayList) UnmarshalJSON(data []byte) (err error) {
varPaginatedDeviceBayList := _PaginatedDeviceBayList{}
- err = json.Unmarshal(bytes, &varPaginatedDeviceBayList)
+ err = json.Unmarshal(data, &varPaginatedDeviceBayList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedDeviceBayList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_device_bay_template_list.go b/model_paginated_device_bay_template_list.go
index 4884198807..074a15a0bc 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedDeviceBayTemplateList) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PaginatedDeviceBayTemplateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedDeviceBayTemplateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedDeviceBayTemplateList := _PaginatedDeviceBayTemplateList{}
- err = json.Unmarshal(bytes, &varPaginatedDeviceBayTemplateList)
+ err = json.Unmarshal(data, &varPaginatedDeviceBayTemplateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedDeviceBayTemplateList) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_device_role_list.go b/model_paginated_device_role_list.go
index dd263343bb..bc6277ec5f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedDeviceRoleList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedDeviceRoleList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedDeviceRoleList) UnmarshalJSON(data []byte) (err error) {
varPaginatedDeviceRoleList := _PaginatedDeviceRoleList{}
- err = json.Unmarshal(bytes, &varPaginatedDeviceRoleList)
+ err = json.Unmarshal(data, &varPaginatedDeviceRoleList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedDeviceRoleList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_device_type_list.go b/model_paginated_device_type_list.go
index fed6d3f2af..b93f25753a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedDeviceTypeList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedDeviceTypeList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedDeviceTypeList) UnmarshalJSON(data []byte) (err error) {
varPaginatedDeviceTypeList := _PaginatedDeviceTypeList{}
- err = json.Unmarshal(bytes, &varPaginatedDeviceTypeList)
+ err = json.Unmarshal(data, &varPaginatedDeviceTypeList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedDeviceTypeList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_device_with_config_context_list.go b/model_paginated_device_with_config_context_list.go
index d128fad210..ee29907e76 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedDeviceWithConfigContextList) ToMap() (map[string]interface{}, e
return toSerialize, nil
}
-func (o *PaginatedDeviceWithConfigContextList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedDeviceWithConfigContextList) UnmarshalJSON(data []byte) (err error) {
varPaginatedDeviceWithConfigContextList := _PaginatedDeviceWithConfigContextList{}
- err = json.Unmarshal(bytes, &varPaginatedDeviceWithConfigContextList)
+ err = json.Unmarshal(data, &varPaginatedDeviceWithConfigContextList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedDeviceWithConfigContextList) UnmarshalJSON(bytes []byte) (err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_event_rule_list.go b/model_paginated_event_rule_list.go
new file mode 100644
index 0000000000..b6863ef27c
--- /dev/null
+++ b/model_paginated_event_rule_list.go
@@ -0,0 +1,286 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PaginatedEventRuleList type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PaginatedEventRuleList{}
+
+// PaginatedEventRuleList struct for PaginatedEventRuleList
+type PaginatedEventRuleList struct {
+ Count *int32 `json:"count,omitempty"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []EventRule `json:"results,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedEventRuleList PaginatedEventRuleList
+
+// NewPaginatedEventRuleList instantiates a new PaginatedEventRuleList object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := PaginatedEventRuleList{}
+ return &this
+}
+
+// NewPaginatedEventRuleListWithDefaults instantiates a new PaginatedEventRuleList object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPaginatedEventRuleListWithDefaults() *PaginatedEventRuleList {
+ this := PaginatedEventRuleList{}
+ return &this
+}
+
+// GetCount returns the Count field value if set, zero value otherwise.
+func (o *PaginatedEventRuleList) 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 *PaginatedEventRuleList) 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 *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.
+func (o *PaginatedEventRuleList) SetCount(v int32) {
+ o.Count = &v
+}
+
+// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PaginatedEventRuleList) GetNext() string {
+ if o == nil || IsNil(o.Next.Get()) {
+ 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 *PaginatedEventRuleList) 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 *PaginatedEventRuleList) 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 *PaginatedEventRuleList) SetNext(v string) {
+ o.Next.Set(&v)
+}
+
+// SetNextNil sets the value for Next to be an explicit nil
+func (o *PaginatedEventRuleList) SetNextNil() {
+ o.Next.Set(nil)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedEventRuleList) 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 *PaginatedEventRuleList) 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 *PaginatedEventRuleList) 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 *PaginatedEventRuleList) 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 *PaginatedEventRuleList) SetPrevious(v string) {
+ o.Previous.Set(&v)
+}
+
+// SetPreviousNil sets the value for Previous to be an explicit nil
+func (o *PaginatedEventRuleList) SetPreviousNil() {
+ o.Previous.Set(nil)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedEventRuleList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value if set, zero value otherwise.
+func (o *PaginatedEventRuleList) GetResults() []EventRule {
+ if o == nil || IsNil(o.Results) {
+ var ret []EventRule
+ 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 *PaginatedEventRuleList) GetResultsOk() ([]EventRule, 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 *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.
+func (o *PaginatedEventRuleList) SetResults(v []EventRule) {
+ o.Results = v
+}
+
+func (o PaginatedEventRuleList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedEventRuleList) 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 *PaginatedEventRuleList) UnmarshalJSON(data []byte) (err error) {
+ varPaginatedEventRuleList := _PaginatedEventRuleList{}
+
+ err = json.Unmarshal(data, &varPaginatedEventRuleList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedEventRuleList(varPaginatedEventRuleList)
+
+ 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 NullablePaginatedEventRuleList struct {
+ value *PaginatedEventRuleList
+ isSet bool
+}
+
+func (v NullablePaginatedEventRuleList) Get() *PaginatedEventRuleList {
+ return v.value
+}
+
+func (v *NullablePaginatedEventRuleList) Set(val *PaginatedEventRuleList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedEventRuleList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedEventRuleList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedEventRuleList(val *PaginatedEventRuleList) *NullablePaginatedEventRuleList {
+ return &NullablePaginatedEventRuleList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedEventRuleList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaginatedEventRuleList) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_paginated_export_template_list.go b/model_paginated_export_template_list.go
index 78a8ef8b22..360596bedf 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedExportTemplateList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedExportTemplateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedExportTemplateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedExportTemplateList := _PaginatedExportTemplateList{}
- err = json.Unmarshal(bytes, &varPaginatedExportTemplateList)
+ err = json.Unmarshal(data, &varPaginatedExportTemplateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedExportTemplateList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_fhrp_group_assignment_list.go b/model_paginated_fhrp_group_assignment_list.go
index 117f1ba1fa..f7a0633efd 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedFHRPGroupAssignmentList) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *PaginatedFHRPGroupAssignmentList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedFHRPGroupAssignmentList) UnmarshalJSON(data []byte) (err error) {
varPaginatedFHRPGroupAssignmentList := _PaginatedFHRPGroupAssignmentList{}
- err = json.Unmarshal(bytes, &varPaginatedFHRPGroupAssignmentList)
+ err = json.Unmarshal(data, &varPaginatedFHRPGroupAssignmentList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedFHRPGroupAssignmentList) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_fhrp_group_list.go b/model_paginated_fhrp_group_list.go
index d338f70609..52788ec26b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedFHRPGroupList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedFHRPGroupList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedFHRPGroupList) UnmarshalJSON(data []byte) (err error) {
varPaginatedFHRPGroupList := _PaginatedFHRPGroupList{}
- err = json.Unmarshal(bytes, &varPaginatedFHRPGroupList)
+ err = json.Unmarshal(data, &varPaginatedFHRPGroupList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedFHRPGroupList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_front_port_list.go b/model_paginated_front_port_list.go
index 068da0228f..158d7a25ef 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedFrontPortList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedFrontPortList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedFrontPortList) UnmarshalJSON(data []byte) (err error) {
varPaginatedFrontPortList := _PaginatedFrontPortList{}
- err = json.Unmarshal(bytes, &varPaginatedFrontPortList)
+ err = json.Unmarshal(data, &varPaginatedFrontPortList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedFrontPortList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_front_port_template_list.go b/model_paginated_front_port_template_list.go
index 109d25ffce..09bc521ae5 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedFrontPortTemplateList) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PaginatedFrontPortTemplateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedFrontPortTemplateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedFrontPortTemplateList := _PaginatedFrontPortTemplateList{}
- err = json.Unmarshal(bytes, &varPaginatedFrontPortTemplateList)
+ err = json.Unmarshal(data, &varPaginatedFrontPortTemplateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedFrontPortTemplateList) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_group_list.go b/model_paginated_group_list.go
index 94382e4511..6533a563be 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedGroupList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedGroupList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedGroupList) UnmarshalJSON(data []byte) (err error) {
varPaginatedGroupList := _PaginatedGroupList{}
- err = json.Unmarshal(bytes, &varPaginatedGroupList)
+ err = json.Unmarshal(data, &varPaginatedGroupList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedGroupList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_ike_policy_list.go b/model_paginated_ike_policy_list.go
new file mode 100644
index 0000000000..b3eea52419
--- /dev/null
+++ b/model_paginated_ike_policy_list.go
@@ -0,0 +1,286 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PaginatedIKEPolicyList type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PaginatedIKEPolicyList{}
+
+// PaginatedIKEPolicyList struct for PaginatedIKEPolicyList
+type PaginatedIKEPolicyList struct {
+ Count *int32 `json:"count,omitempty"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []IKEPolicy `json:"results,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedIKEPolicyList PaginatedIKEPolicyList
+
+// NewPaginatedIKEPolicyList instantiates a new PaginatedIKEPolicyList object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := PaginatedIKEPolicyList{}
+ return &this
+}
+
+// NewPaginatedIKEPolicyListWithDefaults instantiates a new PaginatedIKEPolicyList object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPaginatedIKEPolicyListWithDefaults() *PaginatedIKEPolicyList {
+ this := PaginatedIKEPolicyList{}
+ return &this
+}
+
+// GetCount returns the Count field value if set, zero value otherwise.
+func (o *PaginatedIKEPolicyList) 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 *PaginatedIKEPolicyList) 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 *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.
+func (o *PaginatedIKEPolicyList) SetCount(v int32) {
+ o.Count = &v
+}
+
+// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PaginatedIKEPolicyList) GetNext() string {
+ if o == nil || IsNil(o.Next.Get()) {
+ 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 *PaginatedIKEPolicyList) 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 *PaginatedIKEPolicyList) 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 *PaginatedIKEPolicyList) SetNext(v string) {
+ o.Next.Set(&v)
+}
+
+// SetNextNil sets the value for Next to be an explicit nil
+func (o *PaginatedIKEPolicyList) SetNextNil() {
+ o.Next.Set(nil)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedIKEPolicyList) 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 *PaginatedIKEPolicyList) 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 *PaginatedIKEPolicyList) 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 *PaginatedIKEPolicyList) 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 *PaginatedIKEPolicyList) SetPrevious(v string) {
+ o.Previous.Set(&v)
+}
+
+// SetPreviousNil sets the value for Previous to be an explicit nil
+func (o *PaginatedIKEPolicyList) SetPreviousNil() {
+ o.Previous.Set(nil)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedIKEPolicyList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value if set, zero value otherwise.
+func (o *PaginatedIKEPolicyList) GetResults() []IKEPolicy {
+ if o == nil || IsNil(o.Results) {
+ var ret []IKEPolicy
+ 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 *PaginatedIKEPolicyList) GetResultsOk() ([]IKEPolicy, 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 *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.
+func (o *PaginatedIKEPolicyList) SetResults(v []IKEPolicy) {
+ o.Results = v
+}
+
+func (o PaginatedIKEPolicyList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedIKEPolicyList) 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 *PaginatedIKEPolicyList) UnmarshalJSON(data []byte) (err error) {
+ varPaginatedIKEPolicyList := _PaginatedIKEPolicyList{}
+
+ err = json.Unmarshal(data, &varPaginatedIKEPolicyList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedIKEPolicyList(varPaginatedIKEPolicyList)
+
+ 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 NullablePaginatedIKEPolicyList struct {
+ value *PaginatedIKEPolicyList
+ isSet bool
+}
+
+func (v NullablePaginatedIKEPolicyList) Get() *PaginatedIKEPolicyList {
+ return v.value
+}
+
+func (v *NullablePaginatedIKEPolicyList) Set(val *PaginatedIKEPolicyList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedIKEPolicyList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedIKEPolicyList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedIKEPolicyList(val *PaginatedIKEPolicyList) *NullablePaginatedIKEPolicyList {
+ return &NullablePaginatedIKEPolicyList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedIKEPolicyList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaginatedIKEPolicyList) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_paginated_ike_proposal_list.go b/model_paginated_ike_proposal_list.go
new file mode 100644
index 0000000000..5213af38b3
--- /dev/null
+++ b/model_paginated_ike_proposal_list.go
@@ -0,0 +1,286 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PaginatedIKEProposalList type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PaginatedIKEProposalList{}
+
+// PaginatedIKEProposalList struct for PaginatedIKEProposalList
+type PaginatedIKEProposalList struct {
+ Count *int32 `json:"count,omitempty"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []IKEProposal `json:"results,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedIKEProposalList PaginatedIKEProposalList
+
+// NewPaginatedIKEProposalList instantiates a new PaginatedIKEProposalList object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := PaginatedIKEProposalList{}
+ return &this
+}
+
+// NewPaginatedIKEProposalListWithDefaults instantiates a new PaginatedIKEProposalList object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPaginatedIKEProposalListWithDefaults() *PaginatedIKEProposalList {
+ this := PaginatedIKEProposalList{}
+ return &this
+}
+
+// GetCount returns the Count field value if set, zero value otherwise.
+func (o *PaginatedIKEProposalList) 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 *PaginatedIKEProposalList) 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 *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.
+func (o *PaginatedIKEProposalList) SetCount(v int32) {
+ o.Count = &v
+}
+
+// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PaginatedIKEProposalList) GetNext() string {
+ if o == nil || IsNil(o.Next.Get()) {
+ 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 *PaginatedIKEProposalList) 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 *PaginatedIKEProposalList) 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 *PaginatedIKEProposalList) SetNext(v string) {
+ o.Next.Set(&v)
+}
+
+// SetNextNil sets the value for Next to be an explicit nil
+func (o *PaginatedIKEProposalList) SetNextNil() {
+ o.Next.Set(nil)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedIKEProposalList) 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 *PaginatedIKEProposalList) 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 *PaginatedIKEProposalList) 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 *PaginatedIKEProposalList) 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 *PaginatedIKEProposalList) SetPrevious(v string) {
+ o.Previous.Set(&v)
+}
+
+// SetPreviousNil sets the value for Previous to be an explicit nil
+func (o *PaginatedIKEProposalList) SetPreviousNil() {
+ o.Previous.Set(nil)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedIKEProposalList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value if set, zero value otherwise.
+func (o *PaginatedIKEProposalList) GetResults() []IKEProposal {
+ if o == nil || IsNil(o.Results) {
+ var ret []IKEProposal
+ 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 *PaginatedIKEProposalList) GetResultsOk() ([]IKEProposal, 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 *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.
+func (o *PaginatedIKEProposalList) SetResults(v []IKEProposal) {
+ o.Results = v
+}
+
+func (o PaginatedIKEProposalList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedIKEProposalList) 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 *PaginatedIKEProposalList) UnmarshalJSON(data []byte) (err error) {
+ varPaginatedIKEProposalList := _PaginatedIKEProposalList{}
+
+ err = json.Unmarshal(data, &varPaginatedIKEProposalList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedIKEProposalList(varPaginatedIKEProposalList)
+
+ 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 NullablePaginatedIKEProposalList struct {
+ value *PaginatedIKEProposalList
+ isSet bool
+}
+
+func (v NullablePaginatedIKEProposalList) Get() *PaginatedIKEProposalList {
+ return v.value
+}
+
+func (v *NullablePaginatedIKEProposalList) Set(val *PaginatedIKEProposalList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedIKEProposalList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedIKEProposalList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedIKEProposalList(val *PaginatedIKEProposalList) *NullablePaginatedIKEProposalList {
+ return &NullablePaginatedIKEProposalList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedIKEProposalList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaginatedIKEProposalList) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_paginated_image_attachment_list.go b/model_paginated_image_attachment_list.go
index b6366aa891..7f80d02c01 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedImageAttachmentList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedImageAttachmentList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedImageAttachmentList) UnmarshalJSON(data []byte) (err error) {
varPaginatedImageAttachmentList := _PaginatedImageAttachmentList{}
- err = json.Unmarshal(bytes, &varPaginatedImageAttachmentList)
+ err = json.Unmarshal(data, &varPaginatedImageAttachmentList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedImageAttachmentList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_interface_list.go b/model_paginated_interface_list.go
index 1151714d72..8504ec4a38 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedInterfaceList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedInterfaceList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedInterfaceList) UnmarshalJSON(data []byte) (err error) {
varPaginatedInterfaceList := _PaginatedInterfaceList{}
- err = json.Unmarshal(bytes, &varPaginatedInterfaceList)
+ err = json.Unmarshal(data, &varPaginatedInterfaceList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedInterfaceList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_interface_template_list.go b/model_paginated_interface_template_list.go
index 61f5e4f815..fe9e783dac 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedInterfaceTemplateList) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PaginatedInterfaceTemplateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedInterfaceTemplateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedInterfaceTemplateList := _PaginatedInterfaceTemplateList{}
- err = json.Unmarshal(bytes, &varPaginatedInterfaceTemplateList)
+ err = json.Unmarshal(data, &varPaginatedInterfaceTemplateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedInterfaceTemplateList) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_inventory_item_list.go b/model_paginated_inventory_item_list.go
index af15bb5cff..ef8129e432 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedInventoryItemList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedInventoryItemList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedInventoryItemList) UnmarshalJSON(data []byte) (err error) {
varPaginatedInventoryItemList := _PaginatedInventoryItemList{}
- err = json.Unmarshal(bytes, &varPaginatedInventoryItemList)
+ err = json.Unmarshal(data, &varPaginatedInventoryItemList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedInventoryItemList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_inventory_item_role_list.go b/model_paginated_inventory_item_role_list.go
index 4a7a9c4c3b..d08e26d70d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedInventoryItemRoleList) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PaginatedInventoryItemRoleList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedInventoryItemRoleList) UnmarshalJSON(data []byte) (err error) {
varPaginatedInventoryItemRoleList := _PaginatedInventoryItemRoleList{}
- err = json.Unmarshal(bytes, &varPaginatedInventoryItemRoleList)
+ err = json.Unmarshal(data, &varPaginatedInventoryItemRoleList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedInventoryItemRoleList) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_inventory_item_template_list.go b/model_paginated_inventory_item_template_list.go
index d7bbecc735..066dcd57ee 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedInventoryItemTemplateList) ToMap() (map[string]interface{}, err
return toSerialize, nil
}
-func (o *PaginatedInventoryItemTemplateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedInventoryItemTemplateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedInventoryItemTemplateList := _PaginatedInventoryItemTemplateList{}
- err = json.Unmarshal(bytes, &varPaginatedInventoryItemTemplateList)
+ err = json.Unmarshal(data, &varPaginatedInventoryItemTemplateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedInventoryItemTemplateList) UnmarshalJSON(bytes []byte) (err er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_ip_address_list.go b/model_paginated_ip_address_list.go
index 3e27777ffc..b472675413 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedIPAddressList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedIPAddressList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedIPAddressList) UnmarshalJSON(data []byte) (err error) {
varPaginatedIPAddressList := _PaginatedIPAddressList{}
- err = json.Unmarshal(bytes, &varPaginatedIPAddressList)
+ err = json.Unmarshal(data, &varPaginatedIPAddressList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedIPAddressList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_ip_range_list.go b/model_paginated_ip_range_list.go
index ed01e37878..798069de8b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedIPRangeList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedIPRangeList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedIPRangeList) UnmarshalJSON(data []byte) (err error) {
varPaginatedIPRangeList := _PaginatedIPRangeList{}
- err = json.Unmarshal(bytes, &varPaginatedIPRangeList)
+ err = json.Unmarshal(data, &varPaginatedIPRangeList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedIPRangeList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_ip_sec_policy_list.go b/model_paginated_ip_sec_policy_list.go
new file mode 100644
index 0000000000..9b9bc864a2
--- /dev/null
+++ b/model_paginated_ip_sec_policy_list.go
@@ -0,0 +1,286 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PaginatedIPSecPolicyList type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PaginatedIPSecPolicyList{}
+
+// PaginatedIPSecPolicyList struct for PaginatedIPSecPolicyList
+type PaginatedIPSecPolicyList struct {
+ Count *int32 `json:"count,omitempty"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []IPSecPolicy `json:"results,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedIPSecPolicyList PaginatedIPSecPolicyList
+
+// NewPaginatedIPSecPolicyList instantiates a new PaginatedIPSecPolicyList object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := PaginatedIPSecPolicyList{}
+ return &this
+}
+
+// NewPaginatedIPSecPolicyListWithDefaults instantiates a new PaginatedIPSecPolicyList object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPaginatedIPSecPolicyListWithDefaults() *PaginatedIPSecPolicyList {
+ this := PaginatedIPSecPolicyList{}
+ return &this
+}
+
+// GetCount returns the Count field value if set, zero value otherwise.
+func (o *PaginatedIPSecPolicyList) 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 *PaginatedIPSecPolicyList) 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 *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.
+func (o *PaginatedIPSecPolicyList) SetCount(v int32) {
+ o.Count = &v
+}
+
+// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PaginatedIPSecPolicyList) GetNext() string {
+ if o == nil || IsNil(o.Next.Get()) {
+ 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 *PaginatedIPSecPolicyList) 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 *PaginatedIPSecPolicyList) 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 *PaginatedIPSecPolicyList) SetNext(v string) {
+ o.Next.Set(&v)
+}
+
+// SetNextNil sets the value for Next to be an explicit nil
+func (o *PaginatedIPSecPolicyList) SetNextNil() {
+ o.Next.Set(nil)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedIPSecPolicyList) 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 *PaginatedIPSecPolicyList) 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 *PaginatedIPSecPolicyList) 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 *PaginatedIPSecPolicyList) 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 *PaginatedIPSecPolicyList) SetPrevious(v string) {
+ o.Previous.Set(&v)
+}
+
+// SetPreviousNil sets the value for Previous to be an explicit nil
+func (o *PaginatedIPSecPolicyList) SetPreviousNil() {
+ o.Previous.Set(nil)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedIPSecPolicyList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value if set, zero value otherwise.
+func (o *PaginatedIPSecPolicyList) GetResults() []IPSecPolicy {
+ if o == nil || IsNil(o.Results) {
+ var ret []IPSecPolicy
+ 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 *PaginatedIPSecPolicyList) GetResultsOk() ([]IPSecPolicy, 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 *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.
+func (o *PaginatedIPSecPolicyList) SetResults(v []IPSecPolicy) {
+ o.Results = v
+}
+
+func (o PaginatedIPSecPolicyList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedIPSecPolicyList) 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 *PaginatedIPSecPolicyList) UnmarshalJSON(data []byte) (err error) {
+ varPaginatedIPSecPolicyList := _PaginatedIPSecPolicyList{}
+
+ err = json.Unmarshal(data, &varPaginatedIPSecPolicyList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedIPSecPolicyList(varPaginatedIPSecPolicyList)
+
+ 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 NullablePaginatedIPSecPolicyList struct {
+ value *PaginatedIPSecPolicyList
+ isSet bool
+}
+
+func (v NullablePaginatedIPSecPolicyList) Get() *PaginatedIPSecPolicyList {
+ return v.value
+}
+
+func (v *NullablePaginatedIPSecPolicyList) Set(val *PaginatedIPSecPolicyList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedIPSecPolicyList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedIPSecPolicyList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedIPSecPolicyList(val *PaginatedIPSecPolicyList) *NullablePaginatedIPSecPolicyList {
+ return &NullablePaginatedIPSecPolicyList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedIPSecPolicyList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaginatedIPSecPolicyList) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_paginated_ip_sec_profile_list.go b/model_paginated_ip_sec_profile_list.go
new file mode 100644
index 0000000000..af1aac52db
--- /dev/null
+++ b/model_paginated_ip_sec_profile_list.go
@@ -0,0 +1,286 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PaginatedIPSecProfileList type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PaginatedIPSecProfileList{}
+
+// PaginatedIPSecProfileList struct for PaginatedIPSecProfileList
+type PaginatedIPSecProfileList struct {
+ Count *int32 `json:"count,omitempty"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []IPSecProfile `json:"results,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedIPSecProfileList PaginatedIPSecProfileList
+
+// NewPaginatedIPSecProfileList instantiates a new PaginatedIPSecProfileList object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := PaginatedIPSecProfileList{}
+ return &this
+}
+
+// NewPaginatedIPSecProfileListWithDefaults instantiates a new PaginatedIPSecProfileList object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPaginatedIPSecProfileListWithDefaults() *PaginatedIPSecProfileList {
+ this := PaginatedIPSecProfileList{}
+ return &this
+}
+
+// GetCount returns the Count field value if set, zero value otherwise.
+func (o *PaginatedIPSecProfileList) 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 *PaginatedIPSecProfileList) 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 *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.
+func (o *PaginatedIPSecProfileList) SetCount(v int32) {
+ o.Count = &v
+}
+
+// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PaginatedIPSecProfileList) GetNext() string {
+ if o == nil || IsNil(o.Next.Get()) {
+ 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 *PaginatedIPSecProfileList) 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 *PaginatedIPSecProfileList) 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 *PaginatedIPSecProfileList) SetNext(v string) {
+ o.Next.Set(&v)
+}
+
+// SetNextNil sets the value for Next to be an explicit nil
+func (o *PaginatedIPSecProfileList) SetNextNil() {
+ o.Next.Set(nil)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedIPSecProfileList) 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 *PaginatedIPSecProfileList) 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 *PaginatedIPSecProfileList) 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 *PaginatedIPSecProfileList) 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 *PaginatedIPSecProfileList) SetPrevious(v string) {
+ o.Previous.Set(&v)
+}
+
+// SetPreviousNil sets the value for Previous to be an explicit nil
+func (o *PaginatedIPSecProfileList) SetPreviousNil() {
+ o.Previous.Set(nil)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedIPSecProfileList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value if set, zero value otherwise.
+func (o *PaginatedIPSecProfileList) GetResults() []IPSecProfile {
+ if o == nil || IsNil(o.Results) {
+ var ret []IPSecProfile
+ 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 *PaginatedIPSecProfileList) GetResultsOk() ([]IPSecProfile, 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 *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.
+func (o *PaginatedIPSecProfileList) SetResults(v []IPSecProfile) {
+ o.Results = v
+}
+
+func (o PaginatedIPSecProfileList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedIPSecProfileList) 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 *PaginatedIPSecProfileList) UnmarshalJSON(data []byte) (err error) {
+ varPaginatedIPSecProfileList := _PaginatedIPSecProfileList{}
+
+ err = json.Unmarshal(data, &varPaginatedIPSecProfileList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedIPSecProfileList(varPaginatedIPSecProfileList)
+
+ 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 NullablePaginatedIPSecProfileList struct {
+ value *PaginatedIPSecProfileList
+ isSet bool
+}
+
+func (v NullablePaginatedIPSecProfileList) Get() *PaginatedIPSecProfileList {
+ return v.value
+}
+
+func (v *NullablePaginatedIPSecProfileList) Set(val *PaginatedIPSecProfileList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedIPSecProfileList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedIPSecProfileList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedIPSecProfileList(val *PaginatedIPSecProfileList) *NullablePaginatedIPSecProfileList {
+ return &NullablePaginatedIPSecProfileList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedIPSecProfileList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaginatedIPSecProfileList) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_paginated_ip_sec_proposal_list.go b/model_paginated_ip_sec_proposal_list.go
new file mode 100644
index 0000000000..e3cc7865cd
--- /dev/null
+++ b/model_paginated_ip_sec_proposal_list.go
@@ -0,0 +1,286 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PaginatedIPSecProposalList type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PaginatedIPSecProposalList{}
+
+// PaginatedIPSecProposalList struct for PaginatedIPSecProposalList
+type PaginatedIPSecProposalList struct {
+ Count *int32 `json:"count,omitempty"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []IPSecProposal `json:"results,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedIPSecProposalList PaginatedIPSecProposalList
+
+// NewPaginatedIPSecProposalList instantiates a new PaginatedIPSecProposalList object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := PaginatedIPSecProposalList{}
+ return &this
+}
+
+// NewPaginatedIPSecProposalListWithDefaults instantiates a new PaginatedIPSecProposalList object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPaginatedIPSecProposalListWithDefaults() *PaginatedIPSecProposalList {
+ this := PaginatedIPSecProposalList{}
+ return &this
+}
+
+// GetCount returns the Count field value if set, zero value otherwise.
+func (o *PaginatedIPSecProposalList) 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 *PaginatedIPSecProposalList) 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 *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.
+func (o *PaginatedIPSecProposalList) SetCount(v int32) {
+ o.Count = &v
+}
+
+// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PaginatedIPSecProposalList) GetNext() string {
+ if o == nil || IsNil(o.Next.Get()) {
+ 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 *PaginatedIPSecProposalList) 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 *PaginatedIPSecProposalList) 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 *PaginatedIPSecProposalList) SetNext(v string) {
+ o.Next.Set(&v)
+}
+
+// SetNextNil sets the value for Next to be an explicit nil
+func (o *PaginatedIPSecProposalList) SetNextNil() {
+ o.Next.Set(nil)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedIPSecProposalList) 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 *PaginatedIPSecProposalList) 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 *PaginatedIPSecProposalList) 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 *PaginatedIPSecProposalList) 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 *PaginatedIPSecProposalList) SetPrevious(v string) {
+ o.Previous.Set(&v)
+}
+
+// SetPreviousNil sets the value for Previous to be an explicit nil
+func (o *PaginatedIPSecProposalList) SetPreviousNil() {
+ o.Previous.Set(nil)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedIPSecProposalList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value if set, zero value otherwise.
+func (o *PaginatedIPSecProposalList) GetResults() []IPSecProposal {
+ if o == nil || IsNil(o.Results) {
+ var ret []IPSecProposal
+ 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 *PaginatedIPSecProposalList) GetResultsOk() ([]IPSecProposal, 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 *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.
+func (o *PaginatedIPSecProposalList) SetResults(v []IPSecProposal) {
+ o.Results = v
+}
+
+func (o PaginatedIPSecProposalList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedIPSecProposalList) 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 *PaginatedIPSecProposalList) UnmarshalJSON(data []byte) (err error) {
+ varPaginatedIPSecProposalList := _PaginatedIPSecProposalList{}
+
+ err = json.Unmarshal(data, &varPaginatedIPSecProposalList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedIPSecProposalList(varPaginatedIPSecProposalList)
+
+ 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 NullablePaginatedIPSecProposalList struct {
+ value *PaginatedIPSecProposalList
+ isSet bool
+}
+
+func (v NullablePaginatedIPSecProposalList) Get() *PaginatedIPSecProposalList {
+ return v.value
+}
+
+func (v *NullablePaginatedIPSecProposalList) Set(val *PaginatedIPSecProposalList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedIPSecProposalList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedIPSecProposalList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedIPSecProposalList(val *PaginatedIPSecProposalList) *NullablePaginatedIPSecProposalList {
+ return &NullablePaginatedIPSecProposalList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedIPSecProposalList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaginatedIPSecProposalList) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_paginated_job_list.go b/model_paginated_job_list.go
index 1ea61a7655..d8923ef77d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedJobList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedJobList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedJobList) UnmarshalJSON(data []byte) (err error) {
varPaginatedJobList := _PaginatedJobList{}
- err = json.Unmarshal(bytes, &varPaginatedJobList)
+ err = json.Unmarshal(data, &varPaginatedJobList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedJobList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_journal_entry_list.go b/model_paginated_journal_entry_list.go
index 5e1db40c8a..d7189702bd 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedJournalEntryList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedJournalEntryList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedJournalEntryList) UnmarshalJSON(data []byte) (err error) {
varPaginatedJournalEntryList := _PaginatedJournalEntryList{}
- err = json.Unmarshal(bytes, &varPaginatedJournalEntryList)
+ err = json.Unmarshal(data, &varPaginatedJournalEntryList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedJournalEntryList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_l2_vpn_list.go b/model_paginated_l2_vpn_list.go
index 7b438c118c..268f58e0f9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedL2VPNList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedL2VPNList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedL2VPNList) UnmarshalJSON(data []byte) (err error) {
varPaginatedL2VPNList := _PaginatedL2VPNList{}
- err = json.Unmarshal(bytes, &varPaginatedL2VPNList)
+ err = json.Unmarshal(data, &varPaginatedL2VPNList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedL2VPNList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_l2_vpn_termination_list.go b/model_paginated_l2_vpn_termination_list.go
index 6550c117a3..737e27c26c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedL2VPNTerminationList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedL2VPNTerminationList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedL2VPNTerminationList) UnmarshalJSON(data []byte) (err error) {
varPaginatedL2VPNTerminationList := _PaginatedL2VPNTerminationList{}
- err = json.Unmarshal(bytes, &varPaginatedL2VPNTerminationList)
+ err = json.Unmarshal(data, &varPaginatedL2VPNTerminationList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedL2VPNTerminationList) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_location_list.go b/model_paginated_location_list.go
index 5f889e400e..16fe39fa36 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedLocationList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedLocationList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedLocationList) UnmarshalJSON(data []byte) (err error) {
varPaginatedLocationList := _PaginatedLocationList{}
- err = json.Unmarshal(bytes, &varPaginatedLocationList)
+ err = json.Unmarshal(data, &varPaginatedLocationList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedLocationList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_manufacturer_list.go b/model_paginated_manufacturer_list.go
index 44a7595a0a..669cd9bcba 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedManufacturerList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedManufacturerList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedManufacturerList) UnmarshalJSON(data []byte) (err error) {
varPaginatedManufacturerList := _PaginatedManufacturerList{}
- err = json.Unmarshal(bytes, &varPaginatedManufacturerList)
+ err = json.Unmarshal(data, &varPaginatedManufacturerList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedManufacturerList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_module_bay_list.go b/model_paginated_module_bay_list.go
index cca9dcf7aa..7750611b9f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedModuleBayList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedModuleBayList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedModuleBayList) UnmarshalJSON(data []byte) (err error) {
varPaginatedModuleBayList := _PaginatedModuleBayList{}
- err = json.Unmarshal(bytes, &varPaginatedModuleBayList)
+ err = json.Unmarshal(data, &varPaginatedModuleBayList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedModuleBayList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_module_bay_template_list.go b/model_paginated_module_bay_template_list.go
index 075639cc1b..ec772a216c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedModuleBayTemplateList) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PaginatedModuleBayTemplateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedModuleBayTemplateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedModuleBayTemplateList := _PaginatedModuleBayTemplateList{}
- err = json.Unmarshal(bytes, &varPaginatedModuleBayTemplateList)
+ err = json.Unmarshal(data, &varPaginatedModuleBayTemplateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedModuleBayTemplateList) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_module_list.go b/model_paginated_module_list.go
index d92f448390..a1b8428873 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedModuleList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedModuleList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedModuleList) UnmarshalJSON(data []byte) (err error) {
varPaginatedModuleList := _PaginatedModuleList{}
- err = json.Unmarshal(bytes, &varPaginatedModuleList)
+ err = json.Unmarshal(data, &varPaginatedModuleList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedModuleList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_module_type_list.go b/model_paginated_module_type_list.go
index b325abf458..236ec90da9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedModuleTypeList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedModuleTypeList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedModuleTypeList) UnmarshalJSON(data []byte) (err error) {
varPaginatedModuleTypeList := _PaginatedModuleTypeList{}
- err = json.Unmarshal(bytes, &varPaginatedModuleTypeList)
+ err = json.Unmarshal(data, &varPaginatedModuleTypeList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedModuleTypeList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_object_change_list.go b/model_paginated_object_change_list.go
index 5d8643272b..b48c9cf06c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedObjectChangeList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedObjectChangeList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedObjectChangeList) UnmarshalJSON(data []byte) (err error) {
varPaginatedObjectChangeList := _PaginatedObjectChangeList{}
- err = json.Unmarshal(bytes, &varPaginatedObjectChangeList)
+ err = json.Unmarshal(data, &varPaginatedObjectChangeList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedObjectChangeList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_object_permission_list.go b/model_paginated_object_permission_list.go
index ffcda48eb1..555404114c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedObjectPermissionList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedObjectPermissionList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedObjectPermissionList) UnmarshalJSON(data []byte) (err error) {
varPaginatedObjectPermissionList := _PaginatedObjectPermissionList{}
- err = json.Unmarshal(bytes, &varPaginatedObjectPermissionList)
+ err = json.Unmarshal(data, &varPaginatedObjectPermissionList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedObjectPermissionList) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_platform_list.go b/model_paginated_platform_list.go
index f8a09196e6..6a0241ef4a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedPlatformList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedPlatformList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedPlatformList) UnmarshalJSON(data []byte) (err error) {
varPaginatedPlatformList := _PaginatedPlatformList{}
- err = json.Unmarshal(bytes, &varPaginatedPlatformList)
+ err = json.Unmarshal(data, &varPaginatedPlatformList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedPlatformList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_power_feed_list.go b/model_paginated_power_feed_list.go
index bd6d946e69..ea3a7a3bfa 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedPowerFeedList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedPowerFeedList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedPowerFeedList) UnmarshalJSON(data []byte) (err error) {
varPaginatedPowerFeedList := _PaginatedPowerFeedList{}
- err = json.Unmarshal(bytes, &varPaginatedPowerFeedList)
+ err = json.Unmarshal(data, &varPaginatedPowerFeedList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedPowerFeedList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_power_outlet_list.go b/model_paginated_power_outlet_list.go
index 3ffb3e0f17..c03543ce94 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedPowerOutletList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedPowerOutletList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedPowerOutletList) UnmarshalJSON(data []byte) (err error) {
varPaginatedPowerOutletList := _PaginatedPowerOutletList{}
- err = json.Unmarshal(bytes, &varPaginatedPowerOutletList)
+ err = json.Unmarshal(data, &varPaginatedPowerOutletList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedPowerOutletList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_power_outlet_template_list.go b/model_paginated_power_outlet_template_list.go
index e3462ff6d4..1271983d5e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedPowerOutletTemplateList) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *PaginatedPowerOutletTemplateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedPowerOutletTemplateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedPowerOutletTemplateList := _PaginatedPowerOutletTemplateList{}
- err = json.Unmarshal(bytes, &varPaginatedPowerOutletTemplateList)
+ err = json.Unmarshal(data, &varPaginatedPowerOutletTemplateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedPowerOutletTemplateList) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_power_panel_list.go b/model_paginated_power_panel_list.go
index 72e6d37afc..a56b27a7d2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedPowerPanelList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedPowerPanelList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedPowerPanelList) UnmarshalJSON(data []byte) (err error) {
varPaginatedPowerPanelList := _PaginatedPowerPanelList{}
- err = json.Unmarshal(bytes, &varPaginatedPowerPanelList)
+ err = json.Unmarshal(data, &varPaginatedPowerPanelList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedPowerPanelList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_power_port_list.go b/model_paginated_power_port_list.go
index 6029771669..702bdb7f49 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedPowerPortList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedPowerPortList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedPowerPortList) UnmarshalJSON(data []byte) (err error) {
varPaginatedPowerPortList := _PaginatedPowerPortList{}
- err = json.Unmarshal(bytes, &varPaginatedPowerPortList)
+ err = json.Unmarshal(data, &varPaginatedPowerPortList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedPowerPortList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_power_port_template_list.go b/model_paginated_power_port_template_list.go
index 19137d7a8b..c36d8db88f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedPowerPortTemplateList) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PaginatedPowerPortTemplateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedPowerPortTemplateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedPowerPortTemplateList := _PaginatedPowerPortTemplateList{}
- err = json.Unmarshal(bytes, &varPaginatedPowerPortTemplateList)
+ err = json.Unmarshal(data, &varPaginatedPowerPortTemplateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedPowerPortTemplateList) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_prefix_list.go b/model_paginated_prefix_list.go
index 80b4c2cfac..0542cb4865 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedPrefixList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedPrefixList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedPrefixList) UnmarshalJSON(data []byte) (err error) {
varPaginatedPrefixList := _PaginatedPrefixList{}
- err = json.Unmarshal(bytes, &varPaginatedPrefixList)
+ err = json.Unmarshal(data, &varPaginatedPrefixList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedPrefixList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_provider_account_list.go b/model_paginated_provider_account_list.go
index 065d1d0170..874d848ef1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedProviderAccountList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedProviderAccountList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedProviderAccountList) UnmarshalJSON(data []byte) (err error) {
varPaginatedProviderAccountList := _PaginatedProviderAccountList{}
- err = json.Unmarshal(bytes, &varPaginatedProviderAccountList)
+ err = json.Unmarshal(data, &varPaginatedProviderAccountList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedProviderAccountList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_provider_list.go b/model_paginated_provider_list.go
index c6fbab836e..dc6e0678fa 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedProviderList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedProviderList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedProviderList) UnmarshalJSON(data []byte) (err error) {
varPaginatedProviderList := _PaginatedProviderList{}
- err = json.Unmarshal(bytes, &varPaginatedProviderList)
+ err = json.Unmarshal(data, &varPaginatedProviderList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedProviderList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_provider_network_list.go b/model_paginated_provider_network_list.go
index 0dfa6dba43..5ffd7414e1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedProviderNetworkList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedProviderNetworkList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedProviderNetworkList) UnmarshalJSON(data []byte) (err error) {
varPaginatedProviderNetworkList := _PaginatedProviderNetworkList{}
- err = json.Unmarshal(bytes, &varPaginatedProviderNetworkList)
+ err = json.Unmarshal(data, &varPaginatedProviderNetworkList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedProviderNetworkList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_rack_list.go b/model_paginated_rack_list.go
index 11ba5fe559..060f88db41 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedRackList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedRackList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedRackList) UnmarshalJSON(data []byte) (err error) {
varPaginatedRackList := _PaginatedRackList{}
- err = json.Unmarshal(bytes, &varPaginatedRackList)
+ err = json.Unmarshal(data, &varPaginatedRackList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedRackList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_rack_reservation_list.go b/model_paginated_rack_reservation_list.go
index da18f2935e..089446873c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedRackReservationList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedRackReservationList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedRackReservationList) UnmarshalJSON(data []byte) (err error) {
varPaginatedRackReservationList := _PaginatedRackReservationList{}
- err = json.Unmarshal(bytes, &varPaginatedRackReservationList)
+ err = json.Unmarshal(data, &varPaginatedRackReservationList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedRackReservationList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_rack_role_list.go b/model_paginated_rack_role_list.go
index dd82c6235e..25a025a0c5 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedRackRoleList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedRackRoleList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedRackRoleList) UnmarshalJSON(data []byte) (err error) {
varPaginatedRackRoleList := _PaginatedRackRoleList{}
- err = json.Unmarshal(bytes, &varPaginatedRackRoleList)
+ err = json.Unmarshal(data, &varPaginatedRackRoleList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedRackRoleList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_rear_port_list.go b/model_paginated_rear_port_list.go
index b06937c5ed..e0bedf5dc2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedRearPortList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedRearPortList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedRearPortList) UnmarshalJSON(data []byte) (err error) {
varPaginatedRearPortList := _PaginatedRearPortList{}
- err = json.Unmarshal(bytes, &varPaginatedRearPortList)
+ err = json.Unmarshal(data, &varPaginatedRearPortList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedRearPortList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_rear_port_template_list.go b/model_paginated_rear_port_template_list.go
index 2f5223db7a..762cea71cf 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedRearPortTemplateList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedRearPortTemplateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedRearPortTemplateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedRearPortTemplateList := _PaginatedRearPortTemplateList{}
- err = json.Unmarshal(bytes, &varPaginatedRearPortTemplateList)
+ err = json.Unmarshal(data, &varPaginatedRearPortTemplateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedRearPortTemplateList) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_region_list.go b/model_paginated_region_list.go
index 8a2eb6d881..f8e840d36d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedRegionList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedRegionList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedRegionList) UnmarshalJSON(data []byte) (err error) {
varPaginatedRegionList := _PaginatedRegionList{}
- err = json.Unmarshal(bytes, &varPaginatedRegionList)
+ err = json.Unmarshal(data, &varPaginatedRegionList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedRegionList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_rir_list.go b/model_paginated_rir_list.go
index 8b58f80e9c..1e19360f9a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedRIRList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedRIRList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedRIRList) UnmarshalJSON(data []byte) (err error) {
varPaginatedRIRList := _PaginatedRIRList{}
- err = json.Unmarshal(bytes, &varPaginatedRIRList)
+ err = json.Unmarshal(data, &varPaginatedRIRList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedRIRList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_role_list.go b/model_paginated_role_list.go
index 676b621fe3..5b97b98d47 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedRoleList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedRoleList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedRoleList) UnmarshalJSON(data []byte) (err error) {
varPaginatedRoleList := _PaginatedRoleList{}
- err = json.Unmarshal(bytes, &varPaginatedRoleList)
+ err = json.Unmarshal(data, &varPaginatedRoleList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedRoleList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_route_target_list.go b/model_paginated_route_target_list.go
index 12e5430018..6d6571193d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedRouteTargetList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedRouteTargetList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedRouteTargetList) UnmarshalJSON(data []byte) (err error) {
varPaginatedRouteTargetList := _PaginatedRouteTargetList{}
- err = json.Unmarshal(bytes, &varPaginatedRouteTargetList)
+ err = json.Unmarshal(data, &varPaginatedRouteTargetList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedRouteTargetList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_saved_filter_list.go b/model_paginated_saved_filter_list.go
index 222eb76acd..725f9e3637 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedSavedFilterList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedSavedFilterList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedSavedFilterList) UnmarshalJSON(data []byte) (err error) {
varPaginatedSavedFilterList := _PaginatedSavedFilterList{}
- err = json.Unmarshal(bytes, &varPaginatedSavedFilterList)
+ err = json.Unmarshal(data, &varPaginatedSavedFilterList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedSavedFilterList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_service_list.go b/model_paginated_service_list.go
index b72525806b..a78c2f7c39 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedServiceList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedServiceList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedServiceList) UnmarshalJSON(data []byte) (err error) {
varPaginatedServiceList := _PaginatedServiceList{}
- err = json.Unmarshal(bytes, &varPaginatedServiceList)
+ err = json.Unmarshal(data, &varPaginatedServiceList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedServiceList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_service_template_list.go b/model_paginated_service_template_list.go
index 08a5ce1dee..19838690d2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedServiceTemplateList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedServiceTemplateList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedServiceTemplateList) UnmarshalJSON(data []byte) (err error) {
varPaginatedServiceTemplateList := _PaginatedServiceTemplateList{}
- err = json.Unmarshal(bytes, &varPaginatedServiceTemplateList)
+ err = json.Unmarshal(data, &varPaginatedServiceTemplateList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedServiceTemplateList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_site_group_list.go b/model_paginated_site_group_list.go
index 2315e2239c..c44c5f6eab 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedSiteGroupList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedSiteGroupList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedSiteGroupList) UnmarshalJSON(data []byte) (err error) {
varPaginatedSiteGroupList := _PaginatedSiteGroupList{}
- err = json.Unmarshal(bytes, &varPaginatedSiteGroupList)
+ err = json.Unmarshal(data, &varPaginatedSiteGroupList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedSiteGroupList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_site_list.go b/model_paginated_site_list.go
index 4b960e2061..b0e67846d4 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedSiteList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedSiteList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedSiteList) UnmarshalJSON(data []byte) (err error) {
varPaginatedSiteList := _PaginatedSiteList{}
- err = json.Unmarshal(bytes, &varPaginatedSiteList)
+ err = json.Unmarshal(data, &varPaginatedSiteList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedSiteList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_tag_list.go b/model_paginated_tag_list.go
index e873d426b1..af04ae6c55 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedTagList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedTagList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedTagList) UnmarshalJSON(data []byte) (err error) {
varPaginatedTagList := _PaginatedTagList{}
- err = json.Unmarshal(bytes, &varPaginatedTagList)
+ err = json.Unmarshal(data, &varPaginatedTagList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedTagList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_tenant_group_list.go b/model_paginated_tenant_group_list.go
index afacffbed2..43038df47f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedTenantGroupList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedTenantGroupList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedTenantGroupList) UnmarshalJSON(data []byte) (err error) {
varPaginatedTenantGroupList := _PaginatedTenantGroupList{}
- err = json.Unmarshal(bytes, &varPaginatedTenantGroupList)
+ err = json.Unmarshal(data, &varPaginatedTenantGroupList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedTenantGroupList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_tenant_list.go b/model_paginated_tenant_list.go
index edaf6c6070..43036d58cd 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedTenantList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedTenantList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedTenantList) UnmarshalJSON(data []byte) (err error) {
varPaginatedTenantList := _PaginatedTenantList{}
- err = json.Unmarshal(bytes, &varPaginatedTenantList)
+ err = json.Unmarshal(data, &varPaginatedTenantList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedTenantList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_token_list.go b/model_paginated_token_list.go
index 7212857300..4c7fbf0f2f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedTokenList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedTokenList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedTokenList) UnmarshalJSON(data []byte) (err error) {
varPaginatedTokenList := _PaginatedTokenList{}
- err = json.Unmarshal(bytes, &varPaginatedTokenList)
+ err = json.Unmarshal(data, &varPaginatedTokenList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedTokenList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_tunnel_group_list.go b/model_paginated_tunnel_group_list.go
new file mode 100644
index 0000000000..9875a2b19e
--- /dev/null
+++ b/model_paginated_tunnel_group_list.go
@@ -0,0 +1,286 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PaginatedTunnelGroupList type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PaginatedTunnelGroupList{}
+
+// PaginatedTunnelGroupList struct for PaginatedTunnelGroupList
+type PaginatedTunnelGroupList struct {
+ Count *int32 `json:"count,omitempty"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []TunnelGroup `json:"results,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedTunnelGroupList PaginatedTunnelGroupList
+
+// NewPaginatedTunnelGroupList instantiates a new PaginatedTunnelGroupList object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := PaginatedTunnelGroupList{}
+ return &this
+}
+
+// NewPaginatedTunnelGroupListWithDefaults instantiates a new PaginatedTunnelGroupList object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPaginatedTunnelGroupListWithDefaults() *PaginatedTunnelGroupList {
+ this := PaginatedTunnelGroupList{}
+ return &this
+}
+
+// GetCount returns the Count field value if set, zero value otherwise.
+func (o *PaginatedTunnelGroupList) 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 *PaginatedTunnelGroupList) 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 *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.
+func (o *PaginatedTunnelGroupList) SetCount(v int32) {
+ o.Count = &v
+}
+
+// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PaginatedTunnelGroupList) GetNext() string {
+ if o == nil || IsNil(o.Next.Get()) {
+ 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 *PaginatedTunnelGroupList) 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 *PaginatedTunnelGroupList) 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 *PaginatedTunnelGroupList) SetNext(v string) {
+ o.Next.Set(&v)
+}
+
+// SetNextNil sets the value for Next to be an explicit nil
+func (o *PaginatedTunnelGroupList) SetNextNil() {
+ o.Next.Set(nil)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedTunnelGroupList) 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 *PaginatedTunnelGroupList) 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 *PaginatedTunnelGroupList) 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 *PaginatedTunnelGroupList) 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 *PaginatedTunnelGroupList) SetPrevious(v string) {
+ o.Previous.Set(&v)
+}
+
+// SetPreviousNil sets the value for Previous to be an explicit nil
+func (o *PaginatedTunnelGroupList) SetPreviousNil() {
+ o.Previous.Set(nil)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedTunnelGroupList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value if set, zero value otherwise.
+func (o *PaginatedTunnelGroupList) GetResults() []TunnelGroup {
+ if o == nil || IsNil(o.Results) {
+ var ret []TunnelGroup
+ 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 *PaginatedTunnelGroupList) GetResultsOk() ([]TunnelGroup, 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 *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.
+func (o *PaginatedTunnelGroupList) SetResults(v []TunnelGroup) {
+ o.Results = v
+}
+
+func (o PaginatedTunnelGroupList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedTunnelGroupList) 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 *PaginatedTunnelGroupList) UnmarshalJSON(data []byte) (err error) {
+ varPaginatedTunnelGroupList := _PaginatedTunnelGroupList{}
+
+ err = json.Unmarshal(data, &varPaginatedTunnelGroupList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedTunnelGroupList(varPaginatedTunnelGroupList)
+
+ 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 NullablePaginatedTunnelGroupList struct {
+ value *PaginatedTunnelGroupList
+ isSet bool
+}
+
+func (v NullablePaginatedTunnelGroupList) Get() *PaginatedTunnelGroupList {
+ return v.value
+}
+
+func (v *NullablePaginatedTunnelGroupList) Set(val *PaginatedTunnelGroupList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedTunnelGroupList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedTunnelGroupList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedTunnelGroupList(val *PaginatedTunnelGroupList) *NullablePaginatedTunnelGroupList {
+ return &NullablePaginatedTunnelGroupList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedTunnelGroupList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaginatedTunnelGroupList) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_paginated_tunnel_list.go b/model_paginated_tunnel_list.go
new file mode 100644
index 0000000000..ab2ce55e88
--- /dev/null
+++ b/model_paginated_tunnel_list.go
@@ -0,0 +1,286 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PaginatedTunnelList type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PaginatedTunnelList{}
+
+// PaginatedTunnelList struct for PaginatedTunnelList
+type PaginatedTunnelList struct {
+ Count *int32 `json:"count,omitempty"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Tunnel `json:"results,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedTunnelList PaginatedTunnelList
+
+// NewPaginatedTunnelList instantiates a new PaginatedTunnelList object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := PaginatedTunnelList{}
+ return &this
+}
+
+// NewPaginatedTunnelListWithDefaults instantiates a new PaginatedTunnelList object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPaginatedTunnelListWithDefaults() *PaginatedTunnelList {
+ this := PaginatedTunnelList{}
+ return &this
+}
+
+// GetCount returns the Count field value if set, zero value otherwise.
+func (o *PaginatedTunnelList) 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 *PaginatedTunnelList) 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 *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.
+func (o *PaginatedTunnelList) SetCount(v int32) {
+ o.Count = &v
+}
+
+// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PaginatedTunnelList) GetNext() string {
+ if o == nil || IsNil(o.Next.Get()) {
+ 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 *PaginatedTunnelList) 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 *PaginatedTunnelList) 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 *PaginatedTunnelList) SetNext(v string) {
+ o.Next.Set(&v)
+}
+
+// SetNextNil sets the value for Next to be an explicit nil
+func (o *PaginatedTunnelList) SetNextNil() {
+ o.Next.Set(nil)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedTunnelList) 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 *PaginatedTunnelList) 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 *PaginatedTunnelList) 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 *PaginatedTunnelList) 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 *PaginatedTunnelList) SetPrevious(v string) {
+ o.Previous.Set(&v)
+}
+
+// SetPreviousNil sets the value for Previous to be an explicit nil
+func (o *PaginatedTunnelList) SetPreviousNil() {
+ o.Previous.Set(nil)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedTunnelList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value if set, zero value otherwise.
+func (o *PaginatedTunnelList) GetResults() []Tunnel {
+ if o == nil || IsNil(o.Results) {
+ var ret []Tunnel
+ 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 *PaginatedTunnelList) GetResultsOk() ([]Tunnel, 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 *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.
+func (o *PaginatedTunnelList) SetResults(v []Tunnel) {
+ o.Results = v
+}
+
+func (o PaginatedTunnelList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedTunnelList) 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 *PaginatedTunnelList) UnmarshalJSON(data []byte) (err error) {
+ varPaginatedTunnelList := _PaginatedTunnelList{}
+
+ err = json.Unmarshal(data, &varPaginatedTunnelList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedTunnelList(varPaginatedTunnelList)
+
+ 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 NullablePaginatedTunnelList struct {
+ value *PaginatedTunnelList
+ isSet bool
+}
+
+func (v NullablePaginatedTunnelList) Get() *PaginatedTunnelList {
+ return v.value
+}
+
+func (v *NullablePaginatedTunnelList) Set(val *PaginatedTunnelList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedTunnelList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedTunnelList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedTunnelList(val *PaginatedTunnelList) *NullablePaginatedTunnelList {
+ return &NullablePaginatedTunnelList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedTunnelList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaginatedTunnelList) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_paginated_tunnel_termination_list.go b/model_paginated_tunnel_termination_list.go
new file mode 100644
index 0000000000..d7b8558e7f
--- /dev/null
+++ b/model_paginated_tunnel_termination_list.go
@@ -0,0 +1,286 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PaginatedTunnelTerminationList type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PaginatedTunnelTerminationList{}
+
+// PaginatedTunnelTerminationList struct for PaginatedTunnelTerminationList
+type PaginatedTunnelTerminationList struct {
+ Count *int32 `json:"count,omitempty"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []TunnelTermination `json:"results,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedTunnelTerminationList PaginatedTunnelTerminationList
+
+// NewPaginatedTunnelTerminationList instantiates a new PaginatedTunnelTerminationList object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := PaginatedTunnelTerminationList{}
+ return &this
+}
+
+// NewPaginatedTunnelTerminationListWithDefaults instantiates a new PaginatedTunnelTerminationList object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPaginatedTunnelTerminationListWithDefaults() *PaginatedTunnelTerminationList {
+ this := PaginatedTunnelTerminationList{}
+ return &this
+}
+
+// GetCount returns the Count field value if set, zero value otherwise.
+func (o *PaginatedTunnelTerminationList) 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 *PaginatedTunnelTerminationList) 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 *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.
+func (o *PaginatedTunnelTerminationList) SetCount(v int32) {
+ o.Count = &v
+}
+
+// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PaginatedTunnelTerminationList) GetNext() string {
+ if o == nil || IsNil(o.Next.Get()) {
+ 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 *PaginatedTunnelTerminationList) 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 *PaginatedTunnelTerminationList) 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 *PaginatedTunnelTerminationList) SetNext(v string) {
+ o.Next.Set(&v)
+}
+
+// SetNextNil sets the value for Next to be an explicit nil
+func (o *PaginatedTunnelTerminationList) SetNextNil() {
+ o.Next.Set(nil)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedTunnelTerminationList) 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 *PaginatedTunnelTerminationList) 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 *PaginatedTunnelTerminationList) 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 *PaginatedTunnelTerminationList) 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 *PaginatedTunnelTerminationList) SetPrevious(v string) {
+ o.Previous.Set(&v)
+}
+
+// SetPreviousNil sets the value for Previous to be an explicit nil
+func (o *PaginatedTunnelTerminationList) SetPreviousNil() {
+ o.Previous.Set(nil)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedTunnelTerminationList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value if set, zero value otherwise.
+func (o *PaginatedTunnelTerminationList) GetResults() []TunnelTermination {
+ if o == nil || IsNil(o.Results) {
+ var ret []TunnelTermination
+ 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 *PaginatedTunnelTerminationList) GetResultsOk() ([]TunnelTermination, 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 *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.
+func (o *PaginatedTunnelTerminationList) SetResults(v []TunnelTermination) {
+ o.Results = v
+}
+
+func (o PaginatedTunnelTerminationList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedTunnelTerminationList) 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 *PaginatedTunnelTerminationList) UnmarshalJSON(data []byte) (err error) {
+ varPaginatedTunnelTerminationList := _PaginatedTunnelTerminationList{}
+
+ err = json.Unmarshal(data, &varPaginatedTunnelTerminationList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedTunnelTerminationList(varPaginatedTunnelTerminationList)
+
+ 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 NullablePaginatedTunnelTerminationList struct {
+ value *PaginatedTunnelTerminationList
+ isSet bool
+}
+
+func (v NullablePaginatedTunnelTerminationList) Get() *PaginatedTunnelTerminationList {
+ return v.value
+}
+
+func (v *NullablePaginatedTunnelTerminationList) Set(val *PaginatedTunnelTerminationList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedTunnelTerminationList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedTunnelTerminationList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedTunnelTerminationList(val *PaginatedTunnelTerminationList) *NullablePaginatedTunnelTerminationList {
+ return &NullablePaginatedTunnelTerminationList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedTunnelTerminationList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaginatedTunnelTerminationList) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_paginated_user_list.go b/model_paginated_user_list.go
index b8ad2e0b21..ec046494bb 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedUserList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedUserList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedUserList) UnmarshalJSON(data []byte) (err error) {
varPaginatedUserList := _PaginatedUserList{}
- err = json.Unmarshal(bytes, &varPaginatedUserList)
+ err = json.Unmarshal(data, &varPaginatedUserList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedUserList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_virtual_chassis_list.go b/model_paginated_virtual_chassis_list.go
index 7595b12c47..bddc4dca8b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedVirtualChassisList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedVirtualChassisList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedVirtualChassisList) UnmarshalJSON(data []byte) (err error) {
varPaginatedVirtualChassisList := _PaginatedVirtualChassisList{}
- err = json.Unmarshal(bytes, &varPaginatedVirtualChassisList)
+ err = json.Unmarshal(data, &varPaginatedVirtualChassisList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedVirtualChassisList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_virtual_device_context_list.go b/model_paginated_virtual_device_context_list.go
index d953ef7a30..56e287df31 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedVirtualDeviceContextList) ToMap() (map[string]interface{}, erro
return toSerialize, nil
}
-func (o *PaginatedVirtualDeviceContextList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedVirtualDeviceContextList) UnmarshalJSON(data []byte) (err error) {
varPaginatedVirtualDeviceContextList := _PaginatedVirtualDeviceContextList{}
- err = json.Unmarshal(bytes, &varPaginatedVirtualDeviceContextList)
+ err = json.Unmarshal(data, &varPaginatedVirtualDeviceContextList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedVirtualDeviceContextList) UnmarshalJSON(bytes []byte) (err err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_virtual_disk_list.go b/model_paginated_virtual_disk_list.go
new file mode 100644
index 0000000000..8d0a6b1900
--- /dev/null
+++ b/model_paginated_virtual_disk_list.go
@@ -0,0 +1,286 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PaginatedVirtualDiskList type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PaginatedVirtualDiskList{}
+
+// PaginatedVirtualDiskList struct for PaginatedVirtualDiskList
+type PaginatedVirtualDiskList struct {
+ Count *int32 `json:"count,omitempty"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VirtualDisk `json:"results,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedVirtualDiskList PaginatedVirtualDiskList
+
+// NewPaginatedVirtualDiskList instantiates a new PaginatedVirtualDiskList object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := PaginatedVirtualDiskList{}
+ return &this
+}
+
+// NewPaginatedVirtualDiskListWithDefaults instantiates a new PaginatedVirtualDiskList object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPaginatedVirtualDiskListWithDefaults() *PaginatedVirtualDiskList {
+ this := PaginatedVirtualDiskList{}
+ return &this
+}
+
+// GetCount returns the Count field value if set, zero value otherwise.
+func (o *PaginatedVirtualDiskList) 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 *PaginatedVirtualDiskList) 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 *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.
+func (o *PaginatedVirtualDiskList) SetCount(v int32) {
+ o.Count = &v
+}
+
+// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PaginatedVirtualDiskList) GetNext() string {
+ if o == nil || IsNil(o.Next.Get()) {
+ 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 *PaginatedVirtualDiskList) 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 *PaginatedVirtualDiskList) 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 *PaginatedVirtualDiskList) SetNext(v string) {
+ o.Next.Set(&v)
+}
+
+// SetNextNil sets the value for Next to be an explicit nil
+func (o *PaginatedVirtualDiskList) SetNextNil() {
+ o.Next.Set(nil)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedVirtualDiskList) 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 *PaginatedVirtualDiskList) 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 *PaginatedVirtualDiskList) 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 *PaginatedVirtualDiskList) 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 *PaginatedVirtualDiskList) SetPrevious(v string) {
+ o.Previous.Set(&v)
+}
+
+// SetPreviousNil sets the value for Previous to be an explicit nil
+func (o *PaginatedVirtualDiskList) SetPreviousNil() {
+ o.Previous.Set(nil)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedVirtualDiskList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value if set, zero value otherwise.
+func (o *PaginatedVirtualDiskList) GetResults() []VirtualDisk {
+ if o == nil || IsNil(o.Results) {
+ var ret []VirtualDisk
+ 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 *PaginatedVirtualDiskList) GetResultsOk() ([]VirtualDisk, 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 *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.
+func (o *PaginatedVirtualDiskList) SetResults(v []VirtualDisk) {
+ o.Results = v
+}
+
+func (o PaginatedVirtualDiskList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedVirtualDiskList) 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 *PaginatedVirtualDiskList) UnmarshalJSON(data []byte) (err error) {
+ varPaginatedVirtualDiskList := _PaginatedVirtualDiskList{}
+
+ err = json.Unmarshal(data, &varPaginatedVirtualDiskList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedVirtualDiskList(varPaginatedVirtualDiskList)
+
+ 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 NullablePaginatedVirtualDiskList struct {
+ value *PaginatedVirtualDiskList
+ isSet bool
+}
+
+func (v NullablePaginatedVirtualDiskList) Get() *PaginatedVirtualDiskList {
+ return v.value
+}
+
+func (v *NullablePaginatedVirtualDiskList) Set(val *PaginatedVirtualDiskList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedVirtualDiskList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedVirtualDiskList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedVirtualDiskList(val *PaginatedVirtualDiskList) *NullablePaginatedVirtualDiskList {
+ return &NullablePaginatedVirtualDiskList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedVirtualDiskList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaginatedVirtualDiskList) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_paginated_virtual_machine_with_config_context_list.go b/model_paginated_virtual_machine_with_config_context_list.go
index b126047493..2cc6323990 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedVirtualMachineWithConfigContextList) ToMap() (map[string]interf
return toSerialize, nil
}
-func (o *PaginatedVirtualMachineWithConfigContextList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedVirtualMachineWithConfigContextList) UnmarshalJSON(data []byte) (err error) {
varPaginatedVirtualMachineWithConfigContextList := _PaginatedVirtualMachineWithConfigContextList{}
- err = json.Unmarshal(bytes, &varPaginatedVirtualMachineWithConfigContextList)
+ err = json.Unmarshal(data, &varPaginatedVirtualMachineWithConfigContextList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedVirtualMachineWithConfigContextList) UnmarshalJSON(bytes []byt
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_vlan_group_list.go b/model_paginated_vlan_group_list.go
index 0a7a4ee0e2..410a97ab66 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedVLANGroupList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedVLANGroupList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedVLANGroupList) UnmarshalJSON(data []byte) (err error) {
varPaginatedVLANGroupList := _PaginatedVLANGroupList{}
- err = json.Unmarshal(bytes, &varPaginatedVLANGroupList)
+ err = json.Unmarshal(data, &varPaginatedVLANGroupList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedVLANGroupList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_vlan_list.go b/model_paginated_vlan_list.go
index e368325549..26fcaeea65 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedVLANList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedVLANList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedVLANList) UnmarshalJSON(data []byte) (err error) {
varPaginatedVLANList := _PaginatedVLANList{}
- err = json.Unmarshal(bytes, &varPaginatedVLANList)
+ err = json.Unmarshal(data, &varPaginatedVLANList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedVLANList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_vm_interface_list.go b/model_paginated_vm_interface_list.go
index 0f29cc712b..9dec48e35a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedVMInterfaceList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedVMInterfaceList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedVMInterfaceList) UnmarshalJSON(data []byte) (err error) {
varPaginatedVMInterfaceList := _PaginatedVMInterfaceList{}
- err = json.Unmarshal(bytes, &varPaginatedVMInterfaceList)
+ err = json.Unmarshal(data, &varPaginatedVMInterfaceList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedVMInterfaceList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_vrf_list.go b/model_paginated_vrf_list.go
index b73741a650..5221b6257e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedVRFList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedVRFList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedVRFList) UnmarshalJSON(data []byte) (err error) {
varPaginatedVRFList := _PaginatedVRFList{}
- err = json.Unmarshal(bytes, &varPaginatedVRFList)
+ err = json.Unmarshal(data, &varPaginatedVRFList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedVRFList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_webhook_list.go b/model_paginated_webhook_list.go
index 9dfb9d8d0a..483a727750 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedWebhookList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedWebhookList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedWebhookList) UnmarshalJSON(data []byte) (err error) {
varPaginatedWebhookList := _PaginatedWebhookList{}
- err = json.Unmarshal(bytes, &varPaginatedWebhookList)
+ err = json.Unmarshal(data, &varPaginatedWebhookList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedWebhookList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_wireless_lan_group_list.go b/model_paginated_wireless_lan_group_list.go
index e503016021..4262525db1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedWirelessLANGroupList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedWirelessLANGroupList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedWirelessLANGroupList) UnmarshalJSON(data []byte) (err error) {
varPaginatedWirelessLANGroupList := _PaginatedWirelessLANGroupList{}
- err = json.Unmarshal(bytes, &varPaginatedWirelessLANGroupList)
+ err = json.Unmarshal(data, &varPaginatedWirelessLANGroupList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedWirelessLANGroupList) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_wireless_lan_list.go b/model_paginated_wireless_lan_list.go
index 4b7d4fabfe..4e9d90e3b3 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedWirelessLANList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedWirelessLANList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedWirelessLANList) UnmarshalJSON(data []byte) (err error) {
varPaginatedWirelessLANList := _PaginatedWirelessLANList{}
- err = json.Unmarshal(bytes, &varPaginatedWirelessLANList)
+ err = json.Unmarshal(data, &varPaginatedWirelessLANList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedWirelessLANList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_paginated_wireless_link_list.go b/model_paginated_wireless_link_list.go
index 11a5949383..5b0afa558a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -225,10 +225,10 @@ func (o PaginatedWirelessLinkList) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PaginatedWirelessLinkList) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PaginatedWirelessLinkList) UnmarshalJSON(data []byte) (err error) {
varPaginatedWirelessLinkList := _PaginatedWirelessLinkList{}
- err = json.Unmarshal(bytes, &varPaginatedWirelessLinkList)
+ err = json.Unmarshal(data, &varPaginatedWirelessLinkList)
if err != nil {
return err
@@ -238,7 +238,7 @@ func (o *PaginatedWirelessLinkList) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "count")
delete(additionalProperties, "next")
delete(additionalProperties, "previous")
diff --git a/model_parent_child_status.go b/model_parent_child_status.go
new file mode 100644
index 0000000000..f7591c4183
--- /dev/null
+++ b/model_parent_child_status.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "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
+type ParentChildStatus string
+
+// List of Parent_child_status
+const (
+ PARENTCHILDSTATUS_PARENT ParentChildStatus = "parent"
+ PARENTCHILDSTATUS_CHILD ParentChildStatus = "child"
+ PARENTCHILDSTATUS_EMPTY ParentChildStatus = ""
+)
+
+// All allowed values of ParentChildStatus enum
+var AllowedParentChildStatusEnumValues = []ParentChildStatus{
+ "parent",
+ "child",
+ "",
+}
+
+func (v *ParentChildStatus) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ParentChildStatus(value)
+ for _, existing := range AllowedParentChildStatusEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ParentChildStatus", value)
+}
+
+// NewParentChildStatusFromValue returns a pointer to a valid ParentChildStatus
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewParentChildStatusFromValue(v string) (*ParentChildStatus, error) {
+ ev := ParentChildStatus(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ParentChildStatus: valid values are %v", v, AllowedParentChildStatusEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ParentChildStatus) IsValid() bool {
+ for _, existing := range AllowedParentChildStatusEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Parent_child_status value
+func (v ParentChildStatus) Ptr() *ParentChildStatus {
+ return &v
+}
+
+type NullableParentChildStatus struct {
+ value *ParentChildStatus
+ isSet bool
+}
+
+func (v NullableParentChildStatus) Get() *ParentChildStatus {
+ return v.value
+}
+
+func (v *NullableParentChildStatus) Set(val *ParentChildStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableParentChildStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableParentChildStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableParentChildStatus(val *ParentChildStatus) *NullableParentChildStatus {
+ return &NullableParentChildStatus{value: val, isSet: true}
+}
+
+func (v NullableParentChildStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableParentChildStatus) 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 7a4d40d28a..4dedba3be6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &PatchedCableTerminationRequest{}
// PatchedCableTerminationRequest Adds support for custom fields and tags.
type PatchedCableTerminationRequest struct {
- Cable *int32 `json:"cable,omitempty"`
- // * `A` - A * `B` - B
- CableEnd *string `json:"cable_end,omitempty"`
+ Cable *int32 `json:"cable,omitempty"`
+ CableEnd *End `json:"cable_end,omitempty"`
TerminationType *string `json:"termination_type,omitempty"`
TerminationId *int64 `json:"termination_id,omitempty"`
AdditionalProperties map[string]interface{}
@@ -79,9 +78,9 @@ func (o *PatchedCableTerminationRequest) SetCable(v int32) {
}
// GetCableEnd returns the CableEnd field value if set, zero value otherwise.
-func (o *PatchedCableTerminationRequest) GetCableEnd() string {
+func (o *PatchedCableTerminationRequest) GetCableEnd() End {
if o == nil || IsNil(o.CableEnd) {
- var ret string
+ var ret End
return ret
}
return *o.CableEnd
@@ -89,7 +88,7 @@ func (o *PatchedCableTerminationRequest) GetCableEnd() string {
// 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() (*string, bool) {
+func (o *PatchedCableTerminationRequest) GetCableEndOk() (*End, bool) {
if o == nil || IsNil(o.CableEnd) {
return nil, false
}
@@ -105,8 +104,8 @@ func (o *PatchedCableTerminationRequest) HasCableEnd() bool {
return false
}
-// SetCableEnd gets a reference to the given string and assigns it to the CableEnd field.
-func (o *PatchedCableTerminationRequest) SetCableEnd(v string) {
+// SetCableEnd gets a reference to the given End and assigns it to the CableEnd field.
+func (o *PatchedCableTerminationRequest) SetCableEnd(v End) {
o.CableEnd = &v
}
@@ -204,10 +203,10 @@ func (o PatchedCableTerminationRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedCableTerminationRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedCableTerminationRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedCableTerminationRequest := _PatchedCableTerminationRequest{}
- err = json.Unmarshal(bytes, &varPatchedCableTerminationRequest)
+ err = json.Unmarshal(data, &varPatchedCableTerminationRequest)
if err != nil {
return err
@@ -217,7 +216,7 @@ func (o *PatchedCableTerminationRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "cable")
delete(additionalProperties, "cable_end")
delete(additionalProperties, "termination_type")
diff --git a/model_patched_circuit_type_request.go b/model_patched_circuit_type_request.go
index 7fb401a4f6..3c12052c51 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,6 +21,7 @@ var _ MappedNullable = &PatchedCircuitTypeRequest{}
type PatchedCircuitTypeRequest struct {
Name *string `json:"name,omitempty"`
Slug *string `json:"slug,omitempty"`
+ Color *string `json:"color,omitempty"`
Description *string `json:"description,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -110,6 +111,38 @@ func (o *PatchedCircuitTypeRequest) SetSlug(v string) {
o.Slug = &v
}
+// GetColor returns the Color field value if set, zero value otherwise.
+func (o *PatchedCircuitTypeRequest) 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 *PatchedCircuitTypeRequest) 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 *PatchedCircuitTypeRequest) 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 *PatchedCircuitTypeRequest) SetColor(v string) {
+ o.Color = &v
+}
+
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *PatchedCircuitTypeRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -222,6 +255,9 @@ func (o PatchedCircuitTypeRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Slug) {
toSerialize["slug"] = o.Slug
}
+ if !IsNil(o.Color) {
+ toSerialize["color"] = o.Color
+ }
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -239,10 +275,10 @@ func (o PatchedCircuitTypeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedCircuitTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedCircuitTypeRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedCircuitTypeRequest := _PatchedCircuitTypeRequest{}
- err = json.Unmarshal(bytes, &varPatchedCircuitTypeRequest)
+ err = json.Unmarshal(data, &varPatchedCircuitTypeRequest)
if err != nil {
return err
@@ -252,9 +288,10 @@ func (o *PatchedCircuitTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
+ delete(additionalProperties, "color")
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
diff --git a/model_patched_cluster_group_request.go b/model_patched_cluster_group_request.go
index 104c565d10..bc4833c908 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -239,10 +239,10 @@ func (o PatchedClusterGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedClusterGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedClusterGroupRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedClusterGroupRequest := _PatchedClusterGroupRequest{}
- err = json.Unmarshal(bytes, &varPatchedClusterGroupRequest)
+ err = json.Unmarshal(data, &varPatchedClusterGroupRequest)
if err != nil {
return err
@@ -252,7 +252,7 @@ func (o *PatchedClusterGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "description")
diff --git a/model_patched_cluster_type_request.go b/model_patched_cluster_type_request.go
index 72363ba041..367f4a9385 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -239,10 +239,10 @@ func (o PatchedClusterTypeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedClusterTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedClusterTypeRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedClusterTypeRequest := _PatchedClusterTypeRequest{}
- err = json.Unmarshal(bytes, &varPatchedClusterTypeRequest)
+ err = json.Unmarshal(data, &varPatchedClusterTypeRequest)
if err != nil {
return err
@@ -252,7 +252,7 @@ func (o *PatchedClusterTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "description")
diff --git a/model_patched_contact_role_request.go b/model_patched_contact_role_request.go
index a7257f34b3..37a41bb854 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -239,10 +239,10 @@ func (o PatchedContactRoleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedContactRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedContactRoleRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedContactRoleRequest := _PatchedContactRoleRequest{}
- err = json.Unmarshal(bytes, &varPatchedContactRoleRequest)
+ err = json.Unmarshal(data, &varPatchedContactRoleRequest)
if err != nil {
return err
@@ -252,7 +252,7 @@ func (o *PatchedContactRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "description")
diff --git a/model_patched_custom_link_request.go b/model_patched_custom_link_request.go
index f0b7b313ff..ba30376df4 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -28,9 +28,8 @@ type PatchedCustomLinkRequest struct {
LinkUrl *string `json:"link_url,omitempty"`
Weight *int32 `json:"weight,omitempty"`
// Links with the same group will appear as a dropdown menu
- GroupName *string `json:"group_name,omitempty"`
- // The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link
- ButtonClass *string `json:"button_class,omitempty"`
+ GroupName *string `json:"group_name,omitempty"`
+ ButtonClass *CustomLinkButtonClass `json:"button_class,omitempty"`
// Force link to open in a new window
NewWindow *bool `json:"new_window,omitempty"`
AdditionalProperties map[string]interface{}
@@ -280,9 +279,9 @@ func (o *PatchedCustomLinkRequest) SetGroupName(v string) {
}
// GetButtonClass returns the ButtonClass field value if set, zero value otherwise.
-func (o *PatchedCustomLinkRequest) GetButtonClass() string {
+func (o *PatchedCustomLinkRequest) GetButtonClass() CustomLinkButtonClass {
if o == nil || IsNil(o.ButtonClass) {
- var ret string
+ var ret CustomLinkButtonClass
return ret
}
return *o.ButtonClass
@@ -290,7 +289,7 @@ func (o *PatchedCustomLinkRequest) GetButtonClass() string {
// GetButtonClassOk returns a tuple with the ButtonClass field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedCustomLinkRequest) GetButtonClassOk() (*string, bool) {
+func (o *PatchedCustomLinkRequest) GetButtonClassOk() (*CustomLinkButtonClass, bool) {
if o == nil || IsNil(o.ButtonClass) {
return nil, false
}
@@ -306,8 +305,8 @@ func (o *PatchedCustomLinkRequest) HasButtonClass() bool {
return false
}
-// SetButtonClass gets a reference to the given string and assigns it to the ButtonClass field.
-func (o *PatchedCustomLinkRequest) SetButtonClass(v string) {
+// SetButtonClass gets a reference to the given CustomLinkButtonClass and assigns it to the ButtonClass field.
+func (o *PatchedCustomLinkRequest) SetButtonClass(v CustomLinkButtonClass) {
o.ButtonClass = &v
}
@@ -388,10 +387,10 @@ func (o PatchedCustomLinkRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedCustomLinkRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedCustomLinkRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedCustomLinkRequest := _PatchedCustomLinkRequest{}
- err = json.Unmarshal(bytes, &varPatchedCustomLinkRequest)
+ err = json.Unmarshal(data, &varPatchedCustomLinkRequest)
if err != nil {
return err
@@ -401,7 +400,7 @@ func (o *PatchedCustomLinkRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_types")
delete(additionalProperties, "name")
delete(additionalProperties, "enabled")
diff --git a/model_patched_dashboard_request.go b/model_patched_dashboard_request.go
index b848eb182c..f5c692ab2e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedDashboardRequest{}
// PatchedDashboardRequest struct for PatchedDashboardRequest
type PatchedDashboardRequest struct {
- Layout map[string]interface{} `json:"layout,omitempty"`
- Config map[string]interface{} `json:"config,omitempty"`
+ Layout interface{} `json:"layout,omitempty"`
+ Config interface{} `json:"config,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -43,10 +43,10 @@ func NewPatchedDashboardRequestWithDefaults() *PatchedDashboardRequest {
return &this
}
-// GetLayout returns the Layout field value if set, zero value otherwise.
-func (o *PatchedDashboardRequest) GetLayout() map[string]interface{} {
- if o == nil || IsNil(o.Layout) {
- var ret map[string]interface{}
+// GetLayout returns the Layout field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedDashboardRequest) GetLayout() interface{} {
+ if o == nil {
+ var ret interface{}
return ret
}
return o.Layout
@@ -54,31 +54,32 @@ func (o *PatchedDashboardRequest) GetLayout() map[string]interface{} {
// GetLayoutOk returns a tuple with the Layout field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedDashboardRequest) GetLayoutOk() (map[string]interface{}, bool) {
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedDashboardRequest) GetLayoutOk() (*interface{}, bool) {
if o == nil || IsNil(o.Layout) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Layout, true
+ return &o.Layout, true
}
// HasLayout returns a boolean if a field has been set.
func (o *PatchedDashboardRequest) HasLayout() bool {
- if o != nil && !IsNil(o.Layout) {
+ if o != nil && IsNil(o.Layout) {
return true
}
return false
}
-// SetLayout gets a reference to the given map[string]interface{} and assigns it to the Layout field.
-func (o *PatchedDashboardRequest) SetLayout(v map[string]interface{}) {
+// SetLayout gets a reference to the given interface{} and assigns it to the Layout field.
+func (o *PatchedDashboardRequest) SetLayout(v interface{}) {
o.Layout = v
}
-// GetConfig returns the Config field value if set, zero value otherwise.
-func (o *PatchedDashboardRequest) GetConfig() map[string]interface{} {
- if o == nil || IsNil(o.Config) {
- var ret map[string]interface{}
+// GetConfig returns the Config field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedDashboardRequest) GetConfig() interface{} {
+ if o == nil {
+ var ret interface{}
return ret
}
return o.Config
@@ -86,24 +87,25 @@ func (o *PatchedDashboardRequest) GetConfig() map[string]interface{} {
// GetConfigOk returns a tuple with the Config field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedDashboardRequest) GetConfigOk() (map[string]interface{}, bool) {
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedDashboardRequest) GetConfigOk() (*interface{}, bool) {
if o == nil || IsNil(o.Config) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Config, true
+ return &o.Config, true
}
// HasConfig returns a boolean if a field has been set.
func (o *PatchedDashboardRequest) HasConfig() bool {
- if o != nil && !IsNil(o.Config) {
+ if o != nil && IsNil(o.Config) {
return true
}
return false
}
-// SetConfig gets a reference to the given map[string]interface{} and assigns it to the Config field.
-func (o *PatchedDashboardRequest) SetConfig(v map[string]interface{}) {
+// SetConfig gets a reference to the given interface{} and assigns it to the Config field.
+func (o *PatchedDashboardRequest) SetConfig(v interface{}) {
o.Config = v
}
@@ -117,10 +119,10 @@ func (o PatchedDashboardRequest) MarshalJSON() ([]byte, error) {
func (o PatchedDashboardRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Layout) {
+ if o.Layout != nil {
toSerialize["layout"] = o.Layout
}
- if !IsNil(o.Config) {
+ if o.Config != nil {
toSerialize["config"] = o.Config
}
@@ -131,10 +133,10 @@ func (o PatchedDashboardRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedDashboardRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedDashboardRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedDashboardRequest := _PatchedDashboardRequest{}
- err = json.Unmarshal(bytes, &varPatchedDashboardRequest)
+ err = json.Unmarshal(data, &varPatchedDashboardRequest)
if err != nil {
return err
@@ -144,7 +146,7 @@ func (o *PatchedDashboardRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "layout")
delete(additionalProperties, "config")
o.AdditionalProperties = additionalProperties
diff --git a/model_patched_fhrp_group_request.go b/model_patched_fhrp_group_request.go
index 0b0741a6f4..f7d73b5181 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,10 @@ var _ MappedNullable = &PatchedFHRPGroupRequest{}
// PatchedFHRPGroupRequest Adds support for custom fields and tags.
type PatchedFHRPGroupRequest struct {
- Name *string `json:"name,omitempty"`
- // * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other
- Protocol *string `json:"protocol,omitempty"`
- GroupId *int32 `json:"group_id,omitempty"`
- // * `plaintext` - Plaintext * `md5` - MD5
- AuthType *string `json:"auth_type,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Protocol *FHRPGroupProtocol `json:"protocol,omitempty"`
+ GroupId *int32 `json:"group_id,omitempty"`
+ AuthType *AuthenticationType `json:"auth_type,omitempty"`
AuthKey *string `json:"auth_key,omitempty"`
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
@@ -85,9 +83,9 @@ func (o *PatchedFHRPGroupRequest) SetName(v string) {
}
// GetProtocol returns the Protocol field value if set, zero value otherwise.
-func (o *PatchedFHRPGroupRequest) GetProtocol() string {
+func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol {
if o == nil || IsNil(o.Protocol) {
- var ret string
+ var ret FHRPGroupProtocol
return ret
}
return *o.Protocol
@@ -95,7 +93,7 @@ func (o *PatchedFHRPGroupRequest) GetProtocol() string {
// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*string, bool) {
+func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) {
if o == nil || IsNil(o.Protocol) {
return nil, false
}
@@ -111,8 +109,8 @@ func (o *PatchedFHRPGroupRequest) HasProtocol() bool {
return false
}
-// SetProtocol gets a reference to the given string and assigns it to the Protocol field.
-func (o *PatchedFHRPGroupRequest) SetProtocol(v string) {
+// SetProtocol gets a reference to the given FHRPGroupProtocol and assigns it to the Protocol field.
+func (o *PatchedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) {
o.Protocol = &v
}
@@ -149,9 +147,9 @@ func (o *PatchedFHRPGroupRequest) SetGroupId(v int32) {
}
// GetAuthType returns the AuthType field value if set, zero value otherwise.
-func (o *PatchedFHRPGroupRequest) GetAuthType() string {
+func (o *PatchedFHRPGroupRequest) GetAuthType() AuthenticationType {
if o == nil || IsNil(o.AuthType) {
- var ret string
+ var ret AuthenticationType
return ret
}
return *o.AuthType
@@ -159,7 +157,7 @@ func (o *PatchedFHRPGroupRequest) GetAuthType() string {
// 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 *PatchedFHRPGroupRequest) GetAuthTypeOk() (*string, bool) {
+func (o *PatchedFHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool) {
if o == nil || IsNil(o.AuthType) {
return nil, false
}
@@ -175,8 +173,8 @@ func (o *PatchedFHRPGroupRequest) HasAuthType() bool {
return false
}
-// SetAuthType gets a reference to the given string and assigns it to the AuthType field.
-func (o *PatchedFHRPGroupRequest) SetAuthType(v string) {
+// SetAuthType gets a reference to the given AuthenticationType and assigns it to the AuthType field.
+func (o *PatchedFHRPGroupRequest) SetAuthType(v AuthenticationType) {
o.AuthType = &v
}
@@ -385,10 +383,10 @@ func (o PatchedFHRPGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedFHRPGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedFHRPGroupRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedFHRPGroupRequest := _PatchedFHRPGroupRequest{}
- err = json.Unmarshal(bytes, &varPatchedFHRPGroupRequest)
+ err = json.Unmarshal(data, &varPatchedFHRPGroupRequest)
if err != nil {
return err
@@ -398,7 +396,7 @@ func (o *PatchedFHRPGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "protocol")
delete(additionalProperties, "group_id")
diff --git a/model_patched_group_request.go b/model_patched_group_request.go
index c546d00f1e..507e74614e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -95,10 +95,10 @@ func (o PatchedGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedGroupRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedGroupRequest := _PatchedGroupRequest{}
- err = json.Unmarshal(bytes, &varPatchedGroupRequest)
+ err = json.Unmarshal(data, &varPatchedGroupRequest)
if err != nil {
return err
@@ -108,7 +108,7 @@ func (o *PatchedGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_patched_image_attachment_request.go b/model_patched_image_attachment_request.go
index fbe5c96503..1b781cf361 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -276,10 +276,10 @@ func (o PatchedImageAttachmentRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedImageAttachmentRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedImageAttachmentRequest := _PatchedImageAttachmentRequest{}
- err = json.Unmarshal(bytes, &varPatchedImageAttachmentRequest)
+ err = json.Unmarshal(data, &varPatchedImageAttachmentRequest)
if err != nil {
return err
@@ -289,7 +289,7 @@ func (o *PatchedImageAttachmentRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "name")
diff --git a/model_patched_inventory_item_role_request.go b/model_patched_inventory_item_role_request.go
index 54e685e1c2..1e3df6a561 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -275,10 +275,10 @@ func (o PatchedInventoryItemRoleRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedInventoryItemRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedInventoryItemRoleRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedInventoryItemRoleRequest := _PatchedInventoryItemRoleRequest{}
- err = json.Unmarshal(bytes, &varPatchedInventoryItemRoleRequest)
+ err = json.Unmarshal(data, &varPatchedInventoryItemRoleRequest)
if err != nil {
return err
@@ -288,7 +288,7 @@ func (o *PatchedInventoryItemRoleRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "color")
diff --git a/model_patched_manufacturer_request.go b/model_patched_manufacturer_request.go
index 72c7481a90..90ee99b5ee 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -239,10 +239,10 @@ func (o PatchedManufacturerRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedManufacturerRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedManufacturerRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedManufacturerRequest := _PatchedManufacturerRequest{}
- err = json.Unmarshal(bytes, &varPatchedManufacturerRequest)
+ err = json.Unmarshal(data, &varPatchedManufacturerRequest)
if err != nil {
return err
@@ -252,7 +252,7 @@ func (o *PatchedManufacturerRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "description")
diff --git a/model_patched_rack_role_request.go b/model_patched_rack_role_request.go
index 01b67acd38..be0fda055a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -275,10 +275,10 @@ func (o PatchedRackRoleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedRackRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedRackRoleRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedRackRoleRequest := _PatchedRackRoleRequest{}
- err = json.Unmarshal(bytes, &varPatchedRackRoleRequest)
+ err = json.Unmarshal(data, &varPatchedRackRoleRequest)
if err != nil {
return err
@@ -288,7 +288,7 @@ func (o *PatchedRackRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "color")
diff --git a/model_patched_rir_request.go b/model_patched_rir_request.go
index 5ffde4558a..d76e8fe8c9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -276,10 +276,10 @@ func (o PatchedRIRRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedRIRRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedRIRRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedRIRRequest := _PatchedRIRRequest{}
- err = json.Unmarshal(bytes, &varPatchedRIRRequest)
+ err = json.Unmarshal(data, &varPatchedRIRRequest)
if err != nil {
return err
@@ -289,7 +289,7 @@ func (o *PatchedRIRRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "is_private")
diff --git a/model_patched_role_request.go b/model_patched_role_request.go
index 7a173c9ee3..65d5f54790 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -275,10 +275,10 @@ func (o PatchedRoleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedRoleRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedRoleRequest := _PatchedRoleRequest{}
- err = json.Unmarshal(bytes, &varPatchedRoleRequest)
+ err = json.Unmarshal(data, &varPatchedRoleRequest)
if err != nil {
return err
@@ -288,7 +288,7 @@ func (o *PatchedRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "weight")
diff --git a/model_patched_saved_filter_request.go b/model_patched_saved_filter_request.go
index 79f47683b5..b7cd1d0959 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedSavedFilterRequest{}
// PatchedSavedFilterRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedSavedFilterRequest struct {
- ContentTypes []string `json:"content_types,omitempty"`
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty"`
- Description *string `json:"description,omitempty"`
- User NullableInt32 `json:"user,omitempty"`
- Weight *int32 `json:"weight,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- Shared *bool `json:"shared,omitempty"`
- Parameters map[string]interface{} `json:"parameters,omitempty"`
+ ContentTypes []string `json:"content_types,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty"`
+ Description *string `json:"description,omitempty"`
+ User NullableInt32 `json:"user,omitempty"`
+ Weight *int32 `json:"weight,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Shared *bool `json:"shared,omitempty"`
+ Parameters interface{} `json:"parameters,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -317,10 +317,10 @@ func (o *PatchedSavedFilterRequest) SetShared(v bool) {
o.Shared = &v
}
-// GetParameters returns the Parameters field value if set, zero value otherwise.
-func (o *PatchedSavedFilterRequest) GetParameters() map[string]interface{} {
- if o == nil || IsNil(o.Parameters) {
- var ret map[string]interface{}
+// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedSavedFilterRequest) GetParameters() interface{} {
+ if o == nil {
+ var ret interface{}
return ret
}
return o.Parameters
@@ -328,24 +328,25 @@ func (o *PatchedSavedFilterRequest) GetParameters() map[string]interface{} {
// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedSavedFilterRequest) GetParametersOk() (map[string]interface{}, bool) {
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedSavedFilterRequest) GetParametersOk() (*interface{}, bool) {
if o == nil || IsNil(o.Parameters) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Parameters, true
+ return &o.Parameters, true
}
// HasParameters returns a boolean if a field has been set.
func (o *PatchedSavedFilterRequest) HasParameters() bool {
- if o != nil && !IsNil(o.Parameters) {
+ if o != nil && IsNil(o.Parameters) {
return true
}
return false
}
-// SetParameters gets a reference to the given map[string]interface{} and assigns it to the Parameters field.
-func (o *PatchedSavedFilterRequest) SetParameters(v map[string]interface{}) {
+// SetParameters gets a reference to the given interface{} and assigns it to the Parameters field.
+func (o *PatchedSavedFilterRequest) SetParameters(v interface{}) {
o.Parameters = v
}
@@ -383,7 +384,7 @@ func (o PatchedSavedFilterRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Shared) {
toSerialize["shared"] = o.Shared
}
- if !IsNil(o.Parameters) {
+ if o.Parameters != nil {
toSerialize["parameters"] = o.Parameters
}
@@ -394,10 +395,10 @@ func (o PatchedSavedFilterRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedSavedFilterRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedSavedFilterRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedSavedFilterRequest := _PatchedSavedFilterRequest{}
- err = json.Unmarshal(bytes, &varPatchedSavedFilterRequest)
+ err = json.Unmarshal(data, &varPatchedSavedFilterRequest)
if err != nil {
return err
@@ -407,7 +408,7 @@ func (o *PatchedSavedFilterRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_types")
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
diff --git a/model_patched_tag_request.go b/model_patched_tag_request.go
index d6b237a464..9a33cbad20 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -239,10 +239,10 @@ func (o PatchedTagRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedTagRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedTagRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedTagRequest := _PatchedTagRequest{}
- err = json.Unmarshal(bytes, &varPatchedTagRequest)
+ err = json.Unmarshal(data, &varPatchedTagRequest)
if err != nil {
return err
@@ -252,7 +252,7 @@ func (o *PatchedTagRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "color")
diff --git a/model_patched_tunnel_group_request.go b/model_patched_tunnel_group_request.go
new file mode 100644
index 0000000000..98fb5ea11a
--- /dev/null
+++ b/model_patched_tunnel_group_request.go
@@ -0,0 +1,301 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PatchedTunnelGroupRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedTunnelGroupRequest{}
+
+// PatchedTunnelGroupRequest Adds support for custom fields and tags.
+type PatchedTunnelGroupRequest struct {
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedTunnelGroupRequest PatchedTunnelGroupRequest
+
+// NewPatchedTunnelGroupRequest instantiates a new PatchedTunnelGroupRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPatchedTunnelGroupRequest() *PatchedTunnelGroupRequest {
+ this := PatchedTunnelGroupRequest{}
+ return &this
+}
+
+// NewPatchedTunnelGroupRequestWithDefaults instantiates a new PatchedTunnelGroupRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPatchedTunnelGroupRequestWithDefaults() *PatchedTunnelGroupRequest {
+ this := PatchedTunnelGroupRequest{}
+ return &this
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) SetName(v string) {
+ o.Name = &v
+}
+
+// GetSlug returns the Slug field value if set, zero value otherwise.
+func (o *PatchedTunnelGroupRequest) GetSlug() string {
+ if o == nil || IsNil(o.Slug) {
+ var ret string
+ return ret
+ }
+ return *o.Slug
+}
+
+// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedTunnelGroupRequest) GetSlugOk() (*string, bool) {
+ if o == nil || IsNil(o.Slug) {
+ return nil, false
+ }
+ return o.Slug, true
+}
+
+// HasSlug returns a boolean if a field has been set.
+func (o *PatchedTunnelGroupRequest) HasSlug() bool {
+ if o != nil && !IsNil(o.Slug) {
+ return true
+ }
+
+ return false
+}
+
+// SetSlug gets a reference to the given string and assigns it to the Slug field.
+func (o *PatchedTunnelGroupRequest) SetSlug(v string) {
+ o.Slug = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) 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 *PatchedTunnelGroupRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o PatchedTunnelGroupRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedTunnelGroupRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Slug) {
+ toSerialize["slug"] = o.Slug
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !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 *PatchedTunnelGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedTunnelGroupRequest := _PatchedTunnelGroupRequest{}
+
+ err = json.Unmarshal(data, &varPatchedTunnelGroupRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedTunnelGroupRequest(varPatchedTunnelGroupRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "slug")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePatchedTunnelGroupRequest struct {
+ value *PatchedTunnelGroupRequest
+ isSet bool
+}
+
+func (v NullablePatchedTunnelGroupRequest) Get() *PatchedTunnelGroupRequest {
+ return v.value
+}
+
+func (v *NullablePatchedTunnelGroupRequest) Set(val *PatchedTunnelGroupRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedTunnelGroupRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedTunnelGroupRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedTunnelGroupRequest(val *PatchedTunnelGroupRequest) *NullablePatchedTunnelGroupRequest {
+ return &NullablePatchedTunnelGroupRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedTunnelGroupRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedTunnelGroupRequest) 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 57467ada84..98466c89b9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -407,10 +407,10 @@ func (o PatchedVLANGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedVLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedVLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedVLANGroupRequest := _PatchedVLANGroupRequest{}
- err = json.Unmarshal(bytes, &varPatchedVLANGroupRequest)
+ err = json.Unmarshal(data, &varPatchedVLANGroupRequest)
if err != nil {
return err
@@ -420,7 +420,7 @@ func (o *PatchedVLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "scope_type")
diff --git a/model_patched_webhook_request.go b/model_patched_webhook_request.go
index 01e1112af3..03b2cabd17 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,23 +19,11 @@ var _ MappedNullable = &PatchedWebhookRequest{}
// PatchedWebhookRequest Adds support for custom fields and tags.
type PatchedWebhookRequest struct {
- ContentTypes []string `json:"content_types,omitempty"`
- Name *string `json:"name,omitempty"`
- // Triggers when a matching object is created.
- TypeCreate *bool `json:"type_create,omitempty"`
- // Triggers when a matching object is updated.
- TypeUpdate *bool `json:"type_update,omitempty"`
- // Triggers when a matching object is deleted.
- TypeDelete *bool `json:"type_delete,omitempty"`
- // Triggers when a job for a matching object is started.
- TypeJobStart *bool `json:"type_job_start,omitempty"`
- // Triggers when a job for a matching object terminates.
- TypeJobEnd *bool `json:"type_job_end,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
// This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body.
- PayloadUrl *string `json:"payload_url,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- // * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE
- HttpMethod *string `json:"http_method,omitempty"`
+ PayloadUrl *string `json:"payload_url,omitempty"`
+ HttpMethod *PatchedWebhookRequestHttpMethod `json:"http_method,omitempty"`
// The complete list of official content types is available here.
HttpContentType *string `json:"http_content_type,omitempty"`
// User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format Name: Value
. Jinja2 template processing is supported with the same context as the request body (below).
@@ -44,8 +32,6 @@ type PatchedWebhookRequest struct {
BodyTemplate *string `json:"body_template,omitempty"`
// When provided, the request will include a X-Hook-Signature
header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request.
Secret *string `json:"secret,omitempty"`
- // A set of conditions which determine whether the webhook will be generated.
- Conditions map[string]interface{} `json:"conditions,omitempty"`
// Enable SSL certificate verification. Disable with caution!
SslVerification *bool `json:"ssl_verification,omitempty"`
// The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults.
@@ -74,38 +60,6 @@ func NewPatchedWebhookRequestWithDefaults() *PatchedWebhookRequest {
return &this
}
-// GetContentTypes returns the ContentTypes field value if set, zero value otherwise.
-func (o *PatchedWebhookRequest) GetContentTypes() []string {
- if o == nil || IsNil(o.ContentTypes) {
- var ret []string
- return ret
- }
- return o.ContentTypes
-}
-
-// GetContentTypesOk returns a tuple with the ContentTypes field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *PatchedWebhookRequest) GetContentTypesOk() ([]string, bool) {
- if o == nil || IsNil(o.ContentTypes) {
- return nil, false
- }
- return o.ContentTypes, true
-}
-
-// HasContentTypes returns a boolean if a field has been set.
-func (o *PatchedWebhookRequest) HasContentTypes() bool {
- if o != nil && !IsNil(o.ContentTypes) {
- return true
- }
-
- return false
-}
-
-// SetContentTypes gets a reference to the given []string and assigns it to the ContentTypes field.
-func (o *PatchedWebhookRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
-}
-
// GetName returns the Name field value if set, zero value otherwise.
func (o *PatchedWebhookRequest) GetName() string {
if o == nil || IsNil(o.Name) {
@@ -138,164 +92,36 @@ func (o *PatchedWebhookRequest) SetName(v string) {
o.Name = &v
}
-// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise.
-func (o *PatchedWebhookRequest) GetTypeCreate() bool {
- if o == nil || IsNil(o.TypeCreate) {
- var ret bool
- return ret
- }
- return *o.TypeCreate
-}
-
-// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *PatchedWebhookRequest) GetTypeCreateOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeCreate) {
- return nil, false
- }
- return o.TypeCreate, true
-}
-
-// HasTypeCreate returns a boolean if a field has been set.
-func (o *PatchedWebhookRequest) HasTypeCreate() bool {
- if o != nil && !IsNil(o.TypeCreate) {
- return true
- }
-
- return false
-}
-
-// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field.
-func (o *PatchedWebhookRequest) SetTypeCreate(v bool) {
- o.TypeCreate = &v
-}
-
-// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise.
-func (o *PatchedWebhookRequest) GetTypeUpdate() bool {
- if o == nil || IsNil(o.TypeUpdate) {
- var ret bool
- return ret
- }
- return *o.TypeUpdate
-}
-
-// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *PatchedWebhookRequest) GetTypeUpdateOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeUpdate) {
- return nil, false
- }
- return o.TypeUpdate, true
-}
-
-// HasTypeUpdate returns a boolean if a field has been set.
-func (o *PatchedWebhookRequest) HasTypeUpdate() bool {
- if o != nil && !IsNil(o.TypeUpdate) {
- return true
- }
-
- return false
-}
-
-// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field.
-func (o *PatchedWebhookRequest) SetTypeUpdate(v bool) {
- o.TypeUpdate = &v
-}
-
-// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise.
-func (o *PatchedWebhookRequest) GetTypeDelete() bool {
- if o == nil || IsNil(o.TypeDelete) {
- var ret bool
- return ret
- }
- return *o.TypeDelete
-}
-
-// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *PatchedWebhookRequest) GetTypeDeleteOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeDelete) {
- return nil, false
- }
- return o.TypeDelete, true
-}
-
-// HasTypeDelete returns a boolean if a field has been set.
-func (o *PatchedWebhookRequest) HasTypeDelete() bool {
- if o != nil && !IsNil(o.TypeDelete) {
- return true
- }
-
- return false
-}
-
-// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field.
-func (o *PatchedWebhookRequest) SetTypeDelete(v bool) {
- o.TypeDelete = &v
-}
-
-// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise.
-func (o *PatchedWebhookRequest) GetTypeJobStart() bool {
- if o == nil || IsNil(o.TypeJobStart) {
- var ret bool
- return ret
- }
- return *o.TypeJobStart
-}
-
-// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *PatchedWebhookRequest) GetTypeJobStartOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeJobStart) {
- return nil, false
- }
- return o.TypeJobStart, true
-}
-
-// HasTypeJobStart returns a boolean if a field has been set.
-func (o *PatchedWebhookRequest) HasTypeJobStart() bool {
- if o != nil && !IsNil(o.TypeJobStart) {
- return true
- }
-
- return false
-}
-
-// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field.
-func (o *PatchedWebhookRequest) SetTypeJobStart(v bool) {
- o.TypeJobStart = &v
-}
-
-// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise.
-func (o *PatchedWebhookRequest) GetTypeJobEnd() bool {
- if o == nil || IsNil(o.TypeJobEnd) {
- var ret bool
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedWebhookRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
return ret
}
- return *o.TypeJobEnd
+ return *o.Description
}
-// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise
+// 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 *PatchedWebhookRequest) GetTypeJobEndOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeJobEnd) {
+func (o *PatchedWebhookRequest) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
return nil, false
}
- return o.TypeJobEnd, true
+ return o.Description, true
}
-// HasTypeJobEnd returns a boolean if a field has been set.
-func (o *PatchedWebhookRequest) HasTypeJobEnd() bool {
- if o != nil && !IsNil(o.TypeJobEnd) {
+// HasDescription returns a boolean if a field has been set.
+func (o *PatchedWebhookRequest) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
return true
}
return false
}
-// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field.
-func (o *PatchedWebhookRequest) SetTypeJobEnd(v bool) {
- o.TypeJobEnd = &v
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *PatchedWebhookRequest) SetDescription(v string) {
+ o.Description = &v
}
// GetPayloadUrl returns the PayloadUrl field value if set, zero value otherwise.
@@ -330,42 +156,10 @@ func (o *PatchedWebhookRequest) SetPayloadUrl(v string) {
o.PayloadUrl = &v
}
-// GetEnabled returns the Enabled field value if set, zero value otherwise.
-func (o *PatchedWebhookRequest) 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 *PatchedWebhookRequest) 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 *PatchedWebhookRequest) 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 *PatchedWebhookRequest) SetEnabled(v bool) {
- o.Enabled = &v
-}
-
// GetHttpMethod returns the HttpMethod field value if set, zero value otherwise.
-func (o *PatchedWebhookRequest) GetHttpMethod() string {
+func (o *PatchedWebhookRequest) GetHttpMethod() PatchedWebhookRequestHttpMethod {
if o == nil || IsNil(o.HttpMethod) {
- var ret string
+ var ret PatchedWebhookRequestHttpMethod
return ret
}
return *o.HttpMethod
@@ -373,7 +167,7 @@ func (o *PatchedWebhookRequest) GetHttpMethod() string {
// GetHttpMethodOk returns a tuple with the HttpMethod field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWebhookRequest) GetHttpMethodOk() (*string, bool) {
+func (o *PatchedWebhookRequest) GetHttpMethodOk() (*PatchedWebhookRequestHttpMethod, bool) {
if o == nil || IsNil(o.HttpMethod) {
return nil, false
}
@@ -389,8 +183,8 @@ func (o *PatchedWebhookRequest) HasHttpMethod() bool {
return false
}
-// SetHttpMethod gets a reference to the given string and assigns it to the HttpMethod field.
-func (o *PatchedWebhookRequest) SetHttpMethod(v string) {
+// SetHttpMethod gets a reference to the given PatchedWebhookRequestHttpMethod and assigns it to the HttpMethod field.
+func (o *PatchedWebhookRequest) SetHttpMethod(v PatchedWebhookRequestHttpMethod) {
o.HttpMethod = &v
}
@@ -522,39 +316,6 @@ func (o *PatchedWebhookRequest) SetSecret(v string) {
o.Secret = &v
}
-// GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWebhookRequest) GetConditions() map[string]interface{} {
- if o == nil {
- var ret map[string]interface{}
- return ret
- }
- return o.Conditions
-}
-
-// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWebhookRequest) GetConditionsOk() (map[string]interface{}, bool) {
- if o == nil || IsNil(o.Conditions) {
- return map[string]interface{}{}, false
- }
- return o.Conditions, true
-}
-
-// HasConditions returns a boolean if a field has been set.
-func (o *PatchedWebhookRequest) HasConditions() bool {
- if o != nil && IsNil(o.Conditions) {
- return true
- }
-
- return false
-}
-
-// SetConditions gets a reference to the given map[string]interface{} and assigns it to the Conditions field.
-func (o *PatchedWebhookRequest) SetConditions(v map[string]interface{}) {
- o.Conditions = v
-}
-
// GetSslVerification returns the SslVerification field value if set, zero value otherwise.
func (o *PatchedWebhookRequest) GetSslVerification() bool {
if o == nil || IsNil(o.SslVerification) {
@@ -704,33 +465,15 @@ func (o PatchedWebhookRequest) MarshalJSON() ([]byte, error) {
func (o PatchedWebhookRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.ContentTypes) {
- toSerialize["content_types"] = o.ContentTypes
- }
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
- if !IsNil(o.TypeCreate) {
- toSerialize["type_create"] = o.TypeCreate
- }
- if !IsNil(o.TypeUpdate) {
- toSerialize["type_update"] = o.TypeUpdate
- }
- if !IsNil(o.TypeDelete) {
- toSerialize["type_delete"] = o.TypeDelete
- }
- if !IsNil(o.TypeJobStart) {
- toSerialize["type_job_start"] = o.TypeJobStart
- }
- if !IsNil(o.TypeJobEnd) {
- toSerialize["type_job_end"] = o.TypeJobEnd
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
}
if !IsNil(o.PayloadUrl) {
toSerialize["payload_url"] = o.PayloadUrl
}
- if !IsNil(o.Enabled) {
- toSerialize["enabled"] = o.Enabled
- }
if !IsNil(o.HttpMethod) {
toSerialize["http_method"] = o.HttpMethod
}
@@ -746,9 +489,6 @@ func (o PatchedWebhookRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Secret) {
toSerialize["secret"] = o.Secret
}
- if o.Conditions != nil {
- toSerialize["conditions"] = o.Conditions
- }
if !IsNil(o.SslVerification) {
toSerialize["ssl_verification"] = o.SslVerification
}
@@ -769,10 +509,10 @@ func (o PatchedWebhookRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWebhookRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWebhookRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWebhookRequest := _PatchedWebhookRequest{}
- err = json.Unmarshal(bytes, &varPatchedWebhookRequest)
+ err = json.Unmarshal(data, &varPatchedWebhookRequest)
if err != nil {
return err
@@ -782,22 +522,15 @@ func (o *PatchedWebhookRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
- delete(additionalProperties, "type_create")
- delete(additionalProperties, "type_update")
- delete(additionalProperties, "type_delete")
- delete(additionalProperties, "type_job_start")
- delete(additionalProperties, "type_job_end")
+ delete(additionalProperties, "description")
delete(additionalProperties, "payload_url")
- delete(additionalProperties, "enabled")
delete(additionalProperties, "http_method")
delete(additionalProperties, "http_content_type")
delete(additionalProperties, "additional_headers")
delete(additionalProperties, "body_template")
delete(additionalProperties, "secret")
- delete(additionalProperties, "conditions")
delete(additionalProperties, "ssl_verification")
delete(additionalProperties, "ca_file_path")
delete(additionalProperties, "custom_fields")
diff --git a/model_patched_webhook_request_http_method.go b/model_patched_webhook_request_http_method.go
new file mode 100644
index 0000000000..1fb7c84eba
--- /dev/null
+++ b/model_patched_webhook_request_http_method.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWebhookRequestHttpMethod * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE
+type PatchedWebhookRequestHttpMethod string
+
+// List of PatchedWebhookRequest_http_method
+const (
+ PATCHEDWEBHOOKREQUESTHTTPMETHOD_GET PatchedWebhookRequestHttpMethod = "GET"
+ PATCHEDWEBHOOKREQUESTHTTPMETHOD_POST PatchedWebhookRequestHttpMethod = "POST"
+ PATCHEDWEBHOOKREQUESTHTTPMETHOD_PUT PatchedWebhookRequestHttpMethod = "PUT"
+ PATCHEDWEBHOOKREQUESTHTTPMETHOD_PATCH PatchedWebhookRequestHttpMethod = "PATCH"
+ PATCHEDWEBHOOKREQUESTHTTPMETHOD_DELETE PatchedWebhookRequestHttpMethod = "DELETE"
+)
+
+// All allowed values of PatchedWebhookRequestHttpMethod enum
+var AllowedPatchedWebhookRequestHttpMethodEnumValues = []PatchedWebhookRequestHttpMethod{
+ "GET",
+ "POST",
+ "PUT",
+ "PATCH",
+ "DELETE",
+}
+
+func (v *PatchedWebhookRequestHttpMethod) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWebhookRequestHttpMethod(value)
+ for _, existing := range AllowedPatchedWebhookRequestHttpMethodEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWebhookRequestHttpMethod", value)
+}
+
+// NewPatchedWebhookRequestHttpMethodFromValue returns a pointer to a valid PatchedWebhookRequestHttpMethod
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWebhookRequestHttpMethodFromValue(v string) (*PatchedWebhookRequestHttpMethod, error) {
+ ev := PatchedWebhookRequestHttpMethod(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWebhookRequestHttpMethod: valid values are %v", v, AllowedPatchedWebhookRequestHttpMethodEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWebhookRequestHttpMethod) IsValid() bool {
+ for _, existing := range AllowedPatchedWebhookRequestHttpMethodEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWebhookRequest_http_method value
+func (v PatchedWebhookRequestHttpMethod) Ptr() *PatchedWebhookRequestHttpMethod {
+ return &v
+}
+
+type NullablePatchedWebhookRequestHttpMethod struct {
+ value *PatchedWebhookRequestHttpMethod
+ isSet bool
+}
+
+func (v NullablePatchedWebhookRequestHttpMethod) Get() *PatchedWebhookRequestHttpMethod {
+ return v.value
+}
+
+func (v *NullablePatchedWebhookRequestHttpMethod) Set(val *PatchedWebhookRequestHttpMethod) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWebhookRequestHttpMethod) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWebhookRequestHttpMethod) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWebhookRequestHttpMethod(val *PatchedWebhookRequestHttpMethod) *NullablePatchedWebhookRequestHttpMethod {
+ return &NullablePatchedWebhookRequestHttpMethod{value: val, isSet: true}
+}
+
+func (v NullablePatchedWebhookRequestHttpMethod) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWebhookRequestHttpMethod) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_aggregate_request.go b/model_patched_writable_aggregate_request.go
index f4ed9bfc6c..287a3b48cb 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -370,10 +370,10 @@ func (o PatchedWritableAggregateRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableAggregateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableAggregateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableAggregateRequest := _PatchedWritableAggregateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableAggregateRequest)
+ err = json.Unmarshal(data, &varPatchedWritableAggregateRequest)
if err != nil {
return err
@@ -383,7 +383,7 @@ func (o *PatchedWritableAggregateRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "prefix")
delete(additionalProperties, "rir")
delete(additionalProperties, "tenant")
diff --git a/model_patched_writable_asn_range_request.go b/model_patched_writable_asn_range_request.go
index 8191f64008..3dff18d052 100644
--- a/model_patched_writable_asn_range_request.go
+++ b/model_patched_writable_asn_range_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -394,10 +394,10 @@ func (o PatchedWritableASNRangeRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableASNRangeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableASNRangeRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableASNRangeRequest := _PatchedWritableASNRangeRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableASNRangeRequest)
+ err = json.Unmarshal(data, &varPatchedWritableASNRangeRequest)
if err != nil {
return err
@@ -407,7 +407,7 @@ func (o *PatchedWritableASNRangeRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "rir")
diff --git a/model_patched_writable_asn_request.go b/model_patched_writable_asn_request.go
index b917aebc2b..4af156e480 100644
--- a/model_patched_writable_asn_request.go
+++ b/model_patched_writable_asn_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -324,10 +324,10 @@ func (o PatchedWritableASNRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableASNRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableASNRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableASNRequest := _PatchedWritableASNRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableASNRequest)
+ err = json.Unmarshal(data, &varPatchedWritableASNRequest)
if err != nil {
return err
@@ -337,7 +337,7 @@ func (o *PatchedWritableASNRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "asn")
delete(additionalProperties, "rir")
delete(additionalProperties, "tenant")
diff --git a/model_patched_writable_bookmark_request.go b/model_patched_writable_bookmark_request.go
index 60d5824a51..596bbb0e59 100644
--- a/model_patched_writable_bookmark_request.go
+++ b/model_patched_writable_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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -167,10 +167,10 @@ func (o PatchedWritableBookmarkRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableBookmarkRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableBookmarkRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableBookmarkRequest := _PatchedWritableBookmarkRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableBookmarkRequest)
+ err = json.Unmarshal(data, &varPatchedWritableBookmarkRequest)
if err != nil {
return err
@@ -180,7 +180,7 @@ func (o *PatchedWritableBookmarkRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "object_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "user")
diff --git a/model_patched_writable_cable_request.go b/model_patched_writable_cable_request.go
index 9d885dea93..b765754682 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,18 +19,15 @@ var _ MappedNullable = &PatchedWritableCableRequest{}
// PatchedWritableCableRequest Adds support for custom fields and tags.
type PatchedWritableCableRequest struct {
- // * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `power` - Power
- Type *string `json:"type,omitempty"`
- ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"`
- BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"`
- // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Label *string `json:"label,omitempty"`
- Color *string `json:"color,omitempty"`
- Length NullableFloat64 `json:"length,omitempty"`
- // * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches
- LengthUnit *string `json:"length_unit,omitempty"`
+ 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"`
@@ -58,9 +55,9 @@ func NewPatchedWritableCableRequestWithDefaults() *PatchedWritableCableRequest {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableCableRequest) GetType() string {
+func (o *PatchedWritableCableRequest) GetType() CableType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret CableType
return ret
}
return *o.Type
@@ -68,7 +65,7 @@ func (o *PatchedWritableCableRequest) GetType() string {
// 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() (*string, bool) {
+func (o *PatchedWritableCableRequest) GetTypeOk() (*CableType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -84,8 +81,8 @@ func (o *PatchedWritableCableRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableCableRequest) SetType(v string) {
+// SetType gets a reference to the given CableType and assigns it to the Type field.
+func (o *PatchedWritableCableRequest) SetType(v CableType) {
o.Type = &v
}
@@ -154,9 +151,9 @@ func (o *PatchedWritableCableRequest) SetBTerminations(v []GenericObjectRequest)
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableCableRequest) GetStatus() string {
+func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret CableStatusValue
return ret
}
return *o.Status
@@ -164,7 +161,7 @@ func (o *PatchedWritableCableRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *PatchedWritableCableRequest) GetStatusOk() (*CableStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -180,8 +177,8 @@ func (o *PatchedWritableCableRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableCableRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field.
+func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue) {
o.Status = &v
}
@@ -336,9 +333,9 @@ func (o *PatchedWritableCableRequest) UnsetLength() {
}
// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise.
-func (o *PatchedWritableCableRequest) GetLengthUnit() string {
+func (o *PatchedWritableCableRequest) GetLengthUnit() CableLengthUnitValue {
if o == nil || IsNil(o.LengthUnit) {
- var ret string
+ var ret CableLengthUnitValue
return ret
}
return *o.LengthUnit
@@ -346,7 +343,7 @@ func (o *PatchedWritableCableRequest) GetLengthUnit() string {
// 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() (*string, bool) {
+func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool) {
if o == nil || IsNil(o.LengthUnit) {
return nil, false
}
@@ -362,8 +359,8 @@ func (o *PatchedWritableCableRequest) HasLengthUnit() bool {
return false
}
-// SetLengthUnit gets a reference to the given string and assigns it to the LengthUnit field.
-func (o *PatchedWritableCableRequest) SetLengthUnit(v string) {
+// SetLengthUnit gets a reference to the given CableLengthUnitValue and assigns it to the LengthUnit field.
+func (o *PatchedWritableCableRequest) SetLengthUnit(v CableLengthUnitValue) {
o.LengthUnit = &v
}
@@ -552,10 +549,10 @@ func (o PatchedWritableCableRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableCableRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableCableRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableCableRequest := _PatchedWritableCableRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableCableRequest)
+ err = json.Unmarshal(data, &varPatchedWritableCableRequest)
if err != nil {
return err
@@ -565,7 +562,7 @@ func (o *PatchedWritableCableRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "type")
delete(additionalProperties, "a_terminations")
delete(additionalProperties, "b_terminations")
diff --git a/model_patched_writable_circuit_request.go b/model_patched_writable_circuit_request.go
index 9c5d61c0c8..8fc9f4a64a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,15 +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"`
- // * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned
- Status *string `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- InstallDate NullableString `json:"install_date,omitempty"`
- TerminationDate NullableString `json:"termination_date,omitempty"`
+ 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"`
// Committed rate
CommitRate NullableInt32 `json:"commit_rate,omitempty"`
Description *string `json:"description,omitempty"`
@@ -197,9 +196,9 @@ func (o *PatchedWritableCircuitRequest) SetType(v int32) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitRequest) GetStatus() string {
+func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret CircuitStatusValue
return ret
}
return *o.Status
@@ -207,7 +206,7 @@ func (o *PatchedWritableCircuitRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *PatchedWritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -223,8 +222,8 @@ func (o *PatchedWritableCircuitRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableCircuitRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field.
+func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue) {
o.Status = &v
}
@@ -585,10 +584,10 @@ func (o PatchedWritableCircuitRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableCircuitRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableCircuitRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableCircuitRequest := _PatchedWritableCircuitRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableCircuitRequest)
+ err = json.Unmarshal(data, &varPatchedWritableCircuitRequest)
if err != nil {
return err
@@ -598,7 +597,7 @@ func (o *PatchedWritableCircuitRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "cid")
delete(additionalProperties, "provider")
delete(additionalProperties, "provider_account")
diff --git a/model_patched_writable_circuit_termination_request.go b/model_patched_writable_circuit_termination_request.go
index 77f657e775..7db147e35c 100644
--- a/model_patched_writable_circuit_termination_request.go
+++ b/model_patched_writable_circuit_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &PatchedWritableCircuitTerminationRequest{}
// PatchedWritableCircuitTerminationRequest Adds support for custom fields and tags.
type PatchedWritableCircuitTerminationRequest struct {
- Circuit *int32 `json:"circuit,omitempty"`
- // * `A` - A * `Z` - Z
- TermSide *string `json:"term_side,omitempty"`
+ Circuit *int32 `json:"circuit,omitempty"`
+ TermSide *Termination `json:"term_side,omitempty"`
Site NullableInt32 `json:"site,omitempty"`
ProviderNetwork NullableInt32 `json:"provider_network,omitempty"`
// Physical circuit speed
@@ -92,9 +91,9 @@ func (o *PatchedWritableCircuitTerminationRequest) SetCircuit(v int32) {
}
// GetTermSide returns the TermSide field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitTerminationRequest) GetTermSide() string {
+func (o *PatchedWritableCircuitTerminationRequest) GetTermSide() Termination {
if o == nil || IsNil(o.TermSide) {
- var ret string
+ var ret Termination
return ret
}
return *o.TermSide
@@ -102,7 +101,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetTermSide() string {
// 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() (*string, bool) {
+func (o *PatchedWritableCircuitTerminationRequest) GetTermSideOk() (*Termination, bool) {
if o == nil || IsNil(o.TermSide) {
return nil, false
}
@@ -118,8 +117,8 @@ func (o *PatchedWritableCircuitTerminationRequest) HasTermSide() bool {
return false
}
-// SetTermSide gets a reference to the given string and assigns it to the TermSide field.
-func (o *PatchedWritableCircuitTerminationRequest) SetTermSide(v string) {
+// SetTermSide gets a reference to the given Termination and assigns it to the TermSide field.
+func (o *PatchedWritableCircuitTerminationRequest) SetTermSide(v Termination) {
o.TermSide = &v
}
@@ -541,10 +540,10 @@ func (o PatchedWritableCircuitTerminationRequest) ToMap() (map[string]interface{
return toSerialize, nil
}
-func (o *PatchedWritableCircuitTerminationRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableCircuitTerminationRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableCircuitTerminationRequest := _PatchedWritableCircuitTerminationRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableCircuitTerminationRequest)
+ err = json.Unmarshal(data, &varPatchedWritableCircuitTerminationRequest)
if err != nil {
return err
@@ -554,7 +553,7 @@ func (o *PatchedWritableCircuitTerminationRequest) UnmarshalJSON(bytes []byte) (
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "circuit")
delete(additionalProperties, "term_side")
delete(additionalProperties, "site")
diff --git a/model_patched_writable_cluster_request.go b/model_patched_writable_cluster_request.go
index fbd5c88301..5bb14a1f96 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,10 @@ 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"`
- // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline
- Status *string `json:"status,omitempty"`
+ 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"`
@@ -160,9 +159,9 @@ func (o *PatchedWritableClusterRequest) UnsetGroup() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableClusterRequest) GetStatus() string {
+func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret ClusterStatusValue
return ret
}
return *o.Status
@@ -170,7 +169,7 @@ func (o *PatchedWritableClusterRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *PatchedWritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -186,8 +185,8 @@ func (o *PatchedWritableClusterRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableClusterRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field.
+func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue) {
o.Status = &v
}
@@ -453,10 +452,10 @@ func (o PatchedWritableClusterRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableClusterRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableClusterRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableClusterRequest := _PatchedWritableClusterRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableClusterRequest)
+ err = json.Unmarshal(data, &varPatchedWritableClusterRequest)
if err != nil {
return err
@@ -466,7 +465,7 @@ func (o *PatchedWritableClusterRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "type")
delete(additionalProperties, "group")
diff --git a/model_patched_writable_config_context_request.go b/model_patched_writable_config_context_request.go
index 35c88c0651..1461794355 100644
--- a/model_patched_writable_config_context_request.go
+++ b/model_patched_writable_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -37,8 +37,8 @@ type PatchedWritableConfigContextRequest struct {
Tenants []int32 `json:"tenants,omitempty"`
Tags []string `json:"tags,omitempty"`
// Remote data source
- DataSource NullableInt32 `json:"data_source,omitempty"`
- Data map[string]interface{} `json:"data,omitempty"`
+ DataSource NullableInt32 `json:"data_source,omitempty"`
+ Data interface{} `json:"data,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -648,10 +648,10 @@ func (o *PatchedWritableConfigContextRequest) UnsetDataSource() {
o.DataSource.Unset()
}
-// GetData returns the Data field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetData() map[string]interface{} {
- if o == nil || IsNil(o.Data) {
- var ret map[string]interface{}
+// 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{} {
+ if o == nil {
+ var ret interface{}
return ret
}
return o.Data
@@ -659,24 +659,25 @@ func (o *PatchedWritableConfigContextRequest) GetData() map[string]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.
-func (o *PatchedWritableConfigContextRequest) GetDataOk() (map[string]interface{}, bool) {
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableConfigContextRequest) GetDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.Data) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Data, true
+ return &o.Data, true
}
// HasData returns a boolean if a field has been set.
func (o *PatchedWritableConfigContextRequest) HasData() bool {
- if o != nil && !IsNil(o.Data) {
+ if o != nil && IsNil(o.Data) {
return true
}
return false
}
-// SetData gets a reference to the given map[string]interface{} and assigns it to the Data field.
-func (o *PatchedWritableConfigContextRequest) SetData(v map[string]interface{}) {
+// SetData gets a reference to the given interface{} and assigns it to the Data field.
+func (o *PatchedWritableConfigContextRequest) SetData(v interface{}) {
o.Data = v
}
@@ -744,7 +745,7 @@ func (o PatchedWritableConfigContextRequest) ToMap() (map[string]interface{}, er
if o.DataSource.IsSet() {
toSerialize["data_source"] = o.DataSource.Get()
}
- if !IsNil(o.Data) {
+ if o.Data != nil {
toSerialize["data"] = o.Data
}
@@ -755,10 +756,10 @@ func (o PatchedWritableConfigContextRequest) ToMap() (map[string]interface{}, er
return toSerialize, nil
}
-func (o *PatchedWritableConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableConfigContextRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableConfigContextRequest := _PatchedWritableConfigContextRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableConfigContextRequest)
+ err = json.Unmarshal(data, &varPatchedWritableConfigContextRequest)
if err != nil {
return err
@@ -768,7 +769,7 @@ func (o *PatchedWritableConfigContextRequest) UnmarshalJSON(bytes []byte) (err e
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "weight")
delete(additionalProperties, "description")
diff --git a/model_patched_writable_config_template_request.go b/model_patched_writable_config_template_request.go
index 65e6e1ba6c..e28ad9e3d9 100644
--- a/model_patched_writable_config_template_request.go
+++ b/model_patched_writable_config_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,11 +22,12 @@ type PatchedWritableConfigTemplateRequest struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
// Any additional parameters to pass when constructing the Jinja2 environment.
- EnvironmentParams map[string]interface{} `json:"environment_params,omitempty"`
+ 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{}
}
@@ -115,9 +116,9 @@ func (o *PatchedWritableConfigTemplateRequest) SetDescription(v string) {
}
// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableConfigTemplateRequest) GetEnvironmentParams() map[string]interface{} {
+func (o *PatchedWritableConfigTemplateRequest) GetEnvironmentParams() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.EnvironmentParams
@@ -126,11 +127,11 @@ func (o *PatchedWritableConfigTemplateRequest) GetEnvironmentParams() map[string
// 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() (map[string]interface{}, bool) {
+func (o *PatchedWritableConfigTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool) {
if o == nil || IsNil(o.EnvironmentParams) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.EnvironmentParams, true
+ return &o.EnvironmentParams, true
}
// HasEnvironmentParams returns a boolean if a field has been set.
@@ -142,8 +143,8 @@ func (o *PatchedWritableConfigTemplateRequest) HasEnvironmentParams() bool {
return false
}
-// SetEnvironmentParams gets a reference to the given map[string]interface{} and assigns it to the EnvironmentParams field.
-func (o *PatchedWritableConfigTemplateRequest) SetEnvironmentParams(v map[string]interface{}) {
+// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field.
+func (o *PatchedWritableConfigTemplateRequest) SetEnvironmentParams(v interface{}) {
o.EnvironmentParams = v
}
@@ -222,6 +223,49 @@ 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) {
@@ -279,6 +323,9 @@ func (o PatchedWritableConfigTemplateRequest) ToMap() (map[string]interface{}, e
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
}
@@ -290,10 +337,10 @@ func (o PatchedWritableConfigTemplateRequest) ToMap() (map[string]interface{}, e
return toSerialize, nil
}
-func (o *PatchedWritableConfigTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableConfigTemplateRequest := _PatchedWritableConfigTemplateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableConfigTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedWritableConfigTemplateRequest)
if err != nil {
return err
@@ -303,12 +350,13 @@ func (o *PatchedWritableConfigTemplateRequest) UnmarshalJSON(bytes []byte) (err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ 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
}
diff --git a/model_patched_writable_console_port_request.go b/model_patched_writable_console_port_request.go
index 9fbf29731a..b4858b789a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -23,12 +23,10 @@ type PatchedWritableConsolePortRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
- Type *string `json:"type,omitempty"`
- // Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps
- Speed NullableInt32 `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"`
+ Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -195,9 +193,9 @@ func (o *PatchedWritableConsolePortRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableConsolePortRequest) GetType() string {
+func (o *PatchedWritableConsolePortRequest) GetType() PatchedWritableConsolePortRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritableConsolePortRequestType
return ret
}
return *o.Type
@@ -205,7 +203,7 @@ func (o *PatchedWritableConsolePortRequest) GetType() string {
// 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 *PatchedWritableConsolePortRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritableConsolePortRequest) GetTypeOk() (*PatchedWritableConsolePortRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -221,15 +219,15 @@ func (o *PatchedWritableConsolePortRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableConsolePortRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritableConsolePortRequestType and assigns it to the Type field.
+func (o *PatchedWritableConsolePortRequest) SetType(v PatchedWritableConsolePortRequestType) {
o.Type = &v
}
// GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableConsolePortRequest) GetSpeed() int32 {
+func (o *PatchedWritableConsolePortRequest) GetSpeed() PatchedWritableConsolePortRequestSpeed {
if o == nil || IsNil(o.Speed.Get()) {
- var ret int32
+ var ret PatchedWritableConsolePortRequestSpeed
return ret
}
return *o.Speed.Get()
@@ -238,7 +236,7 @@ func (o *PatchedWritableConsolePortRequest) GetSpeed() int32 {
// GetSpeedOk returns a tuple with the Speed field value if set, nil otherwise
// and a 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) GetSpeedOk() (*int32, bool) {
+func (o *PatchedWritableConsolePortRequest) GetSpeedOk() (*PatchedWritableConsolePortRequestSpeed, bool) {
if o == nil {
return nil, false
}
@@ -254,8 +252,8 @@ func (o *PatchedWritableConsolePortRequest) HasSpeed() bool {
return false
}
-// SetSpeed gets a reference to the given NullableInt32 and assigns it to the Speed field.
-func (o *PatchedWritableConsolePortRequest) SetSpeed(v int32) {
+// SetSpeed gets a reference to the given NullablePatchedWritableConsolePortRequestSpeed and assigns it to the Speed field.
+func (o *PatchedWritableConsolePortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed) {
o.Speed.Set(&v)
}
@@ -445,10 +443,10 @@ func (o PatchedWritableConsolePortRequest) ToMap() (map[string]interface{}, erro
return toSerialize, nil
}
-func (o *PatchedWritableConsolePortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableConsolePortRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableConsolePortRequest := _PatchedWritableConsolePortRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableConsolePortRequest)
+ err = json.Unmarshal(data, &varPatchedWritableConsolePortRequest)
if err != nil {
return err
@@ -458,7 +456,7 @@ func (o *PatchedWritableConsolePortRequest) UnmarshalJSON(bytes []byte) (err err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_console_port_request_speed.go b/model_patched_writable_console_port_request_speed.go
new file mode 100644
index 0000000000..4daf7fbe7b
--- /dev/null
+++ b/model_patched_writable_console_port_request_speed.go
@@ -0,0 +1,122 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableConsolePortRequestSpeed 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
+type PatchedWritableConsolePortRequestSpeed int32
+
+// List of PatchedWritableConsolePortRequest_speed
+const (
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__1200 PatchedWritableConsolePortRequestSpeed = 1200
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__2400 PatchedWritableConsolePortRequestSpeed = 2400
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__4800 PatchedWritableConsolePortRequestSpeed = 4800
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__9600 PatchedWritableConsolePortRequestSpeed = 9600
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__19200 PatchedWritableConsolePortRequestSpeed = 19200
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__38400 PatchedWritableConsolePortRequestSpeed = 38400
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__57600 PatchedWritableConsolePortRequestSpeed = 57600
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__115200 PatchedWritableConsolePortRequestSpeed = 115200
+)
+
+// All allowed values of PatchedWritableConsolePortRequestSpeed enum
+var AllowedPatchedWritableConsolePortRequestSpeedEnumValues = []PatchedWritableConsolePortRequestSpeed{
+ 1200,
+ 2400,
+ 4800,
+ 9600,
+ 19200,
+ 38400,
+ 57600,
+ 115200,
+}
+
+func (v *PatchedWritableConsolePortRequestSpeed) UnmarshalJSON(src []byte) error {
+ var value int32
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableConsolePortRequestSpeed(value)
+ for _, existing := range AllowedPatchedWritableConsolePortRequestSpeedEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableConsolePortRequestSpeed", value)
+}
+
+// NewPatchedWritableConsolePortRequestSpeedFromValue returns a pointer to a valid PatchedWritableConsolePortRequestSpeed
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableConsolePortRequestSpeedFromValue(v int32) (*PatchedWritableConsolePortRequestSpeed, error) {
+ ev := PatchedWritableConsolePortRequestSpeed(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableConsolePortRequestSpeed: valid values are %v", v, AllowedPatchedWritableConsolePortRequestSpeedEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableConsolePortRequestSpeed) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableConsolePortRequestSpeedEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableConsolePortRequest_speed value
+func (v PatchedWritableConsolePortRequestSpeed) Ptr() *PatchedWritableConsolePortRequestSpeed {
+ return &v
+}
+
+type NullablePatchedWritableConsolePortRequestSpeed struct {
+ value *PatchedWritableConsolePortRequestSpeed
+ isSet bool
+}
+
+func (v NullablePatchedWritableConsolePortRequestSpeed) Get() *PatchedWritableConsolePortRequestSpeed {
+ return v.value
+}
+
+func (v *NullablePatchedWritableConsolePortRequestSpeed) Set(val *PatchedWritableConsolePortRequestSpeed) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableConsolePortRequestSpeed) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableConsolePortRequestSpeed) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableConsolePortRequestSpeed(val *PatchedWritableConsolePortRequestSpeed) *NullablePatchedWritableConsolePortRequestSpeed {
+ return &NullablePatchedWritableConsolePortRequestSpeed{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableConsolePortRequestSpeed) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableConsolePortRequestSpeed) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_console_port_request_type.go b/model_patched_writable_console_port_request_type.go
new file mode 100644
index 0000000000..7d9543869f
--- /dev/null
+++ b/model_patched_writable_console_port_request_type.go
@@ -0,0 +1,138 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableConsolePortRequestType Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
+type PatchedWritableConsolePortRequestType string
+
+// List of PatchedWritableConsolePortRequest_type
+const (
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_DE_9 PatchedWritableConsolePortRequestType = "de-9"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_DB_25 PatchedWritableConsolePortRequestType = "db-25"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_11 PatchedWritableConsolePortRequestType = "rj-11"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_12 PatchedWritableConsolePortRequestType = "rj-12"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_45 PatchedWritableConsolePortRequestType = "rj-45"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_MINI_DIN_8 PatchedWritableConsolePortRequestType = "mini-din-8"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_A PatchedWritableConsolePortRequestType = "usb-a"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_B PatchedWritableConsolePortRequestType = "usb-b"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_C PatchedWritableConsolePortRequestType = "usb-c"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MINI_A PatchedWritableConsolePortRequestType = "usb-mini-a"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MINI_B PatchedWritableConsolePortRequestType = "usb-mini-b"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MICRO_A PatchedWritableConsolePortRequestType = "usb-micro-a"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MICRO_B PatchedWritableConsolePortRequestType = "usb-micro-b"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MICRO_AB PatchedWritableConsolePortRequestType = "usb-micro-ab"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_OTHER PatchedWritableConsolePortRequestType = "other"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_EMPTY PatchedWritableConsolePortRequestType = ""
+)
+
+// All allowed values of PatchedWritableConsolePortRequestType enum
+var AllowedPatchedWritableConsolePortRequestTypeEnumValues = []PatchedWritableConsolePortRequestType{
+ "de-9",
+ "db-25",
+ "rj-11",
+ "rj-12",
+ "rj-45",
+ "mini-din-8",
+ "usb-a",
+ "usb-b",
+ "usb-c",
+ "usb-mini-a",
+ "usb-mini-b",
+ "usb-micro-a",
+ "usb-micro-b",
+ "usb-micro-ab",
+ "other",
+ "",
+}
+
+func (v *PatchedWritableConsolePortRequestType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableConsolePortRequestType(value)
+ for _, existing := range AllowedPatchedWritableConsolePortRequestTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableConsolePortRequestType", value)
+}
+
+// NewPatchedWritableConsolePortRequestTypeFromValue returns a pointer to a valid PatchedWritableConsolePortRequestType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableConsolePortRequestTypeFromValue(v string) (*PatchedWritableConsolePortRequestType, error) {
+ ev := PatchedWritableConsolePortRequestType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableConsolePortRequestType: valid values are %v", v, AllowedPatchedWritableConsolePortRequestTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableConsolePortRequestType) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableConsolePortRequestTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableConsolePortRequest_type value
+func (v PatchedWritableConsolePortRequestType) Ptr() *PatchedWritableConsolePortRequestType {
+ return &v
+}
+
+type NullablePatchedWritableConsolePortRequestType struct {
+ value *PatchedWritableConsolePortRequestType
+ isSet bool
+}
+
+func (v NullablePatchedWritableConsolePortRequestType) Get() *PatchedWritableConsolePortRequestType {
+ return v.value
+}
+
+func (v *NullablePatchedWritableConsolePortRequestType) Set(val *PatchedWritableConsolePortRequestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableConsolePortRequestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableConsolePortRequestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableConsolePortRequestType(val *PatchedWritableConsolePortRequestType) *NullablePatchedWritableConsolePortRequestType {
+ return &NullablePatchedWritableConsolePortRequestType{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableConsolePortRequestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableConsolePortRequestType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_console_port_template_request.go b/model_patched_writable_console_port_template_request.go
index 8e196c797b..a03d2cdd49 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,10 +24,9 @@ type PatchedWritableConsolePortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
- Type *string `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortTypeValue `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -201,9 +200,9 @@ func (o *PatchedWritableConsolePortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableConsolePortTemplateRequest) GetType() string {
+func (o *PatchedWritableConsolePortTemplateRequest) GetType() ConsolePortTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret ConsolePortTypeValue
return ret
}
return *o.Type
@@ -211,7 +210,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConsolePortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritableConsolePortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -227,8 +226,8 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableConsolePortTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given ConsolePortTypeValue and assigns it to the Type field.
+func (o *PatchedWritableConsolePortTemplateRequest) SetType(v ConsolePortTypeValue) {
o.Type = &v
}
@@ -300,10 +299,10 @@ func (o PatchedWritableConsolePortTemplateRequest) ToMap() (map[string]interface
return toSerialize, nil
}
-func (o *PatchedWritableConsolePortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableConsolePortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableConsolePortTemplateRequest := _PatchedWritableConsolePortTemplateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableConsolePortTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedWritableConsolePortTemplateRequest)
if err != nil {
return err
@@ -313,7 +312,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) UnmarshalJSON(bytes []byte)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_console_server_port_request.go b/model_patched_writable_console_server_port_request.go
index d496d95d86..9fe06454c0 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -23,12 +23,10 @@ type PatchedWritableConsoleServerPortRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
- Type *string `json:"type,omitempty"`
- // Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps
- Speed NullableInt32 `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"`
+ Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -195,9 +193,9 @@ func (o *PatchedWritableConsoleServerPortRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableConsoleServerPortRequest) GetType() string {
+func (o *PatchedWritableConsoleServerPortRequest) GetType() PatchedWritableConsolePortRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritableConsolePortRequestType
return ret
}
return *o.Type
@@ -205,7 +203,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetType() string {
// 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 *PatchedWritableConsoleServerPortRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritableConsoleServerPortRequest) GetTypeOk() (*PatchedWritableConsolePortRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -221,15 +219,15 @@ func (o *PatchedWritableConsoleServerPortRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableConsoleServerPortRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritableConsolePortRequestType and assigns it to the Type field.
+func (o *PatchedWritableConsoleServerPortRequest) SetType(v PatchedWritableConsolePortRequestType) {
o.Type = &v
}
// GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableConsoleServerPortRequest) GetSpeed() int32 {
+func (o *PatchedWritableConsoleServerPortRequest) GetSpeed() PatchedWritableConsolePortRequestSpeed {
if o == nil || IsNil(o.Speed.Get()) {
- var ret int32
+ var ret PatchedWritableConsolePortRequestSpeed
return ret
}
return *o.Speed.Get()
@@ -238,7 +236,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetSpeed() int32 {
// GetSpeedOk returns a tuple with the Speed field value if set, nil otherwise
// and a 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) GetSpeedOk() (*int32, bool) {
+func (o *PatchedWritableConsoleServerPortRequest) GetSpeedOk() (*PatchedWritableConsolePortRequestSpeed, bool) {
if o == nil {
return nil, false
}
@@ -254,8 +252,8 @@ func (o *PatchedWritableConsoleServerPortRequest) HasSpeed() bool {
return false
}
-// SetSpeed gets a reference to the given NullableInt32 and assigns it to the Speed field.
-func (o *PatchedWritableConsoleServerPortRequest) SetSpeed(v int32) {
+// SetSpeed gets a reference to the given NullablePatchedWritableConsolePortRequestSpeed and assigns it to the Speed field.
+func (o *PatchedWritableConsoleServerPortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed) {
o.Speed.Set(&v)
}
@@ -445,10 +443,10 @@ func (o PatchedWritableConsoleServerPortRequest) ToMap() (map[string]interface{}
return toSerialize, nil
}
-func (o *PatchedWritableConsoleServerPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableConsoleServerPortRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableConsoleServerPortRequest := _PatchedWritableConsoleServerPortRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableConsoleServerPortRequest)
+ err = json.Unmarshal(data, &varPatchedWritableConsoleServerPortRequest)
if err != nil {
return err
@@ -458,7 +456,7 @@ func (o *PatchedWritableConsoleServerPortRequest) UnmarshalJSON(bytes []byte) (e
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_console_server_port_template_request.go b/model_patched_writable_console_server_port_template_request.go
index 5ca8e0c30c..7f789841be 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,10 +24,9 @@ type PatchedWritableConsoleServerPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
- Type *string `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortTypeValue `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -201,9 +200,9 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableConsoleServerPortTemplateRequest) GetType() string {
+func (o *PatchedWritableConsoleServerPortTemplateRequest) GetType() ConsolePortTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret ConsolePortTypeValue
return ret
}
return *o.Type
@@ -211,7 +210,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConsoleServerPortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritableConsoleServerPortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -227,8 +226,8 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableConsoleServerPortTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given ConsolePortTypeValue and assigns it to the Type field.
+func (o *PatchedWritableConsoleServerPortTemplateRequest) SetType(v ConsolePortTypeValue) {
o.Type = &v
}
@@ -300,10 +299,10 @@ func (o PatchedWritableConsoleServerPortTemplateRequest) ToMap() (map[string]int
return toSerialize, nil
}
-func (o *PatchedWritableConsoleServerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableConsoleServerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableConsoleServerPortTemplateRequest := _PatchedWritableConsoleServerPortTemplateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableConsoleServerPortTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedWritableConsoleServerPortTemplateRequest)
if err != nil {
return err
@@ -313,7 +312,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) UnmarshalJSON(bytes []
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_contact_assignment_request.go b/model_patched_writable_contact_assignment_request.go
index 0c49e02566..c8b82f1461 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableContactAssignmentRequest{}
// PatchedWritableContactAssignmentRequest Adds support for custom fields and tags.
type PatchedWritableContactAssignmentRequest struct {
- ContentType *string `json:"content_type,omitempty"`
- ObjectId *int64 `json:"object_id,omitempty"`
- Contact *int32 `json:"contact,omitempty"`
- Role *int32 `json:"role,omitempty"`
- // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive
- Priority *string `json:"priority,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ ContentType *string `json:"content_type,omitempty"`
+ ObjectId *int64 `json:"object_id,omitempty"`
+ Contact *int32 `json:"contact,omitempty"`
+ Role *int32 `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{}
}
@@ -177,9 +177,9 @@ func (o *PatchedWritableContactAssignmentRequest) SetRole(v int32) {
}
// GetPriority returns the Priority field value if set, zero value otherwise.
-func (o *PatchedWritableContactAssignmentRequest) GetPriority() string {
+func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue {
if o == nil || IsNil(o.Priority) {
- var ret string
+ var ret ContactAssignmentPriorityValue
return ret
}
return *o.Priority
@@ -187,7 +187,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetPriority() string {
// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*string, bool) {
+func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) {
if o == nil || IsNil(o.Priority) {
return nil, false
}
@@ -203,8 +203,8 @@ func (o *PatchedWritableContactAssignmentRequest) HasPriority() bool {
return false
}
-// SetPriority gets a reference to the given string and assigns it to the Priority field.
-func (o *PatchedWritableContactAssignmentRequest) SetPriority(v string) {
+// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field.
+func (o *PatchedWritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) {
o.Priority = &v
}
@@ -240,6 +240,38 @@ func (o *PatchedWritableContactAssignmentRequest) SetTags(v []NestedTagRequest)
o.Tags = v
}
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *PatchedWritableContactAssignmentRequest) 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 *PatchedWritableContactAssignmentRequest) 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 *PatchedWritableContactAssignmentRequest) 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 *PatchedWritableContactAssignmentRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
func (o PatchedWritableContactAssignmentRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -268,6 +300,9 @@ func (o PatchedWritableContactAssignmentRequest) ToMap() (map[string]interface{}
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
@@ -276,10 +311,10 @@ func (o PatchedWritableContactAssignmentRequest) ToMap() (map[string]interface{}
return toSerialize, nil
}
-func (o *PatchedWritableContactAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableContactAssignmentRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableContactAssignmentRequest := _PatchedWritableContactAssignmentRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableContactAssignmentRequest)
+ err = json.Unmarshal(data, &varPatchedWritableContactAssignmentRequest)
if err != nil {
return err
@@ -289,13 +324,14 @@ func (o *PatchedWritableContactAssignmentRequest) UnmarshalJSON(bytes []byte) (e
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "contact")
delete(additionalProperties, "role")
delete(additionalProperties, "priority")
delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_patched_writable_contact_group_request.go b/model_patched_writable_contact_group_request.go
index 9217aa5b1e..057f59d11a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -286,10 +286,10 @@ func (o PatchedWritableContactGroupRequest) ToMap() (map[string]interface{}, err
return toSerialize, nil
}
-func (o *PatchedWritableContactGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableContactGroupRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableContactGroupRequest := _PatchedWritableContactGroupRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableContactGroupRequest)
+ err = json.Unmarshal(data, &varPatchedWritableContactGroupRequest)
if err != nil {
return err
@@ -299,7 +299,7 @@ func (o *PatchedWritableContactGroupRequest) UnmarshalJSON(bytes []byte) (err er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_patched_writable_contact_request.go b/model_patched_writable_contact_request.go
index 9d69b9277c..6352cbed2d 100644
--- a/model_patched_writable_contact_request.go
+++ b/model_patched_writable_contact_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -466,10 +466,10 @@ func (o PatchedWritableContactRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableContactRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableContactRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableContactRequest := _PatchedWritableContactRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableContactRequest)
+ err = json.Unmarshal(data, &varPatchedWritableContactRequest)
if err != nil {
return err
@@ -479,7 +479,7 @@ func (o *PatchedWritableContactRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "group")
delete(additionalProperties, "name")
delete(additionalProperties, "title")
diff --git a/model_patched_writable_custom_field_choice_set_request.go b/model_patched_writable_custom_field_choice_set_request.go
index be49e6ae91..4d0167b967 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,10 @@ var _ MappedNullable = &PatchedWritableCustomFieldChoiceSetRequest{}
// PatchedWritableCustomFieldChoiceSetRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedWritableCustomFieldChoiceSetRequest struct {
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- // Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes)
- BaseChoices *string `json:"base_choices,omitempty"`
- ExtraChoices [][]string `json:"extra_choices,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ BaseChoices *PatchedWritableCustomFieldChoiceSetRequestBaseChoices `json:"base_choices,omitempty"`
+ ExtraChoices [][]string `json:"extra_choices,omitempty"`
// Choices are automatically ordered alphabetically
OrderAlphabetically *bool `json:"order_alphabetically,omitempty"`
AdditionalProperties map[string]interface{}
@@ -113,9 +112,9 @@ func (o *PatchedWritableCustomFieldChoiceSetRequest) SetDescription(v string) {
}
// GetBaseChoices returns the BaseChoices field value if set, zero value otherwise.
-func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoices() string {
+func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoices() PatchedWritableCustomFieldChoiceSetRequestBaseChoices {
if o == nil || IsNil(o.BaseChoices) {
- var ret string
+ var ret PatchedWritableCustomFieldChoiceSetRequestBaseChoices
return ret
}
return *o.BaseChoices
@@ -123,7 +122,7 @@ func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoices() string {
// GetBaseChoicesOk returns a tuple with the BaseChoices field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoicesOk() (*string, bool) {
+func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoicesOk() (*PatchedWritableCustomFieldChoiceSetRequestBaseChoices, bool) {
if o == nil || IsNil(o.BaseChoices) {
return nil, false
}
@@ -139,8 +138,8 @@ func (o *PatchedWritableCustomFieldChoiceSetRequest) HasBaseChoices() bool {
return false
}
-// SetBaseChoices gets a reference to the given string and assigns it to the BaseChoices field.
-func (o *PatchedWritableCustomFieldChoiceSetRequest) SetBaseChoices(v string) {
+// SetBaseChoices gets a reference to the given PatchedWritableCustomFieldChoiceSetRequestBaseChoices and assigns it to the BaseChoices field.
+func (o *PatchedWritableCustomFieldChoiceSetRequest) SetBaseChoices(v PatchedWritableCustomFieldChoiceSetRequestBaseChoices) {
o.BaseChoices = &v
}
@@ -242,10 +241,10 @@ func (o PatchedWritableCustomFieldChoiceSetRequest) ToMap() (map[string]interfac
return toSerialize, nil
}
-func (o *PatchedWritableCustomFieldChoiceSetRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableCustomFieldChoiceSetRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableCustomFieldChoiceSetRequest := _PatchedWritableCustomFieldChoiceSetRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableCustomFieldChoiceSetRequest)
+ err = json.Unmarshal(data, &varPatchedWritableCustomFieldChoiceSetRequest)
if err != nil {
return err
@@ -255,7 +254,7 @@ func (o *PatchedWritableCustomFieldChoiceSetRequest) UnmarshalJSON(bytes []byte)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "description")
delete(additionalProperties, "base_choices")
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
new file mode 100644
index 0000000000..9f2cc84d73
--- /dev/null
+++ b/model_patched_writable_custom_field_choice_set_request_base_choices.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableCustomFieldChoiceSetRequestBaseChoices Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes)
+type PatchedWritableCustomFieldChoiceSetRequestBaseChoices string
+
+// List of PatchedWritableCustomFieldChoiceSetRequest_base_choices
+const (
+ PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_IATA PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "IATA"
+ PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_ISO_3166 PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "ISO_3166"
+ PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_UN_LOCODE PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "UN_LOCODE"
+ PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_EMPTY PatchedWritableCustomFieldChoiceSetRequestBaseChoices = ""
+)
+
+// All allowed values of PatchedWritableCustomFieldChoiceSetRequestBaseChoices enum
+var AllowedPatchedWritableCustomFieldChoiceSetRequestBaseChoicesEnumValues = []PatchedWritableCustomFieldChoiceSetRequestBaseChoices{
+ "IATA",
+ "ISO_3166",
+ "UN_LOCODE",
+ "",
+}
+
+func (v *PatchedWritableCustomFieldChoiceSetRequestBaseChoices) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableCustomFieldChoiceSetRequestBaseChoices(value)
+ for _, existing := range AllowedPatchedWritableCustomFieldChoiceSetRequestBaseChoicesEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableCustomFieldChoiceSetRequestBaseChoices", value)
+}
+
+// NewPatchedWritableCustomFieldChoiceSetRequestBaseChoicesFromValue returns a pointer to a valid PatchedWritableCustomFieldChoiceSetRequestBaseChoices
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableCustomFieldChoiceSetRequestBaseChoicesFromValue(v string) (*PatchedWritableCustomFieldChoiceSetRequestBaseChoices, error) {
+ ev := PatchedWritableCustomFieldChoiceSetRequestBaseChoices(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableCustomFieldChoiceSetRequestBaseChoices: valid values are %v", v, AllowedPatchedWritableCustomFieldChoiceSetRequestBaseChoicesEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableCustomFieldChoiceSetRequestBaseChoices) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableCustomFieldChoiceSetRequestBaseChoicesEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableCustomFieldChoiceSetRequest_base_choices value
+func (v PatchedWritableCustomFieldChoiceSetRequestBaseChoices) Ptr() *PatchedWritableCustomFieldChoiceSetRequestBaseChoices {
+ return &v
+}
+
+type NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices struct {
+ value *PatchedWritableCustomFieldChoiceSetRequestBaseChoices
+ isSet bool
+}
+
+func (v NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices) Get() *PatchedWritableCustomFieldChoiceSetRequestBaseChoices {
+ return v.value
+}
+
+func (v *NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices) Set(val *PatchedWritableCustomFieldChoiceSetRequestBaseChoices) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices(val *PatchedWritableCustomFieldChoiceSetRequestBaseChoices) *NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices {
+ return &NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_custom_field_request.go b/model_patched_writable_custom_field_request.go
index 58e62facc8..0dd203a1f5 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,10 +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"`
- // The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects
- Type *string `json:"type,omitempty"`
- ObjectType *string `json:"object_type,omitempty"`
+ ContentTypes []string `json:"content_types,omitempty"`
+ Type *PatchedWritableCustomFieldRequestType `json:"type,omitempty"`
+ ObjectType *string `json:"object_type,omitempty"`
// Internal field name
Name *string `json:"name,omitempty"`
// Name of the field as displayed to users (if not provided, 'the field's name will be used)
@@ -33,21 +32,20 @@ type PatchedWritableCustomFieldRequest struct {
// If true, this field is required when creating new objects or editing an existing object.
Required *bool `json:"required,omitempty"`
// Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored.
- SearchWeight *int32 `json:"search_weight,omitempty"`
- // Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact
- FilterLogic *string `json:"filter_logic,omitempty"`
- // Specifies the visibility of custom field in the UI * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset)
- UiVisibility *string `json:"ui_visibility,omitempty"`
+ SearchWeight *int32 `json:"search_weight,omitempty"`
+ FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"`
+ UiVisible *PatchedWritableCustomFieldRequestUiVisible `json:"ui_visible,omitempty"`
+ UiEditable *PatchedWritableCustomFieldRequestUiEditable `json:"ui_editable,omitempty"`
// Replicate this value when cloning objects
IsCloneable *bool `json:"is_cloneable,omitempty"`
// Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\").
- Default map[string]interface{} `json:"default,omitempty"`
+ Default interface{} `json:"default,omitempty"`
// Fields with higher weights appear lower in a form.
Weight *int32 `json:"weight,omitempty"`
// Minimum allowed value (for numeric fields)
- ValidationMinimum NullableInt32 `json:"validation_minimum,omitempty"`
+ ValidationMinimum NullableInt64 `json:"validation_minimum,omitempty"`
// Maximum allowed value (for numeric fields)
- ValidationMaximum NullableInt32 `json:"validation_maximum,omitempty"`
+ 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"`
@@ -106,9 +104,9 @@ func (o *PatchedWritableCustomFieldRequest) SetContentTypes(v []string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableCustomFieldRequest) GetType() string {
+func (o *PatchedWritableCustomFieldRequest) GetType() PatchedWritableCustomFieldRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritableCustomFieldRequestType
return ret
}
return *o.Type
@@ -116,7 +114,7 @@ func (o *PatchedWritableCustomFieldRequest) GetType() string {
// 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 *PatchedWritableCustomFieldRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritableCustomFieldRequest) GetTypeOk() (*PatchedWritableCustomFieldRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -132,8 +130,8 @@ func (o *PatchedWritableCustomFieldRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableCustomFieldRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritableCustomFieldRequestType and assigns it to the Type field.
+func (o *PatchedWritableCustomFieldRequest) SetType(v PatchedWritableCustomFieldRequestType) {
o.Type = &v
}
@@ -362,9 +360,9 @@ func (o *PatchedWritableCustomFieldRequest) SetSearchWeight(v int32) {
}
// GetFilterLogic returns the FilterLogic field value if set, zero value otherwise.
-func (o *PatchedWritableCustomFieldRequest) GetFilterLogic() string {
+func (o *PatchedWritableCustomFieldRequest) GetFilterLogic() PatchedWritableCustomFieldRequestFilterLogic {
if o == nil || IsNil(o.FilterLogic) {
- var ret string
+ var ret PatchedWritableCustomFieldRequestFilterLogic
return ret
}
return *o.FilterLogic
@@ -372,7 +370,7 @@ func (o *PatchedWritableCustomFieldRequest) GetFilterLogic() string {
// GetFilterLogicOk returns a tuple with the FilterLogic field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableCustomFieldRequest) GetFilterLogicOk() (*string, bool) {
+func (o *PatchedWritableCustomFieldRequest) GetFilterLogicOk() (*PatchedWritableCustomFieldRequestFilterLogic, bool) {
if o == nil || IsNil(o.FilterLogic) {
return nil, false
}
@@ -388,41 +386,73 @@ func (o *PatchedWritableCustomFieldRequest) HasFilterLogic() bool {
return false
}
-// SetFilterLogic gets a reference to the given string and assigns it to the FilterLogic field.
-func (o *PatchedWritableCustomFieldRequest) SetFilterLogic(v string) {
+// SetFilterLogic gets a reference to the given PatchedWritableCustomFieldRequestFilterLogic and assigns it to the FilterLogic field.
+func (o *PatchedWritableCustomFieldRequest) SetFilterLogic(v PatchedWritableCustomFieldRequestFilterLogic) {
o.FilterLogic = &v
}
-// GetUiVisibility returns the UiVisibility field value if set, zero value otherwise.
-func (o *PatchedWritableCustomFieldRequest) GetUiVisibility() string {
- if o == nil || IsNil(o.UiVisibility) {
- var ret string
+// GetUiVisible returns the UiVisible field value if set, zero value otherwise.
+func (o *PatchedWritableCustomFieldRequest) GetUiVisible() PatchedWritableCustomFieldRequestUiVisible {
+ if o == nil || IsNil(o.UiVisible) {
+ var ret PatchedWritableCustomFieldRequestUiVisible
+ return ret
+ }
+ return *o.UiVisible
+}
+
+// GetUiVisibleOk returns a tuple with the UiVisible field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableCustomFieldRequest) GetUiVisibleOk() (*PatchedWritableCustomFieldRequestUiVisible, bool) {
+ if o == nil || IsNil(o.UiVisible) {
+ return nil, false
+ }
+ return o.UiVisible, true
+}
+
+// HasUiVisible returns a boolean if a field has been set.
+func (o *PatchedWritableCustomFieldRequest) HasUiVisible() bool {
+ if o != nil && !IsNil(o.UiVisible) {
+ return true
+ }
+
+ return false
+}
+
+// SetUiVisible gets a reference to the given PatchedWritableCustomFieldRequestUiVisible and assigns it to the UiVisible field.
+func (o *PatchedWritableCustomFieldRequest) SetUiVisible(v PatchedWritableCustomFieldRequestUiVisible) {
+ o.UiVisible = &v
+}
+
+// GetUiEditable returns the UiEditable field value if set, zero value otherwise.
+func (o *PatchedWritableCustomFieldRequest) GetUiEditable() PatchedWritableCustomFieldRequestUiEditable {
+ if o == nil || IsNil(o.UiEditable) {
+ var ret PatchedWritableCustomFieldRequestUiEditable
return ret
}
- return *o.UiVisibility
+ return *o.UiEditable
}
-// GetUiVisibilityOk returns a tuple with the UiVisibility field value if set, nil otherwise
+// GetUiEditableOk returns a tuple with the UiEditable field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableCustomFieldRequest) GetUiVisibilityOk() (*string, bool) {
- if o == nil || IsNil(o.UiVisibility) {
+func (o *PatchedWritableCustomFieldRequest) GetUiEditableOk() (*PatchedWritableCustomFieldRequestUiEditable, bool) {
+ if o == nil || IsNil(o.UiEditable) {
return nil, false
}
- return o.UiVisibility, true
+ return o.UiEditable, true
}
-// HasUiVisibility returns a boolean if a field has been set.
-func (o *PatchedWritableCustomFieldRequest) HasUiVisibility() bool {
- if o != nil && !IsNil(o.UiVisibility) {
+// HasUiEditable returns a boolean if a field has been set.
+func (o *PatchedWritableCustomFieldRequest) HasUiEditable() bool {
+ if o != nil && !IsNil(o.UiEditable) {
return true
}
return false
}
-// SetUiVisibility gets a reference to the given string and assigns it to the UiVisibility field.
-func (o *PatchedWritableCustomFieldRequest) SetUiVisibility(v string) {
- o.UiVisibility = &v
+// SetUiEditable gets a reference to the given PatchedWritableCustomFieldRequestUiEditable and assigns it to the UiEditable field.
+func (o *PatchedWritableCustomFieldRequest) SetUiEditable(v PatchedWritableCustomFieldRequestUiEditable) {
+ o.UiEditable = &v
}
// GetIsCloneable returns the IsCloneable field value if set, zero value otherwise.
@@ -458,9 +488,9 @@ func (o *PatchedWritableCustomFieldRequest) SetIsCloneable(v bool) {
}
// GetDefault returns the Default field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableCustomFieldRequest) GetDefault() map[string]interface{} {
+func (o *PatchedWritableCustomFieldRequest) GetDefault() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.Default
@@ -469,11 +499,11 @@ func (o *PatchedWritableCustomFieldRequest) GetDefault() map[string]interface{}
// GetDefaultOk returns a tuple with the Default field value if set, nil otherwise
// and a 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) GetDefaultOk() (map[string]interface{}, bool) {
+func (o *PatchedWritableCustomFieldRequest) GetDefaultOk() (*interface{}, bool) {
if o == nil || IsNil(o.Default) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Default, true
+ return &o.Default, true
}
// HasDefault returns a boolean if a field has been set.
@@ -485,8 +515,8 @@ func (o *PatchedWritableCustomFieldRequest) HasDefault() bool {
return false
}
-// SetDefault gets a reference to the given map[string]interface{} and assigns it to the Default field.
-func (o *PatchedWritableCustomFieldRequest) SetDefault(v map[string]interface{}) {
+// SetDefault gets a reference to the given interface{} and assigns it to the Default field.
+func (o *PatchedWritableCustomFieldRequest) SetDefault(v interface{}) {
o.Default = v
}
@@ -523,9 +553,9 @@ func (o *PatchedWritableCustomFieldRequest) SetWeight(v int32) {
}
// GetValidationMinimum returns the ValidationMinimum field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableCustomFieldRequest) GetValidationMinimum() int32 {
+func (o *PatchedWritableCustomFieldRequest) GetValidationMinimum() int64 {
if o == nil || IsNil(o.ValidationMinimum.Get()) {
- var ret int32
+ var ret int64
return ret
}
return *o.ValidationMinimum.Get()
@@ -534,7 +564,7 @@ func (o *PatchedWritableCustomFieldRequest) GetValidationMinimum() int32 {
// GetValidationMinimumOk returns a tuple with the ValidationMinimum field value if set, nil otherwise
// and a 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) GetValidationMinimumOk() (*int32, bool) {
+func (o *PatchedWritableCustomFieldRequest) GetValidationMinimumOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -550,8 +580,8 @@ func (o *PatchedWritableCustomFieldRequest) HasValidationMinimum() bool {
return false
}
-// SetValidationMinimum gets a reference to the given NullableInt32 and assigns it to the ValidationMinimum field.
-func (o *PatchedWritableCustomFieldRequest) SetValidationMinimum(v int32) {
+// SetValidationMinimum gets a reference to the given NullableInt64 and assigns it to the ValidationMinimum field.
+func (o *PatchedWritableCustomFieldRequest) SetValidationMinimum(v int64) {
o.ValidationMinimum.Set(&v)
}
@@ -566,9 +596,9 @@ func (o *PatchedWritableCustomFieldRequest) UnsetValidationMinimum() {
}
// GetValidationMaximum returns the ValidationMaximum field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableCustomFieldRequest) GetValidationMaximum() int32 {
+func (o *PatchedWritableCustomFieldRequest) GetValidationMaximum() int64 {
if o == nil || IsNil(o.ValidationMaximum.Get()) {
- var ret int32
+ var ret int64
return ret
}
return *o.ValidationMaximum.Get()
@@ -577,7 +607,7 @@ func (o *PatchedWritableCustomFieldRequest) GetValidationMaximum() int32 {
// GetValidationMaximumOk returns a tuple with the ValidationMaximum field value if set, nil otherwise
// and a 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) GetValidationMaximumOk() (*int32, bool) {
+func (o *PatchedWritableCustomFieldRequest) GetValidationMaximumOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -593,8 +623,8 @@ func (o *PatchedWritableCustomFieldRequest) HasValidationMaximum() bool {
return false
}
-// SetValidationMaximum gets a reference to the given NullableInt32 and assigns it to the ValidationMaximum field.
-func (o *PatchedWritableCustomFieldRequest) SetValidationMaximum(v int32) {
+// SetValidationMaximum gets a reference to the given NullableInt64 and assigns it to the ValidationMaximum field.
+func (o *PatchedWritableCustomFieldRequest) SetValidationMaximum(v int64) {
o.ValidationMaximum.Set(&v)
}
@@ -723,8 +753,11 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro
if !IsNil(o.FilterLogic) {
toSerialize["filter_logic"] = o.FilterLogic
}
- if !IsNil(o.UiVisibility) {
- toSerialize["ui_visibility"] = o.UiVisibility
+ if !IsNil(o.UiVisible) {
+ toSerialize["ui_visible"] = o.UiVisible
+ }
+ if !IsNil(o.UiEditable) {
+ toSerialize["ui_editable"] = o.UiEditable
}
if !IsNil(o.IsCloneable) {
toSerialize["is_cloneable"] = o.IsCloneable
@@ -755,10 +788,10 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro
return toSerialize, nil
}
-func (o *PatchedWritableCustomFieldRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableCustomFieldRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableCustomFieldRequest := _PatchedWritableCustomFieldRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableCustomFieldRequest)
+ err = json.Unmarshal(data, &varPatchedWritableCustomFieldRequest)
if err != nil {
return err
@@ -768,7 +801,7 @@ func (o *PatchedWritableCustomFieldRequest) UnmarshalJSON(bytes []byte) (err err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_types")
delete(additionalProperties, "type")
delete(additionalProperties, "object_type")
@@ -779,7 +812,8 @@ func (o *PatchedWritableCustomFieldRequest) UnmarshalJSON(bytes []byte) (err err
delete(additionalProperties, "required")
delete(additionalProperties, "search_weight")
delete(additionalProperties, "filter_logic")
- delete(additionalProperties, "ui_visibility")
+ delete(additionalProperties, "ui_visible")
+ delete(additionalProperties, "ui_editable")
delete(additionalProperties, "is_cloneable")
delete(additionalProperties, "default")
delete(additionalProperties, "weight")
diff --git a/model_patched_writable_custom_field_request_filter_logic.go b/model_patched_writable_custom_field_request_filter_logic.go
new file mode 100644
index 0000000000..d55761db68
--- /dev/null
+++ b/model_patched_writable_custom_field_request_filter_logic.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableCustomFieldRequestFilterLogic Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact
+type PatchedWritableCustomFieldRequestFilterLogic string
+
+// List of PatchedWritableCustomFieldRequest_filter_logic
+const (
+ PATCHEDWRITABLECUSTOMFIELDREQUESTFILTERLOGIC_DISABLED PatchedWritableCustomFieldRequestFilterLogic = "disabled"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTFILTERLOGIC_LOOSE PatchedWritableCustomFieldRequestFilterLogic = "loose"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTFILTERLOGIC_EXACT PatchedWritableCustomFieldRequestFilterLogic = "exact"
+)
+
+// All allowed values of PatchedWritableCustomFieldRequestFilterLogic enum
+var AllowedPatchedWritableCustomFieldRequestFilterLogicEnumValues = []PatchedWritableCustomFieldRequestFilterLogic{
+ "disabled",
+ "loose",
+ "exact",
+}
+
+func (v *PatchedWritableCustomFieldRequestFilterLogic) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableCustomFieldRequestFilterLogic(value)
+ for _, existing := range AllowedPatchedWritableCustomFieldRequestFilterLogicEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableCustomFieldRequestFilterLogic", value)
+}
+
+// NewPatchedWritableCustomFieldRequestFilterLogicFromValue returns a pointer to a valid PatchedWritableCustomFieldRequestFilterLogic
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableCustomFieldRequestFilterLogicFromValue(v string) (*PatchedWritableCustomFieldRequestFilterLogic, error) {
+ ev := PatchedWritableCustomFieldRequestFilterLogic(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableCustomFieldRequestFilterLogic: valid values are %v", v, AllowedPatchedWritableCustomFieldRequestFilterLogicEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableCustomFieldRequestFilterLogic) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableCustomFieldRequestFilterLogicEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableCustomFieldRequest_filter_logic value
+func (v PatchedWritableCustomFieldRequestFilterLogic) Ptr() *PatchedWritableCustomFieldRequestFilterLogic {
+ return &v
+}
+
+type NullablePatchedWritableCustomFieldRequestFilterLogic struct {
+ value *PatchedWritableCustomFieldRequestFilterLogic
+ isSet bool
+}
+
+func (v NullablePatchedWritableCustomFieldRequestFilterLogic) Get() *PatchedWritableCustomFieldRequestFilterLogic {
+ return v.value
+}
+
+func (v *NullablePatchedWritableCustomFieldRequestFilterLogic) Set(val *PatchedWritableCustomFieldRequestFilterLogic) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableCustomFieldRequestFilterLogic) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableCustomFieldRequestFilterLogic) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableCustomFieldRequestFilterLogic(val *PatchedWritableCustomFieldRequestFilterLogic) *NullablePatchedWritableCustomFieldRequestFilterLogic {
+ return &NullablePatchedWritableCustomFieldRequestFilterLogic{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableCustomFieldRequestFilterLogic) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableCustomFieldRequestFilterLogic) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_custom_field_request_type.go b/model_patched_writable_custom_field_request_type.go
new file mode 100644
index 0000000000..38be8385b3
--- /dev/null
+++ b/model_patched_writable_custom_field_request_type.go
@@ -0,0 +1,132 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableCustomFieldRequestType The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects
+type PatchedWritableCustomFieldRequestType string
+
+// List of PatchedWritableCustomFieldRequest_type
+const (
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_TEXT PatchedWritableCustomFieldRequestType = "text"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_LONGTEXT PatchedWritableCustomFieldRequestType = "longtext"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_INTEGER PatchedWritableCustomFieldRequestType = "integer"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DECIMAL PatchedWritableCustomFieldRequestType = "decimal"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_BOOLEAN PatchedWritableCustomFieldRequestType = "boolean"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DATE PatchedWritableCustomFieldRequestType = "date"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DATETIME PatchedWritableCustomFieldRequestType = "datetime"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_URL PatchedWritableCustomFieldRequestType = "url"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_JSON PatchedWritableCustomFieldRequestType = "json"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_SELECT PatchedWritableCustomFieldRequestType = "select"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_MULTISELECT PatchedWritableCustomFieldRequestType = "multiselect"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_OBJECT PatchedWritableCustomFieldRequestType = "object"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_MULTIOBJECT PatchedWritableCustomFieldRequestType = "multiobject"
+)
+
+// All allowed values of PatchedWritableCustomFieldRequestType enum
+var AllowedPatchedWritableCustomFieldRequestTypeEnumValues = []PatchedWritableCustomFieldRequestType{
+ "text",
+ "longtext",
+ "integer",
+ "decimal",
+ "boolean",
+ "date",
+ "datetime",
+ "url",
+ "json",
+ "select",
+ "multiselect",
+ "object",
+ "multiobject",
+}
+
+func (v *PatchedWritableCustomFieldRequestType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableCustomFieldRequestType(value)
+ for _, existing := range AllowedPatchedWritableCustomFieldRequestTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableCustomFieldRequestType", value)
+}
+
+// NewPatchedWritableCustomFieldRequestTypeFromValue returns a pointer to a valid PatchedWritableCustomFieldRequestType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableCustomFieldRequestTypeFromValue(v string) (*PatchedWritableCustomFieldRequestType, error) {
+ ev := PatchedWritableCustomFieldRequestType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableCustomFieldRequestType: valid values are %v", v, AllowedPatchedWritableCustomFieldRequestTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableCustomFieldRequestType) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableCustomFieldRequestTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableCustomFieldRequest_type value
+func (v PatchedWritableCustomFieldRequestType) Ptr() *PatchedWritableCustomFieldRequestType {
+ return &v
+}
+
+type NullablePatchedWritableCustomFieldRequestType struct {
+ value *PatchedWritableCustomFieldRequestType
+ isSet bool
+}
+
+func (v NullablePatchedWritableCustomFieldRequestType) Get() *PatchedWritableCustomFieldRequestType {
+ return v.value
+}
+
+func (v *NullablePatchedWritableCustomFieldRequestType) Set(val *PatchedWritableCustomFieldRequestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableCustomFieldRequestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableCustomFieldRequestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableCustomFieldRequestType(val *PatchedWritableCustomFieldRequestType) *NullablePatchedWritableCustomFieldRequestType {
+ return &NullablePatchedWritableCustomFieldRequestType{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableCustomFieldRequestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableCustomFieldRequestType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_custom_field_request_ui_editable.go b/model_patched_writable_custom_field_request_ui_editable.go
new file mode 100644
index 0000000000..87294c82c0
--- /dev/null
+++ b/model_patched_writable_custom_field_request_ui_editable.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableCustomFieldRequestUiEditable Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden
+type PatchedWritableCustomFieldRequestUiEditable string
+
+// List of PatchedWritableCustomFieldRequest_ui_editable
+const (
+ PATCHEDWRITABLECUSTOMFIELDREQUESTUIEDITABLE_YES PatchedWritableCustomFieldRequestUiEditable = "yes"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTUIEDITABLE_NO PatchedWritableCustomFieldRequestUiEditable = "no"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTUIEDITABLE_HIDDEN PatchedWritableCustomFieldRequestUiEditable = "hidden"
+)
+
+// All allowed values of PatchedWritableCustomFieldRequestUiEditable enum
+var AllowedPatchedWritableCustomFieldRequestUiEditableEnumValues = []PatchedWritableCustomFieldRequestUiEditable{
+ "yes",
+ "no",
+ "hidden",
+}
+
+func (v *PatchedWritableCustomFieldRequestUiEditable) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableCustomFieldRequestUiEditable(value)
+ for _, existing := range AllowedPatchedWritableCustomFieldRequestUiEditableEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableCustomFieldRequestUiEditable", value)
+}
+
+// NewPatchedWritableCustomFieldRequestUiEditableFromValue returns a pointer to a valid PatchedWritableCustomFieldRequestUiEditable
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableCustomFieldRequestUiEditableFromValue(v string) (*PatchedWritableCustomFieldRequestUiEditable, error) {
+ ev := PatchedWritableCustomFieldRequestUiEditable(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableCustomFieldRequestUiEditable: valid values are %v", v, AllowedPatchedWritableCustomFieldRequestUiEditableEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableCustomFieldRequestUiEditable) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableCustomFieldRequestUiEditableEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableCustomFieldRequest_ui_editable value
+func (v PatchedWritableCustomFieldRequestUiEditable) Ptr() *PatchedWritableCustomFieldRequestUiEditable {
+ return &v
+}
+
+type NullablePatchedWritableCustomFieldRequestUiEditable struct {
+ value *PatchedWritableCustomFieldRequestUiEditable
+ isSet bool
+}
+
+func (v NullablePatchedWritableCustomFieldRequestUiEditable) Get() *PatchedWritableCustomFieldRequestUiEditable {
+ return v.value
+}
+
+func (v *NullablePatchedWritableCustomFieldRequestUiEditable) Set(val *PatchedWritableCustomFieldRequestUiEditable) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableCustomFieldRequestUiEditable) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableCustomFieldRequestUiEditable) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableCustomFieldRequestUiEditable(val *PatchedWritableCustomFieldRequestUiEditable) *NullablePatchedWritableCustomFieldRequestUiEditable {
+ return &NullablePatchedWritableCustomFieldRequestUiEditable{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableCustomFieldRequestUiEditable) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableCustomFieldRequestUiEditable) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_custom_field_request_ui_visible.go b/model_patched_writable_custom_field_request_ui_visible.go
new file mode 100644
index 0000000000..93ce0976ef
--- /dev/null
+++ b/model_patched_writable_custom_field_request_ui_visible.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableCustomFieldRequestUiVisible Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden
+type PatchedWritableCustomFieldRequestUiVisible string
+
+// List of PatchedWritableCustomFieldRequest_ui_visible
+const (
+ PATCHEDWRITABLECUSTOMFIELDREQUESTUIVISIBLE_ALWAYS PatchedWritableCustomFieldRequestUiVisible = "always"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTUIVISIBLE_IF_SET PatchedWritableCustomFieldRequestUiVisible = "if-set"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTUIVISIBLE_HIDDEN PatchedWritableCustomFieldRequestUiVisible = "hidden"
+)
+
+// All allowed values of PatchedWritableCustomFieldRequestUiVisible enum
+var AllowedPatchedWritableCustomFieldRequestUiVisibleEnumValues = []PatchedWritableCustomFieldRequestUiVisible{
+ "always",
+ "if-set",
+ "hidden",
+}
+
+func (v *PatchedWritableCustomFieldRequestUiVisible) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableCustomFieldRequestUiVisible(value)
+ for _, existing := range AllowedPatchedWritableCustomFieldRequestUiVisibleEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableCustomFieldRequestUiVisible", value)
+}
+
+// NewPatchedWritableCustomFieldRequestUiVisibleFromValue returns a pointer to a valid PatchedWritableCustomFieldRequestUiVisible
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableCustomFieldRequestUiVisibleFromValue(v string) (*PatchedWritableCustomFieldRequestUiVisible, error) {
+ ev := PatchedWritableCustomFieldRequestUiVisible(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableCustomFieldRequestUiVisible: valid values are %v", v, AllowedPatchedWritableCustomFieldRequestUiVisibleEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableCustomFieldRequestUiVisible) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableCustomFieldRequestUiVisibleEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableCustomFieldRequest_ui_visible value
+func (v PatchedWritableCustomFieldRequestUiVisible) Ptr() *PatchedWritableCustomFieldRequestUiVisible {
+ return &v
+}
+
+type NullablePatchedWritableCustomFieldRequestUiVisible struct {
+ value *PatchedWritableCustomFieldRequestUiVisible
+ isSet bool
+}
+
+func (v NullablePatchedWritableCustomFieldRequestUiVisible) Get() *PatchedWritableCustomFieldRequestUiVisible {
+ return v.value
+}
+
+func (v *NullablePatchedWritableCustomFieldRequestUiVisible) Set(val *PatchedWritableCustomFieldRequestUiVisible) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableCustomFieldRequestUiVisible) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableCustomFieldRequestUiVisible) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableCustomFieldRequestUiVisible(val *PatchedWritableCustomFieldRequestUiVisible) *NullablePatchedWritableCustomFieldRequestUiVisible {
+ return &NullablePatchedWritableCustomFieldRequestUiVisible{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableCustomFieldRequestUiVisible) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableCustomFieldRequestUiVisible) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_data_source_request.go b/model_patched_writable_data_source_request.go
index 2c32855664..79cae14f0e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,13 @@ var _ MappedNullable = &PatchedWritableDataSourceRequest{}
// PatchedWritableDataSourceRequest Adds support for custom fields and tags.
type PatchedWritableDataSourceRequest struct {
- Name *string `json:"name,omitempty"`
- // * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3
- Type *string `json:"type,omitempty"`
- SourceUrl *string `json:"source_url,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Parameters map[string]interface{} `json:"parameters,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Type *string `json:"type,omitempty"`
+ SourceUrl *string `json:"source_url,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Parameters interface{} `json:"parameters,omitempty"`
// Patterns (one per line) matching files to ignore when syncing
IgnoreRules *string `json:"ignore_rules,omitempty"`
AdditionalProperties map[string]interface{}
@@ -244,9 +243,9 @@ func (o *PatchedWritableDataSourceRequest) SetComments(v string) {
}
// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDataSourceRequest) GetParameters() map[string]interface{} {
+func (o *PatchedWritableDataSourceRequest) GetParameters() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.Parameters
@@ -255,11 +254,11 @@ func (o *PatchedWritableDataSourceRequest) GetParameters() map[string]interface{
// 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 *PatchedWritableDataSourceRequest) GetParametersOk() (map[string]interface{}, bool) {
+func (o *PatchedWritableDataSourceRequest) GetParametersOk() (*interface{}, bool) {
if o == nil || IsNil(o.Parameters) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Parameters, true
+ return &o.Parameters, true
}
// HasParameters returns a boolean if a field has been set.
@@ -271,8 +270,8 @@ func (o *PatchedWritableDataSourceRequest) HasParameters() bool {
return false
}
-// SetParameters gets a reference to the given map[string]interface{} and assigns it to the Parameters field.
-func (o *PatchedWritableDataSourceRequest) SetParameters(v map[string]interface{}) {
+// SetParameters gets a reference to the given interface{} and assigns it to the Parameters field.
+func (o *PatchedWritableDataSourceRequest) SetParameters(v interface{}) {
o.Parameters = v
}
@@ -350,10 +349,10 @@ func (o PatchedWritableDataSourceRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *PatchedWritableDataSourceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableDataSourceRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableDataSourceRequest := _PatchedWritableDataSourceRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableDataSourceRequest)
+ err = json.Unmarshal(data, &varPatchedWritableDataSourceRequest)
if err != nil {
return err
@@ -363,7 +362,7 @@ func (o *PatchedWritableDataSourceRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "type")
delete(additionalProperties, "source_url")
diff --git a/model_patched_writable_device_bay_request.go b/model_patched_writable_device_bay_request.go
index 0f5e25a42b..3f6c89b956 100644
--- a/model_patched_writable_device_bay_request.go
+++ b/model_patched_writable_device_bay_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -323,10 +323,10 @@ func (o PatchedWritableDeviceBayRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableDeviceBayRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableDeviceBayRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableDeviceBayRequest := _PatchedWritableDeviceBayRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableDeviceBayRequest)
+ err = json.Unmarshal(data, &varPatchedWritableDeviceBayRequest)
if err != nil {
return err
@@ -336,7 +336,7 @@ func (o *PatchedWritableDeviceBayRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "name")
delete(additionalProperties, "label")
diff --git a/model_patched_writable_device_bay_template_request.go b/model_patched_writable_device_bay_template_request.go
index bcc890a70b..1e9275559f 100644
--- a/model_patched_writable_device_bay_template_request.go
+++ b/model_patched_writable_device_bay_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -205,10 +205,10 @@ func (o PatchedWritableDeviceBayTemplateRequest) ToMap() (map[string]interface{}
return toSerialize, nil
}
-func (o *PatchedWritableDeviceBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableDeviceBayTemplateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableDeviceBayTemplateRequest := _PatchedWritableDeviceBayTemplateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableDeviceBayTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedWritableDeviceBayTemplateRequest)
if err != nil {
return err
@@ -218,7 +218,7 @@ func (o *PatchedWritableDeviceBayTemplateRequest) UnmarshalJSON(bytes []byte) (e
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "name")
delete(additionalProperties, "label")
diff --git a/model_patched_writable_device_role_request.go b/model_patched_writable_device_role_request.go
index 5ca8ef3770..7708e4c552 100644
--- a/model_patched_writable_device_role_request.go
+++ b/model_patched_writable_device_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -359,10 +359,10 @@ func (o PatchedWritableDeviceRoleRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *PatchedWritableDeviceRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableDeviceRoleRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableDeviceRoleRequest := _PatchedWritableDeviceRoleRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableDeviceRoleRequest)
+ err = json.Unmarshal(data, &varPatchedWritableDeviceRoleRequest)
if err != nil {
return err
@@ -372,7 +372,7 @@ func (o *PatchedWritableDeviceRoleRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "color")
diff --git a/model_patched_writable_device_type_request.go b/model_patched_writable_device_type_request.go
index 4ffc3aad86..4e0d4ee439 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -27,21 +27,20 @@ type PatchedWritableDeviceTypeRequest struct {
// Discrete part number (optional)
PartNumber *string `json:"part_number,omitempty"`
UHeight *float64 `json:"u_height,omitempty"`
- // Device consumes both front and rear rack faces
- IsFullDepth *bool `json:"is_full_depth,omitempty"`
- // Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. * `parent` - Parent * `child` - Child
- SubdeviceRole *string `json:"subdevice_role,omitempty"`
- // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed
- Airflow *string `json:"airflow,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
- WeightUnit *string `json:"weight_unit,omitempty"`
- FrontImage **os.File `json:"front_image,omitempty"`
- RearImage **os.File `json:"rear_image,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ // 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"`
AdditionalProperties map[string]interface{}
}
@@ -271,6 +270,38 @@ func (o *PatchedWritableDeviceTypeRequest) SetUHeight(v float64) {
o.UHeight = &v
}
+// GetExcludeFromUtilization returns the ExcludeFromUtilization field value if set, zero value otherwise.
+func (o *PatchedWritableDeviceTypeRequest) 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 *PatchedWritableDeviceTypeRequest) 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 *PatchedWritableDeviceTypeRequest) 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 *PatchedWritableDeviceTypeRequest) SetExcludeFromUtilization(v bool) {
+ o.ExcludeFromUtilization = &v
+}
+
// GetIsFullDepth returns the IsFullDepth field value if set, zero value otherwise.
func (o *PatchedWritableDeviceTypeRequest) GetIsFullDepth() bool {
if o == nil || IsNil(o.IsFullDepth) {
@@ -304,9 +335,9 @@ func (o *PatchedWritableDeviceTypeRequest) SetIsFullDepth(v bool) {
}
// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRole() string {
+func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus {
if o == nil || IsNil(o.SubdeviceRole) {
- var ret string
+ var ret ParentChildStatus
return ret
}
return *o.SubdeviceRole
@@ -314,7 +345,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRole() string {
// 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() (*string, bool) {
+func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus, bool) {
if o == nil || IsNil(o.SubdeviceRole) {
return nil, false
}
@@ -330,15 +361,15 @@ func (o *PatchedWritableDeviceTypeRequest) HasSubdeviceRole() bool {
return false
}
-// SetSubdeviceRole gets a reference to the given string and assigns it to the SubdeviceRole field.
-func (o *PatchedWritableDeviceTypeRequest) SetSubdeviceRole(v string) {
+// SetSubdeviceRole gets a reference to the given ParentChildStatus and assigns it to the SubdeviceRole field.
+func (o *PatchedWritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus) {
o.SubdeviceRole = &v
}
// GetAirflow returns the Airflow field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceTypeRequest) GetAirflow() string {
+func (o *PatchedWritableDeviceTypeRequest) GetAirflow() DeviceAirflowValue {
if o == nil || IsNil(o.Airflow) {
- var ret string
+ var ret DeviceAirflowValue
return ret
}
return *o.Airflow
@@ -346,7 +377,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetAirflow() string {
// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableDeviceTypeRequest) GetAirflowOk() (*string, bool) {
+func (o *PatchedWritableDeviceTypeRequest) GetAirflowOk() (*DeviceAirflowValue, bool) {
if o == nil || IsNil(o.Airflow) {
return nil, false
}
@@ -362,8 +393,8 @@ func (o *PatchedWritableDeviceTypeRequest) HasAirflow() bool {
return false
}
-// SetAirflow gets a reference to the given string and assigns it to the Airflow field.
-func (o *PatchedWritableDeviceTypeRequest) SetAirflow(v string) {
+// SetAirflow gets a reference to the given DeviceAirflowValue and assigns it to the Airflow field.
+func (o *PatchedWritableDeviceTypeRequest) SetAirflow(v DeviceAirflowValue) {
o.Airflow = &v
}
@@ -411,9 +442,9 @@ func (o *PatchedWritableDeviceTypeRequest) UnsetWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() string {
+func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
if o == nil || IsNil(o.WeightUnit) {
- var ret string
+ var ret DeviceTypeWeightUnitValue
return ret
}
return *o.WeightUnit
@@ -421,7 +452,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() string {
// 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() (*string, bool) {
+func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) {
if o == nil || IsNil(o.WeightUnit) {
return nil, false
}
@@ -437,8 +468,8 @@ func (o *PatchedWritableDeviceTypeRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given string and assigns it to the WeightUnit field.
-func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v string) {
+// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field.
+func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) {
o.WeightUnit = &v
}
@@ -662,6 +693,9 @@ func (o PatchedWritableDeviceTypeRequest) ToMap() (map[string]interface{}, error
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
}
@@ -703,10 +737,10 @@ func (o PatchedWritableDeviceTypeRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *PatchedWritableDeviceTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableDeviceTypeRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableDeviceTypeRequest := _PatchedWritableDeviceTypeRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableDeviceTypeRequest)
+ err = json.Unmarshal(data, &varPatchedWritableDeviceTypeRequest)
if err != nil {
return err
@@ -716,13 +750,14 @@ func (o *PatchedWritableDeviceTypeRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ 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")
diff --git a/model_patched_writable_device_with_config_context_request.go b/model_patched_writable_device_with_config_context_request.go
index 18d9be7730..c9eb5d8fdb 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -33,29 +33,26 @@ type PatchedWritableDeviceWithConfigContextRequest struct {
Location NullableInt32 `json:"location,omitempty"`
Rack NullableInt32 `json:"rack,omitempty"`
Position NullableFloat64 `json:"position,omitempty"`
- // * `front` - Front * `rear` - Rear
- Face *string `json:"face,omitempty"`
+ Face *RackFace `json:"face,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
Latitude NullableFloat64 `json:"latitude,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
- Longitude NullableFloat64 `json:"longitude,omitempty"`
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed
- Airflow *string `json:"airflow,omitempty"`
- PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"`
- 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 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"`
// 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"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData map[string]interface{} `json:"local_context_data,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -510,9 +507,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPosition() {
}
// GetFace returns the Face field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetFace() string {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetFace() RackFace {
if o == nil || IsNil(o.Face) {
- var ret string
+ var ret RackFace
return ret
}
return *o.Face
@@ -520,7 +517,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetFace() string {
// 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() (*string, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetFaceOk() (*RackFace, bool) {
if o == nil || IsNil(o.Face) {
return nil, false
}
@@ -536,8 +533,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasFace() bool {
return false
}
-// SetFace gets a reference to the given string and assigns it to the Face field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetFace(v string) {
+// SetFace gets a reference to the given RackFace and assigns it to the Face field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetFace(v RackFace) {
o.Face = &v
}
@@ -628,9 +625,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetLongitude() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetStatus() string {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetStatus() DeviceStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret DeviceStatusValue
return ret
}
return *o.Status
@@ -638,7 +635,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetStatus() string {
// 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 *PatchedWritableDeviceWithConfigContextRequest) GetStatusOk() (*string, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetStatusOk() (*DeviceStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -654,15 +651,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given DeviceStatusValue and assigns it to the Status field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetStatus(v DeviceStatusValue) {
o.Status = &v
}
// GetAirflow returns the Airflow field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflow() string {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflow() DeviceAirflowValue {
if o == nil || IsNil(o.Airflow) {
- var ret string
+ var ret DeviceAirflowValue
return ret
}
return *o.Airflow
@@ -670,7 +667,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflow() string {
// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflowOk() (*string, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceAirflowValue, bool) {
if o == nil || IsNil(o.Airflow) {
return nil, false
}
@@ -686,8 +683,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasAirflow() bool {
return false
}
-// SetAirflow gets a reference to the given string and assigns it to the Airflow field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v string) {
+// SetAirflow gets a reference to the given DeviceAirflowValue and assigns it to the Airflow field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue) {
o.Airflow = &v
}
@@ -1100,9 +1097,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetConfigTemplate() {
}
// GetLocalContextData returns the LocalContextData field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocalContextData() map[string]interface{} {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocalContextData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.LocalContextData
@@ -1111,11 +1108,11 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocalContextData() ma
// GetLocalContextDataOk returns a tuple with the LocalContextData field value if set, nil otherwise
// and a 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) GetLocalContextDataOk() (map[string]interface{}, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocalContextDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.LocalContextData) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.LocalContextData, true
+ return &o.LocalContextData, true
}
// HasLocalContextData returns a boolean if a field has been set.
@@ -1127,8 +1124,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasLocalContextData() bo
return false
}
-// SetLocalContextData gets a reference to the given map[string]interface{} and assigns it to the LocalContextData field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocalContextData(v map[string]interface{}) {
+// SetLocalContextData gets a reference to the given interface{} and assigns it to the LocalContextData field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocalContextData(v interface{}) {
o.LocalContextData = v
}
@@ -1301,10 +1298,10 @@ func (o PatchedWritableDeviceWithConfigContextRequest) ToMap() (map[string]inter
return toSerialize, nil
}
-func (o *PatchedWritableDeviceWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableDeviceWithConfigContextRequest := _PatchedWritableDeviceWithConfigContextRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableDeviceWithConfigContextRequest)
+ err = json.Unmarshal(data, &varPatchedWritableDeviceWithConfigContextRequest)
if err != nil {
return err
@@ -1314,7 +1311,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnmarshalJSON(bytes []by
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "device_type")
delete(additionalProperties, "role")
diff --git a/model_patched_writable_event_rule_request.go b/model_patched_writable_event_rule_request.go
new file mode 100644
index 0000000000..6ab537e479
--- /dev/null
+++ b/model_patched_writable_event_rule_request.go
@@ -0,0 +1,689 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PatchedWritableEventRuleRequest type satisfies the MappedNullable interface at compile time
+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"`
+ // Triggers when a matching object is created.
+ TypeCreate *bool `json:"type_create,omitempty"`
+ // Triggers when a matching object is updated.
+ TypeUpdate *bool `json:"type_update,omitempty"`
+ // Triggers when a matching object is deleted.
+ TypeDelete *bool `json:"type_delete,omitempty"`
+ // Triggers when a job for a matching object is started.
+ TypeJobStart *bool `json:"type_job_start,omitempty"`
+ // Triggers when a job for a matching object terminates.
+ TypeJobEnd *bool `json:"type_job_end,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ // A set of conditions which determine whether the event will be generated.
+ Conditions interface{} `json:"conditions,omitempty"`
+ ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"`
+ ActionObjectType *string `json:"action_object_type,omitempty"`
+ ActionObjectId NullableInt64 `json:"action_object_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedWritableEventRuleRequest PatchedWritableEventRuleRequest
+
+// NewPatchedWritableEventRuleRequest instantiates a new PatchedWritableEventRuleRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPatchedWritableEventRuleRequest() *PatchedWritableEventRuleRequest {
+ this := PatchedWritableEventRuleRequest{}
+ return &this
+}
+
+// NewPatchedWritableEventRuleRequestWithDefaults instantiates a new PatchedWritableEventRuleRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPatchedWritableEventRuleRequestWithDefaults() *PatchedWritableEventRuleRequest {
+ this := PatchedWritableEventRuleRequest{}
+ return &this
+}
+
+// GetContentTypes returns the ContentTypes field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) GetContentTypes() []string {
+ if o == nil || IsNil(o.ContentTypes) {
+ var ret []string
+ return ret
+ }
+ return o.ContentTypes
+}
+
+// GetContentTypesOk returns a tuple with the ContentTypes 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) {
+ return nil, false
+ }
+ return o.ContentTypes, true
+}
+
+// HasContentTypes returns a boolean if a field has been set.
+func (o *PatchedWritableEventRuleRequest) HasContentTypes() bool {
+ if o != nil && !IsNil(o.ContentTypes) {
+ 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
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) SetName(v string) {
+ o.Name = &v
+}
+
+// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) GetTypeCreate() bool {
+ if o == nil || IsNil(o.TypeCreate) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeCreate
+}
+
+// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableEventRuleRequest) GetTypeCreateOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeCreate) {
+ return nil, false
+ }
+ return o.TypeCreate, true
+}
+
+// HasTypeCreate returns a boolean if a field has been set.
+func (o *PatchedWritableEventRuleRequest) HasTypeCreate() bool {
+ if o != nil && !IsNil(o.TypeCreate) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field.
+func (o *PatchedWritableEventRuleRequest) SetTypeCreate(v bool) {
+ o.TypeCreate = &v
+}
+
+// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) GetTypeUpdate() bool {
+ if o == nil || IsNil(o.TypeUpdate) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeUpdate
+}
+
+// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeUpdate) {
+ return nil, false
+ }
+ return o.TypeUpdate, true
+}
+
+// HasTypeUpdate returns a boolean if a field has been set.
+func (o *PatchedWritableEventRuleRequest) HasTypeUpdate() bool {
+ if o != nil && !IsNil(o.TypeUpdate) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field.
+func (o *PatchedWritableEventRuleRequest) SetTypeUpdate(v bool) {
+ o.TypeUpdate = &v
+}
+
+// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) GetTypeDelete() bool {
+ if o == nil || IsNil(o.TypeDelete) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeDelete
+}
+
+// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeDelete) {
+ return nil, false
+ }
+ return o.TypeDelete, true
+}
+
+// HasTypeDelete returns a boolean if a field has been set.
+func (o *PatchedWritableEventRuleRequest) HasTypeDelete() bool {
+ if o != nil && !IsNil(o.TypeDelete) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field.
+func (o *PatchedWritableEventRuleRequest) SetTypeDelete(v bool) {
+ o.TypeDelete = &v
+}
+
+// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) GetTypeJobStart() bool {
+ if o == nil || IsNil(o.TypeJobStart) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeJobStart
+}
+
+// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeJobStart) {
+ return nil, false
+ }
+ return o.TypeJobStart, true
+}
+
+// HasTypeJobStart returns a boolean if a field has been set.
+func (o *PatchedWritableEventRuleRequest) HasTypeJobStart() bool {
+ if o != nil && !IsNil(o.TypeJobStart) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field.
+func (o *PatchedWritableEventRuleRequest) SetTypeJobStart(v bool) {
+ o.TypeJobStart = &v
+}
+
+// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) GetTypeJobEnd() bool {
+ if o == nil || IsNil(o.TypeJobEnd) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeJobEnd
+}
+
+// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeJobEnd) {
+ return nil, false
+ }
+ return o.TypeJobEnd, true
+}
+
+// HasTypeJobEnd returns a boolean if a field has been set.
+func (o *PatchedWritableEventRuleRequest) HasTypeJobEnd() bool {
+ if o != nil && !IsNil(o.TypeJobEnd) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field.
+func (o *PatchedWritableEventRuleRequest) SetTypeJobEnd(v bool) {
+ o.TypeJobEnd = &v
+}
+
+// GetEnabled returns the Enabled field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) GetEnabled() bool {
+ if o == nil || IsNil(o.Enabled) {
+ var ret bool
+ 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 *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) SetEnabled(v bool) {
+ o.Enabled = &v
+}
+
+// GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableEventRuleRequest) GetConditions() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.Conditions
+}
+
+// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableEventRuleRequest) GetConditionsOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Conditions) {
+ return nil, false
+ }
+ return &o.Conditions, true
+}
+
+// HasConditions returns a boolean if a field has been set.
+func (o *PatchedWritableEventRuleRequest) HasConditions() bool {
+ if o != nil && IsNil(o.Conditions) {
+ return true
+ }
+
+ return false
+}
+
+// SetConditions gets a reference to the given interface{} and assigns it to the Conditions field.
+func (o *PatchedWritableEventRuleRequest) SetConditions(v interface{}) {
+ o.Conditions = v
+}
+
+// GetActionType returns the ActionType field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) GetActionType() EventRuleActionTypeValue {
+ if o == nil || IsNil(o.ActionType) {
+ var ret EventRuleActionTypeValue
+ return ret
+ }
+ return *o.ActionType
+}
+
+// GetActionTypeOk returns a tuple with the ActionType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableEventRuleRequest) GetActionTypeOk() (*EventRuleActionTypeValue, bool) {
+ if o == nil || IsNil(o.ActionType) {
+ return nil, false
+ }
+ return o.ActionType, true
+}
+
+// HasActionType returns a boolean if a field has been set.
+func (o *PatchedWritableEventRuleRequest) HasActionType() bool {
+ if o != nil && !IsNil(o.ActionType) {
+ return true
+ }
+
+ return false
+}
+
+// SetActionType gets a reference to the given EventRuleActionTypeValue and assigns it to the ActionType field.
+func (o *PatchedWritableEventRuleRequest) SetActionType(v EventRuleActionTypeValue) {
+ o.ActionType = &v
+}
+
+// GetActionObjectType returns the ActionObjectType field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) GetActionObjectType() string {
+ if o == nil || IsNil(o.ActionObjectType) {
+ var ret string
+ return ret
+ }
+ return *o.ActionObjectType
+}
+
+// GetActionObjectTypeOk returns a tuple with the ActionObjectType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableEventRuleRequest) GetActionObjectTypeOk() (*string, bool) {
+ if o == nil || IsNil(o.ActionObjectType) {
+ return nil, false
+ }
+ return o.ActionObjectType, true
+}
+
+// HasActionObjectType returns a boolean if a field has been set.
+func (o *PatchedWritableEventRuleRequest) HasActionObjectType() bool {
+ if o != nil && !IsNil(o.ActionObjectType) {
+ return true
+ }
+
+ return false
+}
+
+// SetActionObjectType gets a reference to the given string and assigns it to the ActionObjectType field.
+func (o *PatchedWritableEventRuleRequest) SetActionObjectType(v string) {
+ o.ActionObjectType = &v
+}
+
+// GetActionObjectId returns the ActionObjectId field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableEventRuleRequest) GetActionObjectId() int64 {
+ if o == nil || IsNil(o.ActionObjectId.Get()) {
+ var ret int64
+ return ret
+ }
+ return *o.ActionObjectId.Get()
+}
+
+// GetActionObjectIdOk returns a tuple with the ActionObjectId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableEventRuleRequest) GetActionObjectIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ActionObjectId.Get(), o.ActionObjectId.IsSet()
+}
+
+// HasActionObjectId returns a boolean if a field has been set.
+func (o *PatchedWritableEventRuleRequest) HasActionObjectId() bool {
+ if o != nil && o.ActionObjectId.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetActionObjectId gets a reference to the given NullableInt64 and assigns it to the ActionObjectId field.
+func (o *PatchedWritableEventRuleRequest) SetActionObjectId(v int64) {
+ o.ActionObjectId.Set(&v)
+}
+
+// SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil
+func (o *PatchedWritableEventRuleRequest) SetActionObjectIdNil() {
+ o.ActionObjectId.Set(nil)
+}
+
+// UnsetActionObjectId ensures that no value is present for ActionObjectId, not even an explicit nil
+func (o *PatchedWritableEventRuleRequest) UnsetActionObjectId() {
+ o.ActionObjectId.Unset()
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+func (o PatchedWritableEventRuleRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedWritableEventRuleRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.ContentTypes) {
+ toSerialize["content_types"] = o.ContentTypes
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.TypeCreate) {
+ toSerialize["type_create"] = o.TypeCreate
+ }
+ if !IsNil(o.TypeUpdate) {
+ toSerialize["type_update"] = o.TypeUpdate
+ }
+ if !IsNil(o.TypeDelete) {
+ toSerialize["type_delete"] = o.TypeDelete
+ }
+ if !IsNil(o.TypeJobStart) {
+ toSerialize["type_job_start"] = o.TypeJobStart
+ }
+ if !IsNil(o.TypeJobEnd) {
+ toSerialize["type_job_end"] = o.TypeJobEnd
+ }
+ if !IsNil(o.Enabled) {
+ toSerialize["enabled"] = o.Enabled
+ }
+ if o.Conditions != nil {
+ toSerialize["conditions"] = o.Conditions
+ }
+ if !IsNil(o.ActionType) {
+ toSerialize["action_type"] = o.ActionType
+ }
+ if !IsNil(o.ActionObjectType) {
+ toSerialize["action_object_type"] = o.ActionObjectType
+ }
+ if o.ActionObjectId.IsSet() {
+ toSerialize["action_object_id"] = o.ActionObjectId.Get()
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PatchedWritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedWritableEventRuleRequest := _PatchedWritableEventRuleRequest{}
+
+ err = json.Unmarshal(data, &varPatchedWritableEventRuleRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedWritableEventRuleRequest(varPatchedWritableEventRuleRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "content_types")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "type_create")
+ delete(additionalProperties, "type_update")
+ delete(additionalProperties, "type_delete")
+ delete(additionalProperties, "type_job_start")
+ delete(additionalProperties, "type_job_end")
+ delete(additionalProperties, "enabled")
+ delete(additionalProperties, "conditions")
+ delete(additionalProperties, "action_type")
+ delete(additionalProperties, "action_object_type")
+ delete(additionalProperties, "action_object_id")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "tags")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePatchedWritableEventRuleRequest struct {
+ value *PatchedWritableEventRuleRequest
+ isSet bool
+}
+
+func (v NullablePatchedWritableEventRuleRequest) Get() *PatchedWritableEventRuleRequest {
+ return v.value
+}
+
+func (v *NullablePatchedWritableEventRuleRequest) Set(val *PatchedWritableEventRuleRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableEventRuleRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableEventRuleRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableEventRuleRequest(val *PatchedWritableEventRuleRequest) *NullablePatchedWritableEventRuleRequest {
+ return &NullablePatchedWritableEventRuleRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableEventRuleRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableEventRuleRequest) 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_writable_export_template_request.go
index bea6e3e7aa..bfaefb827b 100644
--- a/model_patched_writable_export_template_request.go
+++ b/model_patched_writable_export_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -363,10 +363,10 @@ func (o PatchedWritableExportTemplateRequest) ToMap() (map[string]interface{}, e
return toSerialize, nil
}
-func (o *PatchedWritableExportTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableExportTemplateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableExportTemplateRequest := _PatchedWritableExportTemplateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableExportTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedWritableExportTemplateRequest)
if err != nil {
return err
@@ -376,7 +376,7 @@ func (o *PatchedWritableExportTemplateRequest) UnmarshalJSON(bytes []byte) (err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_types")
delete(additionalProperties, "name")
delete(additionalProperties, "description")
diff --git a/model_patched_writable_fhrp_group_assignment_request.go b/model_patched_writable_fhrp_group_assignment_request.go
index c942782075..7d601281c6 100644
--- a/model_patched_writable_fhrp_group_assignment_request.go
+++ b/model_patched_writable_fhrp_group_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -203,10 +203,10 @@ func (o PatchedWritableFHRPGroupAssignmentRequest) ToMap() (map[string]interface
return toSerialize, nil
}
-func (o *PatchedWritableFHRPGroupAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableFHRPGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableFHRPGroupAssignmentRequest := _PatchedWritableFHRPGroupAssignmentRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableFHRPGroupAssignmentRequest)
+ err = json.Unmarshal(data, &varPatchedWritableFHRPGroupAssignmentRequest)
if err != nil {
return err
@@ -216,7 +216,7 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) UnmarshalJSON(bytes []byte)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "group")
delete(additionalProperties, "interface_type")
delete(additionalProperties, "interface_id")
diff --git a/model_patched_writable_front_port_request.go b/model_patched_writable_front_port_request.go
index 55c1e05081..274f58501e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -23,11 +23,10 @@ type PatchedWritableFrontPortRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
- Type *string `json:"type,omitempty"`
- Color *string `json:"color,omitempty"`
- RearPort *int32 `json:"rear_port,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *FrontPortTypeValue `json:"type,omitempty"`
+ Color *string `json:"color,omitempty"`
+ RearPort *int32 `json:"rear_port,omitempty"`
// Mapped position on corresponding rear port
RearPortPosition *int32 `json:"rear_port_position,omitempty"`
Description *string `json:"description,omitempty"`
@@ -197,9 +196,9 @@ func (o *PatchedWritableFrontPortRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableFrontPortRequest) GetType() string {
+func (o *PatchedWritableFrontPortRequest) GetType() FrontPortTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret FrontPortTypeValue
return ret
}
return *o.Type
@@ -207,7 +206,7 @@ func (o *PatchedWritableFrontPortRequest) GetType() string {
// 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 *PatchedWritableFrontPortRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritableFrontPortRequest) GetTypeOk() (*FrontPortTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -223,8 +222,8 @@ func (o *PatchedWritableFrontPortRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableFrontPortRequest) SetType(v string) {
+// SetType gets a reference to the given FrontPortTypeValue and assigns it to the Type field.
+func (o *PatchedWritableFrontPortRequest) SetType(v FrontPortTypeValue) {
o.Type = &v
}
@@ -506,10 +505,10 @@ func (o PatchedWritableFrontPortRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableFrontPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableFrontPortRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableFrontPortRequest := _PatchedWritableFrontPortRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableFrontPortRequest)
+ err = json.Unmarshal(data, &varPatchedWritableFrontPortRequest)
if err != nil {
return err
@@ -519,7 +518,7 @@ func (o *PatchedWritableFrontPortRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_front_port_template_request.go b/model_patched_writable_front_port_template_request.go
index 1e633a2c53..282ee5a98c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,13 +24,12 @@ type PatchedWritableFrontPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
- Type *string `json:"type,omitempty"`
- Color *string `json:"color,omitempty"`
- RearPort *int32 `json:"rear_port,omitempty"`
- RearPortPosition *int32 `json:"rear_port_position,omitempty"`
- Description *string `json:"description,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -204,9 +203,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableFrontPortTemplateRequest) GetType() string {
+func (o *PatchedWritableFrontPortTemplateRequest) GetType() FrontPortTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret FrontPortTypeValue
return ret
}
return *o.Type
@@ -214,7 +213,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetType() string {
// 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 *PatchedWritableFrontPortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritableFrontPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -230,8 +229,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableFrontPortTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given FrontPortTypeValue and assigns it to the Type field.
+func (o *PatchedWritableFrontPortTemplateRequest) SetType(v FrontPortTypeValue) {
o.Type = &v
}
@@ -408,10 +407,10 @@ func (o PatchedWritableFrontPortTemplateRequest) ToMap() (map[string]interface{}
return toSerialize, nil
}
-func (o *PatchedWritableFrontPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableFrontPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableFrontPortTemplateRequest := _PatchedWritableFrontPortTemplateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableFrontPortTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedWritableFrontPortTemplateRequest)
if err != nil {
return err
@@ -421,7 +420,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) UnmarshalJSON(bytes []byte) (e
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_ike_policy_request.go b/model_patched_writable_ike_policy_request.go
new file mode 100644
index 0000000000..d866636e81
--- /dev/null
+++ b/model_patched_writable_ike_policy_request.go
@@ -0,0 +1,449 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PatchedWritableIKEPolicyRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedWritableIKEPolicyRequest{}
+
+// PatchedWritableIKEPolicyRequest Adds support for custom fields and tags.
+type PatchedWritableIKEPolicyRequest struct {
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Version *PatchedWritableIKEPolicyRequestVersion `json:"version,omitempty"`
+ Mode *IKEPolicyModeValue `json:"mode,omitempty"`
+ Proposals []int32 `json:"proposals,omitempty"`
+ PresharedKey *string `json:"preshared_key,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedWritableIKEPolicyRequest PatchedWritableIKEPolicyRequest
+
+// NewPatchedWritableIKEPolicyRequest instantiates a new PatchedWritableIKEPolicyRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPatchedWritableIKEPolicyRequest() *PatchedWritableIKEPolicyRequest {
+ this := PatchedWritableIKEPolicyRequest{}
+ return &this
+}
+
+// NewPatchedWritableIKEPolicyRequestWithDefaults instantiates a new PatchedWritableIKEPolicyRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPatchedWritableIKEPolicyRequestWithDefaults() *PatchedWritableIKEPolicyRequest {
+ this := PatchedWritableIKEPolicyRequest{}
+ return &this
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) SetName(v string) {
+ o.Name = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetVersion returns the Version field value if set, zero value otherwise.
+func (o *PatchedWritableIKEPolicyRequest) GetVersion() PatchedWritableIKEPolicyRequestVersion {
+ if o == nil || IsNil(o.Version) {
+ var ret PatchedWritableIKEPolicyRequestVersion
+ return ret
+ }
+ return *o.Version
+}
+
+// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableIKEPolicyRequest) GetVersionOk() (*PatchedWritableIKEPolicyRequestVersion, bool) {
+ if o == nil || IsNil(o.Version) {
+ return nil, false
+ }
+ return o.Version, true
+}
+
+// HasVersion returns a boolean if a field has been set.
+func (o *PatchedWritableIKEPolicyRequest) HasVersion() bool {
+ if o != nil && !IsNil(o.Version) {
+ return true
+ }
+
+ return false
+}
+
+// SetVersion gets a reference to the given PatchedWritableIKEPolicyRequestVersion and assigns it to the Version field.
+func (o *PatchedWritableIKEPolicyRequest) SetVersion(v PatchedWritableIKEPolicyRequestVersion) {
+ o.Version = &v
+}
+
+// GetMode returns the Mode field value if set, zero value otherwise.
+func (o *PatchedWritableIKEPolicyRequest) GetMode() IKEPolicyModeValue {
+ if o == nil || IsNil(o.Mode) {
+ var ret IKEPolicyModeValue
+ return ret
+ }
+ return *o.Mode
+}
+
+// GetModeOk returns a tuple with the Mode field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableIKEPolicyRequest) GetModeOk() (*IKEPolicyModeValue, bool) {
+ if o == nil || IsNil(o.Mode) {
+ return nil, false
+ }
+ return o.Mode, true
+}
+
+// HasMode returns a boolean if a field has been set.
+func (o *PatchedWritableIKEPolicyRequest) HasMode() bool {
+ if o != nil && !IsNil(o.Mode) {
+ return true
+ }
+
+ return false
+}
+
+// SetMode gets a reference to the given IKEPolicyModeValue and assigns it to the Mode field.
+func (o *PatchedWritableIKEPolicyRequest) SetMode(v IKEPolicyModeValue) {
+ o.Mode = &v
+}
+
+// GetProposals returns the Proposals field value if set, zero value otherwise.
+func (o *PatchedWritableIKEPolicyRequest) GetProposals() []int32 {
+ if o == nil || IsNil(o.Proposals) {
+ var ret []int32
+ return ret
+ }
+ return o.Proposals
+}
+
+// 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 *PatchedWritableIKEPolicyRequest) GetProposalsOk() ([]int32, bool) {
+ if o == nil || IsNil(o.Proposals) {
+ return nil, false
+ }
+ return o.Proposals, true
+}
+
+// HasProposals returns a boolean if a field has been set.
+func (o *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) SetProposals(v []int32) {
+ o.Proposals = v
+}
+
+// GetPresharedKey returns the PresharedKey field value if set, zero value otherwise.
+func (o *PatchedWritableIKEPolicyRequest) GetPresharedKey() string {
+ if o == nil || IsNil(o.PresharedKey) {
+ var ret string
+ return ret
+ }
+ return *o.PresharedKey
+}
+
+// GetPresharedKeyOk returns a tuple with the PresharedKey field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableIKEPolicyRequest) GetPresharedKeyOk() (*string, bool) {
+ if o == nil || IsNil(o.PresharedKey) {
+ return nil, false
+ }
+ return o.PresharedKey, true
+}
+
+// HasPresharedKey returns a boolean if a field has been set.
+func (o *PatchedWritableIKEPolicyRequest) HasPresharedKey() bool {
+ if o != nil && !IsNil(o.PresharedKey) {
+ return true
+ }
+
+ return false
+}
+
+// SetPresharedKey gets a reference to the given string and assigns it to the PresharedKey field.
+func (o *PatchedWritableIKEPolicyRequest) SetPresharedKey(v string) {
+ o.PresharedKey = &v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) 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 *PatchedWritableIKEPolicyRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o PatchedWritableIKEPolicyRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedWritableIKEPolicyRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.Version) {
+ toSerialize["version"] = o.Version
+ }
+ if !IsNil(o.Mode) {
+ toSerialize["mode"] = o.Mode
+ }
+ if !IsNil(o.Proposals) {
+ toSerialize["proposals"] = o.Proposals
+ }
+ if !IsNil(o.PresharedKey) {
+ toSerialize["preshared_key"] = o.PresharedKey
+ }
+ 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 *PatchedWritableIKEPolicyRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedWritableIKEPolicyRequest := _PatchedWritableIKEPolicyRequest{}
+
+ err = json.Unmarshal(data, &varPatchedWritableIKEPolicyRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedWritableIKEPolicyRequest(varPatchedWritableIKEPolicyRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "version")
+ delete(additionalProperties, "mode")
+ delete(additionalProperties, "proposals")
+ delete(additionalProperties, "preshared_key")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePatchedWritableIKEPolicyRequest struct {
+ value *PatchedWritableIKEPolicyRequest
+ isSet bool
+}
+
+func (v NullablePatchedWritableIKEPolicyRequest) Get() *PatchedWritableIKEPolicyRequest {
+ return v.value
+}
+
+func (v *NullablePatchedWritableIKEPolicyRequest) Set(val *PatchedWritableIKEPolicyRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableIKEPolicyRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableIKEPolicyRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableIKEPolicyRequest(val *PatchedWritableIKEPolicyRequest) *NullablePatchedWritableIKEPolicyRequest {
+ return &NullablePatchedWritableIKEPolicyRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableIKEPolicyRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableIKEPolicyRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_ike_policy_request_version.go b/model_patched_writable_ike_policy_request_version.go
new file mode 100644
index 0000000000..4004774aec
--- /dev/null
+++ b/model_patched_writable_ike_policy_request_version.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableIKEPolicyRequestVersion * `1` - IKEv1 * `2` - IKEv2
+type PatchedWritableIKEPolicyRequestVersion int32
+
+// List of PatchedWritableIKEPolicyRequest_version
+const (
+ PATCHEDWRITABLEIKEPOLICYREQUESTVERSION__1 PatchedWritableIKEPolicyRequestVersion = 1
+ PATCHEDWRITABLEIKEPOLICYREQUESTVERSION__2 PatchedWritableIKEPolicyRequestVersion = 2
+)
+
+// All allowed values of PatchedWritableIKEPolicyRequestVersion enum
+var AllowedPatchedWritableIKEPolicyRequestVersionEnumValues = []PatchedWritableIKEPolicyRequestVersion{
+ 1,
+ 2,
+}
+
+func (v *PatchedWritableIKEPolicyRequestVersion) UnmarshalJSON(src []byte) error {
+ var value int32
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableIKEPolicyRequestVersion(value)
+ for _, existing := range AllowedPatchedWritableIKEPolicyRequestVersionEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableIKEPolicyRequestVersion", value)
+}
+
+// NewPatchedWritableIKEPolicyRequestVersionFromValue returns a pointer to a valid PatchedWritableIKEPolicyRequestVersion
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableIKEPolicyRequestVersionFromValue(v int32) (*PatchedWritableIKEPolicyRequestVersion, error) {
+ ev := PatchedWritableIKEPolicyRequestVersion(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableIKEPolicyRequestVersion: valid values are %v", v, AllowedPatchedWritableIKEPolicyRequestVersionEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableIKEPolicyRequestVersion) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableIKEPolicyRequestVersionEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableIKEPolicyRequest_version value
+func (v PatchedWritableIKEPolicyRequestVersion) Ptr() *PatchedWritableIKEPolicyRequestVersion {
+ return &v
+}
+
+type NullablePatchedWritableIKEPolicyRequestVersion struct {
+ value *PatchedWritableIKEPolicyRequestVersion
+ isSet bool
+}
+
+func (v NullablePatchedWritableIKEPolicyRequestVersion) Get() *PatchedWritableIKEPolicyRequestVersion {
+ return v.value
+}
+
+func (v *NullablePatchedWritableIKEPolicyRequestVersion) Set(val *PatchedWritableIKEPolicyRequestVersion) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableIKEPolicyRequestVersion) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableIKEPolicyRequestVersion) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableIKEPolicyRequestVersion(val *PatchedWritableIKEPolicyRequestVersion) *NullablePatchedWritableIKEPolicyRequestVersion {
+ return &NullablePatchedWritableIKEPolicyRequestVersion{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableIKEPolicyRequestVersion) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableIKEPolicyRequestVersion) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_ike_proposal_request.go b/model_patched_writable_ike_proposal_request.go
new file mode 100644
index 0000000000..46743173e8
--- /dev/null
+++ b/model_patched_writable_ike_proposal_request.go
@@ -0,0 +1,498 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PatchedWritableIKEProposalRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedWritableIKEProposalRequest{}
+
+// PatchedWritableIKEProposalRequest Adds support for custom fields and tags.
+type PatchedWritableIKEProposalRequest struct {
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ AuthenticationMethod *IKEProposalAuthenticationMethodValue `json:"authentication_method,omitempty"`
+ EncryptionAlgorithm *IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm,omitempty"`
+ AuthenticationAlgorithm *PatchedWritableIKEProposalRequestAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"`
+ Group *PatchedWritableIKEProposalRequestGroup `json:"group,omitempty"`
+ // Security association lifetime (in seconds)
+ SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedWritableIKEProposalRequest PatchedWritableIKEProposalRequest
+
+// NewPatchedWritableIKEProposalRequest instantiates a new PatchedWritableIKEProposalRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPatchedWritableIKEProposalRequest() *PatchedWritableIKEProposalRequest {
+ this := PatchedWritableIKEProposalRequest{}
+ return &this
+}
+
+// NewPatchedWritableIKEProposalRequestWithDefaults instantiates a new PatchedWritableIKEProposalRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPatchedWritableIKEProposalRequestWithDefaults() *PatchedWritableIKEProposalRequest {
+ this := PatchedWritableIKEProposalRequest{}
+ return &this
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) SetName(v string) {
+ o.Name = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetAuthenticationMethod returns the AuthenticationMethod field value if set, zero value otherwise.
+func (o *PatchedWritableIKEProposalRequest) GetAuthenticationMethod() IKEProposalAuthenticationMethodValue {
+ if o == nil || IsNil(o.AuthenticationMethod) {
+ var ret IKEProposalAuthenticationMethodValue
+ return ret
+ }
+ return *o.AuthenticationMethod
+}
+
+// GetAuthenticationMethodOk returns a tuple with the AuthenticationMethod field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableIKEProposalRequest) GetAuthenticationMethodOk() (*IKEProposalAuthenticationMethodValue, bool) {
+ if o == nil || IsNil(o.AuthenticationMethod) {
+ return nil, false
+ }
+ return o.AuthenticationMethod, true
+}
+
+// HasAuthenticationMethod returns a boolean if a field has been set.
+func (o *PatchedWritableIKEProposalRequest) HasAuthenticationMethod() bool {
+ if o != nil && !IsNil(o.AuthenticationMethod) {
+ return true
+ }
+
+ return false
+}
+
+// SetAuthenticationMethod gets a reference to the given IKEProposalAuthenticationMethodValue and assigns it to the AuthenticationMethod field.
+func (o *PatchedWritableIKEProposalRequest) SetAuthenticationMethod(v IKEProposalAuthenticationMethodValue) {
+ o.AuthenticationMethod = &v
+}
+
+// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise.
+func (o *PatchedWritableIKEProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue {
+ if o == nil || IsNil(o.EncryptionAlgorithm) {
+ var ret IKEProposalEncryptionAlgorithmValue
+ return ret
+ }
+ return *o.EncryptionAlgorithm
+}
+
+// GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableIKEProposalRequest) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithmValue, bool) {
+ if o == nil || IsNil(o.EncryptionAlgorithm) {
+ return nil, false
+ }
+ return o.EncryptionAlgorithm, true
+}
+
+// HasEncryptionAlgorithm returns a boolean if a field has been set.
+func (o *PatchedWritableIKEProposalRequest) HasEncryptionAlgorithm() bool {
+ if o != nil && !IsNil(o.EncryptionAlgorithm) {
+ return true
+ }
+
+ return false
+}
+
+// SetEncryptionAlgorithm gets a reference to the given IKEProposalEncryptionAlgorithmValue and assigns it to the EncryptionAlgorithm field.
+func (o *PatchedWritableIKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithmValue) {
+ o.EncryptionAlgorithm = &v
+}
+
+// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise.
+func (o *PatchedWritableIKEProposalRequest) GetAuthenticationAlgorithm() PatchedWritableIKEProposalRequestAuthenticationAlgorithm {
+ if o == nil || IsNil(o.AuthenticationAlgorithm) {
+ var ret PatchedWritableIKEProposalRequestAuthenticationAlgorithm
+ return ret
+ }
+ return *o.AuthenticationAlgorithm
+}
+
+// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableIKEProposalRequest) GetAuthenticationAlgorithmOk() (*PatchedWritableIKEProposalRequestAuthenticationAlgorithm, bool) {
+ if o == nil || IsNil(o.AuthenticationAlgorithm) {
+ return nil, false
+ }
+ return o.AuthenticationAlgorithm, true
+}
+
+// HasAuthenticationAlgorithm returns a boolean if a field has been set.
+func (o *PatchedWritableIKEProposalRequest) HasAuthenticationAlgorithm() bool {
+ if o != nil && !IsNil(o.AuthenticationAlgorithm) {
+ return true
+ }
+
+ return false
+}
+
+// SetAuthenticationAlgorithm gets a reference to the given PatchedWritableIKEProposalRequestAuthenticationAlgorithm and assigns it to the AuthenticationAlgorithm field.
+func (o *PatchedWritableIKEProposalRequest) SetAuthenticationAlgorithm(v PatchedWritableIKEProposalRequestAuthenticationAlgorithm) {
+ o.AuthenticationAlgorithm = &v
+}
+
+// GetGroup returns the Group field value if set, zero value otherwise.
+func (o *PatchedWritableIKEProposalRequest) GetGroup() PatchedWritableIKEProposalRequestGroup {
+ if o == nil || IsNil(o.Group) {
+ var ret PatchedWritableIKEProposalRequestGroup
+ return ret
+ }
+ return *o.Group
+}
+
+// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableIKEProposalRequest) GetGroupOk() (*PatchedWritableIKEProposalRequestGroup, bool) {
+ if o == nil || IsNil(o.Group) {
+ return nil, false
+ }
+ return o.Group, true
+}
+
+// HasGroup returns a boolean if a field has been set.
+func (o *PatchedWritableIKEProposalRequest) HasGroup() bool {
+ if o != nil && !IsNil(o.Group) {
+ return true
+ }
+
+ return false
+}
+
+// SetGroup gets a reference to the given PatchedWritableIKEProposalRequestGroup and assigns it to the Group field.
+func (o *PatchedWritableIKEProposalRequest) SetGroup(v PatchedWritableIKEProposalRequestGroup) {
+ o.Group = &v
+}
+
+// GetSaLifetime returns the SaLifetime field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableIKEProposalRequest) GetSaLifetime() int32 {
+ if o == nil || IsNil(o.SaLifetime.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.SaLifetime.Get()
+}
+
+// GetSaLifetimeOk returns a tuple with the SaLifetime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableIKEProposalRequest) GetSaLifetimeOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SaLifetime.Get(), o.SaLifetime.IsSet()
+}
+
+// HasSaLifetime returns a boolean if a field has been set.
+func (o *PatchedWritableIKEProposalRequest) HasSaLifetime() bool {
+ if o != nil && o.SaLifetime.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSaLifetime gets a reference to the given NullableInt32 and assigns it to the SaLifetime field.
+func (o *PatchedWritableIKEProposalRequest) SetSaLifetime(v int32) {
+ o.SaLifetime.Set(&v)
+}
+
+// SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil
+func (o *PatchedWritableIKEProposalRequest) SetSaLifetimeNil() {
+ o.SaLifetime.Set(nil)
+}
+
+// UnsetSaLifetime ensures that no value is present for SaLifetime, not even an explicit nil
+func (o *PatchedWritableIKEProposalRequest) UnsetSaLifetime() {
+ o.SaLifetime.Unset()
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) 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 *PatchedWritableIKEProposalRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o PatchedWritableIKEProposalRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedWritableIKEProposalRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.AuthenticationMethod) {
+ toSerialize["authentication_method"] = o.AuthenticationMethod
+ }
+ if !IsNil(o.EncryptionAlgorithm) {
+ toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm
+ }
+ if !IsNil(o.AuthenticationAlgorithm) {
+ toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm
+ }
+ if !IsNil(o.Group) {
+ toSerialize["group"] = o.Group
+ }
+ if o.SaLifetime.IsSet() {
+ toSerialize["sa_lifetime"] = o.SaLifetime.Get()
+ }
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PatchedWritableIKEProposalRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedWritableIKEProposalRequest := _PatchedWritableIKEProposalRequest{}
+
+ err = json.Unmarshal(data, &varPatchedWritableIKEProposalRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedWritableIKEProposalRequest(varPatchedWritableIKEProposalRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "authentication_method")
+ delete(additionalProperties, "encryption_algorithm")
+ delete(additionalProperties, "authentication_algorithm")
+ delete(additionalProperties, "group")
+ delete(additionalProperties, "sa_lifetime")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePatchedWritableIKEProposalRequest struct {
+ value *PatchedWritableIKEProposalRequest
+ isSet bool
+}
+
+func (v NullablePatchedWritableIKEProposalRequest) Get() *PatchedWritableIKEProposalRequest {
+ return v.value
+}
+
+func (v *NullablePatchedWritableIKEProposalRequest) Set(val *PatchedWritableIKEProposalRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableIKEProposalRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableIKEProposalRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableIKEProposalRequest(val *PatchedWritableIKEProposalRequest) *NullablePatchedWritableIKEProposalRequest {
+ return &NullablePatchedWritableIKEProposalRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableIKEProposalRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableIKEProposalRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_ike_proposal_request_authentication_algorithm.go b/model_patched_writable_ike_proposal_request_authentication_algorithm.go
new file mode 100644
index 0000000000..7a725a001b
--- /dev/null
+++ b/model_patched_writable_ike_proposal_request_authentication_algorithm.go
@@ -0,0 +1,118 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableIKEProposalRequestAuthenticationAlgorithm * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC
+type PatchedWritableIKEProposalRequestAuthenticationAlgorithm string
+
+// List of PatchedWritableIKEProposalRequest_authentication_algorithm
+const (
+ PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA1 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha1"
+ PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA256 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha256"
+ PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA384 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha384"
+ PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA512 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha512"
+ PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_MD5 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-md5"
+ PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_EMPTY PatchedWritableIKEProposalRequestAuthenticationAlgorithm = ""
+)
+
+// All allowed values of PatchedWritableIKEProposalRequestAuthenticationAlgorithm enum
+var AllowedPatchedWritableIKEProposalRequestAuthenticationAlgorithmEnumValues = []PatchedWritableIKEProposalRequestAuthenticationAlgorithm{
+ "hmac-sha1",
+ "hmac-sha256",
+ "hmac-sha384",
+ "hmac-sha512",
+ "hmac-md5",
+ "",
+}
+
+func (v *PatchedWritableIKEProposalRequestAuthenticationAlgorithm) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableIKEProposalRequestAuthenticationAlgorithm(value)
+ for _, existing := range AllowedPatchedWritableIKEProposalRequestAuthenticationAlgorithmEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableIKEProposalRequestAuthenticationAlgorithm", value)
+}
+
+// NewPatchedWritableIKEProposalRequestAuthenticationAlgorithmFromValue returns a pointer to a valid PatchedWritableIKEProposalRequestAuthenticationAlgorithm
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableIKEProposalRequestAuthenticationAlgorithmFromValue(v string) (*PatchedWritableIKEProposalRequestAuthenticationAlgorithm, error) {
+ ev := PatchedWritableIKEProposalRequestAuthenticationAlgorithm(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableIKEProposalRequestAuthenticationAlgorithm: valid values are %v", v, AllowedPatchedWritableIKEProposalRequestAuthenticationAlgorithmEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableIKEProposalRequestAuthenticationAlgorithm) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableIKEProposalRequestAuthenticationAlgorithmEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableIKEProposalRequest_authentication_algorithm value
+func (v PatchedWritableIKEProposalRequestAuthenticationAlgorithm) Ptr() *PatchedWritableIKEProposalRequestAuthenticationAlgorithm {
+ return &v
+}
+
+type NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm struct {
+ value *PatchedWritableIKEProposalRequestAuthenticationAlgorithm
+ isSet bool
+}
+
+func (v NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm) Get() *PatchedWritableIKEProposalRequestAuthenticationAlgorithm {
+ return v.value
+}
+
+func (v *NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm) Set(val *PatchedWritableIKEProposalRequestAuthenticationAlgorithm) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm(val *PatchedWritableIKEProposalRequestAuthenticationAlgorithm) *NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm {
+ return &NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_ike_proposal_request_group.go b/model_patched_writable_ike_proposal_request_group.go
new file mode 100644
index 0000000000..c9b6bd8d67
--- /dev/null
+++ b/model_patched_writable_ike_proposal_request_group.go
@@ -0,0 +1,152 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableIKEProposalRequestGroup Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `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
+type PatchedWritableIKEProposalRequestGroup int32
+
+// List of PatchedWritableIKEProposalRequest_group
+const (
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__1 PatchedWritableIKEProposalRequestGroup = 1
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__2 PatchedWritableIKEProposalRequestGroup = 2
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__5 PatchedWritableIKEProposalRequestGroup = 5
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__14 PatchedWritableIKEProposalRequestGroup = 14
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__16 PatchedWritableIKEProposalRequestGroup = 16
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__17 PatchedWritableIKEProposalRequestGroup = 17
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__18 PatchedWritableIKEProposalRequestGroup = 18
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__19 PatchedWritableIKEProposalRequestGroup = 19
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__20 PatchedWritableIKEProposalRequestGroup = 20
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__21 PatchedWritableIKEProposalRequestGroup = 21
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__22 PatchedWritableIKEProposalRequestGroup = 22
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__23 PatchedWritableIKEProposalRequestGroup = 23
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__24 PatchedWritableIKEProposalRequestGroup = 24
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__25 PatchedWritableIKEProposalRequestGroup = 25
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__26 PatchedWritableIKEProposalRequestGroup = 26
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__27 PatchedWritableIKEProposalRequestGroup = 27
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__28 PatchedWritableIKEProposalRequestGroup = 28
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__29 PatchedWritableIKEProposalRequestGroup = 29
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__30 PatchedWritableIKEProposalRequestGroup = 30
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__31 PatchedWritableIKEProposalRequestGroup = 31
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__32 PatchedWritableIKEProposalRequestGroup = 32
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__33 PatchedWritableIKEProposalRequestGroup = 33
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__34 PatchedWritableIKEProposalRequestGroup = 34
+)
+
+// All allowed values of PatchedWritableIKEProposalRequestGroup enum
+var AllowedPatchedWritableIKEProposalRequestGroupEnumValues = []PatchedWritableIKEProposalRequestGroup{
+ 1,
+ 2,
+ 5,
+ 14,
+ 16,
+ 17,
+ 18,
+ 19,
+ 20,
+ 21,
+ 22,
+ 23,
+ 24,
+ 25,
+ 26,
+ 27,
+ 28,
+ 29,
+ 30,
+ 31,
+ 32,
+ 33,
+ 34,
+}
+
+func (v *PatchedWritableIKEProposalRequestGroup) UnmarshalJSON(src []byte) error {
+ var value int32
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableIKEProposalRequestGroup(value)
+ for _, existing := range AllowedPatchedWritableIKEProposalRequestGroupEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableIKEProposalRequestGroup", value)
+}
+
+// NewPatchedWritableIKEProposalRequestGroupFromValue returns a pointer to a valid PatchedWritableIKEProposalRequestGroup
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableIKEProposalRequestGroupFromValue(v int32) (*PatchedWritableIKEProposalRequestGroup, error) {
+ ev := PatchedWritableIKEProposalRequestGroup(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableIKEProposalRequestGroup: valid values are %v", v, AllowedPatchedWritableIKEProposalRequestGroupEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableIKEProposalRequestGroup) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableIKEProposalRequestGroupEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableIKEProposalRequest_group value
+func (v PatchedWritableIKEProposalRequestGroup) Ptr() *PatchedWritableIKEProposalRequestGroup {
+ return &v
+}
+
+type NullablePatchedWritableIKEProposalRequestGroup struct {
+ value *PatchedWritableIKEProposalRequestGroup
+ isSet bool
+}
+
+func (v NullablePatchedWritableIKEProposalRequestGroup) Get() *PatchedWritableIKEProposalRequestGroup {
+ return v.value
+}
+
+func (v *NullablePatchedWritableIKEProposalRequestGroup) Set(val *PatchedWritableIKEProposalRequestGroup) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableIKEProposalRequestGroup) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableIKEProposalRequestGroup) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableIKEProposalRequestGroup(val *PatchedWritableIKEProposalRequestGroup) *NullablePatchedWritableIKEProposalRequestGroup {
+ return &NullablePatchedWritableIKEProposalRequestGroup{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableIKEProposalRequestGroup) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableIKEProposalRequestGroup) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_interface_request.go b/model_patched_writable_interface_request.go
index d718787505..551202110a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,32 +24,25 @@ type PatchedWritableInterfaceRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other
- Type *string `json:"type,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Bridge NullableInt32 `json:"bridge,omitempty"`
- Lag NullableInt32 `json:"lag,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- MacAddress NullableString `json:"mac_address,omitempty"`
- Speed NullableInt32 `json:"speed,omitempty"`
- // * `half` - Half * `full` - Full * `auto` - Auto
- Duplex NullableString `json:"duplex,omitempty"`
- Wwn NullableString `json:"wwn,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *InterfaceTypeValue `json:"type,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Bridge NullableInt32 `json:"bridge,omitempty"`
+ Lag NullableInt32 `json:"lag,omitempty"`
+ Mtu NullableInt32 `json:"mtu,omitempty"`
+ MacAddress NullableString `json:"mac_address,omitempty"`
+ Speed NullableInt32 `json:"speed,omitempty"`
+ Duplex NullableInterfaceRequestDuplex `json:"duplex,omitempty"`
+ Wwn NullableString `json:"wwn,omitempty"`
// This interface is used only for out-of-band management
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- // IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All)
- Mode *string `json:"mode,omitempty"`
- // * `ap` - Access point * `station` - Station
- RfRole *string `json:"rf_role,omitempty"`
- // * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)
- RfChannel *string `json:"rf_channel,omitempty"`
- // * `pd` - PD * `pse` - PSE
- PoeMode *string `json:"poe_mode,omitempty"`
- // * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair)
- PoeType *string `json:"poe_type,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
+ RfRole *WirelessRole `json:"rf_role,omitempty"`
+ RfChannel *WirelessChannel `json:"rf_channel,omitempty"`
+ PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"`
+ PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"`
// Populated by selected channel (if set)
RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"`
// Populated by selected channel (if set)
@@ -257,9 +250,9 @@ func (o *PatchedWritableInterfaceRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableInterfaceRequest) GetType() string {
+func (o *PatchedWritableInterfaceRequest) GetType() InterfaceTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret InterfaceTypeValue
return ret
}
return *o.Type
@@ -267,7 +260,7 @@ func (o *PatchedWritableInterfaceRequest) GetType() string {
// 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 *PatchedWritableInterfaceRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritableInterfaceRequest) GetTypeOk() (*InterfaceTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -283,8 +276,8 @@ func (o *PatchedWritableInterfaceRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableInterfaceRequest) SetType(v string) {
+// SetType gets a reference to the given InterfaceTypeValue and assigns it to the Type field.
+func (o *PatchedWritableInterfaceRequest) SetType(v InterfaceTypeValue) {
o.Type = &v
}
@@ -579,9 +572,9 @@ func (o *PatchedWritableInterfaceRequest) UnsetSpeed() {
}
// GetDuplex returns the Duplex field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableInterfaceRequest) GetDuplex() string {
+func (o *PatchedWritableInterfaceRequest) GetDuplex() InterfaceRequestDuplex {
if o == nil || IsNil(o.Duplex.Get()) {
- var ret string
+ var ret InterfaceRequestDuplex
return ret
}
return *o.Duplex.Get()
@@ -590,7 +583,7 @@ func (o *PatchedWritableInterfaceRequest) GetDuplex() string {
// GetDuplexOk returns a tuple with the Duplex field value if set, nil otherwise
// and a 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) GetDuplexOk() (*string, bool) {
+func (o *PatchedWritableInterfaceRequest) GetDuplexOk() (*InterfaceRequestDuplex, bool) {
if o == nil {
return nil, false
}
@@ -606,8 +599,8 @@ func (o *PatchedWritableInterfaceRequest) HasDuplex() bool {
return false
}
-// SetDuplex gets a reference to the given NullableString and assigns it to the Duplex field.
-func (o *PatchedWritableInterfaceRequest) SetDuplex(v string) {
+// SetDuplex gets a reference to the given NullableInterfaceRequestDuplex and assigns it to the Duplex field.
+func (o *PatchedWritableInterfaceRequest) SetDuplex(v InterfaceRequestDuplex) {
o.Duplex.Set(&v)
}
@@ -729,9 +722,9 @@ func (o *PatchedWritableInterfaceRequest) SetDescription(v string) {
}
// GetMode returns the Mode field value if set, zero value otherwise.
-func (o *PatchedWritableInterfaceRequest) GetMode() string {
+func (o *PatchedWritableInterfaceRequest) GetMode() PatchedWritableInterfaceRequestMode {
if o == nil || IsNil(o.Mode) {
- var ret string
+ var ret PatchedWritableInterfaceRequestMode
return ret
}
return *o.Mode
@@ -739,7 +732,7 @@ func (o *PatchedWritableInterfaceRequest) GetMode() string {
// GetModeOk returns a tuple with the Mode field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableInterfaceRequest) GetModeOk() (*string, bool) {
+func (o *PatchedWritableInterfaceRequest) GetModeOk() (*PatchedWritableInterfaceRequestMode, bool) {
if o == nil || IsNil(o.Mode) {
return nil, false
}
@@ -755,15 +748,15 @@ func (o *PatchedWritableInterfaceRequest) HasMode() bool {
return false
}
-// SetMode gets a reference to the given string and assigns it to the Mode field.
-func (o *PatchedWritableInterfaceRequest) SetMode(v string) {
+// SetMode gets a reference to the given PatchedWritableInterfaceRequestMode and assigns it to the Mode field.
+func (o *PatchedWritableInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode) {
o.Mode = &v
}
// GetRfRole returns the RfRole field value if set, zero value otherwise.
-func (o *PatchedWritableInterfaceRequest) GetRfRole() string {
+func (o *PatchedWritableInterfaceRequest) GetRfRole() WirelessRole {
if o == nil || IsNil(o.RfRole) {
- var ret string
+ var ret WirelessRole
return ret
}
return *o.RfRole
@@ -771,7 +764,7 @@ func (o *PatchedWritableInterfaceRequest) GetRfRole() string {
// GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableInterfaceRequest) GetRfRoleOk() (*string, bool) {
+func (o *PatchedWritableInterfaceRequest) GetRfRoleOk() (*WirelessRole, bool) {
if o == nil || IsNil(o.RfRole) {
return nil, false
}
@@ -787,15 +780,15 @@ func (o *PatchedWritableInterfaceRequest) HasRfRole() bool {
return false
}
-// SetRfRole gets a reference to the given string and assigns it to the RfRole field.
-func (o *PatchedWritableInterfaceRequest) SetRfRole(v string) {
+// SetRfRole gets a reference to the given WirelessRole and assigns it to the RfRole field.
+func (o *PatchedWritableInterfaceRequest) SetRfRole(v WirelessRole) {
o.RfRole = &v
}
// GetRfChannel returns the RfChannel field value if set, zero value otherwise.
-func (o *PatchedWritableInterfaceRequest) GetRfChannel() string {
+func (o *PatchedWritableInterfaceRequest) GetRfChannel() WirelessChannel {
if o == nil || IsNil(o.RfChannel) {
- var ret string
+ var ret WirelessChannel
return ret
}
return *o.RfChannel
@@ -803,7 +796,7 @@ func (o *PatchedWritableInterfaceRequest) GetRfChannel() string {
// GetRfChannelOk returns a tuple with the RfChannel field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableInterfaceRequest) GetRfChannelOk() (*string, bool) {
+func (o *PatchedWritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel, bool) {
if o == nil || IsNil(o.RfChannel) {
return nil, false
}
@@ -819,15 +812,15 @@ func (o *PatchedWritableInterfaceRequest) HasRfChannel() bool {
return false
}
-// SetRfChannel gets a reference to the given string and assigns it to the RfChannel field.
-func (o *PatchedWritableInterfaceRequest) SetRfChannel(v string) {
+// SetRfChannel gets a reference to the given WirelessChannel and assigns it to the RfChannel field.
+func (o *PatchedWritableInterfaceRequest) SetRfChannel(v WirelessChannel) {
o.RfChannel = &v
}
// GetPoeMode returns the PoeMode field value if set, zero value otherwise.
-func (o *PatchedWritableInterfaceRequest) GetPoeMode() string {
+func (o *PatchedWritableInterfaceRequest) GetPoeMode() InterfacePoeModeValue {
if o == nil || IsNil(o.PoeMode) {
- var ret string
+ var ret InterfacePoeModeValue
return ret
}
return *o.PoeMode
@@ -835,7 +828,7 @@ func (o *PatchedWritableInterfaceRequest) GetPoeMode() string {
// GetPoeModeOk returns a tuple with the PoeMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableInterfaceRequest) GetPoeModeOk() (*string, bool) {
+func (o *PatchedWritableInterfaceRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool) {
if o == nil || IsNil(o.PoeMode) {
return nil, false
}
@@ -851,15 +844,15 @@ func (o *PatchedWritableInterfaceRequest) HasPoeMode() bool {
return false
}
-// SetPoeMode gets a reference to the given string and assigns it to the PoeMode field.
-func (o *PatchedWritableInterfaceRequest) SetPoeMode(v string) {
+// SetPoeMode gets a reference to the given InterfacePoeModeValue and assigns it to the PoeMode field.
+func (o *PatchedWritableInterfaceRequest) SetPoeMode(v InterfacePoeModeValue) {
o.PoeMode = &v
}
// GetPoeType returns the PoeType field value if set, zero value otherwise.
-func (o *PatchedWritableInterfaceRequest) GetPoeType() string {
+func (o *PatchedWritableInterfaceRequest) GetPoeType() InterfacePoeTypeValue {
if o == nil || IsNil(o.PoeType) {
- var ret string
+ var ret InterfacePoeTypeValue
return ret
}
return *o.PoeType
@@ -867,7 +860,7 @@ func (o *PatchedWritableInterfaceRequest) GetPoeType() string {
// GetPoeTypeOk returns a tuple with the PoeType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableInterfaceRequest) GetPoeTypeOk() (*string, bool) {
+func (o *PatchedWritableInterfaceRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool) {
if o == nil || IsNil(o.PoeType) {
return nil, false
}
@@ -883,8 +876,8 @@ func (o *PatchedWritableInterfaceRequest) HasPoeType() bool {
return false
}
-// SetPoeType gets a reference to the given string and assigns it to the PoeType field.
-func (o *PatchedWritableInterfaceRequest) SetPoeType(v string) {
+// SetPoeType gets a reference to the given InterfacePoeTypeValue and assigns it to the PoeType field.
+func (o *PatchedWritableInterfaceRequest) SetPoeType(v InterfacePoeTypeValue) {
o.PoeType = &v
}
@@ -1377,10 +1370,10 @@ func (o PatchedWritableInterfaceRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableInterfaceRequest := _PatchedWritableInterfaceRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableInterfaceRequest)
+ err = json.Unmarshal(data, &varPatchedWritableInterfaceRequest)
if err != nil {
return err
@@ -1390,7 +1383,7 @@ func (o *PatchedWritableInterfaceRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "vdcs")
delete(additionalProperties, "module")
diff --git a/model_patched_writable_interface_request_mode.go b/model_patched_writable_interface_request_mode.go
new file mode 100644
index 0000000000..4b94e1ce96
--- /dev/null
+++ b/model_patched_writable_interface_request_mode.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableInterfaceRequestMode IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All)
+type PatchedWritableInterfaceRequestMode string
+
+// List of PatchedWritableInterfaceRequest_mode
+const (
+ PATCHEDWRITABLEINTERFACEREQUESTMODE_ACCESS PatchedWritableInterfaceRequestMode = "access"
+ PATCHEDWRITABLEINTERFACEREQUESTMODE_TAGGED PatchedWritableInterfaceRequestMode = "tagged"
+ PATCHEDWRITABLEINTERFACEREQUESTMODE_TAGGED_ALL PatchedWritableInterfaceRequestMode = "tagged-all"
+ PATCHEDWRITABLEINTERFACEREQUESTMODE_EMPTY PatchedWritableInterfaceRequestMode = ""
+)
+
+// All allowed values of PatchedWritableInterfaceRequestMode enum
+var AllowedPatchedWritableInterfaceRequestModeEnumValues = []PatchedWritableInterfaceRequestMode{
+ "access",
+ "tagged",
+ "tagged-all",
+ "",
+}
+
+func (v *PatchedWritableInterfaceRequestMode) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableInterfaceRequestMode(value)
+ for _, existing := range AllowedPatchedWritableInterfaceRequestModeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableInterfaceRequestMode", value)
+}
+
+// NewPatchedWritableInterfaceRequestModeFromValue returns a pointer to a valid PatchedWritableInterfaceRequestMode
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableInterfaceRequestModeFromValue(v string) (*PatchedWritableInterfaceRequestMode, error) {
+ ev := PatchedWritableInterfaceRequestMode(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableInterfaceRequestMode: valid values are %v", v, AllowedPatchedWritableInterfaceRequestModeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableInterfaceRequestMode) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableInterfaceRequestModeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableInterfaceRequest_mode value
+func (v PatchedWritableInterfaceRequestMode) Ptr() *PatchedWritableInterfaceRequestMode {
+ return &v
+}
+
+type NullablePatchedWritableInterfaceRequestMode struct {
+ value *PatchedWritableInterfaceRequestMode
+ isSet bool
+}
+
+func (v NullablePatchedWritableInterfaceRequestMode) Get() *PatchedWritableInterfaceRequestMode {
+ return v.value
+}
+
+func (v *NullablePatchedWritableInterfaceRequestMode) Set(val *PatchedWritableInterfaceRequestMode) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableInterfaceRequestMode) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableInterfaceRequestMode) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableInterfaceRequestMode(val *PatchedWritableInterfaceRequestMode) *NullablePatchedWritableInterfaceRequestMode {
+ return &NullablePatchedWritableInterfaceRequestMode{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableInterfaceRequestMode) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableInterfaceRequestMode) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_interface_template_request.go b/model_patched_writable_interface_template_request.go
index d642a9bba6..fae9462cce 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,19 +24,15 @@ type PatchedWritableInterfaceTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other
- Type *string `json:"type,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- Bridge NullableInt32 `json:"bridge,omitempty"`
- // * `pd` - PD * `pse` - PSE
- PoeMode *string `json:"poe_mode,omitempty"`
- // * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair)
- PoeType *string `json:"poe_type,omitempty"`
- // * `ap` - Access point * `station` - Station
- RfRole *string `json:"rf_role,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *InterfaceTypeValue `json:"type,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Bridge NullableInt32 `json:"bridge,omitempty"`
+ PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"`
+ PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"`
+ RfRole *WirelessRole `json:"rf_role,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -210,9 +206,9 @@ func (o *PatchedWritableInterfaceTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableInterfaceTemplateRequest) GetType() string {
+func (o *PatchedWritableInterfaceTemplateRequest) GetType() InterfaceTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret InterfaceTypeValue
return ret
}
return *o.Type
@@ -220,7 +216,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetType() string {
// 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 *PatchedWritableInterfaceTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritableInterfaceTemplateRequest) GetTypeOk() (*InterfaceTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -236,8 +232,8 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableInterfaceTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given InterfaceTypeValue and assigns it to the Type field.
+func (o *PatchedWritableInterfaceTemplateRequest) SetType(v InterfaceTypeValue) {
o.Type = &v
}
@@ -381,9 +377,9 @@ func (o *PatchedWritableInterfaceTemplateRequest) UnsetBridge() {
}
// GetPoeMode returns the PoeMode field value if set, zero value otherwise.
-func (o *PatchedWritableInterfaceTemplateRequest) GetPoeMode() string {
+func (o *PatchedWritableInterfaceTemplateRequest) GetPoeMode() InterfacePoeModeValue {
if o == nil || IsNil(o.PoeMode) {
- var ret string
+ var ret InterfacePoeModeValue
return ret
}
return *o.PoeMode
@@ -391,7 +387,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetPoeMode() string {
// GetPoeModeOk returns a tuple with the PoeMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableInterfaceTemplateRequest) GetPoeModeOk() (*string, bool) {
+func (o *PatchedWritableInterfaceTemplateRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool) {
if o == nil || IsNil(o.PoeMode) {
return nil, false
}
@@ -407,15 +403,15 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasPoeMode() bool {
return false
}
-// SetPoeMode gets a reference to the given string and assigns it to the PoeMode field.
-func (o *PatchedWritableInterfaceTemplateRequest) SetPoeMode(v string) {
+// SetPoeMode gets a reference to the given InterfacePoeModeValue and assigns it to the PoeMode field.
+func (o *PatchedWritableInterfaceTemplateRequest) SetPoeMode(v InterfacePoeModeValue) {
o.PoeMode = &v
}
// GetPoeType returns the PoeType field value if set, zero value otherwise.
-func (o *PatchedWritableInterfaceTemplateRequest) GetPoeType() string {
+func (o *PatchedWritableInterfaceTemplateRequest) GetPoeType() InterfacePoeTypeValue {
if o == nil || IsNil(o.PoeType) {
- var ret string
+ var ret InterfacePoeTypeValue
return ret
}
return *o.PoeType
@@ -423,7 +419,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetPoeType() string {
// GetPoeTypeOk returns a tuple with the PoeType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableInterfaceTemplateRequest) GetPoeTypeOk() (*string, bool) {
+func (o *PatchedWritableInterfaceTemplateRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool) {
if o == nil || IsNil(o.PoeType) {
return nil, false
}
@@ -439,15 +435,15 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasPoeType() bool {
return false
}
-// SetPoeType gets a reference to the given string and assigns it to the PoeType field.
-func (o *PatchedWritableInterfaceTemplateRequest) SetPoeType(v string) {
+// SetPoeType gets a reference to the given InterfacePoeTypeValue and assigns it to the PoeType field.
+func (o *PatchedWritableInterfaceTemplateRequest) SetPoeType(v InterfacePoeTypeValue) {
o.PoeType = &v
}
// GetRfRole returns the RfRole field value if set, zero value otherwise.
-func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() string {
+func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() WirelessRole {
if o == nil || IsNil(o.RfRole) {
- var ret string
+ var ret WirelessRole
return ret
}
return *o.RfRole
@@ -455,7 +451,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() string {
// GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableInterfaceTemplateRequest) GetRfRoleOk() (*string, bool) {
+func (o *PatchedWritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole, bool) {
if o == nil || IsNil(o.RfRole) {
return nil, false
}
@@ -471,8 +467,8 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasRfRole() bool {
return false
}
-// SetRfRole gets a reference to the given string and assigns it to the RfRole field.
-func (o *PatchedWritableInterfaceTemplateRequest) SetRfRole(v string) {
+// SetRfRole gets a reference to the given WirelessRole and assigns it to the RfRole field.
+func (o *PatchedWritableInterfaceTemplateRequest) SetRfRole(v WirelessRole) {
o.RfRole = &v
}
@@ -530,10 +526,10 @@ func (o PatchedWritableInterfaceTemplateRequest) ToMap() (map[string]interface{}
return toSerialize, nil
}
-func (o *PatchedWritableInterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableInterfaceTemplateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableInterfaceTemplateRequest := _PatchedWritableInterfaceTemplateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableInterfaceTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedWritableInterfaceTemplateRequest)
if err != nil {
return err
@@ -543,7 +539,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (e
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_inventory_item_request.go b/model_patched_writable_inventory_item_request.go
index d02ec0e5bb..d0cf2fda8a 100644
--- a/model_patched_writable_inventory_item_request.go
+++ b/model_patched_writable_inventory_item_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -669,10 +669,10 @@ func (o PatchedWritableInventoryItemRequest) ToMap() (map[string]interface{}, er
return toSerialize, nil
}
-func (o *PatchedWritableInventoryItemRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableInventoryItemRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableInventoryItemRequest := _PatchedWritableInventoryItemRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableInventoryItemRequest)
+ err = json.Unmarshal(data, &varPatchedWritableInventoryItemRequest)
if err != nil {
return err
@@ -682,7 +682,7 @@ func (o *PatchedWritableInventoryItemRequest) UnmarshalJSON(bytes []byte) (err e
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "parent")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_inventory_item_template_request.go b/model_patched_writable_inventory_item_template_request.go
index 68e276e011..9a752f25f0 100644
--- a/model_patched_writable_inventory_item_template_request.go
+++ b/model_patched_writable_inventory_item_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -477,10 +477,10 @@ func (o PatchedWritableInventoryItemTemplateRequest) ToMap() (map[string]interfa
return toSerialize, nil
}
-func (o *PatchedWritableInventoryItemTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableInventoryItemTemplateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableInventoryItemTemplateRequest := _PatchedWritableInventoryItemTemplateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableInventoryItemTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedWritableInventoryItemTemplateRequest)
if err != nil {
return err
@@ -490,7 +490,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) UnmarshalJSON(bytes []byte
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "parent")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_ip_address_request.go b/model_patched_writable_ip_address_request.go
index e06d11c726..e4b7272882 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,15 +19,13 @@ 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"`
- // The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC
- Status *string `json:"status,omitempty"`
- // The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP
- Role *string `json:"role,omitempty"`
- AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
- AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
+ Address *string `json:"address,omitempty"`
+ Vrf NullableInt32 `json:"vrf,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
+ Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"`
+ Role *PatchedWritableIPAddressRequestRole `json:"role,omitempty"`
+ AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
+ AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
// The IP for which this address is the \"outside\" IP
NatInside NullableInt32 `json:"nat_inside,omitempty"`
// Hostname or FQDN (not case-sensitive)
@@ -177,9 +175,9 @@ func (o *PatchedWritableIPAddressRequest) UnsetTenant() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableIPAddressRequest) GetStatus() string {
+func (o *PatchedWritableIPAddressRequest) GetStatus() PatchedWritableIPAddressRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritableIPAddressRequestStatus
return ret
}
return *o.Status
@@ -187,7 +185,7 @@ func (o *PatchedWritableIPAddressRequest) GetStatus() string {
// 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 *PatchedWritableIPAddressRequest) GetStatusOk() (*string, bool) {
+func (o *PatchedWritableIPAddressRequest) GetStatusOk() (*PatchedWritableIPAddressRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -203,15 +201,15 @@ func (o *PatchedWritableIPAddressRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableIPAddressRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritableIPAddressRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableIPAddressRequest) SetStatus(v PatchedWritableIPAddressRequestStatus) {
o.Status = &v
}
// GetRole returns the Role field value if set, zero value otherwise.
-func (o *PatchedWritableIPAddressRequest) GetRole() string {
+func (o *PatchedWritableIPAddressRequest) GetRole() PatchedWritableIPAddressRequestRole {
if o == nil || IsNil(o.Role) {
- var ret string
+ var ret PatchedWritableIPAddressRequestRole
return ret
}
return *o.Role
@@ -219,7 +217,7 @@ func (o *PatchedWritableIPAddressRequest) GetRole() string {
// 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 *PatchedWritableIPAddressRequest) GetRoleOk() (*string, bool) {
+func (o *PatchedWritableIPAddressRequest) GetRoleOk() (*PatchedWritableIPAddressRequestRole, bool) {
if o == nil || IsNil(o.Role) {
return nil, false
}
@@ -235,8 +233,8 @@ func (o *PatchedWritableIPAddressRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given string and assigns it to the Role field.
-func (o *PatchedWritableIPAddressRequest) SetRole(v string) {
+// SetRole gets a reference to the given PatchedWritableIPAddressRequestRole and assigns it to the Role field.
+func (o *PatchedWritableIPAddressRequest) SetRole(v PatchedWritableIPAddressRequestRole) {
o.Role = &v
}
@@ -586,10 +584,10 @@ func (o PatchedWritableIPAddressRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableIPAddressRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableIPAddressRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableIPAddressRequest := _PatchedWritableIPAddressRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableIPAddressRequest)
+ err = json.Unmarshal(data, &varPatchedWritableIPAddressRequest)
if err != nil {
return err
@@ -599,7 +597,7 @@ func (o *PatchedWritableIPAddressRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "address")
delete(additionalProperties, "vrf")
delete(additionalProperties, "tenant")
diff --git a/model_patched_writable_ip_address_request_role.go b/model_patched_writable_ip_address_request_role.go
new file mode 100644
index 0000000000..595c4050df
--- /dev/null
+++ b/model_patched_writable_ip_address_request_role.go
@@ -0,0 +1,124 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableIPAddressRequestRole The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP
+type PatchedWritableIPAddressRequestRole string
+
+// List of PatchedWritableIPAddressRequest_role
+const (
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_LOOPBACK PatchedWritableIPAddressRequestRole = "loopback"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_SECONDARY PatchedWritableIPAddressRequestRole = "secondary"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_ANYCAST PatchedWritableIPAddressRequestRole = "anycast"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_VIP PatchedWritableIPAddressRequestRole = "vip"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_VRRP PatchedWritableIPAddressRequestRole = "vrrp"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_HSRP PatchedWritableIPAddressRequestRole = "hsrp"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_GLBP PatchedWritableIPAddressRequestRole = "glbp"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_CARP PatchedWritableIPAddressRequestRole = "carp"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_EMPTY PatchedWritableIPAddressRequestRole = ""
+)
+
+// All allowed values of PatchedWritableIPAddressRequestRole enum
+var AllowedPatchedWritableIPAddressRequestRoleEnumValues = []PatchedWritableIPAddressRequestRole{
+ "loopback",
+ "secondary",
+ "anycast",
+ "vip",
+ "vrrp",
+ "hsrp",
+ "glbp",
+ "carp",
+ "",
+}
+
+func (v *PatchedWritableIPAddressRequestRole) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableIPAddressRequestRole(value)
+ for _, existing := range AllowedPatchedWritableIPAddressRequestRoleEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableIPAddressRequestRole", value)
+}
+
+// NewPatchedWritableIPAddressRequestRoleFromValue returns a pointer to a valid PatchedWritableIPAddressRequestRole
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableIPAddressRequestRoleFromValue(v string) (*PatchedWritableIPAddressRequestRole, error) {
+ ev := PatchedWritableIPAddressRequestRole(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableIPAddressRequestRole: valid values are %v", v, AllowedPatchedWritableIPAddressRequestRoleEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableIPAddressRequestRole) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableIPAddressRequestRoleEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableIPAddressRequest_role value
+func (v PatchedWritableIPAddressRequestRole) Ptr() *PatchedWritableIPAddressRequestRole {
+ return &v
+}
+
+type NullablePatchedWritableIPAddressRequestRole struct {
+ value *PatchedWritableIPAddressRequestRole
+ isSet bool
+}
+
+func (v NullablePatchedWritableIPAddressRequestRole) Get() *PatchedWritableIPAddressRequestRole {
+ return v.value
+}
+
+func (v *NullablePatchedWritableIPAddressRequestRole) Set(val *PatchedWritableIPAddressRequestRole) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableIPAddressRequestRole) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableIPAddressRequestRole) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableIPAddressRequestRole(val *PatchedWritableIPAddressRequestRole) *NullablePatchedWritableIPAddressRequestRole {
+ return &NullablePatchedWritableIPAddressRequestRole{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableIPAddressRequestRole) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableIPAddressRequestRole) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_ip_address_request_status.go b/model_patched_writable_ip_address_request_status.go
new file mode 100644
index 0000000000..9db33199b2
--- /dev/null
+++ b/model_patched_writable_ip_address_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: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableIPAddressRequestStatus The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC
+type PatchedWritableIPAddressRequestStatus string
+
+// List of PatchedWritableIPAddressRequest_status
+const (
+ PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_ACTIVE PatchedWritableIPAddressRequestStatus = "active"
+ PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_RESERVED PatchedWritableIPAddressRequestStatus = "reserved"
+ PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_DEPRECATED PatchedWritableIPAddressRequestStatus = "deprecated"
+ PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_DHCP PatchedWritableIPAddressRequestStatus = "dhcp"
+ PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_SLAAC PatchedWritableIPAddressRequestStatus = "slaac"
+)
+
+// All allowed values of PatchedWritableIPAddressRequestStatus enum
+var AllowedPatchedWritableIPAddressRequestStatusEnumValues = []PatchedWritableIPAddressRequestStatus{
+ "active",
+ "reserved",
+ "deprecated",
+ "dhcp",
+ "slaac",
+}
+
+func (v *PatchedWritableIPAddressRequestStatus) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableIPAddressRequestStatus(value)
+ for _, existing := range AllowedPatchedWritableIPAddressRequestStatusEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableIPAddressRequestStatus", value)
+}
+
+// NewPatchedWritableIPAddressRequestStatusFromValue returns a pointer to a valid PatchedWritableIPAddressRequestStatus
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableIPAddressRequestStatusFromValue(v string) (*PatchedWritableIPAddressRequestStatus, error) {
+ ev := PatchedWritableIPAddressRequestStatus(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableIPAddressRequestStatus: valid values are %v", v, AllowedPatchedWritableIPAddressRequestStatusEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableIPAddressRequestStatus) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableIPAddressRequestStatusEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableIPAddressRequest_status value
+func (v PatchedWritableIPAddressRequestStatus) Ptr() *PatchedWritableIPAddressRequestStatus {
+ return &v
+}
+
+type NullablePatchedWritableIPAddressRequestStatus struct {
+ value *PatchedWritableIPAddressRequestStatus
+ isSet bool
+}
+
+func (v NullablePatchedWritableIPAddressRequestStatus) Get() *PatchedWritableIPAddressRequestStatus {
+ return v.value
+}
+
+func (v *NullablePatchedWritableIPAddressRequestStatus) Set(val *PatchedWritableIPAddressRequestStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableIPAddressRequestStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableIPAddressRequestStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableIPAddressRequestStatus(val *PatchedWritableIPAddressRequestStatus) *NullablePatchedWritableIPAddressRequestStatus {
+ return &NullablePatchedWritableIPAddressRequestStatus{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableIPAddressRequestStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableIPAddressRequestStatus) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_ip_range_request.go b/model_patched_writable_ip_range_request.go
index 38ae15620c..cc8b5c73ef 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,11 @@ var _ MappedNullable = &PatchedWritableIPRangeRequest{}
// PatchedWritableIPRangeRequest Adds support for custom fields and tags.
type PatchedWritableIPRangeRequest struct {
- StartAddress *string `json:"start_address,omitempty"`
- EndAddress *string `json:"end_address,omitempty"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- // Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
+ StartAddress *string `json:"start_address,omitempty"`
+ EndAddress *string `json:"end_address,omitempty"`
+ Vrf NullableInt32 `json:"vrf,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
+ Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"`
// The primary function of this range
Role NullableInt32 `json:"role,omitempty"`
Description *string `json:"description,omitempty"`
@@ -206,9 +205,9 @@ func (o *PatchedWritableIPRangeRequest) UnsetTenant() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableIPRangeRequest) GetStatus() string {
+func (o *PatchedWritableIPRangeRequest) GetStatus() PatchedWritableIPRangeRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritableIPRangeRequestStatus
return ret
}
return *o.Status
@@ -216,7 +215,7 @@ func (o *PatchedWritableIPRangeRequest) GetStatus() string {
// 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 *PatchedWritableIPRangeRequest) GetStatusOk() (*string, bool) {
+func (o *PatchedWritableIPRangeRequest) GetStatusOk() (*PatchedWritableIPRangeRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -232,8 +231,8 @@ func (o *PatchedWritableIPRangeRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableIPRangeRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritableIPRangeRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeRequestStatus) {
o.Status = &v
}
@@ -491,10 +490,10 @@ func (o PatchedWritableIPRangeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableIPRangeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableIPRangeRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableIPRangeRequest := _PatchedWritableIPRangeRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableIPRangeRequest)
+ err = json.Unmarshal(data, &varPatchedWritableIPRangeRequest)
if err != nil {
return err
@@ -504,7 +503,7 @@ func (o *PatchedWritableIPRangeRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "start_address")
delete(additionalProperties, "end_address")
delete(additionalProperties, "vrf")
diff --git a/model_patched_writable_ip_range_request_status.go b/model_patched_writable_ip_range_request_status.go
new file mode 100644
index 0000000000..3b6d9728bc
--- /dev/null
+++ b/model_patched_writable_ip_range_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: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableIPRangeRequestStatus Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
+type PatchedWritableIPRangeRequestStatus string
+
+// List of PatchedWritableIPRangeRequest_status
+const (
+ PATCHEDWRITABLEIPRANGEREQUESTSTATUS_ACTIVE PatchedWritableIPRangeRequestStatus = "active"
+ PATCHEDWRITABLEIPRANGEREQUESTSTATUS_RESERVED PatchedWritableIPRangeRequestStatus = "reserved"
+ PATCHEDWRITABLEIPRANGEREQUESTSTATUS_DEPRECATED PatchedWritableIPRangeRequestStatus = "deprecated"
+)
+
+// All allowed values of PatchedWritableIPRangeRequestStatus enum
+var AllowedPatchedWritableIPRangeRequestStatusEnumValues = []PatchedWritableIPRangeRequestStatus{
+ "active",
+ "reserved",
+ "deprecated",
+}
+
+func (v *PatchedWritableIPRangeRequestStatus) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableIPRangeRequestStatus(value)
+ for _, existing := range AllowedPatchedWritableIPRangeRequestStatusEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableIPRangeRequestStatus", value)
+}
+
+// NewPatchedWritableIPRangeRequestStatusFromValue returns a pointer to a valid PatchedWritableIPRangeRequestStatus
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableIPRangeRequestStatusFromValue(v string) (*PatchedWritableIPRangeRequestStatus, error) {
+ ev := PatchedWritableIPRangeRequestStatus(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableIPRangeRequestStatus: valid values are %v", v, AllowedPatchedWritableIPRangeRequestStatusEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableIPRangeRequestStatus) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableIPRangeRequestStatusEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableIPRangeRequest_status value
+func (v PatchedWritableIPRangeRequestStatus) Ptr() *PatchedWritableIPRangeRequestStatus {
+ return &v
+}
+
+type NullablePatchedWritableIPRangeRequestStatus struct {
+ value *PatchedWritableIPRangeRequestStatus
+ isSet bool
+}
+
+func (v NullablePatchedWritableIPRangeRequestStatus) Get() *PatchedWritableIPRangeRequestStatus {
+ return v.value
+}
+
+func (v *NullablePatchedWritableIPRangeRequestStatus) Set(val *PatchedWritableIPRangeRequestStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableIPRangeRequestStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableIPRangeRequestStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableIPRangeRequestStatus(val *PatchedWritableIPRangeRequestStatus) *NullablePatchedWritableIPRangeRequestStatus {
+ return &NullablePatchedWritableIPRangeRequestStatus{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableIPRangeRequestStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableIPRangeRequestStatus) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_ip_sec_policy_request.go b/model_patched_writable_ip_sec_policy_request.go
new file mode 100644
index 0000000000..8436687016
--- /dev/null
+++ b/model_patched_writable_ip_sec_policy_request.go
@@ -0,0 +1,386 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PatchedWritableIPSecPolicyRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedWritableIPSecPolicyRequest{}
+
+// PatchedWritableIPSecPolicyRequest Adds support for custom fields and tags.
+type PatchedWritableIPSecPolicyRequest struct {
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Proposals []int32 `json:"proposals,omitempty"`
+ PfsGroup NullablePatchedWritableIPSecPolicyRequestPfsGroup `json:"pfs_group,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedWritableIPSecPolicyRequest PatchedWritableIPSecPolicyRequest
+
+// NewPatchedWritableIPSecPolicyRequest instantiates a new PatchedWritableIPSecPolicyRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPatchedWritableIPSecPolicyRequest() *PatchedWritableIPSecPolicyRequest {
+ this := PatchedWritableIPSecPolicyRequest{}
+ return &this
+}
+
+// NewPatchedWritableIPSecPolicyRequestWithDefaults instantiates a new PatchedWritableIPSecPolicyRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPatchedWritableIPSecPolicyRequestWithDefaults() *PatchedWritableIPSecPolicyRequest {
+ this := PatchedWritableIPSecPolicyRequest{}
+ return &this
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) SetName(v string) {
+ o.Name = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetProposals returns the Proposals field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecPolicyRequest) GetProposals() []int32 {
+ if o == nil || IsNil(o.Proposals) {
+ var ret []int32
+ return ret
+ }
+ return o.Proposals
+}
+
+// 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 *PatchedWritableIPSecPolicyRequest) GetProposalsOk() ([]int32, bool) {
+ if o == nil || IsNil(o.Proposals) {
+ return nil, false
+ }
+ return o.Proposals, true
+}
+
+// HasProposals returns a boolean if a field has been set.
+func (o *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) SetProposals(v []int32) {
+ o.Proposals = v
+}
+
+// GetPfsGroup returns the PfsGroup field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableIPSecPolicyRequest) GetPfsGroup() PatchedWritableIPSecPolicyRequestPfsGroup {
+ if o == nil || IsNil(o.PfsGroup.Get()) {
+ var ret PatchedWritableIPSecPolicyRequestPfsGroup
+ return ret
+ }
+ return *o.PfsGroup.Get()
+}
+
+// GetPfsGroupOk returns a tuple with the PfsGroup field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableIPSecPolicyRequest) GetPfsGroupOk() (*PatchedWritableIPSecPolicyRequestPfsGroup, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.PfsGroup.Get(), o.PfsGroup.IsSet()
+}
+
+// HasPfsGroup returns a boolean if a field has been set.
+func (o *PatchedWritableIPSecPolicyRequest) HasPfsGroup() bool {
+ if o != nil && o.PfsGroup.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetPfsGroup gets a reference to the given NullablePatchedWritableIPSecPolicyRequestPfsGroup and assigns it to the PfsGroup field.
+func (o *PatchedWritableIPSecPolicyRequest) SetPfsGroup(v PatchedWritableIPSecPolicyRequestPfsGroup) {
+ o.PfsGroup.Set(&v)
+}
+
+// SetPfsGroupNil sets the value for PfsGroup to be an explicit nil
+func (o *PatchedWritableIPSecPolicyRequest) SetPfsGroupNil() {
+ o.PfsGroup.Set(nil)
+}
+
+// UnsetPfsGroup ensures that no value is present for PfsGroup, not even an explicit nil
+func (o *PatchedWritableIPSecPolicyRequest) UnsetPfsGroup() {
+ o.PfsGroup.Unset()
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) 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 *PatchedWritableIPSecPolicyRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o PatchedWritableIPSecPolicyRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedWritableIPSecPolicyRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.Proposals) {
+ toSerialize["proposals"] = o.Proposals
+ }
+ if o.PfsGroup.IsSet() {
+ toSerialize["pfs_group"] = o.PfsGroup.Get()
+ }
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PatchedWritableIPSecPolicyRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedWritableIPSecPolicyRequest := _PatchedWritableIPSecPolicyRequest{}
+
+ err = json.Unmarshal(data, &varPatchedWritableIPSecPolicyRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedWritableIPSecPolicyRequest(varPatchedWritableIPSecPolicyRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "proposals")
+ delete(additionalProperties, "pfs_group")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePatchedWritableIPSecPolicyRequest struct {
+ value *PatchedWritableIPSecPolicyRequest
+ isSet bool
+}
+
+func (v NullablePatchedWritableIPSecPolicyRequest) Get() *PatchedWritableIPSecPolicyRequest {
+ return v.value
+}
+
+func (v *NullablePatchedWritableIPSecPolicyRequest) Set(val *PatchedWritableIPSecPolicyRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableIPSecPolicyRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableIPSecPolicyRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableIPSecPolicyRequest(val *PatchedWritableIPSecPolicyRequest) *NullablePatchedWritableIPSecPolicyRequest {
+ return &NullablePatchedWritableIPSecPolicyRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableIPSecPolicyRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableIPSecPolicyRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_ip_sec_policy_request_pfs_group.go b/model_patched_writable_ip_sec_policy_request_pfs_group.go
new file mode 100644
index 0000000000..7dec7c6114
--- /dev/null
+++ b/model_patched_writable_ip_sec_policy_request_pfs_group.go
@@ -0,0 +1,152 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableIPSecPolicyRequestPfsGroup Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `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
+type PatchedWritableIPSecPolicyRequestPfsGroup int32
+
+// List of PatchedWritableIPSecPolicyRequest_pfs_group
+const (
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__1 PatchedWritableIPSecPolicyRequestPfsGroup = 1
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__2 PatchedWritableIPSecPolicyRequestPfsGroup = 2
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__5 PatchedWritableIPSecPolicyRequestPfsGroup = 5
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__14 PatchedWritableIPSecPolicyRequestPfsGroup = 14
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__16 PatchedWritableIPSecPolicyRequestPfsGroup = 16
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__17 PatchedWritableIPSecPolicyRequestPfsGroup = 17
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__18 PatchedWritableIPSecPolicyRequestPfsGroup = 18
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__19 PatchedWritableIPSecPolicyRequestPfsGroup = 19
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__20 PatchedWritableIPSecPolicyRequestPfsGroup = 20
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__21 PatchedWritableIPSecPolicyRequestPfsGroup = 21
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__22 PatchedWritableIPSecPolicyRequestPfsGroup = 22
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__23 PatchedWritableIPSecPolicyRequestPfsGroup = 23
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__24 PatchedWritableIPSecPolicyRequestPfsGroup = 24
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__25 PatchedWritableIPSecPolicyRequestPfsGroup = 25
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__26 PatchedWritableIPSecPolicyRequestPfsGroup = 26
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__27 PatchedWritableIPSecPolicyRequestPfsGroup = 27
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__28 PatchedWritableIPSecPolicyRequestPfsGroup = 28
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__29 PatchedWritableIPSecPolicyRequestPfsGroup = 29
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__30 PatchedWritableIPSecPolicyRequestPfsGroup = 30
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__31 PatchedWritableIPSecPolicyRequestPfsGroup = 31
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__32 PatchedWritableIPSecPolicyRequestPfsGroup = 32
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__33 PatchedWritableIPSecPolicyRequestPfsGroup = 33
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__34 PatchedWritableIPSecPolicyRequestPfsGroup = 34
+)
+
+// All allowed values of PatchedWritableIPSecPolicyRequestPfsGroup enum
+var AllowedPatchedWritableIPSecPolicyRequestPfsGroupEnumValues = []PatchedWritableIPSecPolicyRequestPfsGroup{
+ 1,
+ 2,
+ 5,
+ 14,
+ 16,
+ 17,
+ 18,
+ 19,
+ 20,
+ 21,
+ 22,
+ 23,
+ 24,
+ 25,
+ 26,
+ 27,
+ 28,
+ 29,
+ 30,
+ 31,
+ 32,
+ 33,
+ 34,
+}
+
+func (v *PatchedWritableIPSecPolicyRequestPfsGroup) UnmarshalJSON(src []byte) error {
+ var value int32
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableIPSecPolicyRequestPfsGroup(value)
+ for _, existing := range AllowedPatchedWritableIPSecPolicyRequestPfsGroupEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableIPSecPolicyRequestPfsGroup", value)
+}
+
+// NewPatchedWritableIPSecPolicyRequestPfsGroupFromValue returns a pointer to a valid PatchedWritableIPSecPolicyRequestPfsGroup
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableIPSecPolicyRequestPfsGroupFromValue(v int32) (*PatchedWritableIPSecPolicyRequestPfsGroup, error) {
+ ev := PatchedWritableIPSecPolicyRequestPfsGroup(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableIPSecPolicyRequestPfsGroup: valid values are %v", v, AllowedPatchedWritableIPSecPolicyRequestPfsGroupEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableIPSecPolicyRequestPfsGroup) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableIPSecPolicyRequestPfsGroupEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableIPSecPolicyRequest_pfs_group value
+func (v PatchedWritableIPSecPolicyRequestPfsGroup) Ptr() *PatchedWritableIPSecPolicyRequestPfsGroup {
+ return &v
+}
+
+type NullablePatchedWritableIPSecPolicyRequestPfsGroup struct {
+ value *PatchedWritableIPSecPolicyRequestPfsGroup
+ isSet bool
+}
+
+func (v NullablePatchedWritableIPSecPolicyRequestPfsGroup) Get() *PatchedWritableIPSecPolicyRequestPfsGroup {
+ return v.value
+}
+
+func (v *NullablePatchedWritableIPSecPolicyRequestPfsGroup) Set(val *PatchedWritableIPSecPolicyRequestPfsGroup) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableIPSecPolicyRequestPfsGroup) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableIPSecPolicyRequestPfsGroup) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableIPSecPolicyRequestPfsGroup(val *PatchedWritableIPSecPolicyRequestPfsGroup) *NullablePatchedWritableIPSecPolicyRequestPfsGroup {
+ return &NullablePatchedWritableIPSecPolicyRequestPfsGroup{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableIPSecPolicyRequestPfsGroup) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableIPSecPolicyRequestPfsGroup) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_ip_sec_profile_request.go b/model_patched_writable_ip_sec_profile_request.go
new file mode 100644
index 0000000000..ee2252a8cf
--- /dev/null
+++ b/model_patched_writable_ip_sec_profile_request.go
@@ -0,0 +1,412 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PatchedWritableIPSecProfileRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedWritableIPSecProfileRequest{}
+
+// PatchedWritableIPSecProfileRequest Adds support for custom fields and tags.
+type PatchedWritableIPSecProfileRequest struct {
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode *IPSecProfileModeValue `json:"mode,omitempty"`
+ IkePolicy *int32 `json:"ike_policy,omitempty"`
+ IpsecPolicy *int32 `json:"ipsec_policy,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedWritableIPSecProfileRequest PatchedWritableIPSecProfileRequest
+
+// NewPatchedWritableIPSecProfileRequest instantiates a new PatchedWritableIPSecProfileRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPatchedWritableIPSecProfileRequest() *PatchedWritableIPSecProfileRequest {
+ this := PatchedWritableIPSecProfileRequest{}
+ return &this
+}
+
+// NewPatchedWritableIPSecProfileRequestWithDefaults instantiates a new PatchedWritableIPSecProfileRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPatchedWritableIPSecProfileRequestWithDefaults() *PatchedWritableIPSecProfileRequest {
+ this := PatchedWritableIPSecProfileRequest{}
+ return &this
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) SetName(v string) {
+ o.Name = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetMode returns the Mode field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProfileRequest) GetMode() IPSecProfileModeValue {
+ if o == nil || IsNil(o.Mode) {
+ var ret IPSecProfileModeValue
+ return ret
+ }
+ return *o.Mode
+}
+
+// GetModeOk returns a tuple with the Mode field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableIPSecProfileRequest) GetModeOk() (*IPSecProfileModeValue, bool) {
+ if o == nil || IsNil(o.Mode) {
+ return nil, false
+ }
+ return o.Mode, true
+}
+
+// HasMode returns a boolean if a field has been set.
+func (o *PatchedWritableIPSecProfileRequest) HasMode() bool {
+ if o != nil && !IsNil(o.Mode) {
+ return true
+ }
+
+ return false
+}
+
+// SetMode gets a reference to the given IPSecProfileModeValue and assigns it to the Mode field.
+func (o *PatchedWritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) {
+ o.Mode = &v
+}
+
+// GetIkePolicy returns the IkePolicy field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() int32 {
+ if o == nil || IsNil(o.IkePolicy) {
+ var ret int32
+ return ret
+ }
+ return *o.IkePolicy
+}
+
+// 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) {
+ if o == nil || IsNil(o.IkePolicy) {
+ return nil, false
+ }
+ return o.IkePolicy, true
+}
+
+// HasIkePolicy returns a boolean if a field has been set.
+func (o *PatchedWritableIPSecProfileRequest) HasIkePolicy() bool {
+ if o != nil && !IsNil(o.IkePolicy) {
+ return true
+ }
+
+ return false
+}
+
+// SetIkePolicy gets a reference to the given int32 and assigns it to the IkePolicy field.
+func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v int32) {
+ o.IkePolicy = &v
+}
+
+// GetIpsecPolicy returns the IpsecPolicy field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() int32 {
+ if o == nil || IsNil(o.IpsecPolicy) {
+ var ret int32
+ return ret
+ }
+ return *o.IpsecPolicy
+}
+
+// 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) {
+ if o == nil || IsNil(o.IpsecPolicy) {
+ return nil, false
+ }
+ return o.IpsecPolicy, true
+}
+
+// HasIpsecPolicy returns a boolean if a field has been set.
+func (o *PatchedWritableIPSecProfileRequest) HasIpsecPolicy() bool {
+ if o != nil && !IsNil(o.IpsecPolicy) {
+ return true
+ }
+
+ return false
+}
+
+// SetIpsecPolicy gets a reference to the given int32 and assigns it to the IpsecPolicy field.
+func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v int32) {
+ o.IpsecPolicy = &v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o PatchedWritableIPSecProfileRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedWritableIPSecProfileRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.Mode) {
+ toSerialize["mode"] = o.Mode
+ }
+ if !IsNil(o.IkePolicy) {
+ toSerialize["ike_policy"] = o.IkePolicy
+ }
+ if !IsNil(o.IpsecPolicy) {
+ toSerialize["ipsec_policy"] = o.IpsecPolicy
+ }
+ 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 *PatchedWritableIPSecProfileRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedWritableIPSecProfileRequest := _PatchedWritableIPSecProfileRequest{}
+
+ err = json.Unmarshal(data, &varPatchedWritableIPSecProfileRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedWritableIPSecProfileRequest(varPatchedWritableIPSecProfileRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "mode")
+ delete(additionalProperties, "ike_policy")
+ delete(additionalProperties, "ipsec_policy")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePatchedWritableIPSecProfileRequest struct {
+ value *PatchedWritableIPSecProfileRequest
+ isSet bool
+}
+
+func (v NullablePatchedWritableIPSecProfileRequest) Get() *PatchedWritableIPSecProfileRequest {
+ return v.value
+}
+
+func (v *NullablePatchedWritableIPSecProfileRequest) Set(val *PatchedWritableIPSecProfileRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableIPSecProfileRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableIPSecProfileRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableIPSecProfileRequest(val *PatchedWritableIPSecProfileRequest) *NullablePatchedWritableIPSecProfileRequest {
+ return &NullablePatchedWritableIPSecProfileRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableIPSecProfileRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableIPSecProfileRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_ip_sec_proposal_request.go b/model_patched_writable_ip_sec_proposal_request.go
new file mode 100644
index 0000000000..c15c38aae9
--- /dev/null
+++ b/model_patched_writable_ip_sec_proposal_request.go
@@ -0,0 +1,473 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PatchedWritableIPSecProposalRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedWritableIPSecProposalRequest{}
+
+// PatchedWritableIPSecProposalRequest Adds support for custom fields and tags.
+type PatchedWritableIPSecProposalRequest struct {
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ EncryptionAlgorithm *Encryption `json:"encryption_algorithm,omitempty"`
+ AuthenticationAlgorithm *Authentication `json:"authentication_algorithm,omitempty"`
+ // Security association lifetime (seconds)
+ SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"`
+ // Security association lifetime (in kilobytes)
+ SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedWritableIPSecProposalRequest PatchedWritableIPSecProposalRequest
+
+// NewPatchedWritableIPSecProposalRequest instantiates a new PatchedWritableIPSecProposalRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPatchedWritableIPSecProposalRequest() *PatchedWritableIPSecProposalRequest {
+ this := PatchedWritableIPSecProposalRequest{}
+ return &this
+}
+
+// NewPatchedWritableIPSecProposalRequestWithDefaults instantiates a new PatchedWritableIPSecProposalRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPatchedWritableIPSecProposalRequestWithDefaults() *PatchedWritableIPSecProposalRequest {
+ this := PatchedWritableIPSecProposalRequest{}
+ return &this
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) SetName(v string) {
+ o.Name = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption {
+ if o == nil || IsNil(o.EncryptionAlgorithm) {
+ var ret Encryption
+ return ret
+ }
+ return *o.EncryptionAlgorithm
+}
+
+// GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption, bool) {
+ if o == nil || IsNil(o.EncryptionAlgorithm) {
+ return nil, false
+ }
+ return o.EncryptionAlgorithm, true
+}
+
+// HasEncryptionAlgorithm returns a boolean if a field has been set.
+func (o *PatchedWritableIPSecProposalRequest) HasEncryptionAlgorithm() bool {
+ if o != nil && !IsNil(o.EncryptionAlgorithm) {
+ return true
+ }
+
+ return false
+}
+
+// SetEncryptionAlgorithm gets a reference to the given Encryption and assigns it to the EncryptionAlgorithm field.
+func (o *PatchedWritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption) {
+ o.EncryptionAlgorithm = &v
+}
+
+// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication {
+ if o == nil || IsNil(o.AuthenticationAlgorithm) {
+ var ret Authentication
+ return ret
+ }
+ return *o.AuthenticationAlgorithm
+}
+
+// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication, bool) {
+ if o == nil || IsNil(o.AuthenticationAlgorithm) {
+ return nil, false
+ }
+ return o.AuthenticationAlgorithm, true
+}
+
+// HasAuthenticationAlgorithm returns a boolean if a field has been set.
+func (o *PatchedWritableIPSecProposalRequest) HasAuthenticationAlgorithm() bool {
+ if o != nil && !IsNil(o.AuthenticationAlgorithm) {
+ return true
+ }
+
+ return false
+}
+
+// SetAuthenticationAlgorithm gets a reference to the given Authentication and assigns it to the AuthenticationAlgorithm field.
+func (o *PatchedWritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication) {
+ o.AuthenticationAlgorithm = &v
+}
+
+// GetSaLifetimeSeconds returns the SaLifetimeSeconds field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableIPSecProposalRequest) GetSaLifetimeSeconds() int32 {
+ if o == nil || IsNil(o.SaLifetimeSeconds.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.SaLifetimeSeconds.Get()
+}
+
+// GetSaLifetimeSecondsOk returns a tuple with the SaLifetimeSeconds field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableIPSecProposalRequest) GetSaLifetimeSecondsOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SaLifetimeSeconds.Get(), o.SaLifetimeSeconds.IsSet()
+}
+
+// HasSaLifetimeSeconds returns a boolean if a field has been set.
+func (o *PatchedWritableIPSecProposalRequest) HasSaLifetimeSeconds() bool {
+ if o != nil && o.SaLifetimeSeconds.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSaLifetimeSeconds gets a reference to the given NullableInt32 and assigns it to the SaLifetimeSeconds field.
+func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeSeconds(v int32) {
+ o.SaLifetimeSeconds.Set(&v)
+}
+
+// SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil
+func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeSecondsNil() {
+ o.SaLifetimeSeconds.Set(nil)
+}
+
+// UnsetSaLifetimeSeconds ensures that no value is present for SaLifetimeSeconds, not even an explicit nil
+func (o *PatchedWritableIPSecProposalRequest) UnsetSaLifetimeSeconds() {
+ o.SaLifetimeSeconds.Unset()
+}
+
+// GetSaLifetimeData returns the SaLifetimeData field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableIPSecProposalRequest) GetSaLifetimeData() int32 {
+ if o == nil || IsNil(o.SaLifetimeData.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.SaLifetimeData.Get()
+}
+
+// GetSaLifetimeDataOk returns a tuple with the SaLifetimeData field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableIPSecProposalRequest) GetSaLifetimeDataOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SaLifetimeData.Get(), o.SaLifetimeData.IsSet()
+}
+
+// HasSaLifetimeData returns a boolean if a field has been set.
+func (o *PatchedWritableIPSecProposalRequest) HasSaLifetimeData() bool {
+ if o != nil && o.SaLifetimeData.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSaLifetimeData gets a reference to the given NullableInt32 and assigns it to the SaLifetimeData field.
+func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeData(v int32) {
+ o.SaLifetimeData.Set(&v)
+}
+
+// SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil
+func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeDataNil() {
+ o.SaLifetimeData.Set(nil)
+}
+
+// UnsetSaLifetimeData ensures that no value is present for SaLifetimeData, not even an explicit nil
+func (o *PatchedWritableIPSecProposalRequest) UnsetSaLifetimeData() {
+ o.SaLifetimeData.Unset()
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) 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 *PatchedWritableIPSecProposalRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o PatchedWritableIPSecProposalRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedWritableIPSecProposalRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.EncryptionAlgorithm) {
+ toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm
+ }
+ if !IsNil(o.AuthenticationAlgorithm) {
+ toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm
+ }
+ if o.SaLifetimeSeconds.IsSet() {
+ toSerialize["sa_lifetime_seconds"] = o.SaLifetimeSeconds.Get()
+ }
+ if o.SaLifetimeData.IsSet() {
+ toSerialize["sa_lifetime_data"] = o.SaLifetimeData.Get()
+ }
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PatchedWritableIPSecProposalRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedWritableIPSecProposalRequest := _PatchedWritableIPSecProposalRequest{}
+
+ err = json.Unmarshal(data, &varPatchedWritableIPSecProposalRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedWritableIPSecProposalRequest(varPatchedWritableIPSecProposalRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "encryption_algorithm")
+ delete(additionalProperties, "authentication_algorithm")
+ delete(additionalProperties, "sa_lifetime_seconds")
+ delete(additionalProperties, "sa_lifetime_data")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePatchedWritableIPSecProposalRequest struct {
+ value *PatchedWritableIPSecProposalRequest
+ isSet bool
+}
+
+func (v NullablePatchedWritableIPSecProposalRequest) Get() *PatchedWritableIPSecProposalRequest {
+ return v.value
+}
+
+func (v *NullablePatchedWritableIPSecProposalRequest) Set(val *PatchedWritableIPSecProposalRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableIPSecProposalRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableIPSecProposalRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableIPSecProposalRequest(val *PatchedWritableIPSecProposalRequest) *NullablePatchedWritableIPSecProposalRequest {
+ return &NullablePatchedWritableIPSecProposalRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableIPSecProposalRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableIPSecProposalRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_journal_entry_request.go b/model_patched_writable_journal_entry_request.go
index 56335608b1..c9ded7a08a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,10 @@ var _ MappedNullable = &PatchedWritableJournalEntryRequest{}
// PatchedWritableJournalEntryRequest Adds support for custom fields and tags.
type PatchedWritableJournalEntryRequest struct {
- AssignedObjectType *string `json:"assigned_object_type,omitempty"`
- AssignedObjectId *int64 `json:"assigned_object_id,omitempty"`
- CreatedBy NullableInt32 `json:"created_by,omitempty"`
- // * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger
- Kind *string `json:"kind,omitempty"`
+ AssignedObjectType *string `json:"assigned_object_type,omitempty"`
+ AssignedObjectId *int64 `json:"assigned_object_id,omitempty"`
+ CreatedBy NullableInt32 `json:"created_by,omitempty"`
+ Kind *JournalEntryKindValue `json:"kind,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -157,9 +156,9 @@ func (o *PatchedWritableJournalEntryRequest) UnsetCreatedBy() {
}
// GetKind returns the Kind field value if set, zero value otherwise.
-func (o *PatchedWritableJournalEntryRequest) GetKind() string {
+func (o *PatchedWritableJournalEntryRequest) GetKind() JournalEntryKindValue {
if o == nil || IsNil(o.Kind) {
- var ret string
+ var ret JournalEntryKindValue
return ret
}
return *o.Kind
@@ -167,7 +166,7 @@ func (o *PatchedWritableJournalEntryRequest) GetKind() string {
// GetKindOk returns a tuple with the Kind field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableJournalEntryRequest) GetKindOk() (*string, bool) {
+func (o *PatchedWritableJournalEntryRequest) GetKindOk() (*JournalEntryKindValue, bool) {
if o == nil || IsNil(o.Kind) {
return nil, false
}
@@ -183,8 +182,8 @@ func (o *PatchedWritableJournalEntryRequest) HasKind() bool {
return false
}
-// SetKind gets a reference to the given string and assigns it to the Kind field.
-func (o *PatchedWritableJournalEntryRequest) SetKind(v string) {
+// SetKind gets a reference to the given JournalEntryKindValue and assigns it to the Kind field.
+func (o *PatchedWritableJournalEntryRequest) SetKind(v JournalEntryKindValue) {
o.Kind = &v
}
@@ -323,10 +322,10 @@ func (o PatchedWritableJournalEntryRequest) ToMap() (map[string]interface{}, err
return toSerialize, nil
}
-func (o *PatchedWritableJournalEntryRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableJournalEntryRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableJournalEntryRequest := _PatchedWritableJournalEntryRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableJournalEntryRequest)
+ err = json.Unmarshal(data, &varPatchedWritableJournalEntryRequest)
if err != nil {
return err
@@ -336,7 +335,7 @@ func (o *PatchedWritableJournalEntryRequest) UnmarshalJSON(bytes []byte) (err er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "assigned_object_type")
delete(additionalProperties, "assigned_object_id")
delete(additionalProperties, "created_by")
diff --git a/model_patched_writable_l2_vpn_request.go b/model_patched_writable_l2_vpn_request.go
index cef069b0ed..89e934166f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,10 @@ var _ MappedNullable = &PatchedWritableL2VPNRequest{}
// PatchedWritableL2VPNRequest Adds support for custom fields and tags.
type PatchedWritableL2VPNRequest struct {
- Identifier NullableInt64 `json:"identifier,omitempty"`
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty"`
- // * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree
- Type *string `json:"type,omitempty"`
+ Identifier NullableInt64 `json:"identifier,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty"`
+ Type *L2VPNTypeValue `json:"type,omitempty"`
ImportTargets []int32 `json:"import_targets,omitempty"`
ExportTargets []int32 `json:"export_targets,omitempty"`
Description *string `json:"description,omitempty"`
@@ -161,9 +160,9 @@ func (o *PatchedWritableL2VPNRequest) SetSlug(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableL2VPNRequest) GetType() string {
+func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret L2VPNTypeValue
return ret
}
return *o.Type
@@ -171,7 +170,7 @@ func (o *PatchedWritableL2VPNRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -187,8 +186,8 @@ func (o *PatchedWritableL2VPNRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableL2VPNRequest) SetType(v string) {
+// SetType gets a reference to the given L2VPNTypeValue and assigns it to the Type field.
+func (o *PatchedWritableL2VPNRequest) SetType(v L2VPNTypeValue) {
o.Type = &v
}
@@ -478,10 +477,10 @@ func (o PatchedWritableL2VPNRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableL2VPNRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableL2VPNRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableL2VPNRequest := _PatchedWritableL2VPNRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableL2VPNRequest)
+ err = json.Unmarshal(data, &varPatchedWritableL2VPNRequest)
if err != nil {
return err
@@ -491,7 +490,7 @@ func (o *PatchedWritableL2VPNRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "identifier")
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
diff --git a/model_patched_writable_l2_vpn_termination_request.go b/model_patched_writable_l2_vpn_termination_request.go
index 2b38be5596..292567c7e5 100644
--- a/model_patched_writable_l2_vpn_termination_request.go
+++ b/model_patched_writable_l2_vpn_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -239,10 +239,10 @@ func (o PatchedWritableL2VPNTerminationRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PatchedWritableL2VPNTerminationRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableL2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableL2VPNTerminationRequest := _PatchedWritableL2VPNTerminationRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableL2VPNTerminationRequest)
+ err = json.Unmarshal(data, &varPatchedWritableL2VPNTerminationRequest)
if err != nil {
return err
@@ -252,7 +252,7 @@ func (o *PatchedWritableL2VPNTerminationRequest) UnmarshalJSON(bytes []byte) (er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "l2vpn")
delete(additionalProperties, "assigned_object_type")
delete(additionalProperties, "assigned_object_id")
diff --git a/model_patched_writable_location_request.go b/model_patched_writable_location_request.go
index a964e3f5c2..e8740146f2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,11 @@ 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"`
- // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired
- Status *string `json:"status,omitempty"`
+ 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"`
Description *string `json:"description,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -191,9 +190,9 @@ func (o *PatchedWritableLocationRequest) UnsetParent() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableLocationRequest) GetStatus() string {
+func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret LocationStatusValue
return ret
}
return *o.Status
@@ -201,7 +200,7 @@ func (o *PatchedWritableLocationRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *PatchedWritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -217,8 +216,8 @@ func (o *PatchedWritableLocationRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableLocationRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field.
+func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue) {
o.Status = &v
}
@@ -406,10 +405,10 @@ func (o PatchedWritableLocationRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableLocationRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableLocationRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableLocationRequest := _PatchedWritableLocationRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableLocationRequest)
+ err = json.Unmarshal(data, &varPatchedWritableLocationRequest)
if err != nil {
return err
@@ -419,7 +418,7 @@ func (o *PatchedWritableLocationRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "site")
diff --git a/model_patched_writable_module_bay_request.go b/model_patched_writable_module_bay_request.go
index b97800c63c..48ea40d231 100644
--- a/model_patched_writable_module_bay_request.go
+++ b/model_patched_writable_module_bay_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -349,10 +349,10 @@ func (o PatchedWritableModuleBayRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableModuleBayRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableModuleBayRequest := _PatchedWritableModuleBayRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableModuleBayRequest)
+ err = json.Unmarshal(data, &varPatchedWritableModuleBayRequest)
if err != nil {
return err
@@ -362,7 +362,7 @@ func (o *PatchedWritableModuleBayRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "name")
delete(additionalProperties, "installed_module")
diff --git a/model_patched_writable_module_bay_template_request.go b/model_patched_writable_module_bay_template_request.go
index bf1cdc71d0..d3c4277d70 100644
--- a/model_patched_writable_module_bay_template_request.go
+++ b/model_patched_writable_module_bay_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -242,10 +242,10 @@ func (o PatchedWritableModuleBayTemplateRequest) ToMap() (map[string]interface{}
return toSerialize, nil
}
-func (o *PatchedWritableModuleBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableModuleBayTemplateRequest := _PatchedWritableModuleBayTemplateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableModuleBayTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedWritableModuleBayTemplateRequest)
if err != nil {
return err
@@ -255,7 +255,7 @@ func (o *PatchedWritableModuleBayTemplateRequest) UnmarshalJSON(bytes []byte) (e
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "name")
delete(additionalProperties, "label")
diff --git a/model_patched_writable_module_request.go b/model_patched_writable_module_request.go
index 858e4579e8..d83990a1f4 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +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"`
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ 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"`
// A unique tag used to identify this device
AssetTag NullableString `json:"asset_tag,omitempty"`
Description *string `json:"description,omitempty"`
@@ -150,9 +149,9 @@ func (o *PatchedWritableModuleRequest) SetModuleType(v int32) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableModuleRequest) GetStatus() string {
+func (o *PatchedWritableModuleRequest) GetStatus() ModuleStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret ModuleStatusValue
return ret
}
return *o.Status
@@ -160,7 +159,7 @@ func (o *PatchedWritableModuleRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *PatchedWritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -176,8 +175,8 @@ func (o *PatchedWritableModuleRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableModuleRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field.
+func (o *PatchedWritableModuleRequest) SetStatus(v ModuleStatusValue) {
o.Status = &v
}
@@ -432,10 +431,10 @@ func (o PatchedWritableModuleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableModuleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableModuleRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableModuleRequest := _PatchedWritableModuleRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableModuleRequest)
+ err = json.Unmarshal(data, &varPatchedWritableModuleRequest)
if err != nil {
return err
@@ -445,7 +444,7 @@ func (o *PatchedWritableModuleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module_bay")
delete(additionalProperties, "module_type")
diff --git a/model_patched_writable_module_type_request.go b/model_patched_writable_module_type_request.go
index d065c9d8da..5bb7340442 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,14 +22,13 @@ type PatchedWritableModuleTypeRequest struct {
Manufacturer *int32 `json:"manufacturer,omitempty"`
Model *string `json:"model,omitempty"`
// Discrete part number (optional)
- PartNumber *string `json:"part_number,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
- WeightUnit *string `json:"weight_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -192,9 +191,9 @@ func (o *PatchedWritableModuleTypeRequest) UnsetWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise.
-func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() string {
+func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
if o == nil || IsNil(o.WeightUnit) {
- var ret string
+ var ret DeviceTypeWeightUnitValue
return ret
}
return *o.WeightUnit
@@ -202,7 +201,7 @@ func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() string {
// 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() (*string, bool) {
+func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) {
if o == nil || IsNil(o.WeightUnit) {
return nil, false
}
@@ -218,8 +217,8 @@ func (o *PatchedWritableModuleTypeRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given string and assigns it to the WeightUnit field.
-func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v string) {
+// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field.
+func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) {
o.WeightUnit = &v
}
@@ -396,10 +395,10 @@ func (o PatchedWritableModuleTypeRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *PatchedWritableModuleTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableModuleTypeRequest := _PatchedWritableModuleTypeRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableModuleTypeRequest)
+ err = json.Unmarshal(data, &varPatchedWritableModuleTypeRequest)
if err != nil {
return err
@@ -409,7 +408,7 @@ func (o *PatchedWritableModuleTypeRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "manufacturer")
delete(additionalProperties, "model")
delete(additionalProperties, "part_number")
diff --git a/model_patched_writable_object_permission_request.go b/model_patched_writable_object_permission_request.go
index e9e4a2dfc4..38ad48e2ab 100644
--- a/model_patched_writable_object_permission_request.go
+++ b/model_patched_writable_object_permission_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -28,7 +28,7 @@ type PatchedWritableObjectPermissionRequest struct {
// The list of actions granted by this permission
Actions []string `json:"actions,omitempty"`
// Queryset filter matching the applicable objects of the selected type(s)
- Constraints map[string]interface{} `json:"constraints,omitempty"`
+ Constraints interface{} `json:"constraints,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -276,9 +276,9 @@ func (o *PatchedWritableObjectPermissionRequest) SetActions(v []string) {
}
// GetConstraints returns the Constraints field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableObjectPermissionRequest) GetConstraints() map[string]interface{} {
+func (o *PatchedWritableObjectPermissionRequest) GetConstraints() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.Constraints
@@ -287,11 +287,11 @@ func (o *PatchedWritableObjectPermissionRequest) GetConstraints() map[string]int
// 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 *PatchedWritableObjectPermissionRequest) GetConstraintsOk() (map[string]interface{}, bool) {
+func (o *PatchedWritableObjectPermissionRequest) GetConstraintsOk() (*interface{}, bool) {
if o == nil || IsNil(o.Constraints) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Constraints, true
+ return &o.Constraints, true
}
// HasConstraints returns a boolean if a field has been set.
@@ -303,8 +303,8 @@ func (o *PatchedWritableObjectPermissionRequest) HasConstraints() bool {
return false
}
-// SetConstraints gets a reference to the given map[string]interface{} and assigns it to the Constraints field.
-func (o *PatchedWritableObjectPermissionRequest) SetConstraints(v map[string]interface{}) {
+// SetConstraints gets a reference to the given interface{} and assigns it to the Constraints field.
+func (o *PatchedWritableObjectPermissionRequest) SetConstraints(v interface{}) {
o.Constraints = v
}
@@ -350,10 +350,10 @@ func (o PatchedWritableObjectPermissionRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PatchedWritableObjectPermissionRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableObjectPermissionRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableObjectPermissionRequest := _PatchedWritableObjectPermissionRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableObjectPermissionRequest)
+ err = json.Unmarshal(data, &varPatchedWritableObjectPermissionRequest)
if err != nil {
return err
@@ -363,7 +363,7 @@ func (o *PatchedWritableObjectPermissionRequest) UnmarshalJSON(bytes []byte) (er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "description")
delete(additionalProperties, "enabled")
diff --git a/model_patched_writable_platform_request.go b/model_patched_writable_platform_request.go
index 82cc75548e..0fe21c80f2 100644
--- a/model_patched_writable_platform_request.go
+++ b/model_patched_writable_platform_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -334,10 +334,10 @@ func (o PatchedWritablePlatformRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritablePlatformRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritablePlatformRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritablePlatformRequest := _PatchedWritablePlatformRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritablePlatformRequest)
+ err = json.Unmarshal(data, &varPatchedWritablePlatformRequest)
if err != nil {
return err
@@ -347,7 +347,7 @@ func (o *PatchedWritablePlatformRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "manufacturer")
diff --git a/model_patched_writable_power_feed_request.go b/model_patched_writable_power_feed_request.go
index 70be2306cc..f0e7fc4256 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,19 +19,15 @@ var _ MappedNullable = &PatchedWritablePowerFeedRequest{}
// PatchedWritablePowerFeedRequest Adds support for custom fields and tags.
type PatchedWritablePowerFeedRequest struct {
- PowerPanel *int32 `json:"power_panel,omitempty"`
- Rack NullableInt32 `json:"rack,omitempty"`
- Name *string `json:"name,omitempty"`
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed
- Status *string `json:"status,omitempty"`
- // * `primary` - Primary * `redundant` - Redundant
- Type *string `json:"type,omitempty"`
- // * `ac` - AC * `dc` - DC
- Supply *string `json:"supply,omitempty"`
- // * `single-phase` - Single phase * `three-phase` - Three-phase
- Phase *string `json:"phase,omitempty"`
- Voltage *int32 `json:"voltage,omitempty"`
- Amperage *int32 `json:"amperage,omitempty"`
+ PowerPanel *int32 `json:"power_panel,omitempty"`
+ Rack NullableInt32 `json:"rack,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"`
+ Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"`
+ Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"`
+ Phase *PatchedWritablePowerFeedRequestPhase `json:"phase,omitempty"`
+ Voltage *int32 `json:"voltage,omitempty"`
+ Amperage *int32 `json:"amperage,omitempty"`
// Maximum permissible draw (percentage)
MaxUtilization *int32 `json:"max_utilization,omitempty"`
// Treat as if a cable is connected
@@ -171,9 +167,9 @@ func (o *PatchedWritablePowerFeedRequest) SetName(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritablePowerFeedRequest) GetStatus() string {
+func (o *PatchedWritablePowerFeedRequest) GetStatus() PatchedWritablePowerFeedRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestStatus
return ret
}
return *o.Status
@@ -181,7 +177,7 @@ func (o *PatchedWritablePowerFeedRequest) GetStatus() string {
// 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 *PatchedWritablePowerFeedRequest) GetStatusOk() (*string, bool) {
+func (o *PatchedWritablePowerFeedRequest) GetStatusOk() (*PatchedWritablePowerFeedRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -197,15 +193,15 @@ func (o *PatchedWritablePowerFeedRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritablePowerFeedRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritablePowerFeedRequestStatus and assigns it to the Status field.
+func (o *PatchedWritablePowerFeedRequest) SetStatus(v PatchedWritablePowerFeedRequestStatus) {
o.Status = &v
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritablePowerFeedRequest) GetType() string {
+func (o *PatchedWritablePowerFeedRequest) GetType() PatchedWritablePowerFeedRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestType
return ret
}
return *o.Type
@@ -213,7 +209,7 @@ func (o *PatchedWritablePowerFeedRequest) GetType() string {
// 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 *PatchedWritablePowerFeedRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritablePowerFeedRequest) GetTypeOk() (*PatchedWritablePowerFeedRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -229,15 +225,15 @@ func (o *PatchedWritablePowerFeedRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritablePowerFeedRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritablePowerFeedRequestType and assigns it to the Type field.
+func (o *PatchedWritablePowerFeedRequest) SetType(v PatchedWritablePowerFeedRequestType) {
o.Type = &v
}
// GetSupply returns the Supply field value if set, zero value otherwise.
-func (o *PatchedWritablePowerFeedRequest) GetSupply() string {
+func (o *PatchedWritablePowerFeedRequest) GetSupply() PatchedWritablePowerFeedRequestSupply {
if o == nil || IsNil(o.Supply) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestSupply
return ret
}
return *o.Supply
@@ -245,7 +241,7 @@ func (o *PatchedWritablePowerFeedRequest) GetSupply() string {
// GetSupplyOk returns a tuple with the Supply field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritablePowerFeedRequest) GetSupplyOk() (*string, bool) {
+func (o *PatchedWritablePowerFeedRequest) GetSupplyOk() (*PatchedWritablePowerFeedRequestSupply, bool) {
if o == nil || IsNil(o.Supply) {
return nil, false
}
@@ -261,15 +257,15 @@ func (o *PatchedWritablePowerFeedRequest) HasSupply() bool {
return false
}
-// SetSupply gets a reference to the given string and assigns it to the Supply field.
-func (o *PatchedWritablePowerFeedRequest) SetSupply(v string) {
+// SetSupply gets a reference to the given PatchedWritablePowerFeedRequestSupply and assigns it to the Supply field.
+func (o *PatchedWritablePowerFeedRequest) SetSupply(v PatchedWritablePowerFeedRequestSupply) {
o.Supply = &v
}
// GetPhase returns the Phase field value if set, zero value otherwise.
-func (o *PatchedWritablePowerFeedRequest) GetPhase() string {
+func (o *PatchedWritablePowerFeedRequest) GetPhase() PatchedWritablePowerFeedRequestPhase {
if o == nil || IsNil(o.Phase) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestPhase
return ret
}
return *o.Phase
@@ -277,7 +273,7 @@ func (o *PatchedWritablePowerFeedRequest) GetPhase() string {
// GetPhaseOk returns a tuple with the Phase field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritablePowerFeedRequest) GetPhaseOk() (*string, bool) {
+func (o *PatchedWritablePowerFeedRequest) GetPhaseOk() (*PatchedWritablePowerFeedRequestPhase, bool) {
if o == nil || IsNil(o.Phase) {
return nil, false
}
@@ -293,8 +289,8 @@ func (o *PatchedWritablePowerFeedRequest) HasPhase() bool {
return false
}
-// SetPhase gets a reference to the given string and assigns it to the Phase field.
-func (o *PatchedWritablePowerFeedRequest) SetPhase(v string) {
+// SetPhase gets a reference to the given PatchedWritablePowerFeedRequestPhase and assigns it to the Phase field.
+func (o *PatchedWritablePowerFeedRequest) SetPhase(v PatchedWritablePowerFeedRequestPhase) {
o.Phase = &v
}
@@ -663,10 +659,10 @@ func (o PatchedWritablePowerFeedRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritablePowerFeedRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritablePowerFeedRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritablePowerFeedRequest := _PatchedWritablePowerFeedRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritablePowerFeedRequest)
+ err = json.Unmarshal(data, &varPatchedWritablePowerFeedRequest)
if err != nil {
return err
@@ -676,7 +672,7 @@ func (o *PatchedWritablePowerFeedRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "power_panel")
delete(additionalProperties, "rack")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_power_feed_request_phase.go b/model_patched_writable_power_feed_request_phase.go
new file mode 100644
index 0000000000..662f44ebb8
--- /dev/null
+++ b/model_patched_writable_power_feed_request_phase.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritablePowerFeedRequestPhase * `single-phase` - Single phase * `three-phase` - Three-phase
+type PatchedWritablePowerFeedRequestPhase string
+
+// List of PatchedWritablePowerFeedRequest_phase
+const (
+ PATCHEDWRITABLEPOWERFEEDREQUESTPHASE_SINGLE_PHASE PatchedWritablePowerFeedRequestPhase = "single-phase"
+ PATCHEDWRITABLEPOWERFEEDREQUESTPHASE_THREE_PHASE PatchedWritablePowerFeedRequestPhase = "three-phase"
+)
+
+// All allowed values of PatchedWritablePowerFeedRequestPhase enum
+var AllowedPatchedWritablePowerFeedRequestPhaseEnumValues = []PatchedWritablePowerFeedRequestPhase{
+ "single-phase",
+ "three-phase",
+}
+
+func (v *PatchedWritablePowerFeedRequestPhase) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritablePowerFeedRequestPhase(value)
+ for _, existing := range AllowedPatchedWritablePowerFeedRequestPhaseEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritablePowerFeedRequestPhase", value)
+}
+
+// NewPatchedWritablePowerFeedRequestPhaseFromValue returns a pointer to a valid PatchedWritablePowerFeedRequestPhase
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritablePowerFeedRequestPhaseFromValue(v string) (*PatchedWritablePowerFeedRequestPhase, error) {
+ ev := PatchedWritablePowerFeedRequestPhase(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritablePowerFeedRequestPhase: valid values are %v", v, AllowedPatchedWritablePowerFeedRequestPhaseEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritablePowerFeedRequestPhase) IsValid() bool {
+ for _, existing := range AllowedPatchedWritablePowerFeedRequestPhaseEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritablePowerFeedRequest_phase value
+func (v PatchedWritablePowerFeedRequestPhase) Ptr() *PatchedWritablePowerFeedRequestPhase {
+ return &v
+}
+
+type NullablePatchedWritablePowerFeedRequestPhase struct {
+ value *PatchedWritablePowerFeedRequestPhase
+ isSet bool
+}
+
+func (v NullablePatchedWritablePowerFeedRequestPhase) Get() *PatchedWritablePowerFeedRequestPhase {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestPhase) Set(val *PatchedWritablePowerFeedRequestPhase) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePowerFeedRequestPhase) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestPhase) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePowerFeedRequestPhase(val *PatchedWritablePowerFeedRequestPhase) *NullablePatchedWritablePowerFeedRequestPhase {
+ return &NullablePatchedWritablePowerFeedRequestPhase{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePowerFeedRequestPhase) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestPhase) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_power_feed_request_status.go b/model_patched_writable_power_feed_request_status.go
new file mode 100644
index 0000000000..a53e58fc0b
--- /dev/null
+++ b/model_patched_writable_power_feed_request_status.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritablePowerFeedRequestStatus * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed
+type PatchedWritablePowerFeedRequestStatus string
+
+// List of PatchedWritablePowerFeedRequest_status
+const (
+ PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_OFFLINE PatchedWritablePowerFeedRequestStatus = "offline"
+ PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_ACTIVE PatchedWritablePowerFeedRequestStatus = "active"
+ PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_PLANNED PatchedWritablePowerFeedRequestStatus = "planned"
+ PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_FAILED PatchedWritablePowerFeedRequestStatus = "failed"
+)
+
+// All allowed values of PatchedWritablePowerFeedRequestStatus enum
+var AllowedPatchedWritablePowerFeedRequestStatusEnumValues = []PatchedWritablePowerFeedRequestStatus{
+ "offline",
+ "active",
+ "planned",
+ "failed",
+}
+
+func (v *PatchedWritablePowerFeedRequestStatus) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritablePowerFeedRequestStatus(value)
+ for _, existing := range AllowedPatchedWritablePowerFeedRequestStatusEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritablePowerFeedRequestStatus", value)
+}
+
+// NewPatchedWritablePowerFeedRequestStatusFromValue returns a pointer to a valid PatchedWritablePowerFeedRequestStatus
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritablePowerFeedRequestStatusFromValue(v string) (*PatchedWritablePowerFeedRequestStatus, error) {
+ ev := PatchedWritablePowerFeedRequestStatus(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritablePowerFeedRequestStatus: valid values are %v", v, AllowedPatchedWritablePowerFeedRequestStatusEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritablePowerFeedRequestStatus) IsValid() bool {
+ for _, existing := range AllowedPatchedWritablePowerFeedRequestStatusEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritablePowerFeedRequest_status value
+func (v PatchedWritablePowerFeedRequestStatus) Ptr() *PatchedWritablePowerFeedRequestStatus {
+ return &v
+}
+
+type NullablePatchedWritablePowerFeedRequestStatus struct {
+ value *PatchedWritablePowerFeedRequestStatus
+ isSet bool
+}
+
+func (v NullablePatchedWritablePowerFeedRequestStatus) Get() *PatchedWritablePowerFeedRequestStatus {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestStatus) Set(val *PatchedWritablePowerFeedRequestStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePowerFeedRequestStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePowerFeedRequestStatus(val *PatchedWritablePowerFeedRequestStatus) *NullablePatchedWritablePowerFeedRequestStatus {
+ return &NullablePatchedWritablePowerFeedRequestStatus{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePowerFeedRequestStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestStatus) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_power_feed_request_supply.go b/model_patched_writable_power_feed_request_supply.go
new file mode 100644
index 0000000000..0f7d2bb246
--- /dev/null
+++ b/model_patched_writable_power_feed_request_supply.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritablePowerFeedRequestSupply * `ac` - AC * `dc` - DC
+type PatchedWritablePowerFeedRequestSupply string
+
+// List of PatchedWritablePowerFeedRequest_supply
+const (
+ PATCHEDWRITABLEPOWERFEEDREQUESTSUPPLY_AC PatchedWritablePowerFeedRequestSupply = "ac"
+ PATCHEDWRITABLEPOWERFEEDREQUESTSUPPLY_DC PatchedWritablePowerFeedRequestSupply = "dc"
+)
+
+// All allowed values of PatchedWritablePowerFeedRequestSupply enum
+var AllowedPatchedWritablePowerFeedRequestSupplyEnumValues = []PatchedWritablePowerFeedRequestSupply{
+ "ac",
+ "dc",
+}
+
+func (v *PatchedWritablePowerFeedRequestSupply) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritablePowerFeedRequestSupply(value)
+ for _, existing := range AllowedPatchedWritablePowerFeedRequestSupplyEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritablePowerFeedRequestSupply", value)
+}
+
+// NewPatchedWritablePowerFeedRequestSupplyFromValue returns a pointer to a valid PatchedWritablePowerFeedRequestSupply
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritablePowerFeedRequestSupplyFromValue(v string) (*PatchedWritablePowerFeedRequestSupply, error) {
+ ev := PatchedWritablePowerFeedRequestSupply(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritablePowerFeedRequestSupply: valid values are %v", v, AllowedPatchedWritablePowerFeedRequestSupplyEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritablePowerFeedRequestSupply) IsValid() bool {
+ for _, existing := range AllowedPatchedWritablePowerFeedRequestSupplyEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritablePowerFeedRequest_supply value
+func (v PatchedWritablePowerFeedRequestSupply) Ptr() *PatchedWritablePowerFeedRequestSupply {
+ return &v
+}
+
+type NullablePatchedWritablePowerFeedRequestSupply struct {
+ value *PatchedWritablePowerFeedRequestSupply
+ isSet bool
+}
+
+func (v NullablePatchedWritablePowerFeedRequestSupply) Get() *PatchedWritablePowerFeedRequestSupply {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestSupply) Set(val *PatchedWritablePowerFeedRequestSupply) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePowerFeedRequestSupply) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestSupply) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePowerFeedRequestSupply(val *PatchedWritablePowerFeedRequestSupply) *NullablePatchedWritablePowerFeedRequestSupply {
+ return &NullablePatchedWritablePowerFeedRequestSupply{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePowerFeedRequestSupply) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestSupply) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_power_feed_request_type.go b/model_patched_writable_power_feed_request_type.go
new file mode 100644
index 0000000000..ca9f4c4c5e
--- /dev/null
+++ b/model_patched_writable_power_feed_request_type.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritablePowerFeedRequestType * `primary` - Primary * `redundant` - Redundant
+type PatchedWritablePowerFeedRequestType string
+
+// List of PatchedWritablePowerFeedRequest_type
+const (
+ PATCHEDWRITABLEPOWERFEEDREQUESTTYPE_PRIMARY PatchedWritablePowerFeedRequestType = "primary"
+ PATCHEDWRITABLEPOWERFEEDREQUESTTYPE_REDUNDANT PatchedWritablePowerFeedRequestType = "redundant"
+)
+
+// All allowed values of PatchedWritablePowerFeedRequestType enum
+var AllowedPatchedWritablePowerFeedRequestTypeEnumValues = []PatchedWritablePowerFeedRequestType{
+ "primary",
+ "redundant",
+}
+
+func (v *PatchedWritablePowerFeedRequestType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritablePowerFeedRequestType(value)
+ for _, existing := range AllowedPatchedWritablePowerFeedRequestTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritablePowerFeedRequestType", value)
+}
+
+// NewPatchedWritablePowerFeedRequestTypeFromValue returns a pointer to a valid PatchedWritablePowerFeedRequestType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritablePowerFeedRequestTypeFromValue(v string) (*PatchedWritablePowerFeedRequestType, error) {
+ ev := PatchedWritablePowerFeedRequestType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritablePowerFeedRequestType: valid values are %v", v, AllowedPatchedWritablePowerFeedRequestTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritablePowerFeedRequestType) IsValid() bool {
+ for _, existing := range AllowedPatchedWritablePowerFeedRequestTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritablePowerFeedRequest_type value
+func (v PatchedWritablePowerFeedRequestType) Ptr() *PatchedWritablePowerFeedRequestType {
+ return &v
+}
+
+type NullablePatchedWritablePowerFeedRequestType struct {
+ value *PatchedWritablePowerFeedRequestType
+ isSet bool
+}
+
+func (v NullablePatchedWritablePowerFeedRequestType) Get() *PatchedWritablePowerFeedRequestType {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestType) Set(val *PatchedWritablePowerFeedRequestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePowerFeedRequestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePowerFeedRequestType(val *PatchedWritablePowerFeedRequestType) *NullablePatchedWritablePowerFeedRequestType {
+ return &NullablePatchedWritablePowerFeedRequestType{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePowerFeedRequestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_power_outlet_request.go b/model_patched_writable_power_outlet_request.go
index 9d11034b3a..d64985b49c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -23,13 +23,11 @@ type PatchedWritablePowerOutletRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other
- Type *string `json:"type,omitempty"`
- PowerPort NullableInt32 `json:"power_port,omitempty"`
- // Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C
- FeedLeg *string `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"`
+ PowerPort NullableInt32 `json:"power_port,omitempty"`
+ FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -196,9 +194,9 @@ func (o *PatchedWritablePowerOutletRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritablePowerOutletRequest) GetType() string {
+func (o *PatchedWritablePowerOutletRequest) GetType() PatchedWritablePowerOutletRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritablePowerOutletRequestType
return ret
}
return *o.Type
@@ -206,7 +204,7 @@ func (o *PatchedWritablePowerOutletRequest) GetType() string {
// 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 *PatchedWritablePowerOutletRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritablePowerOutletRequest) GetTypeOk() (*PatchedWritablePowerOutletRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -222,8 +220,8 @@ func (o *PatchedWritablePowerOutletRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritablePowerOutletRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritablePowerOutletRequestType and assigns it to the Type field.
+func (o *PatchedWritablePowerOutletRequest) SetType(v PatchedWritablePowerOutletRequestType) {
o.Type = &v
}
@@ -271,9 +269,9 @@ func (o *PatchedWritablePowerOutletRequest) UnsetPowerPort() {
}
// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise.
-func (o *PatchedWritablePowerOutletRequest) GetFeedLeg() string {
+func (o *PatchedWritablePowerOutletRequest) GetFeedLeg() PatchedWritablePowerOutletRequestFeedLeg {
if o == nil || IsNil(o.FeedLeg) {
- var ret string
+ var ret PatchedWritablePowerOutletRequestFeedLeg
return ret
}
return *o.FeedLeg
@@ -281,7 +279,7 @@ func (o *PatchedWritablePowerOutletRequest) GetFeedLeg() string {
// GetFeedLegOk returns a tuple with the FeedLeg field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritablePowerOutletRequest) GetFeedLegOk() (*string, bool) {
+func (o *PatchedWritablePowerOutletRequest) GetFeedLegOk() (*PatchedWritablePowerOutletRequestFeedLeg, bool) {
if o == nil || IsNil(o.FeedLeg) {
return nil, false
}
@@ -297,8 +295,8 @@ func (o *PatchedWritablePowerOutletRequest) HasFeedLeg() bool {
return false
}
-// SetFeedLeg gets a reference to the given string and assigns it to the FeedLeg field.
-func (o *PatchedWritablePowerOutletRequest) SetFeedLeg(v string) {
+// SetFeedLeg gets a reference to the given PatchedWritablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field.
+func (o *PatchedWritablePowerOutletRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg) {
o.FeedLeg = &v
}
@@ -481,10 +479,10 @@ func (o PatchedWritablePowerOutletRequest) ToMap() (map[string]interface{}, erro
return toSerialize, nil
}
-func (o *PatchedWritablePowerOutletRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritablePowerOutletRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritablePowerOutletRequest := _PatchedWritablePowerOutletRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritablePowerOutletRequest)
+ err = json.Unmarshal(data, &varPatchedWritablePowerOutletRequest)
if err != nil {
return err
@@ -494,7 +492,7 @@ func (o *PatchedWritablePowerOutletRequest) UnmarshalJSON(bytes []byte) (err err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_power_outlet_request_feed_leg.go b/model_patched_writable_power_outlet_request_feed_leg.go
new file mode 100644
index 0000000000..1fa3cc0ca3
--- /dev/null
+++ b/model_patched_writable_power_outlet_request_feed_leg.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritablePowerOutletRequestFeedLeg Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C
+type PatchedWritablePowerOutletRequestFeedLeg string
+
+// List of PatchedWritablePowerOutletRequest_feed_leg
+const (
+ PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_A PatchedWritablePowerOutletRequestFeedLeg = "A"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_B PatchedWritablePowerOutletRequestFeedLeg = "B"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_C PatchedWritablePowerOutletRequestFeedLeg = "C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_EMPTY PatchedWritablePowerOutletRequestFeedLeg = ""
+)
+
+// All allowed values of PatchedWritablePowerOutletRequestFeedLeg enum
+var AllowedPatchedWritablePowerOutletRequestFeedLegEnumValues = []PatchedWritablePowerOutletRequestFeedLeg{
+ "A",
+ "B",
+ "C",
+ "",
+}
+
+func (v *PatchedWritablePowerOutletRequestFeedLeg) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritablePowerOutletRequestFeedLeg(value)
+ for _, existing := range AllowedPatchedWritablePowerOutletRequestFeedLegEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritablePowerOutletRequestFeedLeg", value)
+}
+
+// NewPatchedWritablePowerOutletRequestFeedLegFromValue returns a pointer to a valid PatchedWritablePowerOutletRequestFeedLeg
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritablePowerOutletRequestFeedLegFromValue(v string) (*PatchedWritablePowerOutletRequestFeedLeg, error) {
+ ev := PatchedWritablePowerOutletRequestFeedLeg(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritablePowerOutletRequestFeedLeg: valid values are %v", v, AllowedPatchedWritablePowerOutletRequestFeedLegEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritablePowerOutletRequestFeedLeg) IsValid() bool {
+ for _, existing := range AllowedPatchedWritablePowerOutletRequestFeedLegEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritablePowerOutletRequest_feed_leg value
+func (v PatchedWritablePowerOutletRequestFeedLeg) Ptr() *PatchedWritablePowerOutletRequestFeedLeg {
+ return &v
+}
+
+type NullablePatchedWritablePowerOutletRequestFeedLeg struct {
+ value *PatchedWritablePowerOutletRequestFeedLeg
+ isSet bool
+}
+
+func (v NullablePatchedWritablePowerOutletRequestFeedLeg) Get() *PatchedWritablePowerOutletRequestFeedLeg {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePowerOutletRequestFeedLeg) Set(val *PatchedWritablePowerOutletRequestFeedLeg) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePowerOutletRequestFeedLeg) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePowerOutletRequestFeedLeg) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePowerOutletRequestFeedLeg(val *PatchedWritablePowerOutletRequestFeedLeg) *NullablePatchedWritablePowerOutletRequestFeedLeg {
+ return &NullablePatchedWritablePowerOutletRequestFeedLeg{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePowerOutletRequestFeedLeg) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePowerOutletRequestFeedLeg) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_power_outlet_request_type.go b/model_patched_writable_power_outlet_request_type.go
new file mode 100644
index 0000000000..ef04ba2a4d
--- /dev/null
+++ b/model_patched_writable_power_outlet_request_type.go
@@ -0,0 +1,294 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "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
+type PatchedWritablePowerOutletRequestType string
+
+// List of PatchedWritablePowerOutletRequest_type
+const (
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C5 PatchedWritablePowerOutletRequestType = "iec-60320-c5"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C7 PatchedWritablePowerOutletRequestType = "iec-60320-c7"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C13 PatchedWritablePowerOutletRequestType = "iec-60320-c13"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C15 PatchedWritablePowerOutletRequestType = "iec-60320-c15"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C19 PatchedWritablePowerOutletRequestType = "iec-60320-c19"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C21 PatchedWritablePowerOutletRequestType = "iec-60320-c21"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-p-n-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-p-n-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-p-n-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-2p-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-2p-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-2p-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-3p-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-3p-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-3p-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-3p-n-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-3p-n-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-3p-n-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60906_1 PatchedWritablePowerOutletRequestType = "iec-60906-1"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NBR_14136_10A PatchedWritablePowerOutletRequestType = "nbr-14136-10a"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NBR_14136_20A PatchedWritablePowerOutletRequestType = "nbr-14136-20a"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_1_15R PatchedWritablePowerOutletRequestType = "nema-1-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_15R PatchedWritablePowerOutletRequestType = "nema-5-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_20R PatchedWritablePowerOutletRequestType = "nema-5-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_30R PatchedWritablePowerOutletRequestType = "nema-5-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_50R PatchedWritablePowerOutletRequestType = "nema-5-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_15R PatchedWritablePowerOutletRequestType = "nema-6-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_20R PatchedWritablePowerOutletRequestType = "nema-6-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_30R PatchedWritablePowerOutletRequestType = "nema-6-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_50R PatchedWritablePowerOutletRequestType = "nema-6-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_10_30R PatchedWritablePowerOutletRequestType = "nema-10-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_10_50R PatchedWritablePowerOutletRequestType = "nema-10-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_20R PatchedWritablePowerOutletRequestType = "nema-14-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_30R PatchedWritablePowerOutletRequestType = "nema-14-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_50R PatchedWritablePowerOutletRequestType = "nema-14-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_60R PatchedWritablePowerOutletRequestType = "nema-14-60r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_15R PatchedWritablePowerOutletRequestType = "nema-15-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_20R PatchedWritablePowerOutletRequestType = "nema-15-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_30R PatchedWritablePowerOutletRequestType = "nema-15-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_50R PatchedWritablePowerOutletRequestType = "nema-15-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_60R PatchedWritablePowerOutletRequestType = "nema-15-60r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L1_15R PatchedWritablePowerOutletRequestType = "nema-l1-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_15R PatchedWritablePowerOutletRequestType = "nema-l5-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_20R PatchedWritablePowerOutletRequestType = "nema-l5-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_30R PatchedWritablePowerOutletRequestType = "nema-l5-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_50R PatchedWritablePowerOutletRequestType = "nema-l5-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_15R PatchedWritablePowerOutletRequestType = "nema-l6-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_20R PatchedWritablePowerOutletRequestType = "nema-l6-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_30R PatchedWritablePowerOutletRequestType = "nema-l6-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_50R PatchedWritablePowerOutletRequestType = "nema-l6-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L10_30R PatchedWritablePowerOutletRequestType = "nema-l10-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_20R PatchedWritablePowerOutletRequestType = "nema-l14-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_30R PatchedWritablePowerOutletRequestType = "nema-l14-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_50R PatchedWritablePowerOutletRequestType = "nema-l14-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_60R PatchedWritablePowerOutletRequestType = "nema-l14-60r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_20R PatchedWritablePowerOutletRequestType = "nema-l15-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_30R PatchedWritablePowerOutletRequestType = "nema-l15-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_50R PatchedWritablePowerOutletRequestType = "nema-l15-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletRequestType = "nema-l15-60r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletRequestType = "nema-l21-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletRequestType = "nema-l21-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletRequestType = "nema-l22-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6360_C PatchedWritablePowerOutletRequestType = "CS6360C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6364_C PatchedWritablePowerOutletRequestType = "CS6364C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8164_C PatchedWritablePowerOutletRequestType = "CS8164C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8264_C PatchedWritablePowerOutletRequestType = "CS8264C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8364_C PatchedWritablePowerOutletRequestType = "CS8364C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8464_C PatchedWritablePowerOutletRequestType = "CS8464C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_E PatchedWritablePowerOutletRequestType = "ita-e"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_F PatchedWritablePowerOutletRequestType = "ita-f"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_G PatchedWritablePowerOutletRequestType = "ita-g"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_H PatchedWritablePowerOutletRequestType = "ita-h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_I PatchedWritablePowerOutletRequestType = "ita-i"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_J PatchedWritablePowerOutletRequestType = "ita-j"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_K PatchedWritablePowerOutletRequestType = "ita-k"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_L PatchedWritablePowerOutletRequestType = "ita-l"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_M PatchedWritablePowerOutletRequestType = "ita-m"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_N PatchedWritablePowerOutletRequestType = "ita-n"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_O PatchedWritablePowerOutletRequestType = "ita-o"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_MULTISTANDARD PatchedWritablePowerOutletRequestType = "ita-multistandard"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_A PatchedWritablePowerOutletRequestType = "usb-a"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_MICRO_B PatchedWritablePowerOutletRequestType = "usb-micro-b"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_C PatchedWritablePowerOutletRequestType = "usb-c"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_DC_TERMINAL PatchedWritablePowerOutletRequestType = "dc-terminal"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_HDOT_CX PatchedWritablePowerOutletRequestType = "hdot-cx"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_SAF_D_GRID PatchedWritablePowerOutletRequestType = "saf-d-grid"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_20A PatchedWritablePowerOutletRequestType = "neutrik-powercon-20a"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_32A PatchedWritablePowerOutletRequestType = "neutrik-powercon-32a"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerOutletRequestType = "neutrik-powercon-true1"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PatchedWritablePowerOutletRequestType = "neutrik-powercon-true1-top"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerOutletRequestType = "ubiquiti-smartpower"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_HARDWIRED PatchedWritablePowerOutletRequestType = "hardwired"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_OTHER PatchedWritablePowerOutletRequestType = "other"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_EMPTY PatchedWritablePowerOutletRequestType = ""
+)
+
+// All allowed values of PatchedWritablePowerOutletRequestType enum
+var AllowedPatchedWritablePowerOutletRequestTypeEnumValues = []PatchedWritablePowerOutletRequestType{
+ "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",
+ "",
+}
+
+func (v *PatchedWritablePowerOutletRequestType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritablePowerOutletRequestType(value)
+ for _, existing := range AllowedPatchedWritablePowerOutletRequestTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritablePowerOutletRequestType", value)
+}
+
+// NewPatchedWritablePowerOutletRequestTypeFromValue returns a pointer to a valid PatchedWritablePowerOutletRequestType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritablePowerOutletRequestTypeFromValue(v string) (*PatchedWritablePowerOutletRequestType, error) {
+ ev := PatchedWritablePowerOutletRequestType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritablePowerOutletRequestType: valid values are %v", v, AllowedPatchedWritablePowerOutletRequestTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritablePowerOutletRequestType) IsValid() bool {
+ for _, existing := range AllowedPatchedWritablePowerOutletRequestTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritablePowerOutletRequest_type value
+func (v PatchedWritablePowerOutletRequestType) Ptr() *PatchedWritablePowerOutletRequestType {
+ return &v
+}
+
+type NullablePatchedWritablePowerOutletRequestType struct {
+ value *PatchedWritablePowerOutletRequestType
+ isSet bool
+}
+
+func (v NullablePatchedWritablePowerOutletRequestType) Get() *PatchedWritablePowerOutletRequestType {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePowerOutletRequestType) Set(val *PatchedWritablePowerOutletRequestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePowerOutletRequestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePowerOutletRequestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePowerOutletRequestType(val *PatchedWritablePowerOutletRequestType) *NullablePatchedWritablePowerOutletRequestType {
+ return &NullablePatchedWritablePowerOutletRequestType{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePowerOutletRequestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePowerOutletRequestType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_power_outlet_template_request.go b/model_patched_writable_power_outlet_template_request.go
index 0e5d76a047..d7e9c83b03 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,13 +24,11 @@ type PatchedWritablePowerOutletTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other
- Type *string `json:"type,omitempty"`
- PowerPort NullableInt32 `json:"power_port,omitempty"`
- // Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C
- FeedLeg *string `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *PatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"`
+ PowerPort NullableInt32 `json:"power_port,omitempty"`
+ FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -204,9 +202,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritablePowerOutletTemplateRequest) GetType() string {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetType() PatchedWritablePowerOutletTemplateRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritablePowerOutletTemplateRequestType
return ret
}
return *o.Type
@@ -214,7 +212,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetType() string {
// 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 *PatchedWritablePowerOutletTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetTypeOk() (*PatchedWritablePowerOutletTemplateRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -230,8 +228,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritablePowerOutletTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritablePowerOutletTemplateRequestType and assigns it to the Type field.
+func (o *PatchedWritablePowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType) {
o.Type = &v
}
@@ -279,9 +277,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) UnsetPowerPort() {
}
// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise.
-func (o *PatchedWritablePowerOutletTemplateRequest) GetFeedLeg() string {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetFeedLeg() PatchedWritablePowerOutletRequestFeedLeg {
if o == nil || IsNil(o.FeedLeg) {
- var ret string
+ var ret PatchedWritablePowerOutletRequestFeedLeg
return ret
}
return *o.FeedLeg
@@ -289,7 +287,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetFeedLeg() string {
// GetFeedLegOk returns a tuple with the FeedLeg field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritablePowerOutletTemplateRequest) GetFeedLegOk() (*string, bool) {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetFeedLegOk() (*PatchedWritablePowerOutletRequestFeedLeg, bool) {
if o == nil || IsNil(o.FeedLeg) {
return nil, false
}
@@ -305,8 +303,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasFeedLeg() bool {
return false
}
-// SetFeedLeg gets a reference to the given string and assigns it to the FeedLeg field.
-func (o *PatchedWritablePowerOutletTemplateRequest) SetFeedLeg(v string) {
+// SetFeedLeg gets a reference to the given PatchedWritablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field.
+func (o *PatchedWritablePowerOutletTemplateRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg) {
o.FeedLeg = &v
}
@@ -384,10 +382,10 @@ func (o PatchedWritablePowerOutletTemplateRequest) ToMap() (map[string]interface
return toSerialize, nil
}
-func (o *PatchedWritablePowerOutletTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritablePowerOutletTemplateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritablePowerOutletTemplateRequest := _PatchedWritablePowerOutletTemplateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritablePowerOutletTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedWritablePowerOutletTemplateRequest)
if err != nil {
return err
@@ -397,7 +395,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) UnmarshalJSON(bytes []byte)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_power_outlet_template_request_type.go b/model_patched_writable_power_outlet_template_request_type.go
new file mode 100644
index 0000000000..40e3d31cb2
--- /dev/null
+++ b/model_patched_writable_power_outlet_template_request_type.go
@@ -0,0 +1,294 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "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
+type PatchedWritablePowerOutletTemplateRequestType string
+
+// List of PatchedWritablePowerOutletTemplateRequest_type
+const (
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C5 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c5"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C7 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c7"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C13 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c13"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C15 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c15"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C19 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c19"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C21 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c21"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-p-n-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-p-n-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-p-n-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-2p-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-2p-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-2p-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-n-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-n-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-n-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60906_1 PatchedWritablePowerOutletTemplateRequestType = "iec-60906-1"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NBR_14136_10A PatchedWritablePowerOutletTemplateRequestType = "nbr-14136-10a"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NBR_14136_20A PatchedWritablePowerOutletTemplateRequestType = "nbr-14136-20a"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_1_15R PatchedWritablePowerOutletTemplateRequestType = "nema-1-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_15R PatchedWritablePowerOutletTemplateRequestType = "nema-5-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_20R PatchedWritablePowerOutletTemplateRequestType = "nema-5-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_30R PatchedWritablePowerOutletTemplateRequestType = "nema-5-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_50R PatchedWritablePowerOutletTemplateRequestType = "nema-5-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_15R PatchedWritablePowerOutletTemplateRequestType = "nema-6-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_20R PatchedWritablePowerOutletTemplateRequestType = "nema-6-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_30R PatchedWritablePowerOutletTemplateRequestType = "nema-6-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_50R PatchedWritablePowerOutletTemplateRequestType = "nema-6-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_10_30R PatchedWritablePowerOutletTemplateRequestType = "nema-10-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_10_50R PatchedWritablePowerOutletTemplateRequestType = "nema-10-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_20R PatchedWritablePowerOutletTemplateRequestType = "nema-14-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_30R PatchedWritablePowerOutletTemplateRequestType = "nema-14-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_50R PatchedWritablePowerOutletTemplateRequestType = "nema-14-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_60R PatchedWritablePowerOutletTemplateRequestType = "nema-14-60r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_15R PatchedWritablePowerOutletTemplateRequestType = "nema-15-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_20R PatchedWritablePowerOutletTemplateRequestType = "nema-15-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_30R PatchedWritablePowerOutletTemplateRequestType = "nema-15-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_50R PatchedWritablePowerOutletTemplateRequestType = "nema-15-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_60R PatchedWritablePowerOutletTemplateRequestType = "nema-15-60r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L1_15R PatchedWritablePowerOutletTemplateRequestType = "nema-l1-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_15R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_15R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L10_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l10-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_60R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-60r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-60r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6360_C PatchedWritablePowerOutletTemplateRequestType = "CS6360C"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6364_C PatchedWritablePowerOutletTemplateRequestType = "CS6364C"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8164_C PatchedWritablePowerOutletTemplateRequestType = "CS8164C"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8264_C PatchedWritablePowerOutletTemplateRequestType = "CS8264C"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8364_C PatchedWritablePowerOutletTemplateRequestType = "CS8364C"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8464_C PatchedWritablePowerOutletTemplateRequestType = "CS8464C"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_E PatchedWritablePowerOutletTemplateRequestType = "ita-e"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_F PatchedWritablePowerOutletTemplateRequestType = "ita-f"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_G PatchedWritablePowerOutletTemplateRequestType = "ita-g"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_H PatchedWritablePowerOutletTemplateRequestType = "ita-h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_I PatchedWritablePowerOutletTemplateRequestType = "ita-i"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_J PatchedWritablePowerOutletTemplateRequestType = "ita-j"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_K PatchedWritablePowerOutletTemplateRequestType = "ita-k"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_L PatchedWritablePowerOutletTemplateRequestType = "ita-l"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_M PatchedWritablePowerOutletTemplateRequestType = "ita-m"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_N PatchedWritablePowerOutletTemplateRequestType = "ita-n"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_O PatchedWritablePowerOutletTemplateRequestType = "ita-o"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_MULTISTANDARD PatchedWritablePowerOutletTemplateRequestType = "ita-multistandard"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_A PatchedWritablePowerOutletTemplateRequestType = "usb-a"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_MICRO_B PatchedWritablePowerOutletTemplateRequestType = "usb-micro-b"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_C PatchedWritablePowerOutletTemplateRequestType = "usb-c"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_DC_TERMINAL PatchedWritablePowerOutletTemplateRequestType = "dc-terminal"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_HDOT_CX PatchedWritablePowerOutletTemplateRequestType = "hdot-cx"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_SAF_D_GRID PatchedWritablePowerOutletTemplateRequestType = "saf-d-grid"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_20A PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-20a"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_32A PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-32a"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-true1"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-true1-top"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerOutletTemplateRequestType = "ubiquiti-smartpower"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_HARDWIRED PatchedWritablePowerOutletTemplateRequestType = "hardwired"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_OTHER PatchedWritablePowerOutletTemplateRequestType = "other"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_EMPTY PatchedWritablePowerOutletTemplateRequestType = ""
+)
+
+// All allowed values of PatchedWritablePowerOutletTemplateRequestType enum
+var AllowedPatchedWritablePowerOutletTemplateRequestTypeEnumValues = []PatchedWritablePowerOutletTemplateRequestType{
+ "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",
+ "",
+}
+
+func (v *PatchedWritablePowerOutletTemplateRequestType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritablePowerOutletTemplateRequestType(value)
+ for _, existing := range AllowedPatchedWritablePowerOutletTemplateRequestTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritablePowerOutletTemplateRequestType", value)
+}
+
+// NewPatchedWritablePowerOutletTemplateRequestTypeFromValue returns a pointer to a valid PatchedWritablePowerOutletTemplateRequestType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritablePowerOutletTemplateRequestTypeFromValue(v string) (*PatchedWritablePowerOutletTemplateRequestType, error) {
+ ev := PatchedWritablePowerOutletTemplateRequestType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritablePowerOutletTemplateRequestType: valid values are %v", v, AllowedPatchedWritablePowerOutletTemplateRequestTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritablePowerOutletTemplateRequestType) IsValid() bool {
+ for _, existing := range AllowedPatchedWritablePowerOutletTemplateRequestTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritablePowerOutletTemplateRequest_type value
+func (v PatchedWritablePowerOutletTemplateRequestType) Ptr() *PatchedWritablePowerOutletTemplateRequestType {
+ return &v
+}
+
+type NullablePatchedWritablePowerOutletTemplateRequestType struct {
+ value *PatchedWritablePowerOutletTemplateRequestType
+ isSet bool
+}
+
+func (v NullablePatchedWritablePowerOutletTemplateRequestType) Get() *PatchedWritablePowerOutletTemplateRequestType {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePowerOutletTemplateRequestType) Set(val *PatchedWritablePowerOutletTemplateRequestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePowerOutletTemplateRequestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePowerOutletTemplateRequestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePowerOutletTemplateRequestType(val *PatchedWritablePowerOutletTemplateRequestType) *NullablePatchedWritablePowerOutletTemplateRequestType {
+ return &NullablePatchedWritablePowerOutletTemplateRequestType{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePowerOutletTemplateRequestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePowerOutletTemplateRequestType) 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_writable_power_panel_request.go
index b6a070459f..d6e19dd81b 100644
--- a/model_patched_writable_power_panel_request.go
+++ b/model_patched_writable_power_panel_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -322,10 +322,10 @@ func (o PatchedWritablePowerPanelRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *PatchedWritablePowerPanelRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritablePowerPanelRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritablePowerPanelRequest := _PatchedWritablePowerPanelRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritablePowerPanelRequest)
+ err = json.Unmarshal(data, &varPatchedWritablePowerPanelRequest)
if err != nil {
return err
@@ -335,7 +335,7 @@ func (o *PatchedWritablePowerPanelRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "site")
delete(additionalProperties, "location")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_power_port_request.go b/model_patched_writable_power_port_request.go
index b0e651a30f..a3ad118d97 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -23,9 +23,8 @@ type PatchedWritablePowerPortRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other
- Type *string `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
@@ -197,9 +196,9 @@ func (o *PatchedWritablePowerPortRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritablePowerPortRequest) GetType() string {
+func (o *PatchedWritablePowerPortRequest) GetType() PatchedWritablePowerPortRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritablePowerPortRequestType
return ret
}
return *o.Type
@@ -207,7 +206,7 @@ func (o *PatchedWritablePowerPortRequest) GetType() string {
// 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 *PatchedWritablePowerPortRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritablePowerPortRequest) GetTypeOk() (*PatchedWritablePowerPortRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -223,8 +222,8 @@ func (o *PatchedWritablePowerPortRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritablePowerPortRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritablePowerPortRequestType and assigns it to the Type field.
+func (o *PatchedWritablePowerPortRequest) SetType(v PatchedWritablePowerPortRequestType) {
o.Type = &v
}
@@ -493,10 +492,10 @@ func (o PatchedWritablePowerPortRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritablePowerPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritablePowerPortRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritablePowerPortRequest := _PatchedWritablePowerPortRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritablePowerPortRequest)
+ err = json.Unmarshal(data, &varPatchedWritablePowerPortRequest)
if err != nil {
return err
@@ -506,7 +505,7 @@ func (o *PatchedWritablePowerPortRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_power_port_request_type.go b/model_patched_writable_power_port_request_type.go
new file mode 100644
index 0000000000..5f9118b18b
--- /dev/null
+++ b/model_patched_writable_power_port_request_type.go
@@ -0,0 +1,308 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "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
+type PatchedWritablePowerPortRequestType string
+
+// List of PatchedWritablePowerPortRequest_type
+const (
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C6 PatchedWritablePowerPortRequestType = "iec-60320-c6"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C8 PatchedWritablePowerPortRequestType = "iec-60320-c8"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C14 PatchedWritablePowerPortRequestType = "iec-60320-c14"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C16 PatchedWritablePowerPortRequestType = "iec-60320-c16"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C20 PatchedWritablePowerPortRequestType = "iec-60320-c20"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C22 PatchedWritablePowerPortRequestType = "iec-60320-c22"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerPortRequestType = "iec-60309-p-n-e-4h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerPortRequestType = "iec-60309-p-n-e-6h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerPortRequestType = "iec-60309-p-n-e-9h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerPortRequestType = "iec-60309-2p-e-4h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerPortRequestType = "iec-60309-2p-e-6h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerPortRequestType = "iec-60309-2p-e-9h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerPortRequestType = "iec-60309-3p-e-4h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerPortRequestType = "iec-60309-3p-e-6h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerPortRequestType = "iec-60309-3p-e-9h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerPortRequestType = "iec-60309-3p-n-e-4h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerPortRequestType = "iec-60309-3p-n-e-6h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerPortRequestType = "iec-60309-3p-n-e-9h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60906_1 PatchedWritablePowerPortRequestType = "iec-60906-1"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NBR_14136_10A PatchedWritablePowerPortRequestType = "nbr-14136-10a"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NBR_14136_20A PatchedWritablePowerPortRequestType = "nbr-14136-20a"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_1_15P PatchedWritablePowerPortRequestType = "nema-1-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_15P PatchedWritablePowerPortRequestType = "nema-5-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_20P PatchedWritablePowerPortRequestType = "nema-5-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_30P PatchedWritablePowerPortRequestType = "nema-5-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_50P PatchedWritablePowerPortRequestType = "nema-5-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_15P PatchedWritablePowerPortRequestType = "nema-6-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_20P PatchedWritablePowerPortRequestType = "nema-6-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_30P PatchedWritablePowerPortRequestType = "nema-6-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_50P PatchedWritablePowerPortRequestType = "nema-6-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_10_30P PatchedWritablePowerPortRequestType = "nema-10-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_10_50P PatchedWritablePowerPortRequestType = "nema-10-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_20P PatchedWritablePowerPortRequestType = "nema-14-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_30P PatchedWritablePowerPortRequestType = "nema-14-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_50P PatchedWritablePowerPortRequestType = "nema-14-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_60P PatchedWritablePowerPortRequestType = "nema-14-60p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_15P PatchedWritablePowerPortRequestType = "nema-15-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_20P PatchedWritablePowerPortRequestType = "nema-15-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_30P PatchedWritablePowerPortRequestType = "nema-15-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_50P PatchedWritablePowerPortRequestType = "nema-15-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_60P PatchedWritablePowerPortRequestType = "nema-15-60p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L1_15P PatchedWritablePowerPortRequestType = "nema-l1-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_15P PatchedWritablePowerPortRequestType = "nema-l5-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_20P PatchedWritablePowerPortRequestType = "nema-l5-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_30P PatchedWritablePowerPortRequestType = "nema-l5-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_50P PatchedWritablePowerPortRequestType = "nema-l5-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_15P PatchedWritablePowerPortRequestType = "nema-l6-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_20P PatchedWritablePowerPortRequestType = "nema-l6-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_30P PatchedWritablePowerPortRequestType = "nema-l6-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_50P PatchedWritablePowerPortRequestType = "nema-l6-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L10_30P PatchedWritablePowerPortRequestType = "nema-l10-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_20P PatchedWritablePowerPortRequestType = "nema-l14-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_30P PatchedWritablePowerPortRequestType = "nema-l14-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_50P PatchedWritablePowerPortRequestType = "nema-l14-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_60P PatchedWritablePowerPortRequestType = "nema-l14-60p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_20P PatchedWritablePowerPortRequestType = "nema-l15-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_30P PatchedWritablePowerPortRequestType = "nema-l15-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_50P PatchedWritablePowerPortRequestType = "nema-l15-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortRequestType = "nema-l15-60p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortRequestType = "nema-l21-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortRequestType = "nema-l21-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortRequestType = "nema-l22-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6361C PatchedWritablePowerPortRequestType = "cs6361c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6365C PatchedWritablePowerPortRequestType = "cs6365c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8165C PatchedWritablePowerPortRequestType = "cs8165c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8265C PatchedWritablePowerPortRequestType = "cs8265c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8365C PatchedWritablePowerPortRequestType = "cs8365c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8465C PatchedWritablePowerPortRequestType = "cs8465c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_C PatchedWritablePowerPortRequestType = "ita-c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_E PatchedWritablePowerPortRequestType = "ita-e"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_F PatchedWritablePowerPortRequestType = "ita-f"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_EF PatchedWritablePowerPortRequestType = "ita-ef"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_G PatchedWritablePowerPortRequestType = "ita-g"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_H PatchedWritablePowerPortRequestType = "ita-h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_I PatchedWritablePowerPortRequestType = "ita-i"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_J PatchedWritablePowerPortRequestType = "ita-j"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_K PatchedWritablePowerPortRequestType = "ita-k"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_L PatchedWritablePowerPortRequestType = "ita-l"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_M PatchedWritablePowerPortRequestType = "ita-m"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_N PatchedWritablePowerPortRequestType = "ita-n"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_O PatchedWritablePowerPortRequestType = "ita-o"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_A PatchedWritablePowerPortRequestType = "usb-a"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_B PatchedWritablePowerPortRequestType = "usb-b"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_C PatchedWritablePowerPortRequestType = "usb-c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MINI_A PatchedWritablePowerPortRequestType = "usb-mini-a"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MINI_B PatchedWritablePowerPortRequestType = "usb-mini-b"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_A PatchedWritablePowerPortRequestType = "usb-micro-a"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_B PatchedWritablePowerPortRequestType = "usb-micro-b"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_AB PatchedWritablePowerPortRequestType = "usb-micro-ab"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_3_B PatchedWritablePowerPortRequestType = "usb-3-b"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_3_MICRO_B PatchedWritablePowerPortRequestType = "usb-3-micro-b"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_DC_TERMINAL PatchedWritablePowerPortRequestType = "dc-terminal"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_SAF_D_GRID PatchedWritablePowerPortRequestType = "saf-d-grid"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_20 PatchedWritablePowerPortRequestType = "neutrik-powercon-20"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_32 PatchedWritablePowerPortRequestType = "neutrik-powercon-32"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerPortRequestType = "neutrik-powercon-true1"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PatchedWritablePowerPortRequestType = "neutrik-powercon-true1-top"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerPortRequestType = "ubiquiti-smartpower"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_HARDWIRED PatchedWritablePowerPortRequestType = "hardwired"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_OTHER PatchedWritablePowerPortRequestType = "other"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_EMPTY PatchedWritablePowerPortRequestType = ""
+)
+
+// All allowed values of PatchedWritablePowerPortRequestType enum
+var AllowedPatchedWritablePowerPortRequestTypeEnumValues = []PatchedWritablePowerPortRequestType{
+ "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 *PatchedWritablePowerPortRequestType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritablePowerPortRequestType(value)
+ for _, existing := range AllowedPatchedWritablePowerPortRequestTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritablePowerPortRequestType", value)
+}
+
+// NewPatchedWritablePowerPortRequestTypeFromValue returns a pointer to a valid PatchedWritablePowerPortRequestType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritablePowerPortRequestTypeFromValue(v string) (*PatchedWritablePowerPortRequestType, error) {
+ ev := PatchedWritablePowerPortRequestType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritablePowerPortRequestType: valid values are %v", v, AllowedPatchedWritablePowerPortRequestTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritablePowerPortRequestType) IsValid() bool {
+ for _, existing := range AllowedPatchedWritablePowerPortRequestTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritablePowerPortRequest_type value
+func (v PatchedWritablePowerPortRequestType) Ptr() *PatchedWritablePowerPortRequestType {
+ return &v
+}
+
+type NullablePatchedWritablePowerPortRequestType struct {
+ value *PatchedWritablePowerPortRequestType
+ isSet bool
+}
+
+func (v NullablePatchedWritablePowerPortRequestType) Get() *PatchedWritablePowerPortRequestType {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePowerPortRequestType) Set(val *PatchedWritablePowerPortRequestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePowerPortRequestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePowerPortRequestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePowerPortRequestType(val *PatchedWritablePowerPortRequestType) *NullablePatchedWritablePowerPortRequestType {
+ return &NullablePatchedWritablePowerPortRequestType{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePowerPortRequestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePowerPortRequestType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_power_port_template_request.go b/model_patched_writable_power_port_template_request.go
index 9db5b3fd89..91db8a051e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,9 +24,8 @@ type PatchedWritablePowerPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `iec-60320-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 *string `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *PatchedWritablePowerPortTemplateRequestType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
@@ -205,9 +204,9 @@ func (o *PatchedWritablePowerPortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritablePowerPortTemplateRequest) GetType() string {
+func (o *PatchedWritablePowerPortTemplateRequest) GetType() PatchedWritablePowerPortTemplateRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritablePowerPortTemplateRequestType
return ret
}
return *o.Type
@@ -215,7 +214,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetType() string {
// 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 *PatchedWritablePowerPortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritablePowerPortTemplateRequest) GetTypeOk() (*PatchedWritablePowerPortTemplateRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -231,8 +230,8 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritablePowerPortTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritablePowerPortTemplateRequestType and assigns it to the Type field.
+func (o *PatchedWritablePowerPortTemplateRequest) SetType(v PatchedWritablePowerPortTemplateRequestType) {
o.Type = &v
}
@@ -396,10 +395,10 @@ func (o PatchedWritablePowerPortTemplateRequest) ToMap() (map[string]interface{}
return toSerialize, nil
}
-func (o *PatchedWritablePowerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritablePowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritablePowerPortTemplateRequest := _PatchedWritablePowerPortTemplateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritablePowerPortTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedWritablePowerPortTemplateRequest)
if err != nil {
return err
@@ -409,7 +408,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) UnmarshalJSON(bytes []byte) (e
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_power_port_template_request_type.go b/model_patched_writable_power_port_template_request_type.go
new file mode 100644
index 0000000000..2f82b1af06
--- /dev/null
+++ b/model_patched_writable_power_port_template_request_type.go
@@ -0,0 +1,308 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "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
+type PatchedWritablePowerPortTemplateRequestType string
+
+// List of PatchedWritablePowerPortTemplateRequest_type
+const (
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C6 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c6"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C8 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c8"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C14 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c14"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C16 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c16"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C20 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c20"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C22 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c22"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-p-n-e-4h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-p-n-e-6h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-p-n-e-9h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-2p-e-4h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-2p-e-6h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-2p-e-9h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-e-4h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-e-6h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-e-9h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-n-e-4h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-n-e-6h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-n-e-9h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60906_1 PatchedWritablePowerPortTemplateRequestType = "iec-60906-1"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NBR_14136_10A PatchedWritablePowerPortTemplateRequestType = "nbr-14136-10a"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NBR_14136_20A PatchedWritablePowerPortTemplateRequestType = "nbr-14136-20a"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_1_15P PatchedWritablePowerPortTemplateRequestType = "nema-1-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_15P PatchedWritablePowerPortTemplateRequestType = "nema-5-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_20P PatchedWritablePowerPortTemplateRequestType = "nema-5-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_30P PatchedWritablePowerPortTemplateRequestType = "nema-5-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_50P PatchedWritablePowerPortTemplateRequestType = "nema-5-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_15P PatchedWritablePowerPortTemplateRequestType = "nema-6-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_20P PatchedWritablePowerPortTemplateRequestType = "nema-6-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_30P PatchedWritablePowerPortTemplateRequestType = "nema-6-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_50P PatchedWritablePowerPortTemplateRequestType = "nema-6-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_10_30P PatchedWritablePowerPortTemplateRequestType = "nema-10-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_10_50P PatchedWritablePowerPortTemplateRequestType = "nema-10-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_20P PatchedWritablePowerPortTemplateRequestType = "nema-14-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_30P PatchedWritablePowerPortTemplateRequestType = "nema-14-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_50P PatchedWritablePowerPortTemplateRequestType = "nema-14-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_60P PatchedWritablePowerPortTemplateRequestType = "nema-14-60p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_15P PatchedWritablePowerPortTemplateRequestType = "nema-15-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_20P PatchedWritablePowerPortTemplateRequestType = "nema-15-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_30P PatchedWritablePowerPortTemplateRequestType = "nema-15-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_50P PatchedWritablePowerPortTemplateRequestType = "nema-15-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_60P PatchedWritablePowerPortTemplateRequestType = "nema-15-60p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L1_15P PatchedWritablePowerPortTemplateRequestType = "nema-l1-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_15P PatchedWritablePowerPortTemplateRequestType = "nema-l5-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_20P PatchedWritablePowerPortTemplateRequestType = "nema-l5-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_30P PatchedWritablePowerPortTemplateRequestType = "nema-l5-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_50P PatchedWritablePowerPortTemplateRequestType = "nema-l5-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_15P PatchedWritablePowerPortTemplateRequestType = "nema-l6-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_20P PatchedWritablePowerPortTemplateRequestType = "nema-l6-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_30P PatchedWritablePowerPortTemplateRequestType = "nema-l6-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_50P PatchedWritablePowerPortTemplateRequestType = "nema-l6-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L10_30P PatchedWritablePowerPortTemplateRequestType = "nema-l10-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_20P PatchedWritablePowerPortTemplateRequestType = "nema-l14-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_30P PatchedWritablePowerPortTemplateRequestType = "nema-l14-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_50P PatchedWritablePowerPortTemplateRequestType = "nema-l14-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_60P PatchedWritablePowerPortTemplateRequestType = "nema-l14-60p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_20P PatchedWritablePowerPortTemplateRequestType = "nema-l15-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_30P PatchedWritablePowerPortTemplateRequestType = "nema-l15-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_50P PatchedWritablePowerPortTemplateRequestType = "nema-l15-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortTemplateRequestType = "nema-l15-60p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortTemplateRequestType = "nema-l21-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortTemplateRequestType = "nema-l21-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortTemplateRequestType = "nema-l22-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6361C PatchedWritablePowerPortTemplateRequestType = "cs6361c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6365C PatchedWritablePowerPortTemplateRequestType = "cs6365c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8165C PatchedWritablePowerPortTemplateRequestType = "cs8165c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8265C PatchedWritablePowerPortTemplateRequestType = "cs8265c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8365C PatchedWritablePowerPortTemplateRequestType = "cs8365c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8465C PatchedWritablePowerPortTemplateRequestType = "cs8465c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_C PatchedWritablePowerPortTemplateRequestType = "ita-c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_E PatchedWritablePowerPortTemplateRequestType = "ita-e"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_F PatchedWritablePowerPortTemplateRequestType = "ita-f"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_EF PatchedWritablePowerPortTemplateRequestType = "ita-ef"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_G PatchedWritablePowerPortTemplateRequestType = "ita-g"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_H PatchedWritablePowerPortTemplateRequestType = "ita-h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_I PatchedWritablePowerPortTemplateRequestType = "ita-i"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_J PatchedWritablePowerPortTemplateRequestType = "ita-j"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_K PatchedWritablePowerPortTemplateRequestType = "ita-k"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_L PatchedWritablePowerPortTemplateRequestType = "ita-l"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_M PatchedWritablePowerPortTemplateRequestType = "ita-m"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_N PatchedWritablePowerPortTemplateRequestType = "ita-n"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_O PatchedWritablePowerPortTemplateRequestType = "ita-o"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_A PatchedWritablePowerPortTemplateRequestType = "usb-a"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_B PatchedWritablePowerPortTemplateRequestType = "usb-b"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_C PatchedWritablePowerPortTemplateRequestType = "usb-c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MINI_A PatchedWritablePowerPortTemplateRequestType = "usb-mini-a"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MINI_B PatchedWritablePowerPortTemplateRequestType = "usb-mini-b"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_A PatchedWritablePowerPortTemplateRequestType = "usb-micro-a"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_B PatchedWritablePowerPortTemplateRequestType = "usb-micro-b"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_AB PatchedWritablePowerPortTemplateRequestType = "usb-micro-ab"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_3_B PatchedWritablePowerPortTemplateRequestType = "usb-3-b"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_3_MICRO_B PatchedWritablePowerPortTemplateRequestType = "usb-3-micro-b"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_DC_TERMINAL PatchedWritablePowerPortTemplateRequestType = "dc-terminal"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_SAF_D_GRID PatchedWritablePowerPortTemplateRequestType = "saf-d-grid"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_20 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-20"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_32 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-32"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-true1"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-true1-top"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerPortTemplateRequestType = "ubiquiti-smartpower"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_HARDWIRED PatchedWritablePowerPortTemplateRequestType = "hardwired"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_OTHER PatchedWritablePowerPortTemplateRequestType = "other"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_EMPTY PatchedWritablePowerPortTemplateRequestType = ""
+)
+
+// All allowed values of PatchedWritablePowerPortTemplateRequestType enum
+var AllowedPatchedWritablePowerPortTemplateRequestTypeEnumValues = []PatchedWritablePowerPortTemplateRequestType{
+ "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 *PatchedWritablePowerPortTemplateRequestType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritablePowerPortTemplateRequestType(value)
+ for _, existing := range AllowedPatchedWritablePowerPortTemplateRequestTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritablePowerPortTemplateRequestType", value)
+}
+
+// NewPatchedWritablePowerPortTemplateRequestTypeFromValue returns a pointer to a valid PatchedWritablePowerPortTemplateRequestType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritablePowerPortTemplateRequestTypeFromValue(v string) (*PatchedWritablePowerPortTemplateRequestType, error) {
+ ev := PatchedWritablePowerPortTemplateRequestType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritablePowerPortTemplateRequestType: valid values are %v", v, AllowedPatchedWritablePowerPortTemplateRequestTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritablePowerPortTemplateRequestType) IsValid() bool {
+ for _, existing := range AllowedPatchedWritablePowerPortTemplateRequestTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritablePowerPortTemplateRequest_type value
+func (v PatchedWritablePowerPortTemplateRequestType) Ptr() *PatchedWritablePowerPortTemplateRequestType {
+ return &v
+}
+
+type NullablePatchedWritablePowerPortTemplateRequestType struct {
+ value *PatchedWritablePowerPortTemplateRequestType
+ isSet bool
+}
+
+func (v NullablePatchedWritablePowerPortTemplateRequestType) Get() *PatchedWritablePowerPortTemplateRequestType {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePowerPortTemplateRequestType) Set(val *PatchedWritablePowerPortTemplateRequestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePowerPortTemplateRequestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePowerPortTemplateRequestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePowerPortTemplateRequestType(val *PatchedWritablePowerPortTemplateRequestType) *NullablePatchedWritablePowerPortTemplateRequestType {
+ return &NullablePatchedWritablePowerPortTemplateRequestType{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePowerPortTemplateRequestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePowerPortTemplateRequestType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_prefix_request.go b/model_patched_writable_prefix_request.go
index 3c7d18eeb0..73d49058b5 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,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"`
- // Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
+ Prefix *string `json:"prefix,omitempty"`
+ Site NullableInt32 `json:"site,omitempty"`
+ Vrf NullableInt32 `json:"vrf,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
+ Vlan NullableInt32 `json:"vlan,omitempty"`
+ Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"`
// The primary function of this prefix
Role NullableInt32 `json:"role,omitempty"`
// All IP addresses within this prefix are considered usable
@@ -263,9 +262,9 @@ func (o *PatchedWritablePrefixRequest) UnsetVlan() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritablePrefixRequest) GetStatus() string {
+func (o *PatchedWritablePrefixRequest) GetStatus() PatchedWritablePrefixRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritablePrefixRequestStatus
return ret
}
return *o.Status
@@ -273,7 +272,7 @@ func (o *PatchedWritablePrefixRequest) GetStatus() string {
// 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 *PatchedWritablePrefixRequest) GetStatusOk() (*string, bool) {
+func (o *PatchedWritablePrefixRequest) GetStatusOk() (*PatchedWritablePrefixRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -289,8 +288,8 @@ func (o *PatchedWritablePrefixRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritablePrefixRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritablePrefixRequestStatus and assigns it to the Status field.
+func (o *PatchedWritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestStatus) {
o.Status = &v
}
@@ -586,10 +585,10 @@ func (o PatchedWritablePrefixRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritablePrefixRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritablePrefixRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritablePrefixRequest := _PatchedWritablePrefixRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritablePrefixRequest)
+ err = json.Unmarshal(data, &varPatchedWritablePrefixRequest)
if err != nil {
return err
@@ -599,7 +598,7 @@ func (o *PatchedWritablePrefixRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "prefix")
delete(additionalProperties, "site")
delete(additionalProperties, "vrf")
diff --git a/model_patched_writable_prefix_request_status.go b/model_patched_writable_prefix_request_status.go
new file mode 100644
index 0000000000..baccca970e
--- /dev/null
+++ b/model_patched_writable_prefix_request_status.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritablePrefixRequestStatus Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
+type PatchedWritablePrefixRequestStatus string
+
+// List of PatchedWritablePrefixRequest_status
+const (
+ PATCHEDWRITABLEPREFIXREQUESTSTATUS_CONTAINER PatchedWritablePrefixRequestStatus = "container"
+ PATCHEDWRITABLEPREFIXREQUESTSTATUS_ACTIVE PatchedWritablePrefixRequestStatus = "active"
+ PATCHEDWRITABLEPREFIXREQUESTSTATUS_RESERVED PatchedWritablePrefixRequestStatus = "reserved"
+ PATCHEDWRITABLEPREFIXREQUESTSTATUS_DEPRECATED PatchedWritablePrefixRequestStatus = "deprecated"
+)
+
+// All allowed values of PatchedWritablePrefixRequestStatus enum
+var AllowedPatchedWritablePrefixRequestStatusEnumValues = []PatchedWritablePrefixRequestStatus{
+ "container",
+ "active",
+ "reserved",
+ "deprecated",
+}
+
+func (v *PatchedWritablePrefixRequestStatus) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritablePrefixRequestStatus(value)
+ for _, existing := range AllowedPatchedWritablePrefixRequestStatusEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritablePrefixRequestStatus", value)
+}
+
+// NewPatchedWritablePrefixRequestStatusFromValue returns a pointer to a valid PatchedWritablePrefixRequestStatus
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritablePrefixRequestStatusFromValue(v string) (*PatchedWritablePrefixRequestStatus, error) {
+ ev := PatchedWritablePrefixRequestStatus(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritablePrefixRequestStatus: valid values are %v", v, AllowedPatchedWritablePrefixRequestStatusEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritablePrefixRequestStatus) IsValid() bool {
+ for _, existing := range AllowedPatchedWritablePrefixRequestStatusEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritablePrefixRequest_status value
+func (v PatchedWritablePrefixRequestStatus) Ptr() *PatchedWritablePrefixRequestStatus {
+ return &v
+}
+
+type NullablePatchedWritablePrefixRequestStatus struct {
+ value *PatchedWritablePrefixRequestStatus
+ isSet bool
+}
+
+func (v NullablePatchedWritablePrefixRequestStatus) Get() *PatchedWritablePrefixRequestStatus {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePrefixRequestStatus) Set(val *PatchedWritablePrefixRequestStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePrefixRequestStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePrefixRequestStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePrefixRequestStatus(val *PatchedWritablePrefixRequestStatus) *NullablePatchedWritablePrefixRequestStatus {
+ return &NullablePatchedWritablePrefixRequestStatus{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePrefixRequestStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePrefixRequestStatus) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_provider_account_request.go b/model_patched_writable_provider_account_request.go
index bd67741cf6..0425ad5b72 100644
--- a/model_patched_writable_provider_account_request.go
+++ b/model_patched_writable_provider_account_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -311,10 +311,10 @@ func (o PatchedWritableProviderAccountRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PatchedWritableProviderAccountRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableProviderAccountRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableProviderAccountRequest := _PatchedWritableProviderAccountRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableProviderAccountRequest)
+ err = json.Unmarshal(data, &varPatchedWritableProviderAccountRequest)
if err != nil {
return err
@@ -324,7 +324,7 @@ func (o *PatchedWritableProviderAccountRequest) UnmarshalJSON(bytes []byte) (err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "provider")
delete(additionalProperties, "name")
delete(additionalProperties, "account")
diff --git a/model_patched_writable_provider_network_request.go b/model_patched_writable_provider_network_request.go
index e83999c7eb..d7f375b436 100644
--- a/model_patched_writable_provider_network_request.go
+++ b/model_patched_writable_provider_network_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -311,10 +311,10 @@ func (o PatchedWritableProviderNetworkRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PatchedWritableProviderNetworkRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableProviderNetworkRequest := _PatchedWritableProviderNetworkRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableProviderNetworkRequest)
+ err = json.Unmarshal(data, &varPatchedWritableProviderNetworkRequest)
if err != nil {
return err
@@ -324,7 +324,7 @@ func (o *PatchedWritableProviderNetworkRequest) UnmarshalJSON(bytes []byte) (err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "provider")
delete(additionalProperties, "name")
delete(additionalProperties, "service_id")
diff --git a/model_patched_writable_provider_request.go b/model_patched_writable_provider_request.go
index f1dfebeaeb..33abe1f4df 100644
--- a/model_patched_writable_provider_request.go
+++ b/model_patched_writable_provider_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -348,10 +348,10 @@ func (o PatchedWritableProviderRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableProviderRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableProviderRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableProviderRequest := _PatchedWritableProviderRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableProviderRequest)
+ err = json.Unmarshal(data, &varPatchedWritableProviderRequest)
if err != nil {
return err
@@ -361,7 +361,7 @@ func (o *PatchedWritableProviderRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "accounts")
diff --git a/model_patched_writable_rack_request.go b/model_patched_writable_rack_request.go
index 0170d93718..0d1404c209 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,39 +19,34 @@ var _ MappedNullable = &PatchedWritableRackRequest{}
// PatchedWritableRackRequest Adds support for custom fields and tags.
type PatchedWritableRackRequest struct {
- Name *string `json:"name,omitempty"`
- FacilityId NullableString `json:"facility_id,omitempty"`
- Site *int32 `json:"site,omitempty"`
- Location NullableInt32 `json:"location,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- // * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
+ 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"`
+ Status *PatchedWritableRackRequestStatus `json:"status,omitempty"`
// Functional role
Role NullableInt32 `json:"role,omitempty"`
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this rack
- AssetTag NullableString `json:"asset_tag,omitempty"`
- // * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)
- Type *string `json:"type,omitempty"`
- // Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches
- Width *int32 `json:"width,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ Type *PatchedWritableRackRequestType `json:"type,omitempty"`
+ Width *PatchedWritableRackRequestWidth `json:"width,omitempty"`
// Height in rack units
UHeight *int32 `json:"u_height,omitempty"`
// Starting unit for rack
StartingUnit *int32 `json:"starting_unit,omitempty"`
Weight NullableFloat64 `json:"weight,omitempty"`
// Maximum load capacity for the rack
- MaxWeight NullableInt32 `json:"max_weight,omitempty"`
- // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
- WeightUnit *string `json:"weight_unit,omitempty"`
+ MaxWeight NullableInt32 `json:"max_weight,omitempty"`
+ WeightUnit *DeviceTypeWeightUnitValue `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"`
- // * `mm` - Millimeters * `in` - Inches
- OuterUnit *string `json:"outer_unit,omitempty"`
+ OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
+ OuterUnit *PatchedWritableRackRequestOuterUnit `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"`
@@ -274,9 +269,9 @@ func (o *PatchedWritableRackRequest) UnsetTenant() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableRackRequest) GetStatus() string {
+func (o *PatchedWritableRackRequest) GetStatus() PatchedWritableRackRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritableRackRequestStatus
return ret
}
return *o.Status
@@ -284,7 +279,7 @@ func (o *PatchedWritableRackRequest) GetStatus() string {
// 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 *PatchedWritableRackRequest) GetStatusOk() (*string, bool) {
+func (o *PatchedWritableRackRequest) GetStatusOk() (*PatchedWritableRackRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -300,8 +295,8 @@ func (o *PatchedWritableRackRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableRackRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritableRackRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableRackRequest) SetStatus(v PatchedWritableRackRequestStatus) {
o.Status = &v
}
@@ -424,9 +419,9 @@ func (o *PatchedWritableRackRequest) UnsetAssetTag() {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableRackRequest) GetType() string {
+func (o *PatchedWritableRackRequest) GetType() PatchedWritableRackRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritableRackRequestType
return ret
}
return *o.Type
@@ -434,7 +429,7 @@ func (o *PatchedWritableRackRequest) GetType() string {
// 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 *PatchedWritableRackRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -450,15 +445,15 @@ func (o *PatchedWritableRackRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableRackRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritableRackRequestType and assigns it to the Type field.
+func (o *PatchedWritableRackRequest) SetType(v PatchedWritableRackRequestType) {
o.Type = &v
}
// GetWidth returns the Width field value if set, zero value otherwise.
-func (o *PatchedWritableRackRequest) GetWidth() int32 {
+func (o *PatchedWritableRackRequest) GetWidth() PatchedWritableRackRequestWidth {
if o == nil || IsNil(o.Width) {
- var ret int32
+ var ret PatchedWritableRackRequestWidth
return ret
}
return *o.Width
@@ -466,7 +461,7 @@ func (o *PatchedWritableRackRequest) GetWidth() int32 {
// 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 *PatchedWritableRackRequest) GetWidthOk() (*int32, bool) {
+func (o *PatchedWritableRackRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool) {
if o == nil || IsNil(o.Width) {
return nil, false
}
@@ -482,8 +477,8 @@ func (o *PatchedWritableRackRequest) HasWidth() bool {
return false
}
-// SetWidth gets a reference to the given int32 and assigns it to the Width field.
-func (o *PatchedWritableRackRequest) SetWidth(v int32) {
+// SetWidth gets a reference to the given PatchedWritableRackRequestWidth and assigns it to the Width field.
+func (o *PatchedWritableRackRequest) SetWidth(v PatchedWritableRackRequestWidth) {
o.Width = &v
}
@@ -638,9 +633,9 @@ func (o *PatchedWritableRackRequest) UnsetMaxWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise.
-func (o *PatchedWritableRackRequest) GetWeightUnit() string {
+func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
if o == nil || IsNil(o.WeightUnit) {
- var ret string
+ var ret DeviceTypeWeightUnitValue
return ret
}
return *o.WeightUnit
@@ -648,7 +643,7 @@ func (o *PatchedWritableRackRequest) GetWeightUnit() string {
// 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() (*string, bool) {
+func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) {
if o == nil || IsNil(o.WeightUnit) {
return nil, false
}
@@ -664,8 +659,8 @@ func (o *PatchedWritableRackRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given string and assigns it to the WeightUnit field.
-func (o *PatchedWritableRackRequest) SetWeightUnit(v string) {
+// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field.
+func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) {
o.WeightUnit = &v
}
@@ -788,9 +783,9 @@ func (o *PatchedWritableRackRequest) UnsetOuterDepth() {
}
// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise.
-func (o *PatchedWritableRackRequest) GetOuterUnit() string {
+func (o *PatchedWritableRackRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit {
if o == nil || IsNil(o.OuterUnit) {
- var ret string
+ var ret PatchedWritableRackRequestOuterUnit
return ret
}
return *o.OuterUnit
@@ -798,7 +793,7 @@ func (o *PatchedWritableRackRequest) GetOuterUnit() string {
// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableRackRequest) GetOuterUnitOk() (*string, bool) {
+func (o *PatchedWritableRackRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool) {
if o == nil || IsNil(o.OuterUnit) {
return nil, false
}
@@ -814,8 +809,8 @@ func (o *PatchedWritableRackRequest) HasOuterUnit() bool {
return false
}
-// SetOuterUnit gets a reference to the given string and assigns it to the OuterUnit field.
-func (o *PatchedWritableRackRequest) SetOuterUnit(v string) {
+// SetOuterUnit gets a reference to the given PatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field.
+func (o *PatchedWritableRackRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) {
o.OuterUnit = &v
}
@@ -1083,10 +1078,10 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableRackRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableRackRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableRackRequest := _PatchedWritableRackRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableRackRequest)
+ err = json.Unmarshal(data, &varPatchedWritableRackRequest)
if err != nil {
return err
@@ -1096,7 +1091,7 @@ func (o *PatchedWritableRackRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "facility_id")
delete(additionalProperties, "site")
diff --git a/model_patched_writable_rack_request_outer_unit.go b/model_patched_writable_rack_request_outer_unit.go
new file mode 100644
index 0000000000..a2eb0a7fc9
--- /dev/null
+++ b/model_patched_writable_rack_request_outer_unit.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableRackRequestOuterUnit * `mm` - Millimeters * `in` - Inches
+type PatchedWritableRackRequestOuterUnit string
+
+// List of PatchedWritableRackRequest_outer_unit
+const (
+ PATCHEDWRITABLERACKREQUESTOUTERUNIT_MM PatchedWritableRackRequestOuterUnit = "mm"
+ PATCHEDWRITABLERACKREQUESTOUTERUNIT_IN PatchedWritableRackRequestOuterUnit = "in"
+ PATCHEDWRITABLERACKREQUESTOUTERUNIT_EMPTY PatchedWritableRackRequestOuterUnit = ""
+)
+
+// All allowed values of PatchedWritableRackRequestOuterUnit enum
+var AllowedPatchedWritableRackRequestOuterUnitEnumValues = []PatchedWritableRackRequestOuterUnit{
+ "mm",
+ "in",
+ "",
+}
+
+func (v *PatchedWritableRackRequestOuterUnit) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableRackRequestOuterUnit(value)
+ for _, existing := range AllowedPatchedWritableRackRequestOuterUnitEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableRackRequestOuterUnit", value)
+}
+
+// NewPatchedWritableRackRequestOuterUnitFromValue returns a pointer to a valid PatchedWritableRackRequestOuterUnit
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableRackRequestOuterUnitFromValue(v string) (*PatchedWritableRackRequestOuterUnit, error) {
+ ev := PatchedWritableRackRequestOuterUnit(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackRequestOuterUnit: valid values are %v", v, AllowedPatchedWritableRackRequestOuterUnitEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableRackRequestOuterUnit) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableRackRequestOuterUnitEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableRackRequest_outer_unit value
+func (v PatchedWritableRackRequestOuterUnit) Ptr() *PatchedWritableRackRequestOuterUnit {
+ return &v
+}
+
+type NullablePatchedWritableRackRequestOuterUnit struct {
+ value *PatchedWritableRackRequestOuterUnit
+ isSet bool
+}
+
+func (v NullablePatchedWritableRackRequestOuterUnit) Get() *PatchedWritableRackRequestOuterUnit {
+ return v.value
+}
+
+func (v *NullablePatchedWritableRackRequestOuterUnit) Set(val *PatchedWritableRackRequestOuterUnit) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableRackRequestOuterUnit) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableRackRequestOuterUnit) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableRackRequestOuterUnit(val *PatchedWritableRackRequestOuterUnit) *NullablePatchedWritableRackRequestOuterUnit {
+ return &NullablePatchedWritableRackRequestOuterUnit{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableRackRequestOuterUnit) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableRackRequestOuterUnit) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_rack_request_status.go b/model_patched_writable_rack_request_status.go
new file mode 100644
index 0000000000..a2bfc488b2
--- /dev/null
+++ b/model_patched_writable_rack_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: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableRackRequestStatus * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated
+type PatchedWritableRackRequestStatus string
+
+// List of PatchedWritableRackRequest_status
+const (
+ PATCHEDWRITABLERACKREQUESTSTATUS_RESERVED PatchedWritableRackRequestStatus = "reserved"
+ PATCHEDWRITABLERACKREQUESTSTATUS_AVAILABLE PatchedWritableRackRequestStatus = "available"
+ PATCHEDWRITABLERACKREQUESTSTATUS_PLANNED PatchedWritableRackRequestStatus = "planned"
+ PATCHEDWRITABLERACKREQUESTSTATUS_ACTIVE PatchedWritableRackRequestStatus = "active"
+ PATCHEDWRITABLERACKREQUESTSTATUS_DEPRECATED PatchedWritableRackRequestStatus = "deprecated"
+)
+
+// All allowed values of PatchedWritableRackRequestStatus enum
+var AllowedPatchedWritableRackRequestStatusEnumValues = []PatchedWritableRackRequestStatus{
+ "reserved",
+ "available",
+ "planned",
+ "active",
+ "deprecated",
+}
+
+func (v *PatchedWritableRackRequestStatus) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableRackRequestStatus(value)
+ for _, existing := range AllowedPatchedWritableRackRequestStatusEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableRackRequestStatus", value)
+}
+
+// NewPatchedWritableRackRequestStatusFromValue returns a pointer to a valid PatchedWritableRackRequestStatus
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableRackRequestStatusFromValue(v string) (*PatchedWritableRackRequestStatus, error) {
+ ev := PatchedWritableRackRequestStatus(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackRequestStatus: valid values are %v", v, AllowedPatchedWritableRackRequestStatusEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableRackRequestStatus) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableRackRequestStatusEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableRackRequest_status value
+func (v PatchedWritableRackRequestStatus) Ptr() *PatchedWritableRackRequestStatus {
+ return &v
+}
+
+type NullablePatchedWritableRackRequestStatus struct {
+ value *PatchedWritableRackRequestStatus
+ isSet bool
+}
+
+func (v NullablePatchedWritableRackRequestStatus) Get() *PatchedWritableRackRequestStatus {
+ return v.value
+}
+
+func (v *NullablePatchedWritableRackRequestStatus) Set(val *PatchedWritableRackRequestStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableRackRequestStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableRackRequestStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableRackRequestStatus(val *PatchedWritableRackRequestStatus) *NullablePatchedWritableRackRequestStatus {
+ return &NullablePatchedWritableRackRequestStatus{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableRackRequestStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableRackRequestStatus) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_rack_request_type.go b/model_patched_writable_rack_request_type.go
new file mode 100644
index 0000000000..e22e07f03c
--- /dev/null
+++ b/model_patched_writable_rack_request_type.go
@@ -0,0 +1,122 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableRackRequestType * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)
+type PatchedWritableRackRequestType string
+
+// List of PatchedWritableRackRequest_type
+const (
+ PATCHEDWRITABLERACKREQUESTTYPE__2_POST_FRAME PatchedWritableRackRequestType = "2-post-frame"
+ PATCHEDWRITABLERACKREQUESTTYPE__4_POST_FRAME PatchedWritableRackRequestType = "4-post-frame"
+ PATCHEDWRITABLERACKREQUESTTYPE__4_POST_CABINET PatchedWritableRackRequestType = "4-post-cabinet"
+ PATCHEDWRITABLERACKREQUESTTYPE_WALL_FRAME PatchedWritableRackRequestType = "wall-frame"
+ PATCHEDWRITABLERACKREQUESTTYPE_WALL_FRAME_VERTICAL PatchedWritableRackRequestType = "wall-frame-vertical"
+ PATCHEDWRITABLERACKREQUESTTYPE_WALL_CABINET PatchedWritableRackRequestType = "wall-cabinet"
+ PATCHEDWRITABLERACKREQUESTTYPE_WALL_CABINET_VERTICAL PatchedWritableRackRequestType = "wall-cabinet-vertical"
+ PATCHEDWRITABLERACKREQUESTTYPE_EMPTY PatchedWritableRackRequestType = ""
+)
+
+// All allowed values of PatchedWritableRackRequestType enum
+var AllowedPatchedWritableRackRequestTypeEnumValues = []PatchedWritableRackRequestType{
+ "2-post-frame",
+ "4-post-frame",
+ "4-post-cabinet",
+ "wall-frame",
+ "wall-frame-vertical",
+ "wall-cabinet",
+ "wall-cabinet-vertical",
+ "",
+}
+
+func (v *PatchedWritableRackRequestType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableRackRequestType(value)
+ for _, existing := range AllowedPatchedWritableRackRequestTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableRackRequestType", value)
+}
+
+// NewPatchedWritableRackRequestTypeFromValue returns a pointer to a valid PatchedWritableRackRequestType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableRackRequestTypeFromValue(v string) (*PatchedWritableRackRequestType, error) {
+ ev := PatchedWritableRackRequestType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackRequestType: valid values are %v", v, AllowedPatchedWritableRackRequestTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableRackRequestType) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableRackRequestTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableRackRequest_type value
+func (v PatchedWritableRackRequestType) Ptr() *PatchedWritableRackRequestType {
+ return &v
+}
+
+type NullablePatchedWritableRackRequestType struct {
+ value *PatchedWritableRackRequestType
+ isSet bool
+}
+
+func (v NullablePatchedWritableRackRequestType) Get() *PatchedWritableRackRequestType {
+ return v.value
+}
+
+func (v *NullablePatchedWritableRackRequestType) Set(val *PatchedWritableRackRequestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableRackRequestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableRackRequestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableRackRequestType(val *PatchedWritableRackRequestType) *NullablePatchedWritableRackRequestType {
+ return &NullablePatchedWritableRackRequestType{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableRackRequestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableRackRequestType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_rack_request_width.go b/model_patched_writable_rack_request_width.go
new file mode 100644
index 0000000000..fa5f437ca3
--- /dev/null
+++ b/model_patched_writable_rack_request_width.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableRackRequestWidth Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches
+type PatchedWritableRackRequestWidth int32
+
+// List of PatchedWritableRackRequest_width
+const (
+ PATCHEDWRITABLERACKREQUESTWIDTH__10 PatchedWritableRackRequestWidth = 10
+ PATCHEDWRITABLERACKREQUESTWIDTH__19 PatchedWritableRackRequestWidth = 19
+ PATCHEDWRITABLERACKREQUESTWIDTH__21 PatchedWritableRackRequestWidth = 21
+ PATCHEDWRITABLERACKREQUESTWIDTH__23 PatchedWritableRackRequestWidth = 23
+)
+
+// All allowed values of PatchedWritableRackRequestWidth enum
+var AllowedPatchedWritableRackRequestWidthEnumValues = []PatchedWritableRackRequestWidth{
+ 10,
+ 19,
+ 21,
+ 23,
+}
+
+func (v *PatchedWritableRackRequestWidth) UnmarshalJSON(src []byte) error {
+ var value int32
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableRackRequestWidth(value)
+ for _, existing := range AllowedPatchedWritableRackRequestWidthEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableRackRequestWidth", value)
+}
+
+// NewPatchedWritableRackRequestWidthFromValue returns a pointer to a valid PatchedWritableRackRequestWidth
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableRackRequestWidthFromValue(v int32) (*PatchedWritableRackRequestWidth, error) {
+ ev := PatchedWritableRackRequestWidth(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackRequestWidth: valid values are %v", v, AllowedPatchedWritableRackRequestWidthEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableRackRequestWidth) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableRackRequestWidthEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableRackRequest_width value
+func (v PatchedWritableRackRequestWidth) Ptr() *PatchedWritableRackRequestWidth {
+ return &v
+}
+
+type NullablePatchedWritableRackRequestWidth struct {
+ value *PatchedWritableRackRequestWidth
+ isSet bool
+}
+
+func (v NullablePatchedWritableRackRequestWidth) Get() *PatchedWritableRackRequestWidth {
+ return v.value
+}
+
+func (v *NullablePatchedWritableRackRequestWidth) Set(val *PatchedWritableRackRequestWidth) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableRackRequestWidth) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableRackRequestWidth) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableRackRequestWidth(val *PatchedWritableRackRequestWidth) *NullablePatchedWritableRackRequestWidth {
+ return &NullablePatchedWritableRackRequestWidth{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableRackRequestWidth) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableRackRequestWidth) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_rack_reservation_request.go b/model_patched_writable_rack_reservation_request.go
index 26b1d6f74d..0a119290ec 100644
--- a/model_patched_writable_rack_reservation_request.go
+++ b/model_patched_writable_rack_reservation_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -358,10 +358,10 @@ func (o PatchedWritableRackReservationRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PatchedWritableRackReservationRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableRackReservationRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableRackReservationRequest := _PatchedWritableRackReservationRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableRackReservationRequest)
+ err = json.Unmarshal(data, &varPatchedWritableRackReservationRequest)
if err != nil {
return err
@@ -371,7 +371,7 @@ func (o *PatchedWritableRackReservationRequest) UnmarshalJSON(bytes []byte) (err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "rack")
delete(additionalProperties, "units")
delete(additionalProperties, "user")
diff --git a/model_patched_writable_rear_port_request.go b/model_patched_writable_rear_port_request.go
index 63cc93beca..ab784878c6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -23,10 +23,9 @@ type PatchedWritableRearPortRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
- Type *string `json:"type,omitempty"`
- Color *string `json:"color,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *FrontPortTypeValue `json:"type,omitempty"`
+ Color *string `json:"color,omitempty"`
// Number of front ports which may be mapped
Positions *int32 `json:"positions,omitempty"`
Description *string `json:"description,omitempty"`
@@ -196,9 +195,9 @@ func (o *PatchedWritableRearPortRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableRearPortRequest) GetType() string {
+func (o *PatchedWritableRearPortRequest) GetType() FrontPortTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret FrontPortTypeValue
return ret
}
return *o.Type
@@ -206,7 +205,7 @@ func (o *PatchedWritableRearPortRequest) GetType() string {
// 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 *PatchedWritableRearPortRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritableRearPortRequest) GetTypeOk() (*FrontPortTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -222,8 +221,8 @@ func (o *PatchedWritableRearPortRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableRearPortRequest) SetType(v string) {
+// SetType gets a reference to the given FrontPortTypeValue and assigns it to the Type field.
+func (o *PatchedWritableRearPortRequest) SetType(v FrontPortTypeValue) {
o.Type = &v
}
@@ -470,10 +469,10 @@ func (o PatchedWritableRearPortRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableRearPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableRearPortRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableRearPortRequest := _PatchedWritableRearPortRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableRearPortRequest)
+ err = json.Unmarshal(data, &varPatchedWritableRearPortRequest)
if err != nil {
return err
@@ -483,7 +482,7 @@ func (o *PatchedWritableRearPortRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_rear_port_template_request.go b/model_patched_writable_rear_port_template_request.go
index b5dff3453b..8763651727 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,12 +24,11 @@ type PatchedWritableRearPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
- Type *string `json:"type,omitempty"`
- Color *string `json:"color,omitempty"`
- Positions *int32 `json:"positions,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *FrontPortTypeValue `json:"type,omitempty"`
+ Color *string `json:"color,omitempty"`
+ Positions *int32 `json:"positions,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -203,9 +202,9 @@ func (o *PatchedWritableRearPortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableRearPortTemplateRequest) GetType() string {
+func (o *PatchedWritableRearPortTemplateRequest) GetType() FrontPortTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret FrontPortTypeValue
return ret
}
return *o.Type
@@ -213,7 +212,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetType() string {
// 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 *PatchedWritableRearPortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *PatchedWritableRearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -229,8 +228,8 @@ func (o *PatchedWritableRearPortTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PatchedWritableRearPortTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given FrontPortTypeValue and assigns it to the Type field.
+func (o *PatchedWritableRearPortTemplateRequest) SetType(v FrontPortTypeValue) {
o.Type = &v
}
@@ -372,10 +371,10 @@ func (o PatchedWritableRearPortTemplateRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PatchedWritableRearPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableRearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableRearPortTemplateRequest := _PatchedWritableRearPortTemplateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableRearPortTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedWritableRearPortTemplateRequest)
if err != nil {
return err
@@ -385,7 +384,7 @@ func (o *PatchedWritableRearPortTemplateRequest) UnmarshalJSON(bytes []byte) (er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_region_request.go b/model_patched_writable_region_request.go
index 9b9002ecf8..2f0f3fb2f4 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -286,10 +286,10 @@ func (o PatchedWritableRegionRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableRegionRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableRegionRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableRegionRequest := _PatchedWritableRegionRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableRegionRequest)
+ err = json.Unmarshal(data, &varPatchedWritableRegionRequest)
if err != nil {
return err
@@ -299,7 +299,7 @@ func (o *PatchedWritableRegionRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_patched_writable_route_target_request.go b/model_patched_writable_route_target_request.go
index 4173530a4f..8bc505f78f 100644
--- a/model_patched_writable_route_target_request.go
+++ b/model_patched_writable_route_target_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -287,10 +287,10 @@ func (o PatchedWritableRouteTargetRequest) ToMap() (map[string]interface{}, erro
return toSerialize, nil
}
-func (o *PatchedWritableRouteTargetRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableRouteTargetRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableRouteTargetRequest := _PatchedWritableRouteTargetRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableRouteTargetRequest)
+ err = json.Unmarshal(data, &varPatchedWritableRouteTargetRequest)
if err != nil {
return err
@@ -300,7 +300,7 @@ func (o *PatchedWritableRouteTargetRequest) UnmarshalJSON(bytes []byte) (err err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "tenant")
delete(additionalProperties, "description")
diff --git a/model_patched_writable_service_request.go b/model_patched_writable_service_request.go
index 96c2936cd9..cbd44e3466 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,11 @@ 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"`
- // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP
- Protocol *string `json:"protocol,omitempty"`
+ 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"`
@@ -204,9 +203,9 @@ func (o *PatchedWritableServiceRequest) SetPorts(v []int32) {
}
// GetProtocol returns the Protocol field value if set, zero value otherwise.
-func (o *PatchedWritableServiceRequest) GetProtocol() string {
+func (o *PatchedWritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
if o == nil || IsNil(o.Protocol) {
- var ret string
+ var ret PatchedWritableServiceRequestProtocol
return ret
}
return *o.Protocol
@@ -214,7 +213,7 @@ func (o *PatchedWritableServiceRequest) GetProtocol() string {
// 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) GetProtocolOk() (*string, bool) {
+func (o *PatchedWritableServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
if o == nil || IsNil(o.Protocol) {
return nil, false
}
@@ -230,8 +229,8 @@ func (o *PatchedWritableServiceRequest) HasProtocol() bool {
return false
}
-// SetProtocol gets a reference to the given string and assigns it to the Protocol field.
-func (o *PatchedWritableServiceRequest) SetProtocol(v string) {
+// SetProtocol gets a reference to the given PatchedWritableServiceRequestProtocol and assigns it to the Protocol field.
+func (o *PatchedWritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
o.Protocol = &v
}
@@ -443,10 +442,10 @@ func (o PatchedWritableServiceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableServiceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableServiceRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableServiceRequest := _PatchedWritableServiceRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableServiceRequest)
+ err = json.Unmarshal(data, &varPatchedWritableServiceRequest)
if err != nil {
return err
@@ -456,7 +455,7 @@ func (o *PatchedWritableServiceRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "virtual_machine")
delete(additionalProperties, "name")
diff --git a/model_patched_writable_service_request_protocol.go b/model_patched_writable_service_request_protocol.go
new file mode 100644
index 0000000000..6a973532ea
--- /dev/null
+++ b/model_patched_writable_service_request_protocol.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableServiceRequestProtocol * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP
+type PatchedWritableServiceRequestProtocol string
+
+// List of PatchedWritableServiceRequest_protocol
+const (
+ PATCHEDWRITABLESERVICEREQUESTPROTOCOL_TCP PatchedWritableServiceRequestProtocol = "tcp"
+ PATCHEDWRITABLESERVICEREQUESTPROTOCOL_UDP PatchedWritableServiceRequestProtocol = "udp"
+ PATCHEDWRITABLESERVICEREQUESTPROTOCOL_SCTP PatchedWritableServiceRequestProtocol = "sctp"
+)
+
+// All allowed values of PatchedWritableServiceRequestProtocol enum
+var AllowedPatchedWritableServiceRequestProtocolEnumValues = []PatchedWritableServiceRequestProtocol{
+ "tcp",
+ "udp",
+ "sctp",
+}
+
+func (v *PatchedWritableServiceRequestProtocol) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableServiceRequestProtocol(value)
+ for _, existing := range AllowedPatchedWritableServiceRequestProtocolEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableServiceRequestProtocol", value)
+}
+
+// NewPatchedWritableServiceRequestProtocolFromValue returns a pointer to a valid PatchedWritableServiceRequestProtocol
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableServiceRequestProtocolFromValue(v string) (*PatchedWritableServiceRequestProtocol, error) {
+ ev := PatchedWritableServiceRequestProtocol(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableServiceRequestProtocol: valid values are %v", v, AllowedPatchedWritableServiceRequestProtocolEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableServiceRequestProtocol) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableServiceRequestProtocolEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableServiceRequest_protocol value
+func (v PatchedWritableServiceRequestProtocol) Ptr() *PatchedWritableServiceRequestProtocol {
+ return &v
+}
+
+type NullablePatchedWritableServiceRequestProtocol struct {
+ value *PatchedWritableServiceRequestProtocol
+ isSet bool
+}
+
+func (v NullablePatchedWritableServiceRequestProtocol) Get() *PatchedWritableServiceRequestProtocol {
+ return v.value
+}
+
+func (v *NullablePatchedWritableServiceRequestProtocol) Set(val *PatchedWritableServiceRequestProtocol) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableServiceRequestProtocol) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableServiceRequestProtocol) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableServiceRequestProtocol(val *PatchedWritableServiceRequestProtocol) *NullablePatchedWritableServiceRequestProtocol {
+ return &NullablePatchedWritableServiceRequestProtocol{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableServiceRequestProtocol) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableServiceRequestProtocol) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_service_template_request.go b/model_patched_writable_service_template_request.go
index 2142131e37..80ba7dfb33 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,13 @@ var _ MappedNullable = &PatchedWritableServiceTemplateRequest{}
// PatchedWritableServiceTemplateRequest Adds support for custom fields and tags.
type PatchedWritableServiceTemplateRequest struct {
- Name *string `json:"name,omitempty"`
- Ports []int32 `json:"ports,omitempty"`
- // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP
- Protocol *string `json:"protocol,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Ports []int32 `json:"ports,omitempty"`
+ Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -114,9 +113,9 @@ func (o *PatchedWritableServiceTemplateRequest) SetPorts(v []int32) {
}
// GetProtocol returns the Protocol field value if set, zero value otherwise.
-func (o *PatchedWritableServiceTemplateRequest) GetProtocol() string {
+func (o *PatchedWritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
if o == nil || IsNil(o.Protocol) {
- var ret string
+ var ret PatchedWritableServiceRequestProtocol
return ret
}
return *o.Protocol
@@ -124,7 +123,7 @@ func (o *PatchedWritableServiceTemplateRequest) GetProtocol() string {
// 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) GetProtocolOk() (*string, bool) {
+func (o *PatchedWritableServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
if o == nil || IsNil(o.Protocol) {
return nil, false
}
@@ -140,8 +139,8 @@ func (o *PatchedWritableServiceTemplateRequest) HasProtocol() bool {
return false
}
-// SetProtocol gets a reference to the given string and assigns it to the Protocol field.
-func (o *PatchedWritableServiceTemplateRequest) SetProtocol(v string) {
+// SetProtocol gets a reference to the given PatchedWritableServiceRequestProtocol and assigns it to the Protocol field.
+func (o *PatchedWritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
o.Protocol = &v
}
@@ -312,10 +311,10 @@ func (o PatchedWritableServiceTemplateRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PatchedWritableServiceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableServiceTemplateRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableServiceTemplateRequest := _PatchedWritableServiceTemplateRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableServiceTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedWritableServiceTemplateRequest)
if err != nil {
return err
@@ -325,7 +324,7 @@ func (o *PatchedWritableServiceTemplateRequest) UnmarshalJSON(bytes []byte) (err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "ports")
delete(additionalProperties, "protocol")
diff --git a/model_patched_writable_site_group_request.go b/model_patched_writable_site_group_request.go
index e497d42b88..76e2bfddb1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -286,10 +286,10 @@ func (o PatchedWritableSiteGroupRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableSiteGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableSiteGroupRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableSiteGroupRequest := _PatchedWritableSiteGroupRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableSiteGroupRequest)
+ err = json.Unmarshal(data, &varPatchedWritableSiteGroupRequest)
if err != nil {
return err
@@ -299,7 +299,7 @@ func (o *PatchedWritableSiteGroupRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_patched_writable_site_request.go b/model_patched_writable_site_request.go
index 7c03c920a1..f5f7e1bfcb 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +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"`
- // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired
- Status *string `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 *LocationStatusValue `json:"status,omitempty"`
+ Region NullableInt32 `json:"region,omitempty"`
+ Group NullableInt32 `json:"group,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
// Local facility ID or description
Facility *string `json:"facility,omitempty"`
TimeZone NullableString `json:"time_zone,omitempty"`
@@ -130,9 +129,9 @@ func (o *PatchedWritableSiteRequest) SetSlug(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableSiteRequest) GetStatus() string {
+func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret LocationStatusValue
return ret
}
return *o.Status
@@ -140,7 +139,7 @@ func (o *PatchedWritableSiteRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *PatchedWritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -156,8 +155,8 @@ func (o *PatchedWritableSiteRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableSiteRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field.
+func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue) {
o.Status = &v
}
@@ -744,10 +743,10 @@ func (o PatchedWritableSiteRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableSiteRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableSiteRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableSiteRequest := _PatchedWritableSiteRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableSiteRequest)
+ err = json.Unmarshal(data, &varPatchedWritableSiteRequest)
if err != nil {
return err
@@ -757,7 +756,7 @@ func (o *PatchedWritableSiteRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "status")
diff --git a/model_patched_writable_tenant_group_request.go b/model_patched_writable_tenant_group_request.go
index 251483d03b..a2331cc868 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -286,10 +286,10 @@ func (o PatchedWritableTenantGroupRequest) ToMap() (map[string]interface{}, erro
return toSerialize, nil
}
-func (o *PatchedWritableTenantGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableTenantGroupRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableTenantGroupRequest := _PatchedWritableTenantGroupRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableTenantGroupRequest)
+ err = json.Unmarshal(data, &varPatchedWritableTenantGroupRequest)
if err != nil {
return err
@@ -299,7 +299,7 @@ func (o *PatchedWritableTenantGroupRequest) UnmarshalJSON(bytes []byte) (err err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_patched_writable_tenant_request.go b/model_patched_writable_tenant_request.go
index 198b340d00..dac1192758 100644
--- a/model_patched_writable_tenant_request.go
+++ b/model_patched_writable_tenant_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -322,10 +322,10 @@ func (o PatchedWritableTenantRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableTenantRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableTenantRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableTenantRequest := _PatchedWritableTenantRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableTenantRequest)
+ err = json.Unmarshal(data, &varPatchedWritableTenantRequest)
if err != nil {
return err
@@ -335,7 +335,7 @@ func (o *PatchedWritableTenantRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "group")
diff --git a/model_patched_writable_token_request.go b/model_patched_writable_token_request.go
index 6a6ee0cd75..8fc9b43b6f 100644
--- a/model_patched_writable_token_request.go
+++ b/model_patched_writable_token_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -299,10 +299,10 @@ func (o PatchedWritableTokenRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableTokenRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableTokenRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableTokenRequest := _PatchedWritableTokenRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableTokenRequest)
+ err = json.Unmarshal(data, &varPatchedWritableTokenRequest)
if err != nil {
return err
@@ -312,7 +312,7 @@ func (o *PatchedWritableTokenRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "user")
delete(additionalProperties, "expires")
delete(additionalProperties, "last_used")
diff --git a/model_patched_writable_tunnel_request.go b/model_patched_writable_tunnel_request.go
new file mode 100644
index 0000000000..a86a8f4b15
--- /dev/null
+++ b/model_patched_writable_tunnel_request.go
@@ -0,0 +1,567 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PatchedWritableTunnelRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedWritableTunnelRequest{}
+
+// PatchedWritableTunnelRequest Adds support for custom fields and tags.
+type PatchedWritableTunnelRequest struct {
+ Name *string `json:"name,omitempty"`
+ Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"`
+ Group NullableInt32 `json:"group,omitempty"`
+ Encapsulation *PatchedWritableTunnelRequestEncapsulation `json:"encapsulation,omitempty"`
+ IpsecProfile NullableInt32 `json:"ipsec_profile,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
+ TunnelId NullableInt64 `json:"tunnel_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedWritableTunnelRequest PatchedWritableTunnelRequest
+
+// NewPatchedWritableTunnelRequest instantiates a new PatchedWritableTunnelRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPatchedWritableTunnelRequest() *PatchedWritableTunnelRequest {
+ this := PatchedWritableTunnelRequest{}
+ return &this
+}
+
+// NewPatchedWritableTunnelRequestWithDefaults instantiates a new PatchedWritableTunnelRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPatchedWritableTunnelRequestWithDefaults() *PatchedWritableTunnelRequest {
+ this := PatchedWritableTunnelRequest{}
+ return &this
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetName(v string) {
+ o.Name = &v
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *PatchedWritableTunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus {
+ if o == nil || IsNil(o.Status) {
+ var ret PatchedWritableTunnelRequestStatus
+ 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 *PatchedWritableTunnelRequest) GetStatusOk() (*PatchedWritableTunnelRequestStatus, 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 *PatchedWritableTunnelRequest) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given PatchedWritableTunnelRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetGroup(v int32) {
+ o.Group.Set(&v)
+}
+
+// SetGroupNil sets the value for Group to be an explicit nil
+func (o *PatchedWritableTunnelRequest) SetGroupNil() {
+ o.Group.Set(nil)
+}
+
+// UnsetGroup ensures that no value is present for Group, not even an explicit nil
+func (o *PatchedWritableTunnelRequest) UnsetGroup() {
+ o.Group.Unset()
+}
+
+// GetEncapsulation returns the Encapsulation field value if set, zero value otherwise.
+func (o *PatchedWritableTunnelRequest) GetEncapsulation() PatchedWritableTunnelRequestEncapsulation {
+ if o == nil || IsNil(o.Encapsulation) {
+ var ret PatchedWritableTunnelRequestEncapsulation
+ return ret
+ }
+ return *o.Encapsulation
+}
+
+// GetEncapsulationOk returns a tuple with the Encapsulation field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableTunnelRequest) GetEncapsulationOk() (*PatchedWritableTunnelRequestEncapsulation, bool) {
+ if o == nil || IsNil(o.Encapsulation) {
+ return nil, false
+ }
+ return o.Encapsulation, true
+}
+
+// HasEncapsulation returns a boolean if a field has been set.
+func (o *PatchedWritableTunnelRequest) HasEncapsulation() bool {
+ if o != nil && !IsNil(o.Encapsulation) {
+ return true
+ }
+
+ return false
+}
+
+// SetEncapsulation gets a reference to the given PatchedWritableTunnelRequestEncapsulation and assigns it to the Encapsulation field.
+func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) GetIpsecProfile() int32 {
+ if o == nil || IsNil(o.IpsecProfile.Get()) {
+ var ret int32
+ 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 *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*int32, 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 *PatchedWritableTunnelRequest) HasIpsecProfile() bool {
+ if o != nil && o.IpsecProfile.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetIpsecProfile gets a reference to the given NullableInt32 and assigns it to the IpsecProfile field.
+func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v int32) {
+ o.IpsecProfile.Set(&v)
+}
+
+// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil
+func (o *PatchedWritableTunnelRequest) SetIpsecProfileNil() {
+ o.IpsecProfile.Set(nil)
+}
+
+// UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil
+func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetTenant(v int32) {
+ o.Tenant.Set(&v)
+}
+
+// SetTenantNil sets the value for Tenant to be an explicit nil
+func (o *PatchedWritableTunnelRequest) SetTenantNil() {
+ o.Tenant.Set(nil)
+}
+
+// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
+func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetTunnelId(v int64) {
+ o.TunnelId.Set(&v)
+}
+
+// SetTunnelIdNil sets the value for TunnelId to be an explicit nil
+func (o *PatchedWritableTunnelRequest) SetTunnelIdNil() {
+ o.TunnelId.Set(nil)
+}
+
+// UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil
+func (o *PatchedWritableTunnelRequest) UnsetTunnelId() {
+ o.TunnelId.Unset()
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o PatchedWritableTunnelRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedWritableTunnelRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if o.Group.IsSet() {
+ toSerialize["group"] = o.Group.Get()
+ }
+ if !IsNil(o.Encapsulation) {
+ 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
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PatchedWritableTunnelRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedWritableTunnelRequest := _PatchedWritableTunnelRequest{}
+
+ err = json.Unmarshal(data, &varPatchedWritableTunnelRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedWritableTunnelRequest(varPatchedWritableTunnelRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ 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
+ }
+
+ return err
+}
+
+type NullablePatchedWritableTunnelRequest struct {
+ value *PatchedWritableTunnelRequest
+ isSet bool
+}
+
+func (v NullablePatchedWritableTunnelRequest) Get() *PatchedWritableTunnelRequest {
+ return v.value
+}
+
+func (v *NullablePatchedWritableTunnelRequest) Set(val *PatchedWritableTunnelRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableTunnelRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableTunnelRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableTunnelRequest(val *PatchedWritableTunnelRequest) *NullablePatchedWritableTunnelRequest {
+ return &NullablePatchedWritableTunnelRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableTunnelRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableTunnelRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_tunnel_request_encapsulation.go b/model_patched_writable_tunnel_request_encapsulation.go
new file mode 100644
index 0000000000..ed334798f0
--- /dev/null
+++ b/model_patched_writable_tunnel_request_encapsulation.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableTunnelRequestEncapsulation * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE
+type PatchedWritableTunnelRequestEncapsulation string
+
+// List of PatchedWritableTunnelRequest_encapsulation
+const (
+ PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_IPSEC_TRANSPORT PatchedWritableTunnelRequestEncapsulation = "ipsec-transport"
+ PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_IPSEC_TUNNEL PatchedWritableTunnelRequestEncapsulation = "ipsec-tunnel"
+ PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_IP_IP PatchedWritableTunnelRequestEncapsulation = "ip-ip"
+ PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_GRE PatchedWritableTunnelRequestEncapsulation = "gre"
+)
+
+// All allowed values of PatchedWritableTunnelRequestEncapsulation enum
+var AllowedPatchedWritableTunnelRequestEncapsulationEnumValues = []PatchedWritableTunnelRequestEncapsulation{
+ "ipsec-transport",
+ "ipsec-tunnel",
+ "ip-ip",
+ "gre",
+}
+
+func (v *PatchedWritableTunnelRequestEncapsulation) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableTunnelRequestEncapsulation(value)
+ for _, existing := range AllowedPatchedWritableTunnelRequestEncapsulationEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableTunnelRequestEncapsulation", value)
+}
+
+// NewPatchedWritableTunnelRequestEncapsulationFromValue returns a pointer to a valid PatchedWritableTunnelRequestEncapsulation
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableTunnelRequestEncapsulationFromValue(v string) (*PatchedWritableTunnelRequestEncapsulation, error) {
+ ev := PatchedWritableTunnelRequestEncapsulation(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableTunnelRequestEncapsulation: valid values are %v", v, AllowedPatchedWritableTunnelRequestEncapsulationEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableTunnelRequestEncapsulation) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableTunnelRequestEncapsulationEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableTunnelRequest_encapsulation value
+func (v PatchedWritableTunnelRequestEncapsulation) Ptr() *PatchedWritableTunnelRequestEncapsulation {
+ return &v
+}
+
+type NullablePatchedWritableTunnelRequestEncapsulation struct {
+ value *PatchedWritableTunnelRequestEncapsulation
+ isSet bool
+}
+
+func (v NullablePatchedWritableTunnelRequestEncapsulation) Get() *PatchedWritableTunnelRequestEncapsulation {
+ return v.value
+}
+
+func (v *NullablePatchedWritableTunnelRequestEncapsulation) Set(val *PatchedWritableTunnelRequestEncapsulation) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableTunnelRequestEncapsulation) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableTunnelRequestEncapsulation) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableTunnelRequestEncapsulation(val *PatchedWritableTunnelRequestEncapsulation) *NullablePatchedWritableTunnelRequestEncapsulation {
+ return &NullablePatchedWritableTunnelRequestEncapsulation{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableTunnelRequestEncapsulation) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableTunnelRequestEncapsulation) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_tunnel_request_status.go b/model_patched_writable_tunnel_request_status.go
new file mode 100644
index 0000000000..6e5d50ca50
--- /dev/null
+++ b/model_patched_writable_tunnel_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: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableTunnelRequestStatus * `planned` - Planned * `active` - Active * `disabled` - Disabled
+type PatchedWritableTunnelRequestStatus string
+
+// List of PatchedWritableTunnelRequest_status
+const (
+ PATCHEDWRITABLETUNNELREQUESTSTATUS_PLANNED PatchedWritableTunnelRequestStatus = "planned"
+ PATCHEDWRITABLETUNNELREQUESTSTATUS_ACTIVE PatchedWritableTunnelRequestStatus = "active"
+ PATCHEDWRITABLETUNNELREQUESTSTATUS_DISABLED PatchedWritableTunnelRequestStatus = "disabled"
+)
+
+// All allowed values of PatchedWritableTunnelRequestStatus enum
+var AllowedPatchedWritableTunnelRequestStatusEnumValues = []PatchedWritableTunnelRequestStatus{
+ "planned",
+ "active",
+ "disabled",
+}
+
+func (v *PatchedWritableTunnelRequestStatus) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableTunnelRequestStatus(value)
+ for _, existing := range AllowedPatchedWritableTunnelRequestStatusEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableTunnelRequestStatus", value)
+}
+
+// NewPatchedWritableTunnelRequestStatusFromValue returns a pointer to a valid PatchedWritableTunnelRequestStatus
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableTunnelRequestStatusFromValue(v string) (*PatchedWritableTunnelRequestStatus, error) {
+ ev := PatchedWritableTunnelRequestStatus(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableTunnelRequestStatus: valid values are %v", v, AllowedPatchedWritableTunnelRequestStatusEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableTunnelRequestStatus) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableTunnelRequestStatusEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableTunnelRequest_status value
+func (v PatchedWritableTunnelRequestStatus) Ptr() *PatchedWritableTunnelRequestStatus {
+ return &v
+}
+
+type NullablePatchedWritableTunnelRequestStatus struct {
+ value *PatchedWritableTunnelRequestStatus
+ isSet bool
+}
+
+func (v NullablePatchedWritableTunnelRequestStatus) Get() *PatchedWritableTunnelRequestStatus {
+ return v.value
+}
+
+func (v *NullablePatchedWritableTunnelRequestStatus) Set(val *PatchedWritableTunnelRequestStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableTunnelRequestStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableTunnelRequestStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableTunnelRequestStatus(val *PatchedWritableTunnelRequestStatus) *NullablePatchedWritableTunnelRequestStatus {
+ return &NullablePatchedWritableTunnelRequestStatus{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableTunnelRequestStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableTunnelRequestStatus) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_tunnel_termination_request.go b/model_patched_writable_tunnel_termination_request.go
new file mode 100644
index 0000000000..20508d4c1f
--- /dev/null
+++ b/model_patched_writable_tunnel_termination_request.go
@@ -0,0 +1,397 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PatchedWritableTunnelTerminationRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedWritableTunnelTerminationRequest{}
+
+// PatchedWritableTunnelTerminationRequest Adds support for custom fields and tags.
+type PatchedWritableTunnelTerminationRequest struct {
+ Tunnel *int32 `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"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedWritableTunnelTerminationRequest PatchedWritableTunnelTerminationRequest
+
+// NewPatchedWritableTunnelTerminationRequest instantiates a new PatchedWritableTunnelTerminationRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPatchedWritableTunnelTerminationRequest() *PatchedWritableTunnelTerminationRequest {
+ this := PatchedWritableTunnelTerminationRequest{}
+ return &this
+}
+
+// NewPatchedWritableTunnelTerminationRequestWithDefaults instantiates a new PatchedWritableTunnelTerminationRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPatchedWritableTunnelTerminationRequestWithDefaults() *PatchedWritableTunnelTerminationRequest {
+ this := PatchedWritableTunnelTerminationRequest{}
+ return &this
+}
+
+// GetTunnel returns the Tunnel field value if set, zero value otherwise.
+func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() int32 {
+ if o == nil || IsNil(o.Tunnel) {
+ var ret int32
+ return ret
+ }
+ return *o.Tunnel
+}
+
+// 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) {
+ if o == nil || IsNil(o.Tunnel) {
+ return nil, false
+ }
+ return o.Tunnel, true
+}
+
+// HasTunnel returns a boolean if a field has been set.
+func (o *PatchedWritableTunnelTerminationRequest) HasTunnel() bool {
+ if o != nil && !IsNil(o.Tunnel) {
+ return true
+ }
+
+ return false
+}
+
+// SetTunnel gets a reference to the given int32 and assigns it to the Tunnel field.
+func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v int32) {
+ o.Tunnel = &v
+}
+
+// GetRole returns the Role field value if set, zero value otherwise.
+func (o *PatchedWritableTunnelTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole {
+ if o == nil || IsNil(o.Role) {
+ var ret PatchedWritableTunnelTerminationRequestRole
+ return ret
+ }
+ return *o.Role
+}
+
+// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableTunnelTerminationRequest) GetRoleOk() (*PatchedWritableTunnelTerminationRequestRole, bool) {
+ if o == nil || IsNil(o.Role) {
+ return nil, false
+ }
+ return o.Role, true
+}
+
+// HasRole returns a boolean if a field has been set.
+func (o *PatchedWritableTunnelTerminationRequest) HasRole() bool {
+ if o != nil && !IsNil(o.Role) {
+ return true
+ }
+
+ return false
+}
+
+// SetRole gets a reference to the given PatchedWritableTunnelTerminationRequestRole and assigns it to the Role field.
+func (o *PatchedWritableTunnelTerminationRequest) SetRole(v PatchedWritableTunnelTerminationRequestRole) {
+ o.Role = &v
+}
+
+// GetTerminationType returns the TerminationType field value if set, zero value otherwise.
+func (o *PatchedWritableTunnelTerminationRequest) GetTerminationType() string {
+ if o == nil || IsNil(o.TerminationType) {
+ var ret string
+ return ret
+ }
+ return *o.TerminationType
+}
+
+// GetTerminationTypeOk returns a tuple with the TerminationType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableTunnelTerminationRequest) GetTerminationTypeOk() (*string, bool) {
+ if o == nil || IsNil(o.TerminationType) {
+ return nil, false
+ }
+ return o.TerminationType, true
+}
+
+// HasTerminationType returns a boolean if a field has been set.
+func (o *PatchedWritableTunnelTerminationRequest) HasTerminationType() bool {
+ if o != nil && !IsNil(o.TerminationType) {
+ return true
+ }
+
+ return false
+}
+
+// SetTerminationType gets a reference to the given string and assigns it to the TerminationType field.
+func (o *PatchedWritableTunnelTerminationRequest) 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).
+func (o *PatchedWritableTunnelTerminationRequest) GetTerminationId() int64 {
+ if o == nil || IsNil(o.TerminationId.Get()) {
+ var ret int64
+ return ret
+ }
+ return *o.TerminationId.Get()
+}
+
+// GetTerminationIdOk returns a tuple with the TerminationId field value if set, nil otherwise
+// and a 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) GetTerminationIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.TerminationId.Get(), o.TerminationId.IsSet()
+}
+
+// HasTerminationId returns a boolean if a field has been set.
+func (o *PatchedWritableTunnelTerminationRequest) HasTerminationId() bool {
+ if o != nil && o.TerminationId.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetTerminationId gets a reference to the given NullableInt64 and assigns it to the TerminationId field.
+func (o *PatchedWritableTunnelTerminationRequest) SetTerminationId(v int64) {
+ o.TerminationId.Set(&v)
+}
+
+// SetTerminationIdNil sets the value for TerminationId to be an explicit nil
+func (o *PatchedWritableTunnelTerminationRequest) SetTerminationIdNil() {
+ o.TerminationId.Set(nil)
+}
+
+// UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil
+func (o *PatchedWritableTunnelTerminationRequest) 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 *PatchedWritableTunnelTerminationRequest) GetOutsideIp() int32 {
+ if o == nil || IsNil(o.OutsideIp.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.OutsideIp.Get()
+}
+
+// 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) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OutsideIp.Get(), o.OutsideIp.IsSet()
+}
+
+// HasOutsideIp returns a boolean if a field has been set.
+func (o *PatchedWritableTunnelTerminationRequest) HasOutsideIp() bool {
+ if o != nil && o.OutsideIp.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetOutsideIp gets a reference to the given NullableInt32 and assigns it to the OutsideIp field.
+func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v int32) {
+ o.OutsideIp.Set(&v)
+}
+
+// SetOutsideIpNil sets the value for OutsideIp to be an explicit nil
+func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIpNil() {
+ o.OutsideIp.Set(nil)
+}
+
+// UnsetOutsideIp ensures that no value is present for OutsideIp, not even an explicit nil
+func (o *PatchedWritableTunnelTerminationRequest) UnsetOutsideIp() {
+ o.OutsideIp.Unset()
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *PatchedWritableTunnelTerminationRequest) 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 *PatchedWritableTunnelTerminationRequest) 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 *PatchedWritableTunnelTerminationRequest) 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 *PatchedWritableTunnelTerminationRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *PatchedWritableTunnelTerminationRequest) 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 *PatchedWritableTunnelTerminationRequest) 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 *PatchedWritableTunnelTerminationRequest) 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 *PatchedWritableTunnelTerminationRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o PatchedWritableTunnelTerminationRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedWritableTunnelTerminationRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Tunnel) {
+ toSerialize["tunnel"] = o.Tunnel
+ }
+ if !IsNil(o.Role) {
+ toSerialize["role"] = o.Role
+ }
+ if !IsNil(o.TerminationType) {
+ toSerialize["termination_type"] = o.TerminationType
+ }
+ if o.TerminationId.IsSet() {
+ toSerialize["termination_id"] = o.TerminationId.Get()
+ }
+ if o.OutsideIp.IsSet() {
+ toSerialize["outside_ip"] = o.OutsideIp.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 *PatchedWritableTunnelTerminationRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedWritableTunnelTerminationRequest := _PatchedWritableTunnelTerminationRequest{}
+
+ err = json.Unmarshal(data, &varPatchedWritableTunnelTerminationRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedWritableTunnelTerminationRequest(varPatchedWritableTunnelTerminationRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "tunnel")
+ delete(additionalProperties, "role")
+ delete(additionalProperties, "termination_type")
+ delete(additionalProperties, "termination_id")
+ delete(additionalProperties, "outside_ip")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePatchedWritableTunnelTerminationRequest struct {
+ value *PatchedWritableTunnelTerminationRequest
+ isSet bool
+}
+
+func (v NullablePatchedWritableTunnelTerminationRequest) Get() *PatchedWritableTunnelTerminationRequest {
+ return v.value
+}
+
+func (v *NullablePatchedWritableTunnelTerminationRequest) Set(val *PatchedWritableTunnelTerminationRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableTunnelTerminationRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableTunnelTerminationRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableTunnelTerminationRequest(val *PatchedWritableTunnelTerminationRequest) *NullablePatchedWritableTunnelTerminationRequest {
+ return &NullablePatchedWritableTunnelTerminationRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableTunnelTerminationRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableTunnelTerminationRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_tunnel_termination_request_role.go b/model_patched_writable_tunnel_termination_request_role.go
new file mode 100644
index 0000000000..9ddbac2a85
--- /dev/null
+++ b/model_patched_writable_tunnel_termination_request_role.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableTunnelTerminationRequestRole * `peer` - Peer * `hub` - Hub * `spoke` - Spoke
+type PatchedWritableTunnelTerminationRequestRole string
+
+// List of PatchedWritableTunnelTerminationRequest_role
+const (
+ PATCHEDWRITABLETUNNELTERMINATIONREQUESTROLE_PEER PatchedWritableTunnelTerminationRequestRole = "peer"
+ PATCHEDWRITABLETUNNELTERMINATIONREQUESTROLE_HUB PatchedWritableTunnelTerminationRequestRole = "hub"
+ PATCHEDWRITABLETUNNELTERMINATIONREQUESTROLE_SPOKE PatchedWritableTunnelTerminationRequestRole = "spoke"
+)
+
+// All allowed values of PatchedWritableTunnelTerminationRequestRole enum
+var AllowedPatchedWritableTunnelTerminationRequestRoleEnumValues = []PatchedWritableTunnelTerminationRequestRole{
+ "peer",
+ "hub",
+ "spoke",
+}
+
+func (v *PatchedWritableTunnelTerminationRequestRole) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableTunnelTerminationRequestRole(value)
+ for _, existing := range AllowedPatchedWritableTunnelTerminationRequestRoleEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableTunnelTerminationRequestRole", value)
+}
+
+// NewPatchedWritableTunnelTerminationRequestRoleFromValue returns a pointer to a valid PatchedWritableTunnelTerminationRequestRole
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableTunnelTerminationRequestRoleFromValue(v string) (*PatchedWritableTunnelTerminationRequestRole, error) {
+ ev := PatchedWritableTunnelTerminationRequestRole(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableTunnelTerminationRequestRole: valid values are %v", v, AllowedPatchedWritableTunnelTerminationRequestRoleEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableTunnelTerminationRequestRole) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableTunnelTerminationRequestRoleEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableTunnelTerminationRequest_role value
+func (v PatchedWritableTunnelTerminationRequestRole) Ptr() *PatchedWritableTunnelTerminationRequestRole {
+ return &v
+}
+
+type NullablePatchedWritableTunnelTerminationRequestRole struct {
+ value *PatchedWritableTunnelTerminationRequestRole
+ isSet bool
+}
+
+func (v NullablePatchedWritableTunnelTerminationRequestRole) Get() *PatchedWritableTunnelTerminationRequestRole {
+ return v.value
+}
+
+func (v *NullablePatchedWritableTunnelTerminationRequestRole) Set(val *PatchedWritableTunnelTerminationRequestRole) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableTunnelTerminationRequestRole) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableTunnelTerminationRequestRole) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableTunnelTerminationRequestRole(val *PatchedWritableTunnelTerminationRequestRole) *NullablePatchedWritableTunnelTerminationRequestRole {
+ return &NullablePatchedWritableTunnelTerminationRequestRole{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableTunnelTerminationRequestRole) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableTunnelTerminationRequestRole) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_user_request.go b/model_patched_writable_user_request.go
index d11aafd4c6..cbe6bed38f 100644
--- a/model_patched_writable_user_request.go
+++ b/model_patched_writable_user_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -388,10 +388,10 @@ func (o PatchedWritableUserRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableUserRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableUserRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableUserRequest := _PatchedWritableUserRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableUserRequest)
+ err = json.Unmarshal(data, &varPatchedWritableUserRequest)
if err != nil {
return err
@@ -401,7 +401,7 @@ func (o *PatchedWritableUserRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "username")
delete(additionalProperties, "password")
delete(additionalProperties, "first_name")
diff --git a/model_patched_writable_virtual_chassis_request.go b/model_patched_writable_virtual_chassis_request.go
index 0f087b9a96..c782b8ea70 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -322,10 +322,10 @@ func (o PatchedWritableVirtualChassisRequest) ToMap() (map[string]interface{}, e
return toSerialize, nil
}
-func (o *PatchedWritableVirtualChassisRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableVirtualChassisRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableVirtualChassisRequest := _PatchedWritableVirtualChassisRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableVirtualChassisRequest)
+ err = json.Unmarshal(data, &varPatchedWritableVirtualChassisRequest)
if err != nil {
return err
@@ -335,7 +335,7 @@ func (o *PatchedWritableVirtualChassisRequest) UnmarshalJSON(bytes []byte) (err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "domain")
delete(additionalProperties, "master")
diff --git a/model_patched_writable_virtual_device_context_request.go b/model_patched_writable_virtual_device_context_request.go
index 916e583977..0fc75e7677 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,16 +22,15 @@ type PatchedWritableVirtualDeviceContextRequest struct {
Name *string `json:"name,omitempty"`
Device NullableInt32 `json:"device,omitempty"`
// Numeric identifier unique to the parent device
- Identifier NullableInt32 `json:"identifier,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"`
- // * `active` - Active * `planned` - Planned * `offline` - Offline
- Status *string `json:"status,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Identifier NullableInt32 `json:"identifier,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
+ PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"`
+ Status *PatchedWritableVirtualDeviceContextRequestStatus `json:"status,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -302,9 +301,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetPrimaryIp6() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualDeviceContextRequest) GetStatus() string {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetStatus() PatchedWritableVirtualDeviceContextRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritableVirtualDeviceContextRequestStatus
return ret
}
return *o.Status
@@ -312,7 +311,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetStatus() string {
// 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 *PatchedWritableVirtualDeviceContextRequest) GetStatusOk() (*string, bool) {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetStatusOk() (*PatchedWritableVirtualDeviceContextRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -328,8 +327,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableVirtualDeviceContextRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritableVirtualDeviceContextRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableVirtualDeviceContextRequest) SetStatus(v PatchedWritableVirtualDeviceContextRequestStatus) {
o.Status = &v
}
@@ -512,10 +511,10 @@ func (o PatchedWritableVirtualDeviceContextRequest) ToMap() (map[string]interfac
return toSerialize, nil
}
-func (o *PatchedWritableVirtualDeviceContextRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableVirtualDeviceContextRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableVirtualDeviceContextRequest := _PatchedWritableVirtualDeviceContextRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableVirtualDeviceContextRequest)
+ err = json.Unmarshal(data, &varPatchedWritableVirtualDeviceContextRequest)
if err != nil {
return err
@@ -525,7 +524,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnmarshalJSON(bytes []byte)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "device")
delete(additionalProperties, "identifier")
diff --git a/model_patched_writable_virtual_device_context_request_status.go b/model_patched_writable_virtual_device_context_request_status.go
new file mode 100644
index 0000000000..729bbac6ba
--- /dev/null
+++ b/model_patched_writable_virtual_device_context_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: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableVirtualDeviceContextRequestStatus * `active` - Active * `planned` - Planned * `offline` - Offline
+type PatchedWritableVirtualDeviceContextRequestStatus string
+
+// List of PatchedWritableVirtualDeviceContextRequest_status
+const (
+ PATCHEDWRITABLEVIRTUALDEVICECONTEXTREQUESTSTATUS_ACTIVE PatchedWritableVirtualDeviceContextRequestStatus = "active"
+ PATCHEDWRITABLEVIRTUALDEVICECONTEXTREQUESTSTATUS_PLANNED PatchedWritableVirtualDeviceContextRequestStatus = "planned"
+ PATCHEDWRITABLEVIRTUALDEVICECONTEXTREQUESTSTATUS_OFFLINE PatchedWritableVirtualDeviceContextRequestStatus = "offline"
+)
+
+// All allowed values of PatchedWritableVirtualDeviceContextRequestStatus enum
+var AllowedPatchedWritableVirtualDeviceContextRequestStatusEnumValues = []PatchedWritableVirtualDeviceContextRequestStatus{
+ "active",
+ "planned",
+ "offline",
+}
+
+func (v *PatchedWritableVirtualDeviceContextRequestStatus) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableVirtualDeviceContextRequestStatus(value)
+ for _, existing := range AllowedPatchedWritableVirtualDeviceContextRequestStatusEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableVirtualDeviceContextRequestStatus", value)
+}
+
+// NewPatchedWritableVirtualDeviceContextRequestStatusFromValue returns a pointer to a valid PatchedWritableVirtualDeviceContextRequestStatus
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableVirtualDeviceContextRequestStatusFromValue(v string) (*PatchedWritableVirtualDeviceContextRequestStatus, error) {
+ ev := PatchedWritableVirtualDeviceContextRequestStatus(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableVirtualDeviceContextRequestStatus: valid values are %v", v, AllowedPatchedWritableVirtualDeviceContextRequestStatusEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableVirtualDeviceContextRequestStatus) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableVirtualDeviceContextRequestStatusEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableVirtualDeviceContextRequest_status value
+func (v PatchedWritableVirtualDeviceContextRequestStatus) Ptr() *PatchedWritableVirtualDeviceContextRequestStatus {
+ return &v
+}
+
+type NullablePatchedWritableVirtualDeviceContextRequestStatus struct {
+ value *PatchedWritableVirtualDeviceContextRequestStatus
+ isSet bool
+}
+
+func (v NullablePatchedWritableVirtualDeviceContextRequestStatus) Get() *PatchedWritableVirtualDeviceContextRequestStatus {
+ return v.value
+}
+
+func (v *NullablePatchedWritableVirtualDeviceContextRequestStatus) Set(val *PatchedWritableVirtualDeviceContextRequestStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableVirtualDeviceContextRequestStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableVirtualDeviceContextRequestStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableVirtualDeviceContextRequestStatus(val *PatchedWritableVirtualDeviceContextRequestStatus) *NullablePatchedWritableVirtualDeviceContextRequestStatus {
+ return &NullablePatchedWritableVirtualDeviceContextRequestStatus{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableVirtualDeviceContextRequestStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableVirtualDeviceContextRequestStatus) 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_writable_virtual_disk_request.go
new file mode 100644
index 0000000000..3344146b85
--- /dev/null
+++ b/model_patched_writable_virtual_disk_request.go
@@ -0,0 +1,338 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PatchedWritableVirtualDiskRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedWritableVirtualDiskRequest{}
+
+// PatchedWritableVirtualDiskRequest Adds support for custom fields and tags.
+type PatchedWritableVirtualDiskRequest struct {
+ VirtualMachine *int32 `json:"virtual_machine,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Size *int32 `json:"size,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedWritableVirtualDiskRequest PatchedWritableVirtualDiskRequest
+
+// NewPatchedWritableVirtualDiskRequest instantiates a new PatchedWritableVirtualDiskRequest object
+// This constructor will assign default values to properties that have it defined,
+// and 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{}
+ return &this
+}
+
+// NewPatchedWritableVirtualDiskRequestWithDefaults instantiates a new PatchedWritableVirtualDiskRequest object
+// This constructor 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{}
+ return &this
+}
+
+// GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise.
+func (o *PatchedWritableVirtualDiskRequest) GetVirtualMachine() int32 {
+ if o == nil || IsNil(o.VirtualMachine) {
+ var ret int32
+ return ret
+ }
+ return *o.VirtualMachine
+}
+
+// GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableVirtualDiskRequest) GetVirtualMachineOk() (*int32, bool) {
+ if o == nil || IsNil(o.VirtualMachine) {
+ return nil, false
+ }
+ return o.VirtualMachine, true
+}
+
+// HasVirtualMachine returns a boolean if a field has been set.
+func (o *PatchedWritableVirtualDiskRequest) HasVirtualMachine() bool {
+ if o != nil && !IsNil(o.VirtualMachine) {
+ return true
+ }
+
+ return false
+}
+
+// SetVirtualMachine gets a reference to the given int32 and assigns it to the VirtualMachine field.
+func (o *PatchedWritableVirtualDiskRequest) SetVirtualMachine(v int32) {
+ o.VirtualMachine = &v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) SetName(v string) {
+ o.Name = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetSize returns the Size field value if set, zero value otherwise.
+func (o *PatchedWritableVirtualDiskRequest) GetSize() int32 {
+ if o == nil || IsNil(o.Size) {
+ var ret int32
+ return ret
+ }
+ return *o.Size
+}
+
+// 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) {
+ if o == nil || IsNil(o.Size) {
+ return nil, false
+ }
+ return o.Size, true
+}
+
+// HasSize returns a boolean if a field has been set.
+func (o *PatchedWritableVirtualDiskRequest) HasSize() bool {
+ if o != nil && !IsNil(o.Size) {
+ return true
+ }
+
+ return false
+}
+
+// SetSize gets a reference to the given int32 and assigns it to the Size field.
+func (o *PatchedWritableVirtualDiskRequest) SetSize(v int32) {
+ o.Size = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o PatchedWritableVirtualDiskRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedWritableVirtualDiskRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.VirtualMachine) {
+ toSerialize["virtual_machine"] = o.VirtualMachine
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.Size) {
+ 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 *PatchedWritableVirtualDiskRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedWritableVirtualDiskRequest := _PatchedWritableVirtualDiskRequest{}
+
+ err = json.Unmarshal(data, &varPatchedWritableVirtualDiskRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedWritableVirtualDiskRequest(varPatchedWritableVirtualDiskRequest)
+
+ 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 NullablePatchedWritableVirtualDiskRequest struct {
+ value *PatchedWritableVirtualDiskRequest
+ isSet bool
+}
+
+func (v NullablePatchedWritableVirtualDiskRequest) Get() *PatchedWritableVirtualDiskRequest {
+ return v.value
+}
+
+func (v *NullablePatchedWritableVirtualDiskRequest) Set(val *PatchedWritableVirtualDiskRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableVirtualDiskRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableVirtualDiskRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableVirtualDiskRequest(val *PatchedWritableVirtualDiskRequest) *NullablePatchedWritableVirtualDiskRequest {
+ return &NullablePatchedWritableVirtualDiskRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableVirtualDiskRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableVirtualDiskRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_virtual_machine_with_config_context_request.go b/model_patched_writable_virtual_machine_with_config_context_request.go
index 641320c55c..13272bcd6d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,24 +19,23 @@ var _ MappedNullable = &PatchedWritableVirtualMachineWithConfigContextRequest{}
// PatchedWritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags.
type PatchedWritableVirtualMachineWithConfigContextRequest struct {
- Name *string `json:"name,omitempty"`
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- Site NullableInt32 `json:"site,omitempty"`
- Cluster NullableInt32 `json:"cluster,omitempty"`
- Device NullableInt32 `json:"device,omitempty"`
- Role NullableInt32 `json:"role,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Platform NullableInt32 `json:"platform,omitempty"`
- PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"`
- Vcpus NullableFloat64 `json:"vcpus,omitempty"`
- Memory NullableInt32 `json:"memory,omitempty"`
- Disk NullableInt32 `json:"disk,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
+ 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"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData map[string]interface{} `json:"local_context_data,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -94,9 +93,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetName(v string
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() string {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret ModuleStatusValue
return ret
}
return *o.Status
@@ -104,7 +103,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() stri
// 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() (*string, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -120,8 +119,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasStatus() bool
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) {
o.Status = &v
}
@@ -663,9 +662,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetComments(v st
}
// GetLocalContextData returns the LocalContextData field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetLocalContextData() map[string]interface{} {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetLocalContextData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.LocalContextData
@@ -674,11 +673,11 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetLocalContextD
// GetLocalContextDataOk returns a tuple with the LocalContextData field value if set, nil otherwise
// and a 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) GetLocalContextDataOk() (map[string]interface{}, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetLocalContextDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.LocalContextData) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.LocalContextData, true
+ return &o.LocalContextData, true
}
// HasLocalContextData returns a boolean if a field has been set.
@@ -690,8 +689,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasLocalContextD
return false
}
-// SetLocalContextData gets a reference to the given map[string]interface{} and assigns it to the LocalContextData field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetLocalContextData(v map[string]interface{}) {
+// SetLocalContextData gets a reference to the given interface{} and assigns it to the LocalContextData field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetLocalContextData(v interface{}) {
o.LocalContextData = v
}
@@ -831,10 +830,10 @@ func (o PatchedWritableVirtualMachineWithConfigContextRequest) ToMap() (map[stri
return toSerialize, nil
}
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableVirtualMachineWithConfigContextRequest := _PatchedWritableVirtualMachineWithConfigContextRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableVirtualMachineWithConfigContextRequest)
+ err = json.Unmarshal(data, &varPatchedWritableVirtualMachineWithConfigContextRequest)
if err != nil {
return err
@@ -844,7 +843,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(by
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "status")
delete(additionalProperties, "site")
diff --git a/model_patched_writable_vlan_request.go b/model_patched_writable_vlan_request.go
index 3669494052..a826986be1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,11 +24,10 @@ type PatchedWritableVLANRequest struct {
// VLAN group (optional)
Group NullableInt32 `json:"group,omitempty"`
// Numeric VLAN ID (1-4094)
- Vid *int32 `json:"vid,omitempty"`
- Name *string `json:"name,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- // Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
+ 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"`
@@ -251,9 +250,9 @@ func (o *PatchedWritableVLANRequest) UnsetTenant() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableVLANRequest) GetStatus() string {
+func (o *PatchedWritableVLANRequest) GetStatus() PatchedWritableVLANRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritableVLANRequestStatus
return ret
}
return *o.Status
@@ -261,7 +260,7 @@ func (o *PatchedWritableVLANRequest) GetStatus() string {
// 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 *PatchedWritableVLANRequest) GetStatusOk() (*string, bool) {
+func (o *PatchedWritableVLANRequest) GetStatusOk() (*PatchedWritableVLANRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -277,8 +276,8 @@ func (o *PatchedWritableVLANRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableVLANRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritableVLANRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatus) {
o.Status = &v
}
@@ -504,10 +503,10 @@ func (o PatchedWritableVLANRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableVLANRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableVLANRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableVLANRequest := _PatchedWritableVLANRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableVLANRequest)
+ err = json.Unmarshal(data, &varPatchedWritableVLANRequest)
if err != nil {
return err
@@ -517,7 +516,7 @@ func (o *PatchedWritableVLANRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "site")
delete(additionalProperties, "group")
delete(additionalProperties, "vid")
diff --git a/model_patched_writable_vlan_request_status.go b/model_patched_writable_vlan_request_status.go
new file mode 100644
index 0000000000..e18d3daf6a
--- /dev/null
+++ b/model_patched_writable_vlan_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: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableVLANRequestStatus Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
+type PatchedWritableVLANRequestStatus string
+
+// List of PatchedWritableVLANRequest_status
+const (
+ PATCHEDWRITABLEVLANREQUESTSTATUS_ACTIVE PatchedWritableVLANRequestStatus = "active"
+ PATCHEDWRITABLEVLANREQUESTSTATUS_RESERVED PatchedWritableVLANRequestStatus = "reserved"
+ PATCHEDWRITABLEVLANREQUESTSTATUS_DEPRECATED PatchedWritableVLANRequestStatus = "deprecated"
+)
+
+// All allowed values of PatchedWritableVLANRequestStatus enum
+var AllowedPatchedWritableVLANRequestStatusEnumValues = []PatchedWritableVLANRequestStatus{
+ "active",
+ "reserved",
+ "deprecated",
+}
+
+func (v *PatchedWritableVLANRequestStatus) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableVLANRequestStatus(value)
+ for _, existing := range AllowedPatchedWritableVLANRequestStatusEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableVLANRequestStatus", value)
+}
+
+// NewPatchedWritableVLANRequestStatusFromValue returns a pointer to a valid PatchedWritableVLANRequestStatus
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableVLANRequestStatusFromValue(v string) (*PatchedWritableVLANRequestStatus, error) {
+ ev := PatchedWritableVLANRequestStatus(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableVLANRequestStatus: valid values are %v", v, AllowedPatchedWritableVLANRequestStatusEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableVLANRequestStatus) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableVLANRequestStatusEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableVLANRequest_status value
+func (v PatchedWritableVLANRequestStatus) Ptr() *PatchedWritableVLANRequestStatus {
+ return &v
+}
+
+type NullablePatchedWritableVLANRequestStatus struct {
+ value *PatchedWritableVLANRequestStatus
+ isSet bool
+}
+
+func (v NullablePatchedWritableVLANRequestStatus) Get() *PatchedWritableVLANRequestStatus {
+ return v.value
+}
+
+func (v *NullablePatchedWritableVLANRequestStatus) Set(val *PatchedWritableVLANRequestStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableVLANRequestStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableVLANRequestStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableVLANRequestStatus(val *PatchedWritableVLANRequestStatus) *NullablePatchedWritableVLANRequestStatus {
+ return &NullablePatchedWritableVLANRequestStatus{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableVLANRequestStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableVLANRequestStatus) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_vm_interface_request.go b/model_patched_writable_vm_interface_request.go
index 6709a3be00..a4c9dae8e3 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,21 +19,20 @@ var _ MappedNullable = &PatchedWritableVMInterfaceRequest{}
// PatchedWritableVMInterfaceRequest Adds support for custom fields and tags.
type PatchedWritableVMInterfaceRequest struct {
- VirtualMachine *int32 `json:"virtual_machine,omitempty"`
- Name *string `json:"name,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Bridge NullableInt32 `json:"bridge,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- MacAddress NullableString `json:"mac_address,omitempty"`
- Description *string `json:"description,omitempty"`
- // IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All)
- Mode *string `json:"mode,omitempty"`
- UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"`
- TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ VirtualMachine *int32 `json:"virtual_machine,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Bridge NullableInt32 `json:"bridge,omitempty"`
+ Mtu NullableInt32 `json:"mtu,omitempty"`
+ MacAddress NullableString `json:"mac_address,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
+ UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"`
+ TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
+ Vrf NullableInt32 `json:"vrf,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -357,9 +356,9 @@ func (o *PatchedWritableVMInterfaceRequest) SetDescription(v string) {
}
// GetMode returns the Mode field value if set, zero value otherwise.
-func (o *PatchedWritableVMInterfaceRequest) GetMode() string {
+func (o *PatchedWritableVMInterfaceRequest) GetMode() PatchedWritableInterfaceRequestMode {
if o == nil || IsNil(o.Mode) {
- var ret string
+ var ret PatchedWritableInterfaceRequestMode
return ret
}
return *o.Mode
@@ -367,7 +366,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetMode() string {
// GetModeOk returns a tuple with the Mode field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableVMInterfaceRequest) GetModeOk() (*string, bool) {
+func (o *PatchedWritableVMInterfaceRequest) GetModeOk() (*PatchedWritableInterfaceRequestMode, bool) {
if o == nil || IsNil(o.Mode) {
return nil, false
}
@@ -383,8 +382,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasMode() bool {
return false
}
-// SetMode gets a reference to the given string and assigns it to the Mode field.
-func (o *PatchedWritableVMInterfaceRequest) SetMode(v string) {
+// SetMode gets a reference to the given PatchedWritableInterfaceRequestMode and assigns it to the Mode field.
+func (o *PatchedWritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode) {
o.Mode = &v
}
@@ -630,10 +629,10 @@ func (o PatchedWritableVMInterfaceRequest) ToMap() (map[string]interface{}, erro
return toSerialize, nil
}
-func (o *PatchedWritableVMInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableVMInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableVMInterfaceRequest := _PatchedWritableVMInterfaceRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableVMInterfaceRequest)
+ err = json.Unmarshal(data, &varPatchedWritableVMInterfaceRequest)
if err != nil {
return err
@@ -643,7 +642,7 @@ func (o *PatchedWritableVMInterfaceRequest) UnmarshalJSON(bytes []byte) (err err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "virtual_machine")
delete(additionalProperties, "name")
delete(additionalProperties, "enabled")
diff --git a/model_patched_writable_vrf_request.go b/model_patched_writable_vrf_request.go
index 6a28aa31c5..134c75945a 100644
--- a/model_patched_writable_vrf_request.go
+++ b/model_patched_writable_vrf_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -443,10 +443,10 @@ func (o PatchedWritableVRFRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableVRFRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableVRFRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableVRFRequest := _PatchedWritableVRFRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableVRFRequest)
+ err = json.Unmarshal(data, &varPatchedWritableVRFRequest)
if err != nil {
return err
@@ -456,7 +456,7 @@ func (o *PatchedWritableVRFRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "rd")
delete(additionalProperties, "tenant")
diff --git a/model_patched_writable_wireless_lan_group_request.go b/model_patched_writable_wireless_lan_group_request.go
index 0de1830187..d1a5969f7d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -286,10 +286,10 @@ func (o PatchedWritableWirelessLANGroupRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PatchedWritableWirelessLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableWirelessLANGroupRequest := _PatchedWritableWirelessLANGroupRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableWirelessLANGroupRequest)
+ err = json.Unmarshal(data, &varPatchedWritableWirelessLANGroupRequest)
if err != nil {
return err
@@ -299,7 +299,7 @@ func (o *PatchedWritableWirelessLANGroupRequest) UnmarshalJSON(bytes []byte) (er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_patched_writable_wireless_lan_request.go b/model_patched_writable_wireless_lan_request.go
index a6ca8f75a4..d82ec88953 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,21 +19,18 @@ var _ MappedNullable = &PatchedWritableWirelessLANRequest{}
// PatchedWritableWirelessLANRequest Adds support for custom fields and tags.
type PatchedWritableWirelessLANRequest struct {
- Ssid *string `json:"ssid,omitempty"`
- Description *string `json:"description,omitempty"`
- Group NullableInt32 `json:"group,omitempty"`
- // * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
- Vlan NullableInt32 `json:"vlan,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise
- AuthType *string `json:"auth_type,omitempty"`
- // * `auto` - Auto * `tkip` - TKIP * `aes` - AES
- AuthCipher *string `json:"auth_cipher,omitempty"`
- AuthPsk *string `json:"auth_psk,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Ssid *string `json:"ssid,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Group NullableInt32 `json:"group,omitempty"`
+ Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"`
+ Vlan NullableInt32 `json:"vlan,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
+ AuthType *AuthenticationType1 `json:"auth_type,omitempty"`
+ AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"`
+ AuthPsk *string `json:"auth_psk,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -164,9 +161,9 @@ func (o *PatchedWritableWirelessLANRequest) UnsetGroup() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableWirelessLANRequest) GetStatus() string {
+func (o *PatchedWritableWirelessLANRequest) GetStatus() PatchedWritableWirelessLANRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritableWirelessLANRequestStatus
return ret
}
return *o.Status
@@ -174,7 +171,7 @@ func (o *PatchedWritableWirelessLANRequest) GetStatus() string {
// 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 *PatchedWritableWirelessLANRequest) GetStatusOk() (*string, bool) {
+func (o *PatchedWritableWirelessLANRequest) GetStatusOk() (*PatchedWritableWirelessLANRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -190,8 +187,8 @@ func (o *PatchedWritableWirelessLANRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableWirelessLANRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritableWirelessLANRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessLANRequestStatus) {
o.Status = &v
}
@@ -282,9 +279,9 @@ func (o *PatchedWritableWirelessLANRequest) UnsetTenant() {
}
// GetAuthType returns the AuthType field value if set, zero value otherwise.
-func (o *PatchedWritableWirelessLANRequest) GetAuthType() string {
+func (o *PatchedWritableWirelessLANRequest) GetAuthType() AuthenticationType1 {
if o == nil || IsNil(o.AuthType) {
- var ret string
+ var ret AuthenticationType1
return ret
}
return *o.AuthType
@@ -292,7 +289,7 @@ func (o *PatchedWritableWirelessLANRequest) GetAuthType() string {
// 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 *PatchedWritableWirelessLANRequest) GetAuthTypeOk() (*string, bool) {
+func (o *PatchedWritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType1, bool) {
if o == nil || IsNil(o.AuthType) {
return nil, false
}
@@ -308,15 +305,15 @@ func (o *PatchedWritableWirelessLANRequest) HasAuthType() bool {
return false
}
-// SetAuthType gets a reference to the given string and assigns it to the AuthType field.
-func (o *PatchedWritableWirelessLANRequest) SetAuthType(v string) {
+// SetAuthType gets a reference to the given AuthenticationType1 and assigns it to the AuthType field.
+func (o *PatchedWritableWirelessLANRequest) SetAuthType(v AuthenticationType1) {
o.AuthType = &v
}
// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise.
-func (o *PatchedWritableWirelessLANRequest) GetAuthCipher() string {
+func (o *PatchedWritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher {
if o == nil || IsNil(o.AuthCipher) {
- var ret string
+ var ret AuthenticationCipher
return ret
}
return *o.AuthCipher
@@ -324,7 +321,7 @@ func (o *PatchedWritableWirelessLANRequest) GetAuthCipher() string {
// GetAuthCipherOk returns a tuple with the AuthCipher field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableWirelessLANRequest) GetAuthCipherOk() (*string, bool) {
+func (o *PatchedWritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher, bool) {
if o == nil || IsNil(o.AuthCipher) {
return nil, false
}
@@ -340,8 +337,8 @@ func (o *PatchedWritableWirelessLANRequest) HasAuthCipher() bool {
return false
}
-// SetAuthCipher gets a reference to the given string and assigns it to the AuthCipher field.
-func (o *PatchedWritableWirelessLANRequest) SetAuthCipher(v string) {
+// SetAuthCipher gets a reference to the given AuthenticationCipher and assigns it to the AuthCipher field.
+func (o *PatchedWritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher) {
o.AuthCipher = &v
}
@@ -527,10 +524,10 @@ func (o PatchedWritableWirelessLANRequest) ToMap() (map[string]interface{}, erro
return toSerialize, nil
}
-func (o *PatchedWritableWirelessLANRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableWirelessLANRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableWirelessLANRequest := _PatchedWritableWirelessLANRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableWirelessLANRequest)
+ err = json.Unmarshal(data, &varPatchedWritableWirelessLANRequest)
if err != nil {
return err
@@ -540,7 +537,7 @@ func (o *PatchedWritableWirelessLANRequest) UnmarshalJSON(bytes []byte) (err err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "ssid")
delete(additionalProperties, "description")
delete(additionalProperties, "group")
diff --git a/model_patched_writable_wireless_lan_request_status.go b/model_patched_writable_wireless_lan_request_status.go
new file mode 100644
index 0000000000..ae621f7d0c
--- /dev/null
+++ b/model_patched_writable_wireless_lan_request_status.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableWirelessLANRequestStatus * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated
+type PatchedWritableWirelessLANRequestStatus string
+
+// List of PatchedWritableWirelessLANRequest_status
+const (
+ PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_ACTIVE PatchedWritableWirelessLANRequestStatus = "active"
+ PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_RESERVED PatchedWritableWirelessLANRequestStatus = "reserved"
+ PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_DISABLED PatchedWritableWirelessLANRequestStatus = "disabled"
+ PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_DEPRECATED PatchedWritableWirelessLANRequestStatus = "deprecated"
+)
+
+// All allowed values of PatchedWritableWirelessLANRequestStatus enum
+var AllowedPatchedWritableWirelessLANRequestStatusEnumValues = []PatchedWritableWirelessLANRequestStatus{
+ "active",
+ "reserved",
+ "disabled",
+ "deprecated",
+}
+
+func (v *PatchedWritableWirelessLANRequestStatus) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableWirelessLANRequestStatus(value)
+ for _, existing := range AllowedPatchedWritableWirelessLANRequestStatusEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableWirelessLANRequestStatus", value)
+}
+
+// NewPatchedWritableWirelessLANRequestStatusFromValue returns a pointer to a valid PatchedWritableWirelessLANRequestStatus
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableWirelessLANRequestStatusFromValue(v string) (*PatchedWritableWirelessLANRequestStatus, error) {
+ ev := PatchedWritableWirelessLANRequestStatus(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableWirelessLANRequestStatus: valid values are %v", v, AllowedPatchedWritableWirelessLANRequestStatusEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableWirelessLANRequestStatus) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableWirelessLANRequestStatusEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableWirelessLANRequest_status value
+func (v PatchedWritableWirelessLANRequestStatus) Ptr() *PatchedWritableWirelessLANRequestStatus {
+ return &v
+}
+
+type NullablePatchedWritableWirelessLANRequestStatus struct {
+ value *PatchedWritableWirelessLANRequestStatus
+ isSet bool
+}
+
+func (v NullablePatchedWritableWirelessLANRequestStatus) Get() *PatchedWritableWirelessLANRequestStatus {
+ return v.value
+}
+
+func (v *NullablePatchedWritableWirelessLANRequestStatus) Set(val *PatchedWritableWirelessLANRequestStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableWirelessLANRequestStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableWirelessLANRequestStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableWirelessLANRequestStatus(val *PatchedWritableWirelessLANRequestStatus) *NullablePatchedWritableWirelessLANRequestStatus {
+ return &NullablePatchedWritableWirelessLANRequestStatus{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableWirelessLANRequestStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableWirelessLANRequestStatus) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_wireless_link_request.go b/model_patched_writable_wireless_link_request.go
index 7a65829550..25d92caae9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,16 +19,13 @@ 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"`
- // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise
- AuthType *string `json:"auth_type,omitempty"`
- // * `auto` - Auto * `tkip` - TKIP * `aes` - AES
- AuthCipher *string `json:"auth_cipher,omitempty"`
+ 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"`
@@ -153,9 +150,9 @@ func (o *PatchedWritableWirelessLinkRequest) SetSsid(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableWirelessLinkRequest) GetStatus() string {
+func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret CableStatusValue
return ret
}
return *o.Status
@@ -163,7 +160,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -179,8 +176,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PatchedWritableWirelessLinkRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field.
+func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue) {
o.Status = &v
}
@@ -228,9 +225,9 @@ func (o *PatchedWritableWirelessLinkRequest) UnsetTenant() {
}
// GetAuthType returns the AuthType field value if set, zero value otherwise.
-func (o *PatchedWritableWirelessLinkRequest) GetAuthType() string {
+func (o *PatchedWritableWirelessLinkRequest) GetAuthType() AuthenticationType1 {
if o == nil || IsNil(o.AuthType) {
- var ret string
+ var ret AuthenticationType1
return ret
}
return *o.AuthType
@@ -238,7 +235,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetAuthType() string {
// 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 *PatchedWritableWirelessLinkRequest) GetAuthTypeOk() (*string, bool) {
+func (o *PatchedWritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType1, bool) {
if o == nil || IsNil(o.AuthType) {
return nil, false
}
@@ -254,15 +251,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasAuthType() bool {
return false
}
-// SetAuthType gets a reference to the given string and assigns it to the AuthType field.
-func (o *PatchedWritableWirelessLinkRequest) SetAuthType(v string) {
+// SetAuthType gets a reference to the given AuthenticationType1 and assigns it to the AuthType field.
+func (o *PatchedWritableWirelessLinkRequest) SetAuthType(v AuthenticationType1) {
o.AuthType = &v
}
// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise.
-func (o *PatchedWritableWirelessLinkRequest) GetAuthCipher() string {
+func (o *PatchedWritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher {
if o == nil || IsNil(o.AuthCipher) {
- var ret string
+ var ret AuthenticationCipher
return ret
}
return *o.AuthCipher
@@ -270,7 +267,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetAuthCipher() string {
// GetAuthCipherOk returns a tuple with the AuthCipher field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableWirelessLinkRequest) GetAuthCipherOk() (*string, bool) {
+func (o *PatchedWritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher, bool) {
if o == nil || IsNil(o.AuthCipher) {
return nil, false
}
@@ -286,8 +283,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasAuthCipher() bool {
return false
}
-// SetAuthCipher gets a reference to the given string and assigns it to the AuthCipher field.
-func (o *PatchedWritableWirelessLinkRequest) SetAuthCipher(v string) {
+// SetAuthCipher gets a reference to the given AuthenticationCipher and assigns it to the AuthCipher field.
+func (o *PatchedWritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher) {
o.AuthCipher = &v
}
@@ -505,10 +502,10 @@ func (o PatchedWritableWirelessLinkRequest) ToMap() (map[string]interface{}, err
return toSerialize, nil
}
-func (o *PatchedWritableWirelessLinkRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PatchedWritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedWritableWirelessLinkRequest := _PatchedWritableWirelessLinkRequest{}
- err = json.Unmarshal(bytes, &varPatchedWritableWirelessLinkRequest)
+ err = json.Unmarshal(data, &varPatchedWritableWirelessLinkRequest)
if err != nil {
return err
@@ -518,7 +515,7 @@ func (o *PatchedWritableWirelessLinkRequest) UnmarshalJSON(bytes []byte) (err er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "interface_a")
delete(additionalProperties, "interface_b")
delete(additionalProperties, "ssid")
diff --git a/model_platform.go b/model_platform.go
index 8f03383fae..82ebf5f0e6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -509,10 +510,39 @@ func (o Platform) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Platform) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Platform) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "device_count",
+ "virtualmachine_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)
+ }
+ }
+
varPlatform := _Platform{}
- err = json.Unmarshal(bytes, &varPlatform)
+ err = json.Unmarshal(data, &varPlatform)
if err != nil {
return err
@@ -522,7 +552,7 @@ func (o *Platform) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_platform_request.go b/model_platform_request.go
index 2d302a3555..3023187ec7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 PlatformRequest type satisfies the MappedNullable interface at compile time
@@ -315,10 +316,32 @@ func (o PlatformRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PlatformRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PlatformRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varPlatformRequest := _PlatformRequest{}
- err = json.Unmarshal(bytes, &varPlatformRequest)
+ err = json.Unmarshal(data, &varPlatformRequest)
if err != nil {
return err
@@ -328,7 +351,7 @@ func (o *PlatformRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "manufacturer")
diff --git a/model_power_feed.go b/model_power_feed.go
index dc739a3331..d142cb765a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -1000,10 +1001,45 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerFeed) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerFeed) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "power_panel",
+ "name",
+ "cable",
+ "cable_end",
+ "link_peers",
+ "link_peers_type",
+ "connected_endpoints",
+ "connected_endpoints_type",
+ "connected_endpoints_reachable",
+ "created",
+ "last_updated",
+ "_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)
+ }
+ }
+
varPowerFeed := _PowerFeed{}
- err = json.Unmarshal(bytes, &varPowerFeed)
+ err = json.Unmarshal(data, &varPowerFeed)
if err != nil {
return err
@@ -1013,7 +1049,7 @@ func (o *PowerFeed) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_power_feed_phase.go b/model_power_feed_phase.go
index 77a2f09077..373e83cf40 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &PowerFeedPhase{}
// PowerFeedPhase struct for PowerFeedPhase
type PowerFeedPhase struct {
- // * `single-phase` - Single phase * `three-phase` - Three-phase
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *PatchedWritablePowerFeedRequestPhase `json:"value,omitempty"`
+ Label *PowerFeedPhaseLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewPowerFeedPhaseWithDefaults() *PowerFeedPhase {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *PowerFeedPhase) GetValue() string {
+func (o *PowerFeedPhase) GetValue() PatchedWritablePowerFeedRequestPhase {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestPhase
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *PowerFeedPhase) GetValue() string {
// 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 *PowerFeedPhase) GetValueOk() (*string, bool) {
+func (o *PowerFeedPhase) GetValueOk() (*PatchedWritablePowerFeedRequestPhase, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *PowerFeedPhase) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *PowerFeedPhase) SetValue(v string) {
+// SetValue gets a reference to the given PatchedWritablePowerFeedRequestPhase and assigns it to the Value field.
+func (o *PowerFeedPhase) SetValue(v PatchedWritablePowerFeedRequestPhase) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *PowerFeedPhase) GetLabel() string {
+func (o *PowerFeedPhase) GetLabel() PowerFeedPhaseLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret PowerFeedPhaseLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *PowerFeedPhase) 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 *PowerFeedPhase) GetLabelOk() (*string, bool) {
+func (o *PowerFeedPhase) GetLabelOk() (*PowerFeedPhaseLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *PowerFeedPhase) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PowerFeedPhase) SetLabel(v string) {
+// SetLabel gets a reference to the given PowerFeedPhaseLabel and assigns it to the Label field.
+func (o *PowerFeedPhase) SetLabel(v PowerFeedPhaseLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o PowerFeedPhase) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerFeedPhase) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerFeedPhase) UnmarshalJSON(data []byte) (err error) {
varPowerFeedPhase := _PowerFeedPhase{}
- err = json.Unmarshal(bytes, &varPowerFeedPhase)
+ err = json.Unmarshal(data, &varPowerFeedPhase)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *PowerFeedPhase) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_power_feed_phase_label.go b/model_power_feed_phase_label.go
new file mode 100644
index 0000000000..864a8e8cc7
--- /dev/null
+++ b/model_power_feed_phase_label.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PowerFeedPhaseLabel the model 'PowerFeedPhaseLabel'
+type PowerFeedPhaseLabel string
+
+// List of PowerFeed_phase_label
+const (
+ POWERFEEDPHASELABEL_SINGLE_PHASE PowerFeedPhaseLabel = "Single phase"
+ POWERFEEDPHASELABEL_THREE_PHASE PowerFeedPhaseLabel = "Three-phase"
+)
+
+// All allowed values of PowerFeedPhaseLabel enum
+var AllowedPowerFeedPhaseLabelEnumValues = []PowerFeedPhaseLabel{
+ "Single phase",
+ "Three-phase",
+}
+
+func (v *PowerFeedPhaseLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PowerFeedPhaseLabel(value)
+ for _, existing := range AllowedPowerFeedPhaseLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PowerFeedPhaseLabel", value)
+}
+
+// NewPowerFeedPhaseLabelFromValue returns a pointer to a valid PowerFeedPhaseLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPowerFeedPhaseLabelFromValue(v string) (*PowerFeedPhaseLabel, error) {
+ ev := PowerFeedPhaseLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PowerFeedPhaseLabel: valid values are %v", v, AllowedPowerFeedPhaseLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PowerFeedPhaseLabel) IsValid() bool {
+ for _, existing := range AllowedPowerFeedPhaseLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PowerFeed_phase_label value
+func (v PowerFeedPhaseLabel) Ptr() *PowerFeedPhaseLabel {
+ return &v
+}
+
+type NullablePowerFeedPhaseLabel struct {
+ value *PowerFeedPhaseLabel
+ isSet bool
+}
+
+func (v NullablePowerFeedPhaseLabel) Get() *PowerFeedPhaseLabel {
+ return v.value
+}
+
+func (v *NullablePowerFeedPhaseLabel) Set(val *PowerFeedPhaseLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePowerFeedPhaseLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePowerFeedPhaseLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePowerFeedPhaseLabel(val *PowerFeedPhaseLabel) *NullablePowerFeedPhaseLabel {
+ return &NullablePowerFeedPhaseLabel{value: val, isSet: true}
+}
+
+func (v NullablePowerFeedPhaseLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePowerFeedPhaseLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_power_feed_request.go b/model_power_feed_request.go
index e6844db2dd..3069160864 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 PowerFeedRequest type satisfies the MappedNullable interface at compile time
@@ -19,19 +20,15 @@ var _ MappedNullable = &PowerFeedRequest{}
// PowerFeedRequest Adds support for custom fields and tags.
type PowerFeedRequest struct {
- PowerPanel NestedPowerPanelRequest `json:"power_panel"`
- Rack NullableNestedRackRequest `json:"rack,omitempty"`
- Name string `json:"name"`
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed
- Status *string `json:"status,omitempty"`
- // * `primary` - Primary * `redundant` - Redundant
- Type *string `json:"type,omitempty"`
- // * `ac` - AC * `dc` - DC
- Supply *string `json:"supply,omitempty"`
- // * `single-phase` - Single phase * `three-phase` - Three-phase
- Phase *string `json:"phase,omitempty"`
- Voltage *int32 `json:"voltage,omitempty"`
- Amperage *int32 `json:"amperage,omitempty"`
+ PowerPanel NestedPowerPanelRequest `json:"power_panel"`
+ Rack NullableNestedRackRequest `json:"rack,omitempty"`
+ Name string `json:"name"`
+ Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"`
+ Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"`
+ Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"`
+ Phase *PatchedWritablePowerFeedRequestPhase `json:"phase,omitempty"`
+ Voltage *int32 `json:"voltage,omitempty"`
+ Amperage *int32 `json:"amperage,omitempty"`
// Maximum permissible draw (percentage)
MaxUtilization *int32 `json:"max_utilization,omitempty"`
// Treat as if a cable is connected
@@ -157,9 +154,9 @@ func (o *PowerFeedRequest) SetName(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PowerFeedRequest) GetStatus() string {
+func (o *PowerFeedRequest) GetStatus() PatchedWritablePowerFeedRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestStatus
return ret
}
return *o.Status
@@ -167,7 +164,7 @@ func (o *PowerFeedRequest) GetStatus() string {
// 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 *PowerFeedRequest) GetStatusOk() (*string, bool) {
+func (o *PowerFeedRequest) GetStatusOk() (*PatchedWritablePowerFeedRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -183,15 +180,15 @@ func (o *PowerFeedRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PowerFeedRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritablePowerFeedRequestStatus and assigns it to the Status field.
+func (o *PowerFeedRequest) SetStatus(v PatchedWritablePowerFeedRequestStatus) {
o.Status = &v
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PowerFeedRequest) GetType() string {
+func (o *PowerFeedRequest) GetType() PatchedWritablePowerFeedRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestType
return ret
}
return *o.Type
@@ -199,7 +196,7 @@ func (o *PowerFeedRequest) GetType() string {
// 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 *PowerFeedRequest) GetTypeOk() (*string, bool) {
+func (o *PowerFeedRequest) GetTypeOk() (*PatchedWritablePowerFeedRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -215,15 +212,15 @@ func (o *PowerFeedRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *PowerFeedRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritablePowerFeedRequestType and assigns it to the Type field.
+func (o *PowerFeedRequest) SetType(v PatchedWritablePowerFeedRequestType) {
o.Type = &v
}
// GetSupply returns the Supply field value if set, zero value otherwise.
-func (o *PowerFeedRequest) GetSupply() string {
+func (o *PowerFeedRequest) GetSupply() PatchedWritablePowerFeedRequestSupply {
if o == nil || IsNil(o.Supply) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestSupply
return ret
}
return *o.Supply
@@ -231,7 +228,7 @@ func (o *PowerFeedRequest) GetSupply() string {
// GetSupplyOk returns a tuple with the Supply field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PowerFeedRequest) GetSupplyOk() (*string, bool) {
+func (o *PowerFeedRequest) GetSupplyOk() (*PatchedWritablePowerFeedRequestSupply, bool) {
if o == nil || IsNil(o.Supply) {
return nil, false
}
@@ -247,15 +244,15 @@ func (o *PowerFeedRequest) HasSupply() bool {
return false
}
-// SetSupply gets a reference to the given string and assigns it to the Supply field.
-func (o *PowerFeedRequest) SetSupply(v string) {
+// SetSupply gets a reference to the given PatchedWritablePowerFeedRequestSupply and assigns it to the Supply field.
+func (o *PowerFeedRequest) SetSupply(v PatchedWritablePowerFeedRequestSupply) {
o.Supply = &v
}
// GetPhase returns the Phase field value if set, zero value otherwise.
-func (o *PowerFeedRequest) GetPhase() string {
+func (o *PowerFeedRequest) GetPhase() PatchedWritablePowerFeedRequestPhase {
if o == nil || IsNil(o.Phase) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestPhase
return ret
}
return *o.Phase
@@ -263,7 +260,7 @@ func (o *PowerFeedRequest) GetPhase() string {
// GetPhaseOk returns a tuple with the Phase field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PowerFeedRequest) GetPhaseOk() (*string, bool) {
+func (o *PowerFeedRequest) GetPhaseOk() (*PatchedWritablePowerFeedRequestPhase, bool) {
if o == nil || IsNil(o.Phase) {
return nil, false
}
@@ -279,8 +276,8 @@ func (o *PowerFeedRequest) HasPhase() bool {
return false
}
-// SetPhase gets a reference to the given string and assigns it to the Phase field.
-func (o *PowerFeedRequest) SetPhase(v string) {
+// SetPhase gets a reference to the given PatchedWritablePowerFeedRequestPhase and assigns it to the Phase field.
+func (o *PowerFeedRequest) SetPhase(v PatchedWritablePowerFeedRequestPhase) {
o.Phase = &v
}
@@ -645,10 +642,32 @@ func (o PowerFeedRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerFeedRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerFeedRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "power_panel",
+ "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)
+ }
+ }
+
varPowerFeedRequest := _PowerFeedRequest{}
- err = json.Unmarshal(bytes, &varPowerFeedRequest)
+ err = json.Unmarshal(data, &varPowerFeedRequest)
if err != nil {
return err
@@ -658,7 +677,7 @@ func (o *PowerFeedRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "power_panel")
delete(additionalProperties, "rack")
delete(additionalProperties, "name")
diff --git a/model_power_feed_status.go b/model_power_feed_status.go
index f0821f62cb..536b8538a3 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &PowerFeedStatus{}
// PowerFeedStatus struct for PowerFeedStatus
type PowerFeedStatus struct {
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *PatchedWritablePowerFeedRequestStatus `json:"value,omitempty"`
+ Label *PowerFeedStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewPowerFeedStatusWithDefaults() *PowerFeedStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *PowerFeedStatus) GetValue() string {
+func (o *PowerFeedStatus) GetValue() PatchedWritablePowerFeedRequestStatus {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestStatus
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *PowerFeedStatus) GetValue() string {
// 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 *PowerFeedStatus) GetValueOk() (*string, bool) {
+func (o *PowerFeedStatus) GetValueOk() (*PatchedWritablePowerFeedRequestStatus, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *PowerFeedStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *PowerFeedStatus) SetValue(v string) {
+// SetValue gets a reference to the given PatchedWritablePowerFeedRequestStatus and assigns it to the Value field.
+func (o *PowerFeedStatus) SetValue(v PatchedWritablePowerFeedRequestStatus) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *PowerFeedStatus) GetLabel() string {
+func (o *PowerFeedStatus) GetLabel() PowerFeedStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret PowerFeedStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *PowerFeedStatus) 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 *PowerFeedStatus) GetLabelOk() (*string, bool) {
+func (o *PowerFeedStatus) GetLabelOk() (*PowerFeedStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *PowerFeedStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PowerFeedStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given PowerFeedStatusLabel and assigns it to the Label field.
+func (o *PowerFeedStatus) SetLabel(v PowerFeedStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o PowerFeedStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerFeedStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerFeedStatus) UnmarshalJSON(data []byte) (err error) {
varPowerFeedStatus := _PowerFeedStatus{}
- err = json.Unmarshal(bytes, &varPowerFeedStatus)
+ err = json.Unmarshal(data, &varPowerFeedStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *PowerFeedStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_power_feed_status_label.go b/model_power_feed_status_label.go
new file mode 100644
index 0000000000..0805f01547
--- /dev/null
+++ b/model_power_feed_status_label.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PowerFeedStatusLabel the model 'PowerFeedStatusLabel'
+type PowerFeedStatusLabel string
+
+// List of PowerFeed_status_label
+const (
+ POWERFEEDSTATUSLABEL_OFFLINE PowerFeedStatusLabel = "Offline"
+ POWERFEEDSTATUSLABEL_ACTIVE PowerFeedStatusLabel = "Active"
+ POWERFEEDSTATUSLABEL_PLANNED PowerFeedStatusLabel = "Planned"
+ POWERFEEDSTATUSLABEL_FAILED PowerFeedStatusLabel = "Failed"
+)
+
+// All allowed values of PowerFeedStatusLabel enum
+var AllowedPowerFeedStatusLabelEnumValues = []PowerFeedStatusLabel{
+ "Offline",
+ "Active",
+ "Planned",
+ "Failed",
+}
+
+func (v *PowerFeedStatusLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PowerFeedStatusLabel(value)
+ for _, existing := range AllowedPowerFeedStatusLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PowerFeedStatusLabel", value)
+}
+
+// NewPowerFeedStatusLabelFromValue returns a pointer to a valid PowerFeedStatusLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPowerFeedStatusLabelFromValue(v string) (*PowerFeedStatusLabel, error) {
+ ev := PowerFeedStatusLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PowerFeedStatusLabel: valid values are %v", v, AllowedPowerFeedStatusLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PowerFeedStatusLabel) IsValid() bool {
+ for _, existing := range AllowedPowerFeedStatusLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PowerFeed_status_label value
+func (v PowerFeedStatusLabel) Ptr() *PowerFeedStatusLabel {
+ return &v
+}
+
+type NullablePowerFeedStatusLabel struct {
+ value *PowerFeedStatusLabel
+ isSet bool
+}
+
+func (v NullablePowerFeedStatusLabel) Get() *PowerFeedStatusLabel {
+ return v.value
+}
+
+func (v *NullablePowerFeedStatusLabel) Set(val *PowerFeedStatusLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePowerFeedStatusLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePowerFeedStatusLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePowerFeedStatusLabel(val *PowerFeedStatusLabel) *NullablePowerFeedStatusLabel {
+ return &NullablePowerFeedStatusLabel{value: val, isSet: true}
+}
+
+func (v NullablePowerFeedStatusLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePowerFeedStatusLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_power_feed_supply.go b/model_power_feed_supply.go
index d1e70d78c7..1bfeb392af 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &PowerFeedSupply{}
// PowerFeedSupply struct for PowerFeedSupply
type PowerFeedSupply struct {
- // * `ac` - AC * `dc` - DC
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *PatchedWritablePowerFeedRequestSupply `json:"value,omitempty"`
+ Label *PowerFeedSupplyLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewPowerFeedSupplyWithDefaults() *PowerFeedSupply {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *PowerFeedSupply) GetValue() string {
+func (o *PowerFeedSupply) GetValue() PatchedWritablePowerFeedRequestSupply {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestSupply
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *PowerFeedSupply) GetValue() string {
// 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 *PowerFeedSupply) GetValueOk() (*string, bool) {
+func (o *PowerFeedSupply) GetValueOk() (*PatchedWritablePowerFeedRequestSupply, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *PowerFeedSupply) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *PowerFeedSupply) SetValue(v string) {
+// SetValue gets a reference to the given PatchedWritablePowerFeedRequestSupply and assigns it to the Value field.
+func (o *PowerFeedSupply) SetValue(v PatchedWritablePowerFeedRequestSupply) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *PowerFeedSupply) GetLabel() string {
+func (o *PowerFeedSupply) GetLabel() PowerFeedSupplyLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret PowerFeedSupplyLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *PowerFeedSupply) 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 *PowerFeedSupply) GetLabelOk() (*string, bool) {
+func (o *PowerFeedSupply) GetLabelOk() (*PowerFeedSupplyLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *PowerFeedSupply) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PowerFeedSupply) SetLabel(v string) {
+// SetLabel gets a reference to the given PowerFeedSupplyLabel and assigns it to the Label field.
+func (o *PowerFeedSupply) SetLabel(v PowerFeedSupplyLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o PowerFeedSupply) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerFeedSupply) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerFeedSupply) UnmarshalJSON(data []byte) (err error) {
varPowerFeedSupply := _PowerFeedSupply{}
- err = json.Unmarshal(bytes, &varPowerFeedSupply)
+ err = json.Unmarshal(data, &varPowerFeedSupply)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *PowerFeedSupply) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_power_feed_supply_label.go b/model_power_feed_supply_label.go
new file mode 100644
index 0000000000..4a7b06a119
--- /dev/null
+++ b/model_power_feed_supply_label.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PowerFeedSupplyLabel the model 'PowerFeedSupplyLabel'
+type PowerFeedSupplyLabel string
+
+// List of PowerFeed_supply_label
+const (
+ POWERFEEDSUPPLYLABEL_AC PowerFeedSupplyLabel = "AC"
+ POWERFEEDSUPPLYLABEL_DC PowerFeedSupplyLabel = "DC"
+)
+
+// All allowed values of PowerFeedSupplyLabel enum
+var AllowedPowerFeedSupplyLabelEnumValues = []PowerFeedSupplyLabel{
+ "AC",
+ "DC",
+}
+
+func (v *PowerFeedSupplyLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PowerFeedSupplyLabel(value)
+ for _, existing := range AllowedPowerFeedSupplyLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PowerFeedSupplyLabel", value)
+}
+
+// NewPowerFeedSupplyLabelFromValue returns a pointer to a valid PowerFeedSupplyLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPowerFeedSupplyLabelFromValue(v string) (*PowerFeedSupplyLabel, error) {
+ ev := PowerFeedSupplyLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PowerFeedSupplyLabel: valid values are %v", v, AllowedPowerFeedSupplyLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PowerFeedSupplyLabel) IsValid() bool {
+ for _, existing := range AllowedPowerFeedSupplyLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PowerFeed_supply_label value
+func (v PowerFeedSupplyLabel) Ptr() *PowerFeedSupplyLabel {
+ return &v
+}
+
+type NullablePowerFeedSupplyLabel struct {
+ value *PowerFeedSupplyLabel
+ isSet bool
+}
+
+func (v NullablePowerFeedSupplyLabel) Get() *PowerFeedSupplyLabel {
+ return v.value
+}
+
+func (v *NullablePowerFeedSupplyLabel) Set(val *PowerFeedSupplyLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePowerFeedSupplyLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePowerFeedSupplyLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePowerFeedSupplyLabel(val *PowerFeedSupplyLabel) *NullablePowerFeedSupplyLabel {
+ return &NullablePowerFeedSupplyLabel{value: val, isSet: true}
+}
+
+func (v NullablePowerFeedSupplyLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePowerFeedSupplyLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_power_feed_type.go b/model_power_feed_type.go
index b033d01028..5be6394497 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &PowerFeedType{}
// PowerFeedType struct for PowerFeedType
type PowerFeedType struct {
- // * `primary` - Primary * `redundant` - Redundant
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *PatchedWritablePowerFeedRequestType `json:"value,omitempty"`
+ Label *PowerFeedTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewPowerFeedTypeWithDefaults() *PowerFeedType {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *PowerFeedType) GetValue() string {
+func (o *PowerFeedType) GetValue() PatchedWritablePowerFeedRequestType {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestType
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *PowerFeedType) GetValue() string {
// 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 *PowerFeedType) GetValueOk() (*string, bool) {
+func (o *PowerFeedType) GetValueOk() (*PatchedWritablePowerFeedRequestType, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *PowerFeedType) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *PowerFeedType) SetValue(v string) {
+// SetValue gets a reference to the given PatchedWritablePowerFeedRequestType and assigns it to the Value field.
+func (o *PowerFeedType) SetValue(v PatchedWritablePowerFeedRequestType) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *PowerFeedType) GetLabel() string {
+func (o *PowerFeedType) GetLabel() PowerFeedTypeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret PowerFeedTypeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *PowerFeedType) 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 *PowerFeedType) GetLabelOk() (*string, bool) {
+func (o *PowerFeedType) GetLabelOk() (*PowerFeedTypeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *PowerFeedType) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PowerFeedType) SetLabel(v string) {
+// SetLabel gets a reference to the given PowerFeedTypeLabel and assigns it to the Label field.
+func (o *PowerFeedType) SetLabel(v PowerFeedTypeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o PowerFeedType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerFeedType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerFeedType) UnmarshalJSON(data []byte) (err error) {
varPowerFeedType := _PowerFeedType{}
- err = json.Unmarshal(bytes, &varPowerFeedType)
+ err = json.Unmarshal(data, &varPowerFeedType)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *PowerFeedType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_power_feed_type_label.go b/model_power_feed_type_label.go
new file mode 100644
index 0000000000..46a08b7b07
--- /dev/null
+++ b/model_power_feed_type_label.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PowerFeedTypeLabel the model 'PowerFeedTypeLabel'
+type PowerFeedTypeLabel string
+
+// List of PowerFeed_type_label
+const (
+ POWERFEEDTYPELABEL_PRIMARY PowerFeedTypeLabel = "Primary"
+ POWERFEEDTYPELABEL_REDUNDANT PowerFeedTypeLabel = "Redundant"
+)
+
+// All allowed values of PowerFeedTypeLabel enum
+var AllowedPowerFeedTypeLabelEnumValues = []PowerFeedTypeLabel{
+ "Primary",
+ "Redundant",
+}
+
+func (v *PowerFeedTypeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PowerFeedTypeLabel(value)
+ for _, existing := range AllowedPowerFeedTypeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PowerFeedTypeLabel", value)
+}
+
+// NewPowerFeedTypeLabelFromValue returns a pointer to a valid PowerFeedTypeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPowerFeedTypeLabelFromValue(v string) (*PowerFeedTypeLabel, error) {
+ ev := PowerFeedTypeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PowerFeedTypeLabel: valid values are %v", v, AllowedPowerFeedTypeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PowerFeedTypeLabel) IsValid() bool {
+ for _, existing := range AllowedPowerFeedTypeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PowerFeed_type_label value
+func (v PowerFeedTypeLabel) Ptr() *PowerFeedTypeLabel {
+ return &v
+}
+
+type NullablePowerFeedTypeLabel struct {
+ value *PowerFeedTypeLabel
+ isSet bool
+}
+
+func (v NullablePowerFeedTypeLabel) Get() *PowerFeedTypeLabel {
+ return v.value
+}
+
+func (v *NullablePowerFeedTypeLabel) Set(val *PowerFeedTypeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePowerFeedTypeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePowerFeedTypeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePowerFeedTypeLabel(val *PowerFeedTypeLabel) *NullablePowerFeedTypeLabel {
+ return &NullablePowerFeedTypeLabel{value: val, isSet: true}
+}
+
+func (v NullablePowerFeedTypeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePowerFeedTypeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_power_outlet.go b/model_power_outlet.go
index 64ad77132d..b5b05279be 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -842,10 +843,45 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerOutlet) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerOutlet) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "cable",
+ "cable_end",
+ "link_peers",
+ "link_peers_type",
+ "connected_endpoints",
+ "connected_endpoints_type",
+ "connected_endpoints_reachable",
+ "created",
+ "last_updated",
+ "_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)
+ }
+ }
+
varPowerOutlet := _PowerOutlet{}
- err = json.Unmarshal(bytes, &varPowerOutlet)
+ err = json.Unmarshal(data, &varPowerOutlet)
if err != nil {
return err
@@ -855,7 +891,7 @@ func (o *PowerOutlet) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_power_outlet_feed_leg.go b/model_power_outlet_feed_leg.go
index 7b6acb99ea..d48f656d8d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &PowerOutletFeedLeg{}
// PowerOutletFeedLeg struct for PowerOutletFeedLeg
type PowerOutletFeedLeg struct {
- // * `A` - A * `B` - B * `C` - C
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *PowerOutletFeedLegValue `json:"value,omitempty"`
+ Label *PowerOutletFeedLegLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewPowerOutletFeedLegWithDefaults() *PowerOutletFeedLeg {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *PowerOutletFeedLeg) GetValue() string {
+func (o *PowerOutletFeedLeg) GetValue() PowerOutletFeedLegValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret PowerOutletFeedLegValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *PowerOutletFeedLeg) GetValue() string {
// 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 *PowerOutletFeedLeg) GetValueOk() (*string, bool) {
+func (o *PowerOutletFeedLeg) GetValueOk() (*PowerOutletFeedLegValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *PowerOutletFeedLeg) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *PowerOutletFeedLeg) SetValue(v string) {
+// SetValue gets a reference to the given PowerOutletFeedLegValue and assigns it to the Value field.
+func (o *PowerOutletFeedLeg) SetValue(v PowerOutletFeedLegValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *PowerOutletFeedLeg) GetLabel() string {
+func (o *PowerOutletFeedLeg) GetLabel() PowerOutletFeedLegLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret PowerOutletFeedLegLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *PowerOutletFeedLeg) 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 *PowerOutletFeedLeg) GetLabelOk() (*string, bool) {
+func (o *PowerOutletFeedLeg) GetLabelOk() (*PowerOutletFeedLegLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *PowerOutletFeedLeg) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PowerOutletFeedLeg) SetLabel(v string) {
+// SetLabel gets a reference to the given PowerOutletFeedLegLabel and assigns it to the Label field.
+func (o *PowerOutletFeedLeg) SetLabel(v PowerOutletFeedLegLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o PowerOutletFeedLeg) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerOutletFeedLeg) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerOutletFeedLeg) UnmarshalJSON(data []byte) (err error) {
varPowerOutletFeedLeg := _PowerOutletFeedLeg{}
- err = json.Unmarshal(bytes, &varPowerOutletFeedLeg)
+ err = json.Unmarshal(data, &varPowerOutletFeedLeg)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *PowerOutletFeedLeg) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_power_outlet_feed_leg_label.go b/model_power_outlet_feed_leg_label.go
new file mode 100644
index 0000000000..a1ee24e51d
--- /dev/null
+++ b/model_power_outlet_feed_leg_label.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PowerOutletFeedLegLabel the model 'PowerOutletFeedLegLabel'
+type PowerOutletFeedLegLabel string
+
+// List of PowerOutlet_feed_leg_label
+const (
+ POWEROUTLETFEEDLEGLABEL_A PowerOutletFeedLegLabel = "A"
+ POWEROUTLETFEEDLEGLABEL_B PowerOutletFeedLegLabel = "B"
+ POWEROUTLETFEEDLEGLABEL_C PowerOutletFeedLegLabel = "C"
+)
+
+// All allowed values of PowerOutletFeedLegLabel enum
+var AllowedPowerOutletFeedLegLabelEnumValues = []PowerOutletFeedLegLabel{
+ "A",
+ "B",
+ "C",
+}
+
+func (v *PowerOutletFeedLegLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PowerOutletFeedLegLabel(value)
+ for _, existing := range AllowedPowerOutletFeedLegLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PowerOutletFeedLegLabel", value)
+}
+
+// NewPowerOutletFeedLegLabelFromValue returns a pointer to a valid PowerOutletFeedLegLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPowerOutletFeedLegLabelFromValue(v string) (*PowerOutletFeedLegLabel, error) {
+ ev := PowerOutletFeedLegLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PowerOutletFeedLegLabel: valid values are %v", v, AllowedPowerOutletFeedLegLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PowerOutletFeedLegLabel) IsValid() bool {
+ for _, existing := range AllowedPowerOutletFeedLegLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PowerOutlet_feed_leg_label value
+func (v PowerOutletFeedLegLabel) Ptr() *PowerOutletFeedLegLabel {
+ return &v
+}
+
+type NullablePowerOutletFeedLegLabel struct {
+ value *PowerOutletFeedLegLabel
+ isSet bool
+}
+
+func (v NullablePowerOutletFeedLegLabel) Get() *PowerOutletFeedLegLabel {
+ return v.value
+}
+
+func (v *NullablePowerOutletFeedLegLabel) Set(val *PowerOutletFeedLegLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePowerOutletFeedLegLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePowerOutletFeedLegLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePowerOutletFeedLegLabel(val *PowerOutletFeedLegLabel) *NullablePowerOutletFeedLegLabel {
+ return &NullablePowerOutletFeedLegLabel{value: val, isSet: true}
+}
+
+func (v NullablePowerOutletFeedLegLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePowerOutletFeedLegLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_power_outlet_feed_leg_value.go b/model_power_outlet_feed_leg_value.go
new file mode 100644
index 0000000000..675855111e
--- /dev/null
+++ b/model_power_outlet_feed_leg_value.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PowerOutletFeedLegValue * `A` - A * `B` - B * `C` - C
+type PowerOutletFeedLegValue string
+
+// List of PowerOutlet_feed_leg_value
+const (
+ POWEROUTLETFEEDLEGVALUE_A PowerOutletFeedLegValue = "A"
+ POWEROUTLETFEEDLEGVALUE_B PowerOutletFeedLegValue = "B"
+ POWEROUTLETFEEDLEGVALUE_C PowerOutletFeedLegValue = "C"
+ POWEROUTLETFEEDLEGVALUE_EMPTY PowerOutletFeedLegValue = ""
+)
+
+// All allowed values of PowerOutletFeedLegValue enum
+var AllowedPowerOutletFeedLegValueEnumValues = []PowerOutletFeedLegValue{
+ "A",
+ "B",
+ "C",
+ "",
+}
+
+func (v *PowerOutletFeedLegValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PowerOutletFeedLegValue(value)
+ for _, existing := range AllowedPowerOutletFeedLegValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PowerOutletFeedLegValue", value)
+}
+
+// NewPowerOutletFeedLegValueFromValue returns a pointer to a valid PowerOutletFeedLegValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPowerOutletFeedLegValueFromValue(v string) (*PowerOutletFeedLegValue, error) {
+ ev := PowerOutletFeedLegValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PowerOutletFeedLegValue: valid values are %v", v, AllowedPowerOutletFeedLegValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PowerOutletFeedLegValue) IsValid() bool {
+ for _, existing := range AllowedPowerOutletFeedLegValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PowerOutlet_feed_leg_value value
+func (v PowerOutletFeedLegValue) Ptr() *PowerOutletFeedLegValue {
+ return &v
+}
+
+type NullablePowerOutletFeedLegValue struct {
+ value *PowerOutletFeedLegValue
+ isSet bool
+}
+
+func (v NullablePowerOutletFeedLegValue) Get() *PowerOutletFeedLegValue {
+ return v.value
+}
+
+func (v *NullablePowerOutletFeedLegValue) Set(val *PowerOutletFeedLegValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePowerOutletFeedLegValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePowerOutletFeedLegValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePowerOutletFeedLegValue(val *PowerOutletFeedLegValue) *NullablePowerOutletFeedLegValue {
+ return &NullablePowerOutletFeedLegValue{value: val, isSet: true}
+}
+
+func (v NullablePowerOutletFeedLegValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePowerOutletFeedLegValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_power_outlet_request.go b/model_power_outlet_request.go
index 3294c0ef60..bb30073f56 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 PowerOutletRequest type satisfies the MappedNullable interface at compile time
@@ -23,13 +24,11 @@ type PowerOutletRequest struct {
Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other
- Type NullableString `json:"type,omitempty"`
- PowerPort NullableNestedPowerPortRequest `json:"power_port,omitempty"`
- // * `A` - A * `B` - B * `C` - C
- FeedLeg NullableString `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePowerOutletRequestType `json:"type,omitempty"`
+ PowerPort NullableNestedPowerPortRequest `json:"power_port,omitempty"`
+ FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -182,9 +181,9 @@ func (o *PowerOutletRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerOutletRequest) GetType() string {
+func (o *PowerOutletRequest) GetType() PowerOutletRequestType {
if o == nil || IsNil(o.Type.Get()) {
- var ret string
+ var ret PowerOutletRequestType
return ret
}
return *o.Type.Get()
@@ -193,7 +192,7 @@ func (o *PowerOutletRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerOutletRequest) GetTypeOk() (*string, bool) {
+func (o *PowerOutletRequest) GetTypeOk() (*PowerOutletRequestType, bool) {
if o == nil {
return nil, false
}
@@ -209,8 +208,8 @@ func (o *PowerOutletRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given NullableString and assigns it to the Type field.
-func (o *PowerOutletRequest) SetType(v string) {
+// SetType gets a reference to the given NullablePowerOutletRequestType and assigns it to the Type field.
+func (o *PowerOutletRequest) SetType(v PowerOutletRequestType) {
o.Type.Set(&v)
}
@@ -268,9 +267,9 @@ func (o *PowerOutletRequest) UnsetPowerPort() {
}
// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerOutletRequest) GetFeedLeg() string {
+func (o *PowerOutletRequest) GetFeedLeg() PowerOutletRequestFeedLeg {
if o == nil || IsNil(o.FeedLeg.Get()) {
- var ret string
+ var ret PowerOutletRequestFeedLeg
return ret
}
return *o.FeedLeg.Get()
@@ -279,7 +278,7 @@ func (o *PowerOutletRequest) GetFeedLeg() string {
// GetFeedLegOk returns a tuple with the FeedLeg field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerOutletRequest) GetFeedLegOk() (*string, bool) {
+func (o *PowerOutletRequest) GetFeedLegOk() (*PowerOutletRequestFeedLeg, bool) {
if o == nil {
return nil, false
}
@@ -295,8 +294,8 @@ func (o *PowerOutletRequest) HasFeedLeg() bool {
return false
}
-// SetFeedLeg gets a reference to the given NullableString and assigns it to the FeedLeg field.
-func (o *PowerOutletRequest) SetFeedLeg(v string) {
+// SetFeedLeg gets a reference to the given NullablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field.
+func (o *PowerOutletRequest) SetFeedLeg(v PowerOutletRequestFeedLeg) {
o.FeedLeg.Set(&v)
}
@@ -485,10 +484,32 @@ func (o PowerOutletRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerOutletRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerOutletRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varPowerOutletRequest := _PowerOutletRequest{}
- err = json.Unmarshal(bytes, &varPowerOutletRequest)
+ err = json.Unmarshal(data, &varPowerOutletRequest)
if err != nil {
return err
@@ -498,7 +519,7 @@ func (o *PowerOutletRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_power_outlet_request_feed_leg.go b/model_power_outlet_request_feed_leg.go
new file mode 100644
index 0000000000..10e22144dd
--- /dev/null
+++ b/model_power_outlet_request_feed_leg.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PowerOutletRequestFeedLeg * `A` - A * `B` - B * `C` - C
+type PowerOutletRequestFeedLeg string
+
+// List of PowerOutletRequest_feed_leg
+const (
+ POWEROUTLETREQUESTFEEDLEG_A PowerOutletRequestFeedLeg = "A"
+ POWEROUTLETREQUESTFEEDLEG_B PowerOutletRequestFeedLeg = "B"
+ POWEROUTLETREQUESTFEEDLEG_C PowerOutletRequestFeedLeg = "C"
+ POWEROUTLETREQUESTFEEDLEG_EMPTY PowerOutletRequestFeedLeg = ""
+)
+
+// All allowed values of PowerOutletRequestFeedLeg enum
+var AllowedPowerOutletRequestFeedLegEnumValues = []PowerOutletRequestFeedLeg{
+ "A",
+ "B",
+ "C",
+ "",
+}
+
+func (v *PowerOutletRequestFeedLeg) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PowerOutletRequestFeedLeg(value)
+ for _, existing := range AllowedPowerOutletRequestFeedLegEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PowerOutletRequestFeedLeg", value)
+}
+
+// NewPowerOutletRequestFeedLegFromValue returns a pointer to a valid PowerOutletRequestFeedLeg
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPowerOutletRequestFeedLegFromValue(v string) (*PowerOutletRequestFeedLeg, error) {
+ ev := PowerOutletRequestFeedLeg(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PowerOutletRequestFeedLeg: valid values are %v", v, AllowedPowerOutletRequestFeedLegEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PowerOutletRequestFeedLeg) IsValid() bool {
+ for _, existing := range AllowedPowerOutletRequestFeedLegEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PowerOutletRequest_feed_leg value
+func (v PowerOutletRequestFeedLeg) Ptr() *PowerOutletRequestFeedLeg {
+ return &v
+}
+
+type NullablePowerOutletRequestFeedLeg struct {
+ value *PowerOutletRequestFeedLeg
+ isSet bool
+}
+
+func (v NullablePowerOutletRequestFeedLeg) Get() *PowerOutletRequestFeedLeg {
+ return v.value
+}
+
+func (v *NullablePowerOutletRequestFeedLeg) Set(val *PowerOutletRequestFeedLeg) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePowerOutletRequestFeedLeg) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePowerOutletRequestFeedLeg) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePowerOutletRequestFeedLeg(val *PowerOutletRequestFeedLeg) *NullablePowerOutletRequestFeedLeg {
+ return &NullablePowerOutletRequestFeedLeg{value: val, isSet: true}
+}
+
+func (v NullablePowerOutletRequestFeedLeg) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePowerOutletRequestFeedLeg) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_power_outlet_request_type.go b/model_power_outlet_request_type.go
new file mode 100644
index 0000000000..72ceb4f998
--- /dev/null
+++ b/model_power_outlet_request_type.go
@@ -0,0 +1,294 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PowerOutletRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other
+type PowerOutletRequestType string
+
+// List of PowerOutletRequest_type
+const (
+ POWEROUTLETREQUESTTYPE_IEC_60320_C5 PowerOutletRequestType = "iec-60320-c5"
+ POWEROUTLETREQUESTTYPE_IEC_60320_C7 PowerOutletRequestType = "iec-60320-c7"
+ POWEROUTLETREQUESTTYPE_IEC_60320_C13 PowerOutletRequestType = "iec-60320-c13"
+ POWEROUTLETREQUESTTYPE_IEC_60320_C15 PowerOutletRequestType = "iec-60320-c15"
+ POWEROUTLETREQUESTTYPE_IEC_60320_C19 PowerOutletRequestType = "iec-60320-c19"
+ POWEROUTLETREQUESTTYPE_IEC_60320_C21 PowerOutletRequestType = "iec-60320-c21"
+ POWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_4H PowerOutletRequestType = "iec-60309-p-n-e-4h"
+ POWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_6H PowerOutletRequestType = "iec-60309-p-n-e-6h"
+ POWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_9H PowerOutletRequestType = "iec-60309-p-n-e-9h"
+ POWEROUTLETREQUESTTYPE_IEC_60309_2P_E_4H PowerOutletRequestType = "iec-60309-2p-e-4h"
+ POWEROUTLETREQUESTTYPE_IEC_60309_2P_E_6H PowerOutletRequestType = "iec-60309-2p-e-6h"
+ POWEROUTLETREQUESTTYPE_IEC_60309_2P_E_9H PowerOutletRequestType = "iec-60309-2p-e-9h"
+ POWEROUTLETREQUESTTYPE_IEC_60309_3P_E_4H PowerOutletRequestType = "iec-60309-3p-e-4h"
+ POWEROUTLETREQUESTTYPE_IEC_60309_3P_E_6H PowerOutletRequestType = "iec-60309-3p-e-6h"
+ POWEROUTLETREQUESTTYPE_IEC_60309_3P_E_9H PowerOutletRequestType = "iec-60309-3p-e-9h"
+ POWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_4H PowerOutletRequestType = "iec-60309-3p-n-e-4h"
+ POWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_6H PowerOutletRequestType = "iec-60309-3p-n-e-6h"
+ POWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_9H PowerOutletRequestType = "iec-60309-3p-n-e-9h"
+ POWEROUTLETREQUESTTYPE_IEC_60906_1 PowerOutletRequestType = "iec-60906-1"
+ POWEROUTLETREQUESTTYPE_NBR_14136_10A PowerOutletRequestType = "nbr-14136-10a"
+ POWEROUTLETREQUESTTYPE_NBR_14136_20A PowerOutletRequestType = "nbr-14136-20a"
+ POWEROUTLETREQUESTTYPE_NEMA_1_15R PowerOutletRequestType = "nema-1-15r"
+ POWEROUTLETREQUESTTYPE_NEMA_5_15R PowerOutletRequestType = "nema-5-15r"
+ POWEROUTLETREQUESTTYPE_NEMA_5_20R PowerOutletRequestType = "nema-5-20r"
+ POWEROUTLETREQUESTTYPE_NEMA_5_30R PowerOutletRequestType = "nema-5-30r"
+ POWEROUTLETREQUESTTYPE_NEMA_5_50R PowerOutletRequestType = "nema-5-50r"
+ POWEROUTLETREQUESTTYPE_NEMA_6_15R PowerOutletRequestType = "nema-6-15r"
+ POWEROUTLETREQUESTTYPE_NEMA_6_20R PowerOutletRequestType = "nema-6-20r"
+ POWEROUTLETREQUESTTYPE_NEMA_6_30R PowerOutletRequestType = "nema-6-30r"
+ POWEROUTLETREQUESTTYPE_NEMA_6_50R PowerOutletRequestType = "nema-6-50r"
+ POWEROUTLETREQUESTTYPE_NEMA_10_30R PowerOutletRequestType = "nema-10-30r"
+ POWEROUTLETREQUESTTYPE_NEMA_10_50R PowerOutletRequestType = "nema-10-50r"
+ POWEROUTLETREQUESTTYPE_NEMA_14_20R PowerOutletRequestType = "nema-14-20r"
+ POWEROUTLETREQUESTTYPE_NEMA_14_30R PowerOutletRequestType = "nema-14-30r"
+ POWEROUTLETREQUESTTYPE_NEMA_14_50R PowerOutletRequestType = "nema-14-50r"
+ POWEROUTLETREQUESTTYPE_NEMA_14_60R PowerOutletRequestType = "nema-14-60r"
+ POWEROUTLETREQUESTTYPE_NEMA_15_15R PowerOutletRequestType = "nema-15-15r"
+ POWEROUTLETREQUESTTYPE_NEMA_15_20R PowerOutletRequestType = "nema-15-20r"
+ POWEROUTLETREQUESTTYPE_NEMA_15_30R PowerOutletRequestType = "nema-15-30r"
+ POWEROUTLETREQUESTTYPE_NEMA_15_50R PowerOutletRequestType = "nema-15-50r"
+ POWEROUTLETREQUESTTYPE_NEMA_15_60R PowerOutletRequestType = "nema-15-60r"
+ POWEROUTLETREQUESTTYPE_NEMA_L1_15R PowerOutletRequestType = "nema-l1-15r"
+ POWEROUTLETREQUESTTYPE_NEMA_L5_15R PowerOutletRequestType = "nema-l5-15r"
+ POWEROUTLETREQUESTTYPE_NEMA_L5_20R PowerOutletRequestType = "nema-l5-20r"
+ POWEROUTLETREQUESTTYPE_NEMA_L5_30R PowerOutletRequestType = "nema-l5-30r"
+ POWEROUTLETREQUESTTYPE_NEMA_L5_50R PowerOutletRequestType = "nema-l5-50r"
+ POWEROUTLETREQUESTTYPE_NEMA_L6_15R PowerOutletRequestType = "nema-l6-15r"
+ POWEROUTLETREQUESTTYPE_NEMA_L6_20R PowerOutletRequestType = "nema-l6-20r"
+ POWEROUTLETREQUESTTYPE_NEMA_L6_30R PowerOutletRequestType = "nema-l6-30r"
+ POWEROUTLETREQUESTTYPE_NEMA_L6_50R PowerOutletRequestType = "nema-l6-50r"
+ POWEROUTLETREQUESTTYPE_NEMA_L10_30R PowerOutletRequestType = "nema-l10-30r"
+ POWEROUTLETREQUESTTYPE_NEMA_L14_20R PowerOutletRequestType = "nema-l14-20r"
+ POWEROUTLETREQUESTTYPE_NEMA_L14_30R PowerOutletRequestType = "nema-l14-30r"
+ POWEROUTLETREQUESTTYPE_NEMA_L14_50R PowerOutletRequestType = "nema-l14-50r"
+ POWEROUTLETREQUESTTYPE_NEMA_L14_60R PowerOutletRequestType = "nema-l14-60r"
+ POWEROUTLETREQUESTTYPE_NEMA_L15_20R PowerOutletRequestType = "nema-l15-20r"
+ POWEROUTLETREQUESTTYPE_NEMA_L15_30R PowerOutletRequestType = "nema-l15-30r"
+ POWEROUTLETREQUESTTYPE_NEMA_L15_50R PowerOutletRequestType = "nema-l15-50r"
+ POWEROUTLETREQUESTTYPE_NEMA_L15_60R PowerOutletRequestType = "nema-l15-60r"
+ POWEROUTLETREQUESTTYPE_NEMA_L21_20R PowerOutletRequestType = "nema-l21-20r"
+ POWEROUTLETREQUESTTYPE_NEMA_L21_30R PowerOutletRequestType = "nema-l21-30r"
+ POWEROUTLETREQUESTTYPE_NEMA_L22_30R PowerOutletRequestType = "nema-l22-30r"
+ POWEROUTLETREQUESTTYPE_CS6360_C PowerOutletRequestType = "CS6360C"
+ POWEROUTLETREQUESTTYPE_CS6364_C PowerOutletRequestType = "CS6364C"
+ POWEROUTLETREQUESTTYPE_CS8164_C PowerOutletRequestType = "CS8164C"
+ POWEROUTLETREQUESTTYPE_CS8264_C PowerOutletRequestType = "CS8264C"
+ POWEROUTLETREQUESTTYPE_CS8364_C PowerOutletRequestType = "CS8364C"
+ POWEROUTLETREQUESTTYPE_CS8464_C PowerOutletRequestType = "CS8464C"
+ POWEROUTLETREQUESTTYPE_ITA_E PowerOutletRequestType = "ita-e"
+ POWEROUTLETREQUESTTYPE_ITA_F PowerOutletRequestType = "ita-f"
+ POWEROUTLETREQUESTTYPE_ITA_G PowerOutletRequestType = "ita-g"
+ POWEROUTLETREQUESTTYPE_ITA_H PowerOutletRequestType = "ita-h"
+ POWEROUTLETREQUESTTYPE_ITA_I PowerOutletRequestType = "ita-i"
+ POWEROUTLETREQUESTTYPE_ITA_J PowerOutletRequestType = "ita-j"
+ POWEROUTLETREQUESTTYPE_ITA_K PowerOutletRequestType = "ita-k"
+ POWEROUTLETREQUESTTYPE_ITA_L PowerOutletRequestType = "ita-l"
+ POWEROUTLETREQUESTTYPE_ITA_M PowerOutletRequestType = "ita-m"
+ POWEROUTLETREQUESTTYPE_ITA_N PowerOutletRequestType = "ita-n"
+ POWEROUTLETREQUESTTYPE_ITA_O PowerOutletRequestType = "ita-o"
+ POWEROUTLETREQUESTTYPE_ITA_MULTISTANDARD PowerOutletRequestType = "ita-multistandard"
+ POWEROUTLETREQUESTTYPE_USB_A PowerOutletRequestType = "usb-a"
+ POWEROUTLETREQUESTTYPE_USB_MICRO_B PowerOutletRequestType = "usb-micro-b"
+ POWEROUTLETREQUESTTYPE_USB_C PowerOutletRequestType = "usb-c"
+ POWEROUTLETREQUESTTYPE_DC_TERMINAL PowerOutletRequestType = "dc-terminal"
+ POWEROUTLETREQUESTTYPE_HDOT_CX PowerOutletRequestType = "hdot-cx"
+ POWEROUTLETREQUESTTYPE_SAF_D_GRID PowerOutletRequestType = "saf-d-grid"
+ POWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_20A PowerOutletRequestType = "neutrik-powercon-20a"
+ POWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_32A PowerOutletRequestType = "neutrik-powercon-32a"
+ POWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PowerOutletRequestType = "neutrik-powercon-true1"
+ POWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PowerOutletRequestType = "neutrik-powercon-true1-top"
+ POWEROUTLETREQUESTTYPE_UBIQUITI_SMARTPOWER PowerOutletRequestType = "ubiquiti-smartpower"
+ POWEROUTLETREQUESTTYPE_HARDWIRED PowerOutletRequestType = "hardwired"
+ POWEROUTLETREQUESTTYPE_OTHER PowerOutletRequestType = "other"
+ POWEROUTLETREQUESTTYPE_EMPTY PowerOutletRequestType = ""
+)
+
+// All allowed values of PowerOutletRequestType enum
+var AllowedPowerOutletRequestTypeEnumValues = []PowerOutletRequestType{
+ "iec-60320-c5",
+ "iec-60320-c7",
+ "iec-60320-c13",
+ "iec-60320-c15",
+ "iec-60320-c19",
+ "iec-60320-c21",
+ "iec-60309-p-n-e-4h",
+ "iec-60309-p-n-e-6h",
+ "iec-60309-p-n-e-9h",
+ "iec-60309-2p-e-4h",
+ "iec-60309-2p-e-6h",
+ "iec-60309-2p-e-9h",
+ "iec-60309-3p-e-4h",
+ "iec-60309-3p-e-6h",
+ "iec-60309-3p-e-9h",
+ "iec-60309-3p-n-e-4h",
+ "iec-60309-3p-n-e-6h",
+ "iec-60309-3p-n-e-9h",
+ "iec-60906-1",
+ "nbr-14136-10a",
+ "nbr-14136-20a",
+ "nema-1-15r",
+ "nema-5-15r",
+ "nema-5-20r",
+ "nema-5-30r",
+ "nema-5-50r",
+ "nema-6-15r",
+ "nema-6-20r",
+ "nema-6-30r",
+ "nema-6-50r",
+ "nema-10-30r",
+ "nema-10-50r",
+ "nema-14-20r",
+ "nema-14-30r",
+ "nema-14-50r",
+ "nema-14-60r",
+ "nema-15-15r",
+ "nema-15-20r",
+ "nema-15-30r",
+ "nema-15-50r",
+ "nema-15-60r",
+ "nema-l1-15r",
+ "nema-l5-15r",
+ "nema-l5-20r",
+ "nema-l5-30r",
+ "nema-l5-50r",
+ "nema-l6-15r",
+ "nema-l6-20r",
+ "nema-l6-30r",
+ "nema-l6-50r",
+ "nema-l10-30r",
+ "nema-l14-20r",
+ "nema-l14-30r",
+ "nema-l14-50r",
+ "nema-l14-60r",
+ "nema-l15-20r",
+ "nema-l15-30r",
+ "nema-l15-50r",
+ "nema-l15-60r",
+ "nema-l21-20r",
+ "nema-l21-30r",
+ "nema-l22-30r",
+ "CS6360C",
+ "CS6364C",
+ "CS8164C",
+ "CS8264C",
+ "CS8364C",
+ "CS8464C",
+ "ita-e",
+ "ita-f",
+ "ita-g",
+ "ita-h",
+ "ita-i",
+ "ita-j",
+ "ita-k",
+ "ita-l",
+ "ita-m",
+ "ita-n",
+ "ita-o",
+ "ita-multistandard",
+ "usb-a",
+ "usb-micro-b",
+ "usb-c",
+ "dc-terminal",
+ "hdot-cx",
+ "saf-d-grid",
+ "neutrik-powercon-20a",
+ "neutrik-powercon-32a",
+ "neutrik-powercon-true1",
+ "neutrik-powercon-true1-top",
+ "ubiquiti-smartpower",
+ "hardwired",
+ "other",
+ "",
+}
+
+func (v *PowerOutletRequestType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PowerOutletRequestType(value)
+ for _, existing := range AllowedPowerOutletRequestTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PowerOutletRequestType", value)
+}
+
+// NewPowerOutletRequestTypeFromValue returns a pointer to a valid PowerOutletRequestType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPowerOutletRequestTypeFromValue(v string) (*PowerOutletRequestType, error) {
+ ev := PowerOutletRequestType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PowerOutletRequestType: valid values are %v", v, AllowedPowerOutletRequestTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PowerOutletRequestType) IsValid() bool {
+ for _, existing := range AllowedPowerOutletRequestTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PowerOutletRequest_type value
+func (v PowerOutletRequestType) Ptr() *PowerOutletRequestType {
+ return &v
+}
+
+type NullablePowerOutletRequestType struct {
+ value *PowerOutletRequestType
+ isSet bool
+}
+
+func (v NullablePowerOutletRequestType) Get() *PowerOutletRequestType {
+ return v.value
+}
+
+func (v *NullablePowerOutletRequestType) Set(val *PowerOutletRequestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePowerOutletRequestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePowerOutletRequestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePowerOutletRequestType(val *PowerOutletRequestType) *NullablePowerOutletRequestType {
+ return &NullablePowerOutletRequestType{value: val, isSet: true}
+}
+
+func (v NullablePowerOutletRequestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePowerOutletRequestType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_power_outlet_template.go b/model_power_outlet_template.go
index 684e5bef82..eaa4436e5c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -535,10 +536,36 @@ func (o PowerOutletTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerOutletTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerOutletTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varPowerOutletTemplate := _PowerOutletTemplate{}
- err = json.Unmarshal(bytes, &varPowerOutletTemplate)
+ err = json.Unmarshal(data, &varPowerOutletTemplate)
if err != nil {
return err
@@ -548,7 +575,7 @@ func (o *PowerOutletTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_power_outlet_template_request.go b/model_power_outlet_template_request.go
index e431715ea0..1f2f29f38a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 PowerOutletTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,13 +25,11 @@ type PowerOutletTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other
- Type NullableString `json:"type,omitempty"`
- PowerPort NullableNestedPowerPortTemplateRequest `json:"power_port,omitempty"`
- // * `A` - A * `B` - B * `C` - C
- FeedLeg NullableString `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -197,9 +196,9 @@ func (o *PowerOutletTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerOutletTemplateRequest) GetType() string {
+func (o *PowerOutletTemplateRequest) GetType() PowerOutletRequestType {
if o == nil || IsNil(o.Type.Get()) {
- var ret string
+ var ret PowerOutletRequestType
return ret
}
return *o.Type.Get()
@@ -208,7 +207,7 @@ func (o *PowerOutletTemplateRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerOutletTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *PowerOutletTemplateRequest) GetTypeOk() (*PowerOutletRequestType, bool) {
if o == nil {
return nil, false
}
@@ -224,8 +223,8 @@ func (o *PowerOutletTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given NullableString and assigns it to the Type field.
-func (o *PowerOutletTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given NullablePowerOutletRequestType and assigns it to the Type field.
+func (o *PowerOutletTemplateRequest) SetType(v PowerOutletRequestType) {
o.Type.Set(&v)
}
@@ -283,9 +282,9 @@ func (o *PowerOutletTemplateRequest) UnsetPowerPort() {
}
// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerOutletTemplateRequest) GetFeedLeg() string {
+func (o *PowerOutletTemplateRequest) GetFeedLeg() PowerOutletRequestFeedLeg {
if o == nil || IsNil(o.FeedLeg.Get()) {
- var ret string
+ var ret PowerOutletRequestFeedLeg
return ret
}
return *o.FeedLeg.Get()
@@ -294,7 +293,7 @@ func (o *PowerOutletTemplateRequest) GetFeedLeg() string {
// GetFeedLegOk returns a tuple with the FeedLeg field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerOutletTemplateRequest) GetFeedLegOk() (*string, bool) {
+func (o *PowerOutletTemplateRequest) GetFeedLegOk() (*PowerOutletRequestFeedLeg, bool) {
if o == nil {
return nil, false
}
@@ -310,8 +309,8 @@ func (o *PowerOutletTemplateRequest) HasFeedLeg() bool {
return false
}
-// SetFeedLeg gets a reference to the given NullableString and assigns it to the FeedLeg field.
-func (o *PowerOutletTemplateRequest) SetFeedLeg(v string) {
+// SetFeedLeg gets a reference to the given NullablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field.
+func (o *PowerOutletTemplateRequest) SetFeedLeg(v PowerOutletRequestFeedLeg) {
o.FeedLeg.Set(&v)
}
@@ -397,10 +396,31 @@ func (o PowerOutletTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerOutletTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerOutletTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varPowerOutletTemplateRequest := _PowerOutletTemplateRequest{}
- err = json.Unmarshal(bytes, &varPowerOutletTemplateRequest)
+ err = json.Unmarshal(data, &varPowerOutletTemplateRequest)
if err != nil {
return err
@@ -410,7 +430,7 @@ func (o *PowerOutletTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_power_outlet_type.go b/model_power_outlet_type.go
index d47b099bfd..3b0cfa1ec7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &PowerOutletType{}
// PowerOutletType struct for PowerOutletType
type PowerOutletType struct {
- // * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *PatchedWritablePowerOutletTemplateRequestType `json:"value,omitempty"`
+ Label *PowerOutletTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewPowerOutletTypeWithDefaults() *PowerOutletType {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *PowerOutletType) GetValue() string {
+func (o *PowerOutletType) GetValue() PatchedWritablePowerOutletTemplateRequestType {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret PatchedWritablePowerOutletTemplateRequestType
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *PowerOutletType) GetValue() string {
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PowerOutletType) GetValueOk() (*string, bool) {
+func (o *PowerOutletType) GetValueOk() (*PatchedWritablePowerOutletTemplateRequestType, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *PowerOutletType) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *PowerOutletType) SetValue(v string) {
+// SetValue gets a reference to the given PatchedWritablePowerOutletTemplateRequestType and assigns it to the Value field.
+func (o *PowerOutletType) SetValue(v PatchedWritablePowerOutletTemplateRequestType) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *PowerOutletType) GetLabel() string {
+func (o *PowerOutletType) GetLabel() PowerOutletTypeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret PowerOutletTypeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *PowerOutletType) 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 *PowerOutletType) GetLabelOk() (*string, bool) {
+func (o *PowerOutletType) GetLabelOk() (*PowerOutletTypeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *PowerOutletType) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PowerOutletType) SetLabel(v string) {
+// SetLabel gets a reference to the given PowerOutletTypeLabel and assigns it to the Label field.
+func (o *PowerOutletType) SetLabel(v PowerOutletTypeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o PowerOutletType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerOutletType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerOutletType) UnmarshalJSON(data []byte) (err error) {
varPowerOutletType := _PowerOutletType{}
- err = json.Unmarshal(bytes, &varPowerOutletType)
+ err = json.Unmarshal(data, &varPowerOutletType)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *PowerOutletType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_power_outlet_type_label.go b/model_power_outlet_type_label.go
new file mode 100644
index 0000000000..227614213a
--- /dev/null
+++ b/model_power_outlet_type_label.go
@@ -0,0 +1,292 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PowerOutletTypeLabel the model 'PowerOutletTypeLabel'
+type PowerOutletTypeLabel string
+
+// List of PowerOutlet_type_label
+const (
+ POWEROUTLETTYPELABEL_C5 PowerOutletTypeLabel = "C5"
+ POWEROUTLETTYPELABEL_C7 PowerOutletTypeLabel = "C7"
+ POWEROUTLETTYPELABEL_C13 PowerOutletTypeLabel = "C13"
+ POWEROUTLETTYPELABEL_C15 PowerOutletTypeLabel = "C15"
+ POWEROUTLETTYPELABEL_C19 PowerOutletTypeLabel = "C19"
+ POWEROUTLETTYPELABEL_C21 PowerOutletTypeLabel = "C21"
+ POWEROUTLETTYPELABEL_PNE_4_H PowerOutletTypeLabel = "P+N+E 4H"
+ POWEROUTLETTYPELABEL_PNE_6_H PowerOutletTypeLabel = "P+N+E 6H"
+ POWEROUTLETTYPELABEL_PNE_9_H PowerOutletTypeLabel = "P+N+E 9H"
+ POWEROUTLETTYPELABEL__2_PE_4_H PowerOutletTypeLabel = "2P+E 4H"
+ POWEROUTLETTYPELABEL__2_PE_6_H PowerOutletTypeLabel = "2P+E 6H"
+ POWEROUTLETTYPELABEL__2_PE_9_H PowerOutletTypeLabel = "2P+E 9H"
+ POWEROUTLETTYPELABEL__3_PE_4_H PowerOutletTypeLabel = "3P+E 4H"
+ POWEROUTLETTYPELABEL__3_PE_6_H PowerOutletTypeLabel = "3P+E 6H"
+ POWEROUTLETTYPELABEL__3_PE_9_H PowerOutletTypeLabel = "3P+E 9H"
+ POWEROUTLETTYPELABEL__3_PNE_4_H PowerOutletTypeLabel = "3P+N+E 4H"
+ POWEROUTLETTYPELABEL__3_PNE_6_H PowerOutletTypeLabel = "3P+N+E 6H"
+ POWEROUTLETTYPELABEL__3_PNE_9_H PowerOutletTypeLabel = "3P+N+E 9H"
+ POWEROUTLETTYPELABEL_IEC_60906_1 PowerOutletTypeLabel = "IEC 60906-1"
+ POWEROUTLETTYPELABEL__2_PT_10_A__NBR_14136 PowerOutletTypeLabel = "2P+T 10A (NBR 14136)"
+ POWEROUTLETTYPELABEL__2_PT_20_A__NBR_14136 PowerOutletTypeLabel = "2P+T 20A (NBR 14136)"
+ POWEROUTLETTYPELABEL_NEMA_1_15_R PowerOutletTypeLabel = "NEMA 1-15R"
+ POWEROUTLETTYPELABEL_NEMA_5_15_R PowerOutletTypeLabel = "NEMA 5-15R"
+ POWEROUTLETTYPELABEL_NEMA_5_20_R PowerOutletTypeLabel = "NEMA 5-20R"
+ POWEROUTLETTYPELABEL_NEMA_5_30_R PowerOutletTypeLabel = "NEMA 5-30R"
+ POWEROUTLETTYPELABEL_NEMA_5_50_R PowerOutletTypeLabel = "NEMA 5-50R"
+ POWEROUTLETTYPELABEL_NEMA_6_15_R PowerOutletTypeLabel = "NEMA 6-15R"
+ POWEROUTLETTYPELABEL_NEMA_6_20_R PowerOutletTypeLabel = "NEMA 6-20R"
+ POWEROUTLETTYPELABEL_NEMA_6_30_R PowerOutletTypeLabel = "NEMA 6-30R"
+ POWEROUTLETTYPELABEL_NEMA_6_50_R PowerOutletTypeLabel = "NEMA 6-50R"
+ POWEROUTLETTYPELABEL_NEMA_10_30_R PowerOutletTypeLabel = "NEMA 10-30R"
+ POWEROUTLETTYPELABEL_NEMA_10_50_R PowerOutletTypeLabel = "NEMA 10-50R"
+ POWEROUTLETTYPELABEL_NEMA_14_20_R PowerOutletTypeLabel = "NEMA 14-20R"
+ POWEROUTLETTYPELABEL_NEMA_14_30_R PowerOutletTypeLabel = "NEMA 14-30R"
+ POWEROUTLETTYPELABEL_NEMA_14_50_R PowerOutletTypeLabel = "NEMA 14-50R"
+ POWEROUTLETTYPELABEL_NEMA_14_60_R PowerOutletTypeLabel = "NEMA 14-60R"
+ POWEROUTLETTYPELABEL_NEMA_15_15_R PowerOutletTypeLabel = "NEMA 15-15R"
+ POWEROUTLETTYPELABEL_NEMA_15_20_R PowerOutletTypeLabel = "NEMA 15-20R"
+ POWEROUTLETTYPELABEL_NEMA_15_30_R PowerOutletTypeLabel = "NEMA 15-30R"
+ POWEROUTLETTYPELABEL_NEMA_15_50_R PowerOutletTypeLabel = "NEMA 15-50R"
+ POWEROUTLETTYPELABEL_NEMA_15_60_R PowerOutletTypeLabel = "NEMA 15-60R"
+ POWEROUTLETTYPELABEL_NEMA_L1_15_R PowerOutletTypeLabel = "NEMA L1-15R"
+ POWEROUTLETTYPELABEL_NEMA_L5_15_R PowerOutletTypeLabel = "NEMA L5-15R"
+ POWEROUTLETTYPELABEL_NEMA_L5_20_R PowerOutletTypeLabel = "NEMA L5-20R"
+ POWEROUTLETTYPELABEL_NEMA_L5_30_R PowerOutletTypeLabel = "NEMA L5-30R"
+ POWEROUTLETTYPELABEL_NEMA_L5_50_R PowerOutletTypeLabel = "NEMA L5-50R"
+ POWEROUTLETTYPELABEL_NEMA_L6_15_R PowerOutletTypeLabel = "NEMA L6-15R"
+ POWEROUTLETTYPELABEL_NEMA_L6_20_R PowerOutletTypeLabel = "NEMA L6-20R"
+ POWEROUTLETTYPELABEL_NEMA_L6_30_R PowerOutletTypeLabel = "NEMA L6-30R"
+ POWEROUTLETTYPELABEL_NEMA_L6_50_R PowerOutletTypeLabel = "NEMA L6-50R"
+ POWEROUTLETTYPELABEL_NEMA_L10_30_R PowerOutletTypeLabel = "NEMA L10-30R"
+ POWEROUTLETTYPELABEL_NEMA_L14_20_R PowerOutletTypeLabel = "NEMA L14-20R"
+ POWEROUTLETTYPELABEL_NEMA_L14_30_R PowerOutletTypeLabel = "NEMA L14-30R"
+ POWEROUTLETTYPELABEL_NEMA_L14_50_R PowerOutletTypeLabel = "NEMA L14-50R"
+ POWEROUTLETTYPELABEL_NEMA_L14_60_R PowerOutletTypeLabel = "NEMA L14-60R"
+ POWEROUTLETTYPELABEL_NEMA_L15_20_R PowerOutletTypeLabel = "NEMA L15-20R"
+ POWEROUTLETTYPELABEL_NEMA_L15_30_R PowerOutletTypeLabel = "NEMA L15-30R"
+ POWEROUTLETTYPELABEL_NEMA_L15_50_R PowerOutletTypeLabel = "NEMA L15-50R"
+ POWEROUTLETTYPELABEL_NEMA_L15_60_R PowerOutletTypeLabel = "NEMA L15-60R"
+ POWEROUTLETTYPELABEL_NEMA_L21_20_R PowerOutletTypeLabel = "NEMA L21-20R"
+ POWEROUTLETTYPELABEL_NEMA_L21_30_R PowerOutletTypeLabel = "NEMA L21-30R"
+ POWEROUTLETTYPELABEL_NEMA_L22_30_R PowerOutletTypeLabel = "NEMA L22-30R"
+ POWEROUTLETTYPELABEL_CS6360_C PowerOutletTypeLabel = "CS6360C"
+ POWEROUTLETTYPELABEL_CS6364_C PowerOutletTypeLabel = "CS6364C"
+ POWEROUTLETTYPELABEL_CS8164_C PowerOutletTypeLabel = "CS8164C"
+ POWEROUTLETTYPELABEL_CS8264_C PowerOutletTypeLabel = "CS8264C"
+ POWEROUTLETTYPELABEL_CS8364_C PowerOutletTypeLabel = "CS8364C"
+ POWEROUTLETTYPELABEL_CS8464_C PowerOutletTypeLabel = "CS8464C"
+ POWEROUTLETTYPELABEL_ITA_TYPE_E__CEE_7_5 PowerOutletTypeLabel = "ITA Type E (CEE 7/5)"
+ POWEROUTLETTYPELABEL_ITA_TYPE_F__CEE_7_3 PowerOutletTypeLabel = "ITA Type F (CEE 7/3)"
+ POWEROUTLETTYPELABEL_ITA_TYPE_G__BS_1363 PowerOutletTypeLabel = "ITA Type G (BS 1363)"
+ POWEROUTLETTYPELABEL_ITA_TYPE_H PowerOutletTypeLabel = "ITA Type H"
+ POWEROUTLETTYPELABEL_ITA_TYPE_I PowerOutletTypeLabel = "ITA Type I"
+ POWEROUTLETTYPELABEL_ITA_TYPE_J PowerOutletTypeLabel = "ITA Type J"
+ POWEROUTLETTYPELABEL_ITA_TYPE_K PowerOutletTypeLabel = "ITA Type K"
+ POWEROUTLETTYPELABEL_ITA_TYPE_L__CEI_23_50 PowerOutletTypeLabel = "ITA Type L (CEI 23-50)"
+ POWEROUTLETTYPELABEL_ITA_TYPE_M__BS_546 PowerOutletTypeLabel = "ITA Type M (BS 546)"
+ POWEROUTLETTYPELABEL_ITA_TYPE_N PowerOutletTypeLabel = "ITA Type N"
+ POWEROUTLETTYPELABEL_ITA_TYPE_O PowerOutletTypeLabel = "ITA Type O"
+ POWEROUTLETTYPELABEL_ITA_MULTISTANDARD PowerOutletTypeLabel = "ITA Multistandard"
+ POWEROUTLETTYPELABEL_USB_TYPE_A PowerOutletTypeLabel = "USB Type A"
+ POWEROUTLETTYPELABEL_USB_MICRO_B PowerOutletTypeLabel = "USB Micro B"
+ POWEROUTLETTYPELABEL_USB_TYPE_C PowerOutletTypeLabel = "USB Type C"
+ POWEROUTLETTYPELABEL_DC_TERMINAL PowerOutletTypeLabel = "DC Terminal"
+ POWEROUTLETTYPELABEL_HDOT_CX PowerOutletTypeLabel = "HDOT Cx"
+ POWEROUTLETTYPELABEL_SAF_D_GRID PowerOutletTypeLabel = "Saf-D-Grid"
+ POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON__20_A PowerOutletTypeLabel = "Neutrik powerCON (20A)"
+ POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON__32_A PowerOutletTypeLabel = "Neutrik powerCON (32A)"
+ POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON_TRUE1 PowerOutletTypeLabel = "Neutrik powerCON TRUE1"
+ POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON_TRUE1_TOP PowerOutletTypeLabel = "Neutrik powerCON TRUE1 TOP"
+ POWEROUTLETTYPELABEL_UBIQUITI_SMART_POWER PowerOutletTypeLabel = "Ubiquiti SmartPower"
+ POWEROUTLETTYPELABEL_HARDWIRED PowerOutletTypeLabel = "Hardwired"
+ POWEROUTLETTYPELABEL_OTHER PowerOutletTypeLabel = "Other"
+)
+
+// All allowed values of PowerOutletTypeLabel enum
+var AllowedPowerOutletTypeLabelEnumValues = []PowerOutletTypeLabel{
+ "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",
+}
+
+func (v *PowerOutletTypeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PowerOutletTypeLabel(value)
+ for _, existing := range AllowedPowerOutletTypeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PowerOutletTypeLabel", value)
+}
+
+// NewPowerOutletTypeLabelFromValue returns a pointer to a valid PowerOutletTypeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPowerOutletTypeLabelFromValue(v string) (*PowerOutletTypeLabel, error) {
+ ev := PowerOutletTypeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PowerOutletTypeLabel: valid values are %v", v, AllowedPowerOutletTypeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PowerOutletTypeLabel) IsValid() bool {
+ for _, existing := range AllowedPowerOutletTypeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PowerOutlet_type_label value
+func (v PowerOutletTypeLabel) Ptr() *PowerOutletTypeLabel {
+ return &v
+}
+
+type NullablePowerOutletTypeLabel struct {
+ value *PowerOutletTypeLabel
+ isSet bool
+}
+
+func (v NullablePowerOutletTypeLabel) Get() *PowerOutletTypeLabel {
+ return v.value
+}
+
+func (v *NullablePowerOutletTypeLabel) Set(val *PowerOutletTypeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePowerOutletTypeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePowerOutletTypeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePowerOutletTypeLabel(val *PowerOutletTypeLabel) *NullablePowerOutletTypeLabel {
+ return &NullablePowerOutletTypeLabel{value: val, isSet: true}
+}
+
+func (v NullablePowerOutletTypeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePowerOutletTypeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_power_panel.go b/model_power_panel.go
index f33cda21ce..486c6f53e9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -471,10 +472,38 @@ func (o PowerPanel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerPanel) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "name",
+ "powerfeed_count",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varPowerPanel := _PowerPanel{}
- err = json.Unmarshal(bytes, &varPowerPanel)
+ err = json.Unmarshal(data, &varPowerPanel)
if err != nil {
return err
@@ -484,7 +513,7 @@ func (o *PowerPanel) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_power_panel_request.go b/model_power_panel_request.go
index 4ce6a30903..483886822a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 PowerPanelRequest type satisfies the MappedNullable interface at compile time
@@ -304,10 +305,32 @@ func (o PowerPanelRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerPanelRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerPanelRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varPowerPanelRequest := _PowerPanelRequest{}
- err = json.Unmarshal(bytes, &varPowerPanelRequest)
+ err = json.Unmarshal(data, &varPowerPanelRequest)
if err != nil {
return err
@@ -317,7 +340,7 @@ func (o *PowerPanelRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "site")
delete(additionalProperties, "location")
delete(additionalProperties, "name")
diff --git a/model_power_port.go b/model_power_port.go
index ddcce45741..44b4ecfae2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -844,10 +845,45 @@ func (o PowerPort) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerPort) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerPort) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "cable",
+ "cable_end",
+ "link_peers",
+ "link_peers_type",
+ "connected_endpoints",
+ "connected_endpoints_type",
+ "connected_endpoints_reachable",
+ "created",
+ "last_updated",
+ "_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)
+ }
+ }
+
varPowerPort := _PowerPort{}
- err = json.Unmarshal(bytes, &varPowerPort)
+ err = json.Unmarshal(data, &varPowerPort)
if err != nil {
return err
@@ -857,7 +893,7 @@ func (o *PowerPort) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_power_port_request.go b/model_power_port_request.go
index 413da2f7eb..12506d7758 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 PowerPortRequest type satisfies the MappedNullable interface at compile time
@@ -23,9 +24,8 @@ type PowerPortRequest struct {
Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other
- Type NullableString `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePowerPortRequestType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
@@ -183,9 +183,9 @@ func (o *PowerPortRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerPortRequest) GetType() string {
+func (o *PowerPortRequest) GetType() PowerPortRequestType {
if o == nil || IsNil(o.Type.Get()) {
- var ret string
+ var ret PowerPortRequestType
return ret
}
return *o.Type.Get()
@@ -194,7 +194,7 @@ func (o *PowerPortRequest) GetType() string {
// 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() (*string, bool) {
+func (o *PowerPortRequest) GetTypeOk() (*PowerPortRequestType, bool) {
if o == nil {
return nil, false
}
@@ -210,8 +210,8 @@ func (o *PowerPortRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given NullableString and assigns it to the Type field.
-func (o *PowerPortRequest) SetType(v string) {
+// 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)
}
@@ -486,10 +486,32 @@ func (o PowerPortRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerPortRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varPowerPortRequest := _PowerPortRequest{}
- err = json.Unmarshal(bytes, &varPowerPortRequest)
+ err = json.Unmarshal(data, &varPowerPortRequest)
if err != nil {
return err
@@ -499,7 +521,7 @@ func (o *PowerPortRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_power_port_request_type.go b/model_power_port_request_type.go
new file mode 100644
index 0000000000..30f2ec5532
--- /dev/null
+++ b/model_power_port_request_type.go
@@ -0,0 +1,308 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 a4be76f0cd..7f14ca67f9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -537,10 +538,36 @@ func (o PowerPortTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerPortTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerPortTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varPowerPortTemplate := _PowerPortTemplate{}
- err = json.Unmarshal(bytes, &varPowerPortTemplate)
+ err = json.Unmarshal(data, &varPowerPortTemplate)
if err != nil {
return err
@@ -550,7 +577,7 @@ func (o *PowerPortTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_power_port_template_request.go b/model_power_port_template_request.go
index 6344adf54c..b596153069 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 PowerPortTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,9 +25,8 @@ type PowerPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `iec-60320-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 NullableString `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePowerPortRequestType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
@@ -198,9 +198,9 @@ func (o *PowerPortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerPortTemplateRequest) GetType() string {
+func (o *PowerPortTemplateRequest) GetType() PowerPortRequestType {
if o == nil || IsNil(o.Type.Get()) {
- var ret string
+ var ret PowerPortRequestType
return ret
}
return *o.Type.Get()
@@ -209,7 +209,7 @@ func (o *PowerPortTemplateRequest) GetType() string {
// 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() (*string, bool) {
+func (o *PowerPortTemplateRequest) GetTypeOk() (*PowerPortRequestType, bool) {
if o == nil {
return nil, false
}
@@ -225,8 +225,8 @@ func (o *PowerPortTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given NullableString and assigns it to the Type field.
-func (o *PowerPortTemplateRequest) SetType(v string) {
+// 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)
}
@@ -398,10 +398,31 @@ func (o PowerPortTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varPowerPortTemplateRequest := _PowerPortTemplateRequest{}
- err = json.Unmarshal(bytes, &varPowerPortTemplateRequest)
+ err = json.Unmarshal(data, &varPowerPortTemplateRequest)
if err != nil {
return err
@@ -411,7 +432,7 @@ func (o *PowerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_power_port_type.go b/model_power_port_type.go
index 1d7a4a7e1e..6af0a1cc87 100644
--- a/model_power_port_type.go
+++ b/model_power_port_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &PowerPortType{}
// PowerPortType struct for PowerPortType
type PowerPortType struct {
- // * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *PatchedWritablePowerPortTemplateRequestType `json:"value,omitempty"`
+ Label *PowerPortTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewPowerPortTypeWithDefaults() *PowerPortType {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *PowerPortType) GetValue() string {
+func (o *PowerPortType) GetValue() PatchedWritablePowerPortTemplateRequestType {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret PatchedWritablePowerPortTemplateRequestType
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *PowerPortType) GetValue() string {
// 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() (*string, bool) {
+func (o *PowerPortType) GetValueOk() (*PatchedWritablePowerPortTemplateRequestType, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *PowerPortType) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *PowerPortType) SetValue(v string) {
+// 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() string {
+func (o *PowerPortType) GetLabel() PowerPortTypeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret PowerPortTypeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *PowerPortType) 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 *PowerPortType) GetLabelOk() (*string, bool) {
+func (o *PowerPortType) GetLabelOk() (*PowerPortTypeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *PowerPortType) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PowerPortType) SetLabel(v string) {
+// SetLabel gets a reference to the given PowerPortTypeLabel and assigns it to the Label field.
+func (o *PowerPortType) SetLabel(v PowerPortTypeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o PowerPortType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PowerPortType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PowerPortType) UnmarshalJSON(data []byte) (err error) {
varPowerPortType := _PowerPortType{}
- err = json.Unmarshal(bytes, &varPowerPortType)
+ err = json.Unmarshal(data, &varPowerPortType)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *PowerPortType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_power_port_type_label.go b/model_power_port_type_label.go
new file mode 100644
index 0000000000..2ef4ab7c76
--- /dev/null
+++ b/model_power_port_type_label.go
@@ -0,0 +1,306 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 ad6a49ef88..fb75513e3c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -796,10 +797,39 @@ func (o Prefix) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Prefix) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Prefix) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "prefix",
+ "created",
+ "last_updated",
+ "children",
+ "_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)
+ }
+ }
+
varPrefix := _Prefix{}
- err = json.Unmarshal(bytes, &varPrefix)
+ err = json.Unmarshal(data, &varPrefix)
if err != nil {
return err
@@ -809,7 +839,7 @@ func (o *Prefix) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_prefix_request.go b/model_prefix_request.go
index d840af585c..3458525847 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 PrefixRequest type satisfies the MappedNullable interface at compile time
@@ -24,9 +25,8 @@ type PrefixRequest struct {
Vrf NullableNestedVRFRequest `json:"vrf,omitempty"`
Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
Vlan NullableNestedVLANRequest `json:"vlan,omitempty"`
- // * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
- Role NullableNestedRoleRequest `json:"role,omitempty"`
+ Status *PrefixStatusValue `json:"status,omitempty"`
+ Role NullableNestedRoleRequest `json:"role,omitempty"`
// All IP addresses within this prefix are considered usable
IsPool *bool `json:"is_pool,omitempty"`
// Treat as 100% utilized
@@ -255,9 +255,9 @@ func (o *PrefixRequest) UnsetVlan() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PrefixRequest) GetStatus() string {
+func (o *PrefixRequest) GetStatus() PrefixStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PrefixStatusValue
return ret
}
return *o.Status
@@ -265,7 +265,7 @@ func (o *PrefixRequest) GetStatus() string {
// 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 *PrefixRequest) GetStatusOk() (*string, bool) {
+func (o *PrefixRequest) GetStatusOk() (*PrefixStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -281,8 +281,8 @@ func (o *PrefixRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *PrefixRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PrefixStatusValue and assigns it to the Status field.
+func (o *PrefixRequest) SetStatus(v PrefixStatusValue) {
o.Status = &v
}
@@ -576,10 +576,31 @@ func (o PrefixRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PrefixRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PrefixRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "prefix",
+ }
+
+ 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)
+ }
+ }
+
varPrefixRequest := _PrefixRequest{}
- err = json.Unmarshal(bytes, &varPrefixRequest)
+ err = json.Unmarshal(data, &varPrefixRequest)
if err != nil {
return err
@@ -589,7 +610,7 @@ func (o *PrefixRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "prefix")
delete(additionalProperties, "site")
delete(additionalProperties, "vrf")
diff --git a/model_prefix_status.go b/model_prefix_status.go
index 217a4f3e20..503e8efc3d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &PrefixStatus{}
// PrefixStatus struct for PrefixStatus
type PrefixStatus struct {
- // * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *PrefixStatusValue `json:"value,omitempty"`
+ Label *PrefixStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewPrefixStatusWithDefaults() *PrefixStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *PrefixStatus) GetValue() string {
+func (o *PrefixStatus) GetValue() PrefixStatusValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret PrefixStatusValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *PrefixStatus) GetValue() string {
// 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 *PrefixStatus) GetValueOk() (*string, bool) {
+func (o *PrefixStatus) GetValueOk() (*PrefixStatusValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *PrefixStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *PrefixStatus) SetValue(v string) {
+// SetValue gets a reference to the given PrefixStatusValue and assigns it to the Value field.
+func (o *PrefixStatus) SetValue(v PrefixStatusValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *PrefixStatus) GetLabel() string {
+func (o *PrefixStatus) GetLabel() PrefixStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret PrefixStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *PrefixStatus) 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 *PrefixStatus) GetLabelOk() (*string, bool) {
+func (o *PrefixStatus) GetLabelOk() (*PrefixStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *PrefixStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PrefixStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given PrefixStatusLabel and assigns it to the Label field.
+func (o *PrefixStatus) SetLabel(v PrefixStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o PrefixStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PrefixStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *PrefixStatus) UnmarshalJSON(data []byte) (err error) {
varPrefixStatus := _PrefixStatus{}
- err = json.Unmarshal(bytes, &varPrefixStatus)
+ err = json.Unmarshal(data, &varPrefixStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *PrefixStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_prefix_status_label.go b/model_prefix_status_label.go
new file mode 100644
index 0000000000..74082cc19c
--- /dev/null
+++ b/model_prefix_status_label.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PrefixStatusLabel the model 'PrefixStatusLabel'
+type PrefixStatusLabel string
+
+// List of Prefix_status_label
+const (
+ PREFIXSTATUSLABEL_CONTAINER PrefixStatusLabel = "Container"
+ PREFIXSTATUSLABEL_ACTIVE PrefixStatusLabel = "Active"
+ PREFIXSTATUSLABEL_RESERVED PrefixStatusLabel = "Reserved"
+ PREFIXSTATUSLABEL_DEPRECATED PrefixStatusLabel = "Deprecated"
+)
+
+// All allowed values of PrefixStatusLabel enum
+var AllowedPrefixStatusLabelEnumValues = []PrefixStatusLabel{
+ "Container",
+ "Active",
+ "Reserved",
+ "Deprecated",
+}
+
+func (v *PrefixStatusLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PrefixStatusLabel(value)
+ for _, existing := range AllowedPrefixStatusLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PrefixStatusLabel", value)
+}
+
+// NewPrefixStatusLabelFromValue returns a pointer to a valid PrefixStatusLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPrefixStatusLabelFromValue(v string) (*PrefixStatusLabel, error) {
+ ev := PrefixStatusLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PrefixStatusLabel: valid values are %v", v, AllowedPrefixStatusLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PrefixStatusLabel) IsValid() bool {
+ for _, existing := range AllowedPrefixStatusLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Prefix_status_label value
+func (v PrefixStatusLabel) Ptr() *PrefixStatusLabel {
+ return &v
+}
+
+type NullablePrefixStatusLabel struct {
+ value *PrefixStatusLabel
+ isSet bool
+}
+
+func (v NullablePrefixStatusLabel) Get() *PrefixStatusLabel {
+ return v.value
+}
+
+func (v *NullablePrefixStatusLabel) Set(val *PrefixStatusLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePrefixStatusLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePrefixStatusLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePrefixStatusLabel(val *PrefixStatusLabel) *NullablePrefixStatusLabel {
+ return &NullablePrefixStatusLabel{value: val, isSet: true}
+}
+
+func (v NullablePrefixStatusLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePrefixStatusLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_prefix_status_value.go b/model_prefix_status_value.go
new file mode 100644
index 0000000000..2257ff0b0a
--- /dev/null
+++ b/model_prefix_status_value.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PrefixStatusValue * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
+type PrefixStatusValue string
+
+// List of Prefix_status_value
+const (
+ PREFIXSTATUSVALUE_CONTAINER PrefixStatusValue = "container"
+ PREFIXSTATUSVALUE_ACTIVE PrefixStatusValue = "active"
+ PREFIXSTATUSVALUE_RESERVED PrefixStatusValue = "reserved"
+ PREFIXSTATUSVALUE_DEPRECATED PrefixStatusValue = "deprecated"
+)
+
+// All allowed values of PrefixStatusValue enum
+var AllowedPrefixStatusValueEnumValues = []PrefixStatusValue{
+ "container",
+ "active",
+ "reserved",
+ "deprecated",
+}
+
+func (v *PrefixStatusValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PrefixStatusValue(value)
+ for _, existing := range AllowedPrefixStatusValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PrefixStatusValue", value)
+}
+
+// NewPrefixStatusValueFromValue returns a pointer to a valid PrefixStatusValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPrefixStatusValueFromValue(v string) (*PrefixStatusValue, error) {
+ ev := PrefixStatusValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PrefixStatusValue: valid values are %v", v, AllowedPrefixStatusValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PrefixStatusValue) IsValid() bool {
+ for _, existing := range AllowedPrefixStatusValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Prefix_status_value value
+func (v PrefixStatusValue) Ptr() *PrefixStatusValue {
+ return &v
+}
+
+type NullablePrefixStatusValue struct {
+ value *PrefixStatusValue
+ isSet bool
+}
+
+func (v NullablePrefixStatusValue) Get() *PrefixStatusValue {
+ return v.value
+}
+
+func (v *NullablePrefixStatusValue) Set(val *PrefixStatusValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePrefixStatusValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePrefixStatusValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePrefixStatusValue(val *PrefixStatusValue) *NullablePrefixStatusValue {
+ return &NullablePrefixStatusValue{value: val, isSet: true}
+}
+
+func (v NullablePrefixStatusValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePrefixStatusValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_provider.go b/model_provider.go
index 998186cd4e..414931951b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -497,10 +498,38 @@ func (o Provider) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Provider) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Provider) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "circuit_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)
+ }
+ }
+
varProvider := _Provider{}
- err = json.Unmarshal(bytes, &varProvider)
+ err = json.Unmarshal(data, &varProvider)
if err != nil {
return err
@@ -510,7 +539,7 @@ func (o *Provider) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_provider_account.go b/model_provider_account.go
index c6d6c8349c..ad7715d6ab 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -433,10 +434,37 @@ func (o ProviderAccount) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ProviderAccount) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ProviderAccount) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "provider",
+ "account",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varProviderAccount := _ProviderAccount{}
- err = json.Unmarshal(bytes, &varProviderAccount)
+ err = json.Unmarshal(data, &varProviderAccount)
if err != nil {
return err
@@ -446,7 +474,7 @@ func (o *ProviderAccount) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_provider_account_request.go b/model_provider_account_request.go
index aa3bc79da3..d04ad95518 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ProviderAccountRequest type satisfies the MappedNullable interface at compile time
@@ -293,10 +294,32 @@ func (o ProviderAccountRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ProviderAccountRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ProviderAccountRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varProviderAccountRequest := _ProviderAccountRequest{}
- err = json.Unmarshal(bytes, &varProviderAccountRequest)
+ err = json.Unmarshal(data, &varProviderAccountRequest)
if err != nil {
return err
@@ -306,7 +329,7 @@ func (o *ProviderAccountRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "provider")
delete(additionalProperties, "name")
delete(additionalProperties, "account")
diff --git a/model_provider_network.go b/model_provider_network.go
index cd164ce6c3..b12974c6af 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -433,10 +434,37 @@ func (o ProviderNetwork) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ProviderNetwork) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "provider",
+ "name",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varProviderNetwork := _ProviderNetwork{}
- err = json.Unmarshal(bytes, &varProviderNetwork)
+ err = json.Unmarshal(data, &varProviderNetwork)
if err != nil {
return err
@@ -446,7 +474,7 @@ func (o *ProviderNetwork) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_provider_network_request.go b/model_provider_network_request.go
index bcb13f70d6..577390a025 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ProviderNetworkRequest type satisfies the MappedNullable interface at compile time
@@ -293,10 +294,32 @@ func (o ProviderNetworkRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ProviderNetworkRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varProviderNetworkRequest := _ProviderNetworkRequest{}
- err = json.Unmarshal(bytes, &varProviderNetworkRequest)
+ err = json.Unmarshal(data, &varProviderNetworkRequest)
if err != nil {
return err
@@ -306,7 +329,7 @@ func (o *ProviderNetworkRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "provider")
delete(additionalProperties, "name")
delete(additionalProperties, "service_id")
diff --git a/model_provider_request.go b/model_provider_request.go
index 509896aaad..3ef60b41fe 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ProviderRequest type satisfies the MappedNullable interface at compile time
@@ -330,10 +331,32 @@ func (o ProviderRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ProviderRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ProviderRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varProviderRequest := _ProviderRequest{}
- err = json.Unmarshal(bytes, &varProviderRequest)
+ err = json.Unmarshal(data, &varProviderRequest)
if err != nil {
return err
@@ -343,7 +366,7 @@ func (o *ProviderRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "accounts")
diff --git a/model_rack.go b/model_rack.go
index 481a98fb18..ab1e6ade0b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -1286,10 +1287,39 @@ func (o Rack) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Rack) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Rack) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "site",
+ "created",
+ "last_updated",
+ "device_count",
+ "powerfeed_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)
+ }
+ }
+
varRack := _Rack{}
- err = json.Unmarshal(bytes, &varRack)
+ err = json.Unmarshal(data, &varRack)
if err != nil {
return err
@@ -1299,7 +1329,7 @@ func (o *Rack) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_rack_face.go b/model_rack_face.go
new file mode 100644
index 0000000000..26d6dbd305
--- /dev/null
+++ b/model_rack_face.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// RackFace * `front` - Front * `rear` - Rear
+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 {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := RackFace(value)
+ for _, existing := range AllowedRackFaceEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid RackFace", value)
+}
+
+// NewRackFaceFromValue returns a pointer to a valid RackFace
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewRackFaceFromValue(v string) (*RackFace, error) {
+ ev := RackFace(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for RackFace: valid values are %v", v, AllowedRackFaceEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v RackFace) IsValid() bool {
+ for _, existing := range AllowedRackFaceEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Rack_face value
+func (v RackFace) Ptr() *RackFace {
+ return &v
+}
+
+type NullableRackFace struct {
+ value *RackFace
+ isSet bool
+}
+
+func (v NullableRackFace) Get() *RackFace {
+ return v.value
+}
+
+func (v *NullableRackFace) Set(val *RackFace) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRackFace) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRackFace) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRackFace(val *RackFace) *NullableRackFace {
+ return &NullableRackFace{value: val, isSet: true}
+}
+
+func (v NullableRackFace) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRackFace) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_rack_outer_unit.go b/model_rack_outer_unit.go
index 1499f82033..a49dd470e8 100644
--- a/model_rack_outer_unit.go
+++ b/model_rack_outer_unit.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &RackOuterUnit{}
// RackOuterUnit struct for RackOuterUnit
type RackOuterUnit struct {
- // * `mm` - Millimeters * `in` - Inches
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *PatchedWritableRackRequestOuterUnit `json:"value,omitempty"`
+ Label *RackOuterUnitLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewRackOuterUnitWithDefaults() *RackOuterUnit {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *RackOuterUnit) GetValue() string {
+func (o *RackOuterUnit) GetValue() PatchedWritableRackRequestOuterUnit {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret PatchedWritableRackRequestOuterUnit
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *RackOuterUnit) GetValue() string {
// 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() (*string, bool) {
+func (o *RackOuterUnit) GetValueOk() (*PatchedWritableRackRequestOuterUnit, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *RackOuterUnit) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *RackOuterUnit) SetValue(v string) {
+// 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() string {
+func (o *RackOuterUnit) GetLabel() RackOuterUnitLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret RackOuterUnitLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *RackOuterUnit) 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 *RackOuterUnit) GetLabelOk() (*string, bool) {
+func (o *RackOuterUnit) GetLabelOk() (*RackOuterUnitLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *RackOuterUnit) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *RackOuterUnit) SetLabel(v string) {
+// SetLabel gets a reference to the given RackOuterUnitLabel and assigns it to the Label field.
+func (o *RackOuterUnit) SetLabel(v RackOuterUnitLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o RackOuterUnit) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RackOuterUnit) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RackOuterUnit) UnmarshalJSON(data []byte) (err error) {
varRackOuterUnit := _RackOuterUnit{}
- err = json.Unmarshal(bytes, &varRackOuterUnit)
+ err = json.Unmarshal(data, &varRackOuterUnit)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *RackOuterUnit) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_rack_outer_unit_label.go b/model_rack_outer_unit_label.go
new file mode 100644
index 0000000000..90661622aa
--- /dev/null
+++ b/model_rack_outer_unit_label.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 332b328ccb..3dc690fe1e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 RackRequest type satisfies the MappedNullable interface at compile time
@@ -19,38 +20,33 @@ 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"`
- // * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
- Role NullableNestedRackRoleRequest `json:"role,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ 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"`
- // * `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 NullableString `json:"type,omitempty"`
- // * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches
- Width *int32 `json:"width,omitempty"`
+ 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"`
- // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
- WeightUnit NullableString `json:"weight_unit,omitempty"`
+ MaxWeight NullableInt32 `json:"max_weight,omitempty"`
+ WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
// Units are numbered top-to-bottom
DescUnits *bool `json:"desc_units,omitempty"`
// Outer dimension of rack (width)
OuterWidth NullableInt32 `json:"outer_width,omitempty"`
// Outer dimension of rack (depth)
- OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
- // * `mm` - Millimeters * `in` - Inches
- OuterUnit NullableString `json:"outer_unit,omitempty"`
+ 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"`
@@ -259,9 +255,9 @@ func (o *RackRequest) UnsetTenant() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *RackRequest) GetStatus() string {
+func (o *RackRequest) GetStatus() PatchedWritableRackRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritableRackRequestStatus
return ret
}
return *o.Status
@@ -269,7 +265,7 @@ func (o *RackRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *RackRequest) GetStatusOk() (*PatchedWritableRackRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -285,8 +281,8 @@ func (o *RackRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *RackRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritableRackRequestStatus and assigns it to the Status field.
+func (o *RackRequest) SetStatus(v PatchedWritableRackRequestStatus) {
o.Status = &v
}
@@ -409,9 +405,9 @@ func (o *RackRequest) UnsetAssetTag() {
}
// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *RackRequest) GetType() string {
+func (o *RackRequest) GetType() RackRequestType {
if o == nil || IsNil(o.Type.Get()) {
- var ret string
+ var ret RackRequestType
return ret
}
return *o.Type.Get()
@@ -420,7 +416,7 @@ func (o *RackRequest) GetType() string {
// 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() (*string, bool) {
+func (o *RackRequest) GetTypeOk() (*RackRequestType, bool) {
if o == nil {
return nil, false
}
@@ -436,8 +432,8 @@ func (o *RackRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given NullableString and assigns it to the Type field.
-func (o *RackRequest) SetType(v string) {
+// 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)
}
@@ -452,9 +448,9 @@ func (o *RackRequest) UnsetType() {
}
// GetWidth returns the Width field value if set, zero value otherwise.
-func (o *RackRequest) GetWidth() int32 {
+func (o *RackRequest) GetWidth() RackWidthValue {
if o == nil || IsNil(o.Width) {
- var ret int32
+ var ret RackWidthValue
return ret
}
return *o.Width
@@ -462,7 +458,7 @@ func (o *RackRequest) GetWidth() int32 {
// 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() (*int32, bool) {
+func (o *RackRequest) GetWidthOk() (*RackWidthValue, bool) {
if o == nil || IsNil(o.Width) {
return nil, false
}
@@ -478,8 +474,8 @@ func (o *RackRequest) HasWidth() bool {
return false
}
-// SetWidth gets a reference to the given int32 and assigns it to the Width field.
-func (o *RackRequest) SetWidth(v int32) {
+// SetWidth gets a reference to the given RackWidthValue and assigns it to the Width field.
+func (o *RackRequest) SetWidth(v RackWidthValue) {
o.Width = &v
}
@@ -634,9 +630,9 @@ func (o *RackRequest) UnsetMaxWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *RackRequest) GetWeightUnit() string {
+func (o *RackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit {
if o == nil || IsNil(o.WeightUnit.Get()) {
- var ret string
+ var ret DeviceTypeRequestWeightUnit
return ret
}
return *o.WeightUnit.Get()
@@ -645,7 +641,7 @@ func (o *RackRequest) GetWeightUnit() string {
// 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() (*string, bool) {
+func (o *RackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) {
if o == nil {
return nil, false
}
@@ -661,8 +657,8 @@ func (o *RackRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given NullableString and assigns it to the WeightUnit field.
-func (o *RackRequest) SetWeightUnit(v string) {
+// 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)
}
@@ -795,9 +791,9 @@ func (o *RackRequest) UnsetOuterDepth() {
}
// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *RackRequest) GetOuterUnit() string {
+func (o *RackRequest) GetOuterUnit() RackRequestOuterUnit {
if o == nil || IsNil(o.OuterUnit.Get()) {
- var ret string
+ var ret RackRequestOuterUnit
return ret
}
return *o.OuterUnit.Get()
@@ -806,7 +802,7 @@ func (o *RackRequest) GetOuterUnit() string {
// 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() (*string, bool) {
+func (o *RackRequest) GetOuterUnitOk() (*RackRequestOuterUnit, bool) {
if o == nil {
return nil, false
}
@@ -822,8 +818,8 @@ func (o *RackRequest) HasOuterUnit() bool {
return false
}
-// SetOuterUnit gets a reference to the given NullableString and assigns it to the OuterUnit field.
-func (o *RackRequest) SetOuterUnit(v string) {
+// 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)
}
@@ -1097,10 +1093,32 @@ func (o RackRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RackRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RackRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "site",
+ }
+
+ 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)
+ }
+ }
+
varRackRequest := _RackRequest{}
- err = json.Unmarshal(bytes, &varRackRequest)
+ err = json.Unmarshal(data, &varRackRequest)
if err != nil {
return err
@@ -1110,7 +1128,7 @@ func (o *RackRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "facility_id")
delete(additionalProperties, "site")
diff --git a/model_rack_request_outer_unit.go b/model_rack_request_outer_unit.go
new file mode 100644
index 0000000000..990687f95e
--- /dev/null
+++ b/model_rack_request_outer_unit.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..bbd0088699
--- /dev/null
+++ b/model_rack_request_type.go
@@ -0,0 +1,122 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 c74cc44250..7bff484e58 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -462,10 +463,39 @@ func (o RackReservation) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RackReservation) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RackReservation) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "rack",
+ "units",
+ "created",
+ "last_updated",
+ "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)
+ }
+ }
+
varRackReservation := _RackReservation{}
- err = json.Unmarshal(bytes, &varRackReservation)
+ err = json.Unmarshal(data, &varRackReservation)
if err != nil {
return err
@@ -475,7 +505,7 @@ func (o *RackReservation) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_rack_reservation_request.go b/model_rack_reservation_request.go
index e40f39002a..879fe4612d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 RackReservationRequest type satisfies the MappedNullable interface at compile time
@@ -322,10 +323,34 @@ func (o RackReservationRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RackReservationRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RackReservationRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varRackReservationRequest := _RackReservationRequest{}
- err = json.Unmarshal(bytes, &varRackReservationRequest)
+ err = json.Unmarshal(data, &varRackReservationRequest)
if err != nil {
return err
@@ -335,7 +360,7 @@ func (o *RackReservationRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "rack")
delete(additionalProperties, "units")
delete(additionalProperties, "user")
diff --git a/model_rack_role.go b/model_rack_role.go
index 83bbc48a22..6d1c7c0dc1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -424,10 +425,38 @@ func (o RackRole) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RackRole) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RackRole) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "rack_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)
+ }
+ }
+
varRackRole := _RackRole{}
- err = json.Unmarshal(bytes, &varRackRole)
+ err = json.Unmarshal(data, &varRackRole)
if err != nil {
return err
@@ -437,7 +466,7 @@ func (o *RackRole) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_rack_role_request.go b/model_rack_role_request.go
index d454320a7e..2ebdd8844b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 RackRoleRequest type satisfies the MappedNullable interface at compile time
@@ -257,10 +258,32 @@ func (o RackRoleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RackRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RackRoleRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varRackRoleRequest := _RackRoleRequest{}
- err = json.Unmarshal(bytes, &varRackRoleRequest)
+ err = json.Unmarshal(data, &varRackRoleRequest)
if err != nil {
return err
@@ -270,7 +293,7 @@ func (o *RackRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "color")
diff --git a/model_rack_status.go b/model_rack_status.go
index 4c1e1fd006..2878b4e76f 100644
--- a/model_rack_status.go
+++ b/model_rack_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &RackStatus{}
// RackStatus struct for RackStatus
type RackStatus struct {
- // * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *PatchedWritableRackRequestStatus `json:"value,omitempty"`
+ Label *RackStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewRackStatusWithDefaults() *RackStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *RackStatus) GetValue() string {
+func (o *RackStatus) GetValue() PatchedWritableRackRequestStatus {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret PatchedWritableRackRequestStatus
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *RackStatus) GetValue() string {
// 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() (*string, bool) {
+func (o *RackStatus) GetValueOk() (*PatchedWritableRackRequestStatus, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *RackStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *RackStatus) SetValue(v string) {
+// 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() string {
+func (o *RackStatus) GetLabel() RackStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret RackStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *RackStatus) 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 *RackStatus) GetLabelOk() (*string, bool) {
+func (o *RackStatus) GetLabelOk() (*RackStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *RackStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *RackStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given RackStatusLabel and assigns it to the Label field.
+func (o *RackStatus) SetLabel(v RackStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o RackStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RackStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RackStatus) UnmarshalJSON(data []byte) (err error) {
varRackStatus := _RackStatus{}
- err = json.Unmarshal(bytes, &varRackStatus)
+ err = json.Unmarshal(data, &varRackStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *RackStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_rack_status_label.go b/model_rack_status_label.go
new file mode 100644
index 0000000000..d7d2eb6e94
--- /dev/null
+++ b/model_rack_status_label.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
index 7ab776a79e..c0b443062f 100644
--- a/model_rack_type.go
+++ b/model_rack_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &RackType{}
// RackType struct for RackType
type RackType struct {
- // * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *PatchedWritableRackRequestType `json:"value,omitempty"`
+ Label *RackTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewRackTypeWithDefaults() *RackType {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *RackType) GetValue() string {
+func (o *RackType) GetValue() PatchedWritableRackRequestType {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret PatchedWritableRackRequestType
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *RackType) GetValue() string {
// 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() (*string, bool) {
+func (o *RackType) GetValueOk() (*PatchedWritableRackRequestType, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *RackType) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *RackType) SetValue(v string) {
+// 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() string {
+func (o *RackType) GetLabel() RackTypeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret RackTypeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *RackType) 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 *RackType) GetLabelOk() (*string, bool) {
+func (o *RackType) GetLabelOk() (*RackTypeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *RackType) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *RackType) SetLabel(v string) {
+// SetLabel gets a reference to the given RackTypeLabel and assigns it to the Label field.
+func (o *RackType) SetLabel(v RackTypeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o RackType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RackType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RackType) UnmarshalJSON(data []byte) (err error) {
varRackType := _RackType{}
- err = json.Unmarshal(bytes, &varRackType)
+ err = json.Unmarshal(data, &varRackType)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *RackType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_rack_type_label.go b/model_rack_type_label.go
new file mode 100644
index 0000000000..c5e702d31f
--- /dev/null
+++ b/model_rack_type_label.go
@@ -0,0 +1,120 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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_width.go b/model_rack_width.go
index 71a2a9af96..e2c7757fda 100644
--- a/model_rack_width.go
+++ b/model_rack_width.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &RackWidth{}
// RackWidth struct for RackWidth
type RackWidth struct {
- // * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches
- Value *int32 `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *RackWidthValue `json:"value,omitempty"`
+ Label *RackWidthLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewRackWidthWithDefaults() *RackWidth {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *RackWidth) GetValue() int32 {
+func (o *RackWidth) GetValue() RackWidthValue {
if o == nil || IsNil(o.Value) {
- var ret int32
+ var ret RackWidthValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *RackWidth) GetValue() int32 {
// 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() (*int32, bool) {
+func (o *RackWidth) GetValueOk() (*RackWidthValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *RackWidth) HasValue() bool {
return false
}
-// SetValue gets a reference to the given int32 and assigns it to the Value field.
-func (o *RackWidth) SetValue(v int32) {
+// 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() string {
+func (o *RackWidth) GetLabel() RackWidthLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret RackWidthLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *RackWidth) 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 *RackWidth) GetLabelOk() (*string, bool) {
+func (o *RackWidth) GetLabelOk() (*RackWidthLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *RackWidth) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *RackWidth) SetLabel(v string) {
+// SetLabel gets a reference to the given RackWidthLabel and assigns it to the Label field.
+func (o *RackWidth) SetLabel(v RackWidthLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o RackWidth) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RackWidth) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RackWidth) UnmarshalJSON(data []byte) (err error) {
varRackWidth := _RackWidth{}
- err = json.Unmarshal(bytes, &varRackWidth)
+ err = json.Unmarshal(data, &varRackWidth)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *RackWidth) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_rack_width_label.go b/model_rack_width_label.go
new file mode 100644
index 0000000000..30c0ff49e9
--- /dev/null
+++ b/model_rack_width_label.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..799fb7a3c7
--- /dev/null
+++ b/model_rack_width_value.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 490287699f..2dc930503b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -720,10 +721,43 @@ func (o RearPort) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RearPort) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RearPort) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "cable",
+ "cable_end",
+ "link_peers",
+ "link_peers_type",
+ "created",
+ "last_updated",
+ "_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)
+ }
+ }
+
varRearPort := _RearPort{}
- err = json.Unmarshal(bytes, &varRearPort)
+ err = json.Unmarshal(data, &varRearPort)
if err != nil {
return err
@@ -733,7 +767,7 @@ func (o *RearPort) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_rear_port_request.go b/model_rear_port_request.go
index d2920a171c..6d3ee331ea 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 RearPortRequest type satisfies the MappedNullable interface at compile time
@@ -23,10 +24,9 @@ type RearPortRequest struct {
Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
- Type string `json:"type"`
- Color *string `json:"color,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
+ Color *string `json:"color,omitempty"`
// Number of front ports which may be mapped
Positions *int32 `json:"positions,omitempty"`
Description *string `json:"description,omitempty"`
@@ -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_ string) *RearPortRequest {
+func NewRearPortRequest(device NestedDeviceRequest, name string, type_ FrontPortTypeValue) *RearPortRequest {
this := RearPortRequest{}
this.Device = device
this.Name = name
@@ -183,9 +183,9 @@ func (o *RearPortRequest) SetLabel(v string) {
}
// GetType returns the Type field value
-func (o *RearPortRequest) GetType() string {
+func (o *RearPortRequest) GetType() FrontPortTypeValue {
if o == nil {
- var ret string
+ var ret FrontPortTypeValue
return ret
}
@@ -194,7 +194,7 @@ func (o *RearPortRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *RearPortRequest) GetTypeOk() (*string, bool) {
+func (o *RearPortRequest) GetTypeOk() (*FrontPortTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -202,7 +202,7 @@ func (o *RearPortRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *RearPortRequest) SetType(v string) {
+func (o *RearPortRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
@@ -443,10 +443,33 @@ func (o RearPortRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RearPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RearPortRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "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)
+ }
+ }
+
varRearPortRequest := _RearPortRequest{}
- err = json.Unmarshal(bytes, &varRearPortRequest)
+ err = json.Unmarshal(data, &varRearPortRequest)
if err != nil {
return err
@@ -456,7 +479,7 @@ func (o *RearPortRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_rear_port_template.go b/model_rear_port_template.go
index 4f3c81dfcf..1987004f44 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -493,10 +494,37 @@ func (o RearPortTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RearPortTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RearPortTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varRearPortTemplate := _RearPortTemplate{}
- err = json.Unmarshal(bytes, &varRearPortTemplate)
+ err = json.Unmarshal(data, &varRearPortTemplate)
if err != nil {
return err
@@ -506,7 +534,7 @@ func (o *RearPortTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_rear_port_template_request.go b/model_rear_port_template_request.go
index abf9736fca..0d2025c46e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 RearPortTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,12 +25,11 @@ type RearPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
- Type string `json:"type"`
- Color *string `json:"color,omitempty"`
- Positions *int32 `json:"positions,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
+ Color *string `json:"color,omitempty"`
+ Positions *int32 `json:"positions,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -39,7 +39,7 @@ 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_ string) *RearPortTemplateRequest {
+func NewRearPortTemplateRequest(name string, type_ FrontPortTypeValue) *RearPortTemplateRequest {
this := RearPortTemplateRequest{}
this.Name = name
this.Type = type_
@@ -197,9 +197,9 @@ func (o *RearPortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value
-func (o *RearPortTemplateRequest) GetType() string {
+func (o *RearPortTemplateRequest) GetType() FrontPortTypeValue {
if o == nil {
- var ret string
+ var ret FrontPortTypeValue
return ret
}
@@ -208,7 +208,7 @@ func (o *RearPortTemplateRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *RearPortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *RearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -216,7 +216,7 @@ func (o *RearPortTemplateRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *RearPortTemplateRequest) SetType(v string) {
+func (o *RearPortTemplateRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
@@ -354,10 +354,32 @@ func (o RearPortTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RearPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "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)
+ }
+ }
+
varRearPortTemplateRequest := _RearPortTemplateRequest{}
- err = json.Unmarshal(bytes, &varRearPortTemplateRequest)
+ err = json.Unmarshal(data, &varRearPortTemplateRequest)
if err != nil {
return err
@@ -367,7 +389,7 @@ func (o *RearPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_region.go b/model_region.go
index 3ccf01c098..ee7f367971 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -462,10 +463,39 @@ func (o Region) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Region) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Region) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "site_count",
+ "_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)
+ }
+ }
+
varRegion := _Region{}
- err = json.Unmarshal(bytes, &varRegion)
+ err = json.Unmarshal(data, &varRegion)
if err != nil {
return err
@@ -475,7 +505,7 @@ func (o *Region) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_region_request.go b/model_region_request.go
index 38c8e0a7af..de89192dfa 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 RegionRequest type satisfies the MappedNullable interface at compile time
@@ -268,10 +269,32 @@ func (o RegionRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RegionRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RegionRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varRegionRequest := _RegionRequest{}
- err = json.Unmarshal(bytes, &varRegionRequest)
+ err = json.Unmarshal(data, &varRegionRequest)
if err != nil {
return err
@@ -281,7 +304,7 @@ func (o *RegionRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_rir.go b/model_rir.go
index dd50ed36c5..eead142fd6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -425,10 +426,38 @@ func (o RIR) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RIR) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RIR) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "aggregate_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)
+ }
+ }
+
varRIR := _RIR{}
- err = json.Unmarshal(bytes, &varRIR)
+ err = json.Unmarshal(data, &varRIR)
if err != nil {
return err
@@ -438,7 +467,7 @@ func (o *RIR) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_rir_request.go b/model_rir_request.go
index f2e4008688..1837c045b1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 RIRRequest type satisfies the MappedNullable interface at compile time
@@ -258,10 +259,32 @@ func (o RIRRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RIRRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RIRRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varRIRRequest := _RIRRequest{}
- err = json.Unmarshal(bytes, &varRIRRequest)
+ err = json.Unmarshal(data, &varRIRRequest)
if err != nil {
return err
@@ -271,7 +294,7 @@ func (o *RIRRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "is_private")
diff --git a/model_role.go b/model_role.go
index 8f7f86a898..94e6a999d9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -451,10 +452,39 @@ func (o Role) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Role) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Role) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "prefix_count",
+ "vlan_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)
+ }
+ }
+
varRole := _Role{}
- err = json.Unmarshal(bytes, &varRole)
+ err = json.Unmarshal(data, &varRole)
if err != nil {
return err
@@ -464,7 +494,7 @@ func (o *Role) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_role_request.go b/model_role_request.go
index 51b06e4b89..7c84f0e58a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 RoleRequest type satisfies the MappedNullable interface at compile time
@@ -257,10 +258,32 @@ func (o RoleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RoleRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varRoleRequest := _RoleRequest{}
- err = json.Unmarshal(bytes, &varRoleRequest)
+ err = json.Unmarshal(data, &varRoleRequest)
if err != nil {
return err
@@ -270,7 +293,7 @@ func (o *RoleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "weight")
diff --git a/model_route_target.go b/model_route_target.go
index a690a7cd40..db2d3815e7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -418,10 +419,36 @@ func (o RouteTarget) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RouteTarget) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RouteTarget) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varRouteTarget := _RouteTarget{}
- err = json.Unmarshal(bytes, &varRouteTarget)
+ err = json.Unmarshal(data, &varRouteTarget)
if err != nil {
return err
@@ -431,7 +458,7 @@ func (o *RouteTarget) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_route_target_request.go b/model_route_target_request.go
index 0e89eb4566..9787ef26ee 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 RouteTargetRequest type satisfies the MappedNullable interface at compile time
@@ -278,10 +279,31 @@ func (o RouteTargetRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *RouteTargetRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *RouteTargetRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varRouteTargetRequest := _RouteTargetRequest{}
- err = json.Unmarshal(bytes, &varRouteTargetRequest)
+ err = json.Unmarshal(data, &varRouteTargetRequest)
if err != nil {
return err
@@ -291,7 +313,7 @@ func (o *RouteTargetRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "tenant")
delete(additionalProperties, "description")
diff --git a/model_saved_filter.go b/model_saved_filter.go
index 4896b9dbd3..8efc19bec4 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -20,20 +21,20 @@ var _ MappedNullable = &SavedFilter{}
// SavedFilter Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type SavedFilter struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- ContentTypes []string `json:"content_types"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Description *string `json:"description,omitempty"`
- User NullableInt32 `json:"user,omitempty"`
- Weight *int32 `json:"weight,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- Shared *bool `json:"shared,omitempty"`
- Parameters map[string]interface{} `json:"parameters"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ ContentTypes []string `json:"content_types"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
+ User NullableInt32 `json:"user,omitempty"`
+ Weight *int32 `json:"weight,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Shared *bool `json:"shared,omitempty"`
+ Parameters interface{} `json:"parameters"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
AdditionalProperties map[string]interface{}
}
@@ -43,7 +44,7 @@ type _SavedFilter SavedFilter
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewSavedFilter(id int32, url string, display string, contentTypes []string, name string, slug string, parameters map[string]interface{}, created NullableTime, lastUpdated NullableTime) *SavedFilter {
+func NewSavedFilter(id int32, url string, display string, contentTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime) *SavedFilter {
this := SavedFilter{}
this.Id = id
this.Url = url
@@ -381,9 +382,10 @@ func (o *SavedFilter) SetShared(v bool) {
}
// GetParameters returns the Parameters field value
-func (o *SavedFilter) GetParameters() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *SavedFilter) GetParameters() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -392,15 +394,16 @@ func (o *SavedFilter) GetParameters() map[string]interface{} {
// GetParametersOk returns a tuple with the Parameters field value
// and a boolean to check if the value has been set.
-func (o *SavedFilter) GetParametersOk() (map[string]interface{}, bool) {
- if o == nil {
- return map[string]interface{}{}, false
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *SavedFilter) GetParametersOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Parameters) {
+ return nil, false
}
- return o.Parameters, true
+ return &o.Parameters, true
}
// SetParameters sets field value
-func (o *SavedFilter) SetParameters(v map[string]interface{}) {
+func (o *SavedFilter) SetParameters(v interface{}) {
o.Parameters = v
}
@@ -487,7 +490,9 @@ func (o SavedFilter) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Shared) {
toSerialize["shared"] = o.Shared
}
- toSerialize["parameters"] = o.Parameters
+ if o.Parameters != nil {
+ toSerialize["parameters"] = o.Parameters
+ }
toSerialize["created"] = o.Created.Get()
toSerialize["last_updated"] = o.LastUpdated.Get()
@@ -498,10 +503,39 @@ func (o SavedFilter) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *SavedFilter) UnmarshalJSON(bytes []byte) (err error) {
+func (o *SavedFilter) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "content_types",
+ "name",
+ "slug",
+ "parameters",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varSavedFilter := _SavedFilter{}
- err = json.Unmarshal(bytes, &varSavedFilter)
+ err = json.Unmarshal(data, &varSavedFilter)
if err != nil {
return err
@@ -511,7 +545,7 @@ func (o *SavedFilter) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_saved_filter_request.go b/model_saved_filter_request.go
index d95f179a1f..ba3f3e067d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 SavedFilterRequest type satisfies the MappedNullable interface at compile time
@@ -19,15 +20,15 @@ var _ MappedNullable = &SavedFilterRequest{}
// SavedFilterRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type SavedFilterRequest struct {
- ContentTypes []string `json:"content_types"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Description *string `json:"description,omitempty"`
- User NullableInt32 `json:"user,omitempty"`
- Weight *int32 `json:"weight,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- Shared *bool `json:"shared,omitempty"`
- Parameters map[string]interface{} `json:"parameters"`
+ ContentTypes []string `json:"content_types"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
+ User NullableInt32 `json:"user,omitempty"`
+ Weight *int32 `json:"weight,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Shared *bool `json:"shared,omitempty"`
+ Parameters interface{} `json:"parameters"`
AdditionalProperties map[string]interface{}
}
@@ -37,7 +38,7 @@ 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 map[string]interface{}) *SavedFilterRequest {
+func NewSavedFilterRequest(contentTypes []string, name string, slug string, parameters interface{}) *SavedFilterRequest {
this := SavedFilterRequest{}
this.ContentTypes = contentTypes
this.Name = name
@@ -298,9 +299,10 @@ func (o *SavedFilterRequest) SetShared(v bool) {
}
// GetParameters returns the Parameters field value
-func (o *SavedFilterRequest) GetParameters() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *SavedFilterRequest) GetParameters() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -309,15 +311,16 @@ func (o *SavedFilterRequest) GetParameters() map[string]interface{} {
// GetParametersOk returns a tuple with the Parameters field value
// and a boolean to check if the value has been set.
-func (o *SavedFilterRequest) GetParametersOk() (map[string]interface{}, bool) {
- if o == nil {
- return map[string]interface{}{}, false
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *SavedFilterRequest) GetParametersOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Parameters) {
+ return nil, false
}
- return o.Parameters, true
+ return &o.Parameters, true
}
// SetParameters sets field value
-func (o *SavedFilterRequest) SetParameters(v map[string]interface{}) {
+func (o *SavedFilterRequest) SetParameters(v interface{}) {
o.Parameters = v
}
@@ -349,7 +352,9 @@ func (o SavedFilterRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Shared) {
toSerialize["shared"] = o.Shared
}
- toSerialize["parameters"] = o.Parameters
+ if o.Parameters != nil {
+ toSerialize["parameters"] = o.Parameters
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -358,10 +363,34 @@ func (o SavedFilterRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *SavedFilterRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *SavedFilterRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "slug",
+ "parameters",
+ }
+
+ 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)
+ }
+ }
+
varSavedFilterRequest := _SavedFilterRequest{}
- err = json.Unmarshal(bytes, &varSavedFilterRequest)
+ err = json.Unmarshal(data, &varSavedFilterRequest)
if err != nil {
return err
@@ -371,7 +400,7 @@ func (o *SavedFilterRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_types")
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
diff --git a/model_schema_retrieve_format_parameter.go b/model_schema_retrieve_format_parameter.go
new file mode 100644
index 0000000000..1b6be64029
--- /dev/null
+++ b/model_schema_retrieve_format_parameter.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// SchemaRetrieveFormatParameter the model 'SchemaRetrieveFormatParameter'
+type SchemaRetrieveFormatParameter string
+
+// List of schema_retrieve_format_parameter
+const (
+ SCHEMARETRIEVEFORMATPARAMETER_JSON SchemaRetrieveFormatParameter = "json"
+ SCHEMARETRIEVEFORMATPARAMETER_YAML SchemaRetrieveFormatParameter = "yaml"
+)
+
+// All allowed values of SchemaRetrieveFormatParameter enum
+var AllowedSchemaRetrieveFormatParameterEnumValues = []SchemaRetrieveFormatParameter{
+ "json",
+ "yaml",
+}
+
+func (v *SchemaRetrieveFormatParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := SchemaRetrieveFormatParameter(value)
+ for _, existing := range AllowedSchemaRetrieveFormatParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid SchemaRetrieveFormatParameter", value)
+}
+
+// NewSchemaRetrieveFormatParameterFromValue returns a pointer to a valid SchemaRetrieveFormatParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewSchemaRetrieveFormatParameterFromValue(v string) (*SchemaRetrieveFormatParameter, error) {
+ ev := SchemaRetrieveFormatParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for SchemaRetrieveFormatParameter: valid values are %v", v, AllowedSchemaRetrieveFormatParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v SchemaRetrieveFormatParameter) IsValid() bool {
+ for _, existing := range AllowedSchemaRetrieveFormatParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to schema_retrieve_format_parameter value
+func (v SchemaRetrieveFormatParameter) Ptr() *SchemaRetrieveFormatParameter {
+ return &v
+}
+
+type NullableSchemaRetrieveFormatParameter struct {
+ value *SchemaRetrieveFormatParameter
+ isSet bool
+}
+
+func (v NullableSchemaRetrieveFormatParameter) Get() *SchemaRetrieveFormatParameter {
+ return v.value
+}
+
+func (v *NullableSchemaRetrieveFormatParameter) Set(val *SchemaRetrieveFormatParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSchemaRetrieveFormatParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSchemaRetrieveFormatParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSchemaRetrieveFormatParameter(val *SchemaRetrieveFormatParameter) *NullableSchemaRetrieveFormatParameter {
+ return &NullableSchemaRetrieveFormatParameter{value: val, isSet: true}
+}
+
+func (v NullableSchemaRetrieveFormatParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSchemaRetrieveFormatParameter) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_service.go b/model_service.go
index 62f919e90e..711ef16846 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -563,10 +564,37 @@ func (o Service) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Service) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Service) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "ports",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varService := _Service{}
- err = json.Unmarshal(bytes, &varService)
+ err = json.Unmarshal(data, &varService)
if err != nil {
return err
@@ -576,7 +604,7 @@ func (o *Service) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_service_protocol.go b/model_service_protocol.go
index b0737ebe9e..14a95bbd74 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &ServiceProtocol{}
// ServiceProtocol struct for ServiceProtocol
type ServiceProtocol struct {
- // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *PatchedWritableServiceRequestProtocol `json:"value,omitempty"`
+ Label *ServiceProtocolLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewServiceProtocolWithDefaults() *ServiceProtocol {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *ServiceProtocol) GetValue() string {
+func (o *ServiceProtocol) GetValue() PatchedWritableServiceRequestProtocol {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret PatchedWritableServiceRequestProtocol
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *ServiceProtocol) GetValue() string {
// 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 *ServiceProtocol) GetValueOk() (*string, bool) {
+func (o *ServiceProtocol) GetValueOk() (*PatchedWritableServiceRequestProtocol, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *ServiceProtocol) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *ServiceProtocol) SetValue(v string) {
+// SetValue gets a reference to the given PatchedWritableServiceRequestProtocol and assigns it to the Value field.
+func (o *ServiceProtocol) SetValue(v PatchedWritableServiceRequestProtocol) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *ServiceProtocol) GetLabel() string {
+func (o *ServiceProtocol) GetLabel() ServiceProtocolLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret ServiceProtocolLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *ServiceProtocol) 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 *ServiceProtocol) GetLabelOk() (*string, bool) {
+func (o *ServiceProtocol) GetLabelOk() (*ServiceProtocolLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *ServiceProtocol) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *ServiceProtocol) SetLabel(v string) {
+// SetLabel gets a reference to the given ServiceProtocolLabel and assigns it to the Label field.
+func (o *ServiceProtocol) SetLabel(v ServiceProtocolLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o ServiceProtocol) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ServiceProtocol) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ServiceProtocol) UnmarshalJSON(data []byte) (err error) {
varServiceProtocol := _ServiceProtocol{}
- err = json.Unmarshal(bytes, &varServiceProtocol)
+ err = json.Unmarshal(data, &varServiceProtocol)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *ServiceProtocol) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_service_protocol_label.go b/model_service_protocol_label.go
new file mode 100644
index 0000000000..3d28b6a913
--- /dev/null
+++ b/model_service_protocol_label.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ServiceProtocolLabel the model 'ServiceProtocolLabel'
+type ServiceProtocolLabel string
+
+// List of Service_protocol_label
+const (
+ SERVICEPROTOCOLLABEL_TCP ServiceProtocolLabel = "TCP"
+ SERVICEPROTOCOLLABEL_UDP ServiceProtocolLabel = "UDP"
+ SERVICEPROTOCOLLABEL_SCTP ServiceProtocolLabel = "SCTP"
+)
+
+// All allowed values of ServiceProtocolLabel enum
+var AllowedServiceProtocolLabelEnumValues = []ServiceProtocolLabel{
+ "TCP",
+ "UDP",
+ "SCTP",
+}
+
+func (v *ServiceProtocolLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ServiceProtocolLabel(value)
+ for _, existing := range AllowedServiceProtocolLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ServiceProtocolLabel", value)
+}
+
+// NewServiceProtocolLabelFromValue returns a pointer to a valid ServiceProtocolLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewServiceProtocolLabelFromValue(v string) (*ServiceProtocolLabel, error) {
+ ev := ServiceProtocolLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ServiceProtocolLabel: valid values are %v", v, AllowedServiceProtocolLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ServiceProtocolLabel) IsValid() bool {
+ for _, existing := range AllowedServiceProtocolLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Service_protocol_label value
+func (v ServiceProtocolLabel) Ptr() *ServiceProtocolLabel {
+ return &v
+}
+
+type NullableServiceProtocolLabel struct {
+ value *ServiceProtocolLabel
+ isSet bool
+}
+
+func (v NullableServiceProtocolLabel) Get() *ServiceProtocolLabel {
+ return v.value
+}
+
+func (v *NullableServiceProtocolLabel) Set(val *ServiceProtocolLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableServiceProtocolLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableServiceProtocolLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableServiceProtocolLabel(val *ServiceProtocolLabel) *NullableServiceProtocolLabel {
+ return &NullableServiceProtocolLabel{value: val, isSet: true}
+}
+
+func (v NullableServiceProtocolLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableServiceProtocolLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_service_request.go b/model_service_request.go
index 3dfc5b2e5e..581dccdd31 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ServiceRequest type satisfies the MappedNullable interface at compile time
@@ -19,17 +20,16 @@ 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"`
- Name string `json:"name"`
- Ports []int32 `json:"ports"`
- // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP
- Protocol *string `json:"protocol,omitempty"`
- Ipaddresses []int32 `json:"ipaddresses,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Device NullableNestedDeviceRequest `json:"device,omitempty"`
+ VirtualMachine NullableNestedVirtualMachineRequest `json:"virtual_machine,omitempty"`
+ Name string `json:"name"`
+ Ports []int32 `json:"ports"`
+ Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
+ Ipaddresses []int32 `json:"ipaddresses,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -189,9 +189,9 @@ func (o *ServiceRequest) SetPorts(v []int32) {
}
// GetProtocol returns the Protocol field value if set, zero value otherwise.
-func (o *ServiceRequest) GetProtocol() string {
+func (o *ServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
if o == nil || IsNil(o.Protocol) {
- var ret string
+ var ret PatchedWritableServiceRequestProtocol
return ret
}
return *o.Protocol
@@ -199,7 +199,7 @@ func (o *ServiceRequest) GetProtocol() string {
// 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 *ServiceRequest) GetProtocolOk() (*string, bool) {
+func (o *ServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
if o == nil || IsNil(o.Protocol) {
return nil, false
}
@@ -215,8 +215,8 @@ func (o *ServiceRequest) HasProtocol() bool {
return false
}
-// SetProtocol gets a reference to the given string and assigns it to the Protocol field.
-func (o *ServiceRequest) SetProtocol(v string) {
+// SetProtocol gets a reference to the given PatchedWritableServiceRequestProtocol and assigns it to the Protocol field.
+func (o *ServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
o.Protocol = &v
}
@@ -424,10 +424,32 @@ func (o ServiceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ServiceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ServiceRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "ports",
+ }
+
+ 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)
+ }
+ }
+
varServiceRequest := _ServiceRequest{}
- err = json.Unmarshal(bytes, &varServiceRequest)
+ err = json.Unmarshal(data, &varServiceRequest)
if err != nil {
return err
@@ -437,7 +459,7 @@ func (o *ServiceRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "virtual_machine")
delete(additionalProperties, "name")
diff --git a/model_service_template.go b/model_service_template.go
index c599b21f60..0982e83dc2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -433,10 +434,37 @@ func (o ServiceTemplate) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ServiceTemplate) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ServiceTemplate) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "ports",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varServiceTemplate := _ServiceTemplate{}
- err = json.Unmarshal(bytes, &varServiceTemplate)
+ err = json.Unmarshal(data, &varServiceTemplate)
if err != nil {
return err
@@ -446,7 +474,7 @@ func (o *ServiceTemplate) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_service_template_request.go b/model_service_template_request.go
index d0468b4172..0cd295bc36 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 ServiceTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -19,14 +20,13 @@ var _ MappedNullable = &ServiceTemplateRequest{}
// ServiceTemplateRequest Adds support for custom fields and tags.
type ServiceTemplateRequest struct {
- Name string `json:"name"`
- Ports []int32 `json:"ports"`
- // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP
- Protocol *string `json:"protocol,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Ports []int32 `json:"ports"`
+ Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -100,9 +100,9 @@ func (o *ServiceTemplateRequest) SetPorts(v []int32) {
}
// GetProtocol returns the Protocol field value if set, zero value otherwise.
-func (o *ServiceTemplateRequest) GetProtocol() string {
+func (o *ServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
if o == nil || IsNil(o.Protocol) {
- var ret string
+ var ret PatchedWritableServiceRequestProtocol
return ret
}
return *o.Protocol
@@ -110,7 +110,7 @@ func (o *ServiceTemplateRequest) GetProtocol() string {
// 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 *ServiceTemplateRequest) GetProtocolOk() (*string, bool) {
+func (o *ServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
if o == nil || IsNil(o.Protocol) {
return nil, false
}
@@ -126,8 +126,8 @@ func (o *ServiceTemplateRequest) HasProtocol() bool {
return false
}
-// SetProtocol gets a reference to the given string and assigns it to the Protocol field.
-func (o *ServiceTemplateRequest) SetProtocol(v string) {
+// SetProtocol gets a reference to the given PatchedWritableServiceRequestProtocol and assigns it to the Protocol field.
+func (o *ServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
o.Protocol = &v
}
@@ -294,10 +294,32 @@ func (o ServiceTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ServiceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *ServiceTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "ports",
+ }
+
+ 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)
+ }
+ }
+
varServiceTemplateRequest := _ServiceTemplateRequest{}
- err = json.Unmarshal(bytes, &varServiceTemplateRequest)
+ err = json.Unmarshal(data, &varServiceTemplateRequest)
if err != nil {
return err
@@ -307,7 +329,7 @@ func (o *ServiceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "ports")
delete(additionalProperties, "protocol")
diff --git a/model_site.go b/model_site.go
index 2f3e63ad6a..ca3771ac9a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -1027,10 +1028,43 @@ func (o Site) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Site) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Site) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "circuit_count",
+ "device_count",
+ "prefix_count",
+ "rack_count",
+ "virtualmachine_count",
+ "vlan_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)
+ }
+ }
+
varSite := _Site{}
- err = json.Unmarshal(bytes, &varSite)
+ err = json.Unmarshal(data, &varSite)
if err != nil {
return err
@@ -1040,7 +1074,7 @@ func (o *Site) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_site_group.go b/model_site_group.go
index 64ebaaee64..efa8d85150 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -462,10 +463,39 @@ func (o SiteGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *SiteGroup) UnmarshalJSON(bytes []byte) (err error) {
+func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "site_count",
+ "_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)
+ }
+ }
+
varSiteGroup := _SiteGroup{}
- err = json.Unmarshal(bytes, &varSiteGroup)
+ err = json.Unmarshal(data, &varSiteGroup)
if err != nil {
return err
@@ -475,7 +505,7 @@ func (o *SiteGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_site_group_request.go b/model_site_group_request.go
index 18dc118e61..2bf24a6d0d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 SiteGroupRequest type satisfies the MappedNullable interface at compile time
@@ -268,10 +269,32 @@ func (o SiteGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *SiteGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *SiteGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varSiteGroupRequest := _SiteGroupRequest{}
- err = json.Unmarshal(bytes, &varSiteGroupRequest)
+ err = json.Unmarshal(data, &varSiteGroupRequest)
if err != nil {
return err
@@ -281,7 +304,7 @@ func (o *SiteGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_site_request.go b/model_site_request.go
index 8024c9ef00..69e6201ee5 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 SiteRequest type satisfies the MappedNullable interface at compile time
@@ -20,10 +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"`
- // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired
- Status *string `json:"status,omitempty"`
+ 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"`
@@ -116,9 +116,9 @@ func (o *SiteRequest) SetSlug(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *SiteRequest) GetStatus() string {
+func (o *SiteRequest) GetStatus() LocationStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret LocationStatusValue
return ret
}
return *o.Status
@@ -126,7 +126,7 @@ func (o *SiteRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *SiteRequest) GetStatusOk() (*LocationStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -142,8 +142,8 @@ func (o *SiteRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *SiteRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field.
+func (o *SiteRequest) SetStatus(v LocationStatusValue) {
o.Status = &v
}
@@ -726,10 +726,32 @@ func (o SiteRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *SiteRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *SiteRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varSiteRequest := _SiteRequest{}
- err = json.Unmarshal(bytes, &varSiteRequest)
+ err = json.Unmarshal(data, &varSiteRequest)
if err != nil {
return err
@@ -739,7 +761,7 @@ func (o *SiteRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "status")
diff --git a/model_tag.go b/model_tag.go
index 9b171cfbcc..8b7da6f03e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -388,10 +389,38 @@ func (o Tag) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Tag) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Tag) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "tagged_items",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varTag := _Tag{}
- err = json.Unmarshal(bytes, &varTag)
+ err = json.Unmarshal(data, &varTag)
if err != nil {
return err
@@ -401,7 +430,7 @@ func (o *Tag) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_tag_request.go b/model_tag_request.go
index 34c2aa6f2b..a6d50df8aa 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 TagRequest type satisfies the MappedNullable interface at compile time
@@ -221,10 +222,32 @@ func (o TagRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *TagRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *TagRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varTagRequest := _TagRequest{}
- err = json.Unmarshal(bytes, &varTagRequest)
+ err = json.Unmarshal(data, &varTagRequest)
if err != nil {
return err
@@ -234,7 +257,7 @@ func (o *TagRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "color")
diff --git a/model_tenant.go b/model_tenant.go
index fb91257a6b..ffad7c75c0 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -714,10 +715,47 @@ func (o Tenant) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Tenant) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Tenant) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "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{})
+
+ 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)
+ }
+ }
+
varTenant := _Tenant{}
- err = json.Unmarshal(bytes, &varTenant)
+ err = json.Unmarshal(data, &varTenant)
if err != nil {
return err
@@ -727,7 +765,7 @@ func (o *Tenant) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_tenant_group.go b/model_tenant_group.go
index 724b00f333..0e286157b9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -462,10 +463,39 @@ func (o TenantGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *TenantGroup) UnmarshalJSON(bytes []byte) (err error) {
+func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "tenant_count",
+ "_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)
+ }
+ }
+
varTenantGroup := _TenantGroup{}
- err = json.Unmarshal(bytes, &varTenantGroup)
+ err = json.Unmarshal(data, &varTenantGroup)
if err != nil {
return err
@@ -475,7 +505,7 @@ func (o *TenantGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_tenant_group_request.go b/model_tenant_group_request.go
index 208fe73333..453d64777d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 TenantGroupRequest type satisfies the MappedNullable interface at compile time
@@ -268,10 +269,32 @@ func (o TenantGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *TenantGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *TenantGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varTenantGroupRequest := _TenantGroupRequest{}
- err = json.Unmarshal(bytes, &varTenantGroupRequest)
+ err = json.Unmarshal(data, &varTenantGroupRequest)
if err != nil {
return err
@@ -281,7 +304,7 @@ func (o *TenantGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_tenant_request.go b/model_tenant_request.go
index 4775295edb..845bc0cde9 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 TenantRequest type satisfies the MappedNullable interface at compile time
@@ -304,10 +305,32 @@ func (o TenantRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *TenantRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *TenantRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varTenantRequest := _TenantRequest{}
- err = json.Unmarshal(bytes, &varTenantRequest)
+ err = json.Unmarshal(data, &varTenantRequest)
if err != nil {
return err
@@ -317,7 +340,7 @@ func (o *TenantRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "group")
diff --git a/model_termination.go b/model_termination.go
new file mode 100644
index 0000000000..6061f11db5
--- /dev/null
+++ b/model_termination.go
@@ -0,0 +1,110 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// Termination * `A` - A * `Z` - Z
+type Termination string
+
+// List of Termination
+const (
+ TERMINATION_A Termination = "A"
+ TERMINATION_Z Termination = "Z"
+)
+
+// All allowed values of Termination enum
+var AllowedTerminationEnumValues = []Termination{
+ "A",
+ "Z",
+}
+
+func (v *Termination) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := Termination(value)
+ for _, existing := range AllowedTerminationEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid Termination", value)
+}
+
+// NewTerminationFromValue returns a pointer to a valid Termination
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewTerminationFromValue(v string) (*Termination, error) {
+ ev := Termination(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for Termination: valid values are %v", v, AllowedTerminationEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v Termination) IsValid() bool {
+ for _, existing := range AllowedTerminationEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Termination value
+func (v Termination) Ptr() *Termination {
+ return &v
+}
+
+type NullableTermination struct {
+ value *Termination
+ isSet bool
+}
+
+func (v NullableTermination) Get() *Termination {
+ return v.value
+}
+
+func (v *NullableTermination) Set(val *Termination) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTermination) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTermination) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTermination(val *Termination) *NullableTermination {
+ return &NullableTermination{value: val, isSet: true}
+}
+
+func (v NullableTermination) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTermination) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_token.go b/model_token.go
index c447b4d423..2073da0eb6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -398,10 +399,35 @@ func (o Token) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Token) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Token) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "user",
+ "created",
+ }
+
+ 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)
+ }
+ }
+
varToken := _Token{}
- err = json.Unmarshal(bytes, &varToken)
+ err = json.Unmarshal(data, &varToken)
if err != nil {
return err
@@ -411,7 +437,7 @@ func (o *Token) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_token_provision.go b/model_token_provision.go
index fe665a9543..d807662a6f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -369,10 +370,37 @@ func (o TokenProvision) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *TokenProvision) UnmarshalJSON(bytes []byte) (err error) {
+func (o *TokenProvision) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "user",
+ "created",
+ "last_used",
+ "key",
+ }
+
+ 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)
+ }
+ }
+
varTokenProvision := _TokenProvision{}
- err = json.Unmarshal(bytes, &varTokenProvision)
+ err = json.Unmarshal(data, &varTokenProvision)
if err != nil {
return err
@@ -382,7 +410,7 @@ func (o *TokenProvision) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_token_provision_request.go b/model_token_provision_request.go
index eb105e517c..d1cc3d9291 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -234,10 +235,32 @@ func (o TokenProvisionRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *TokenProvisionRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *TokenProvisionRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varTokenProvisionRequest := _TokenProvisionRequest{}
- err = json.Unmarshal(bytes, &varTokenProvisionRequest)
+ err = json.Unmarshal(data, &varTokenProvisionRequest)
if err != nil {
return err
@@ -247,7 +270,7 @@ func (o *TokenProvisionRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "expires")
delete(additionalProperties, "write_enabled")
delete(additionalProperties, "description")
diff --git a/model_token_request.go b/model_token_request.go
index 72561172f7..69a950eb33 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -290,10 +291,31 @@ func (o TokenRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *TokenRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *TokenRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varTokenRequest := _TokenRequest{}
- err = json.Unmarshal(bytes, &varTokenRequest)
+ err = json.Unmarshal(data, &varTokenRequest)
if err != nil {
return err
@@ -303,7 +325,7 @@ func (o *TokenRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "user")
delete(additionalProperties, "expires")
delete(additionalProperties, "last_used")
diff --git a/model_tunnel.go b/model_tunnel.go
new file mode 100644
index 0000000000..907dad9829
--- /dev/null
+++ b/model_tunnel.go
@@ -0,0 +1,695 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the Tunnel type satisfies the MappedNullable interface at compile time
+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 NestedTunnelGroup `json:"group"`
+ 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"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _Tunnel Tunnel
+
+// NewTunnel instantiates a new Tunnel object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTunnel(id int32, url string, display string, name string, status TunnelStatus, group NestedTunnelGroup, encapsulation TunnelEncapsulation, created NullableTime, lastUpdated NullableTime) *Tunnel {
+ this := Tunnel{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.Name = name
+ this.Status = status
+ this.Group = group
+ this.Encapsulation = encapsulation
+ this.Created = created
+ this.LastUpdated = lastUpdated
+ return &this
+}
+
+// NewTunnelWithDefaults instantiates a new Tunnel object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTunnelWithDefaults() *Tunnel {
+ this := Tunnel{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *Tunnel) 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 *Tunnel) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *Tunnel) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *Tunnel) 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 *Tunnel) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *Tunnel) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplay returns the Display field value
+func (o *Tunnel) 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 *Tunnel) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *Tunnel) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetName returns the Name field value
+func (o *Tunnel) 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 *Tunnel) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+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
+func (o *Tunnel) GetGroup() NestedTunnelGroup {
+ if o == nil {
+ var ret NestedTunnelGroup
+ 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 *Tunnel) GetGroupOk() (*NestedTunnelGroup, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Group, true
+}
+
+// SetGroup sets field value
+func (o *Tunnel) SetGroup(v NestedTunnelGroup) {
+ o.Group = v
+}
+
+// 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) {
+ 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 *Tunnel) 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 *Tunnel) 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 *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 {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o Tunnel) 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["status"] = o.Status
+ toSerialize["group"] = o.Group
+ 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
+ }
+
+ return toSerialize, nil
+}
+
+func (o *Tunnel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "status",
+ "group",
+ "encapsulation",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
+ varTunnel := _Tunnel{}
+
+ err = json.Unmarshal(data, &varTunnel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = Tunnel(varTunnel)
+
+ 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, "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
+ }
+
+ return err
+}
+
+type NullableTunnel struct {
+ value *Tunnel
+ isSet bool
+}
+
+func (v NullableTunnel) Get() *Tunnel {
+ return v.value
+}
+
+func (v *NullableTunnel) Set(val *Tunnel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTunnel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTunnel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTunnel(val *Tunnel) *NullableTunnel {
+ return &NullableTunnel{value: val, isSet: true}
+}
+
+func (v NullableTunnel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTunnel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_tunnel_encapsulation.go b/model_tunnel_encapsulation.go
new file mode 100644
index 0000000000..70d8d0f163
--- /dev/null
+++ b/model_tunnel_encapsulation.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..fd8c26f0d8
--- /dev/null
+++ b/model_tunnel_encapsulation_label.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..1ec8ce882c
--- /dev/null
+++ b/model_tunnel_group.go
@@ -0,0 +1,485 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the TunnelGroup type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TunnelGroup{}
+
+// TunnelGroup Adds support for custom fields and tags.
+type TunnelGroup struct {
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
+ TunnelCount int32 `json:"tunnel_count"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TunnelGroup TunnelGroup
+
+// NewTunnelGroup instantiates a new TunnelGroup object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := TunnelGroup{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.Name = name
+ this.Slug = slug
+ this.Created = created
+ this.LastUpdated = lastUpdated
+ this.TunnelCount = tunnelCount
+ return &this
+}
+
+// NewTunnelGroupWithDefaults instantiates a new TunnelGroup object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTunnelGroupWithDefaults() *TunnelGroup {
+ this := TunnelGroup{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *TunnelGroup) 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 *TunnelGroup) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *TunnelGroup) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *TunnelGroup) 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 *TunnelGroup) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *TunnelGroup) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplay returns the Display field value
+func (o *TunnelGroup) 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 *TunnelGroup) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *TunnelGroup) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetName returns the Name field value
+func (o *TunnelGroup) 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 *TunnelGroup) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *TunnelGroup) SetName(v string) {
+ o.Name = v
+}
+
+// GetSlug returns the Slug field value
+func (o *TunnelGroup) 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 *TunnelGroup) GetSlugOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Slug, true
+}
+
+// SetSlug sets field value
+func (o *TunnelGroup) SetSlug(v string) {
+ o.Slug = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *TunnelGroup) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *TunnelGroup) 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 *TunnelGroup) 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 *TunnelGroup) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *TunnelGroup) 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 *TunnelGroup) 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 *TunnelGroup) 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 *TunnelGroup) SetTags(v []NestedTag) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *TunnelGroup) 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 *TunnelGroup) 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 *TunnelGroup) 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 *TunnelGroup) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetCreated returns the Created field value
+// If the value is explicit nil, the zero value for time.Time will be returned
+func (o *TunnelGroup) 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 *TunnelGroup) GetCreatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Created.Get(), o.Created.IsSet()
+}
+
+// SetCreated sets field value
+func (o *TunnelGroup) 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 *TunnelGroup) 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 *TunnelGroup) GetLastUpdatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.LastUpdated.Get(), o.LastUpdated.IsSet()
+}
+
+// SetLastUpdated sets field value
+func (o *TunnelGroup) SetLastUpdated(v time.Time) {
+ o.LastUpdated.Set(&v)
+}
+
+// GetTunnelCount returns the TunnelCount field value
+func (o *TunnelGroup) GetTunnelCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.TunnelCount
+}
+
+// GetTunnelCountOk returns a tuple with the TunnelCount field value
+// and a boolean to check if the value has been set.
+func (o *TunnelGroup) GetTunnelCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TunnelCount, true
+}
+
+// SetTunnelCount sets field value
+func (o *TunnelGroup) SetTunnelCount(v int32) {
+ o.TunnelCount = v
+}
+
+func (o TunnelGroup) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TunnelGroup) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ toSerialize["display"] = o.Display
+ toSerialize["name"] = o.Name
+ toSerialize["slug"] = o.Slug
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.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["tunnel_count"] = o.TunnelCount
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *TunnelGroup) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "tunnel_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)
+ }
+ }
+
+ varTunnelGroup := _TunnelGroup{}
+
+ err = json.Unmarshal(data, &varTunnelGroup)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TunnelGroup(varTunnelGroup)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "slug")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "created")
+ delete(additionalProperties, "last_updated")
+ delete(additionalProperties, "tunnel_count")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTunnelGroup struct {
+ value *TunnelGroup
+ isSet bool
+}
+
+func (v NullableTunnelGroup) Get() *TunnelGroup {
+ return v.value
+}
+
+func (v *NullableTunnelGroup) Set(val *TunnelGroup) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTunnelGroup) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTunnelGroup) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTunnelGroup(val *TunnelGroup) *NullableTunnelGroup {
+ return &NullableTunnelGroup{value: val, isSet: true}
+}
+
+func (v NullableTunnelGroup) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTunnelGroup) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_tunnel_group_request.go b/model_tunnel_group_request.go
new file mode 100644
index 0000000000..e13a04b788
--- /dev/null
+++ b/model_tunnel_group_request.go
@@ -0,0 +1,306 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the TunnelGroupRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TunnelGroupRequest{}
+
+// TunnelGroupRequest Adds support for custom fields and tags.
+type TunnelGroupRequest struct {
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TunnelGroupRequest TunnelGroupRequest
+
+// NewTunnelGroupRequest instantiates a new TunnelGroupRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTunnelGroupRequest(name string, slug string) *TunnelGroupRequest {
+ this := TunnelGroupRequest{}
+ this.Name = name
+ this.Slug = slug
+ return &this
+}
+
+// NewTunnelGroupRequestWithDefaults instantiates a new TunnelGroupRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTunnelGroupRequestWithDefaults() *TunnelGroupRequest {
+ this := TunnelGroupRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *TunnelGroupRequest) 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 *TunnelGroupRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *TunnelGroupRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetSlug returns the Slug field value
+func (o *TunnelGroupRequest) 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 *TunnelGroupRequest) GetSlugOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Slug, true
+}
+
+// SetSlug sets field value
+func (o *TunnelGroupRequest) SetSlug(v string) {
+ o.Slug = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *TunnelGroupRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *TunnelGroupRequest) 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 *TunnelGroupRequest) 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 *TunnelGroupRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *TunnelGroupRequest) 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 *TunnelGroupRequest) 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 *TunnelGroupRequest) 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 *TunnelGroupRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *TunnelGroupRequest) 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 *TunnelGroupRequest) 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 *TunnelGroupRequest) 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 *TunnelGroupRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o TunnelGroupRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TunnelGroupRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ toSerialize["slug"] = o.Slug
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !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 *TunnelGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
+ varTunnelGroupRequest := _TunnelGroupRequest{}
+
+ err = json.Unmarshal(data, &varTunnelGroupRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TunnelGroupRequest(varTunnelGroupRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "slug")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTunnelGroupRequest struct {
+ value *TunnelGroupRequest
+ isSet bool
+}
+
+func (v NullableTunnelGroupRequest) Get() *TunnelGroupRequest {
+ return v.value
+}
+
+func (v *NullableTunnelGroupRequest) Set(val *TunnelGroupRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTunnelGroupRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTunnelGroupRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTunnelGroupRequest(val *TunnelGroupRequest) *NullableTunnelGroupRequest {
+ return &NullableTunnelGroupRequest{value: val, isSet: true}
+}
+
+func (v NullableTunnelGroupRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTunnelGroupRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_tunnel_request.go b/model_tunnel_request.go
new file mode 100644
index 0000000000..419bc450dd
--- /dev/null
+++ b/model_tunnel_request.go
@@ -0,0 +1,545 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the TunnelRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TunnelRequest{}
+
+// TunnelRequest Adds support for custom fields and tags.
+type TunnelRequest struct {
+ Name string `json:"name"`
+ Status PatchedWritableTunnelRequestStatus `json:"status"`
+ Group NestedTunnelGroupRequest `json:"group"`
+ 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"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TunnelRequest TunnelRequest
+
+// NewTunnelRequest instantiates a new TunnelRequest object
+// This constructor will assign default values to properties that have it defined,
+// and 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, group NestedTunnelGroupRequest, encapsulation PatchedWritableTunnelRequestEncapsulation) *TunnelRequest {
+ this := TunnelRequest{}
+ this.Name = name
+ this.Status = status
+ this.Group = group
+ this.Encapsulation = encapsulation
+ return &this
+}
+
+// NewTunnelRequestWithDefaults instantiates a new TunnelRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTunnelRequestWithDefaults() *TunnelRequest {
+ this := TunnelRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *TunnelRequest) 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 *TunnelRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+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
+func (o *TunnelRequest) GetGroup() NestedTunnelGroupRequest {
+ if o == nil {
+ var ret NestedTunnelGroupRequest
+ 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 *TunnelRequest) GetGroupOk() (*NestedTunnelGroupRequest, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Group, true
+}
+
+// SetGroup sets field value
+func (o *TunnelRequest) SetGroup(v NestedTunnelGroupRequest) {
+ o.Group = v
+}
+
+// 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) {
+ 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 *TunnelRequest) 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 *TunnelRequest) 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 *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 {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TunnelRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ toSerialize["status"] = o.Status
+ toSerialize["group"] = o.Group
+ 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
+ }
+
+ return toSerialize, nil
+}
+
+func (o *TunnelRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "status",
+ "group",
+ "encapsulation",
+ }
+
+ 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)
+ }
+ }
+
+ varTunnelRequest := _TunnelRequest{}
+
+ err = json.Unmarshal(data, &varTunnelRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TunnelRequest(varTunnelRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ 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
+ }
+
+ return err
+}
+
+type NullableTunnelRequest struct {
+ value *TunnelRequest
+ isSet bool
+}
+
+func (v NullableTunnelRequest) Get() *TunnelRequest {
+ return v.value
+}
+
+func (v *NullableTunnelRequest) Set(val *TunnelRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTunnelRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTunnelRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTunnelRequest(val *TunnelRequest) *NullableTunnelRequest {
+ return &NullableTunnelRequest{value: val, isSet: true}
+}
+
+func (v NullableTunnelRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTunnelRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_tunnel_status.go b/model_tunnel_status.go
new file mode 100644
index 0000000000..4d74460e9b
--- /dev/null
+++ b/model_tunnel_status.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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
new file mode 100644
index 0000000000..e4e2912c56
--- /dev/null
+++ b/model_tunnel_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: 3.7.0 (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
new file mode 100644
index 0000000000..bfd7b0f1c0
--- /dev/null
+++ b/model_tunnel_termination.go
@@ -0,0 +1,577 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the TunnelTermination type satisfies the MappedNullable interface at compile time
+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"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TunnelTermination TunnelTermination
+
+// NewTunnelTermination instantiates a new TunnelTermination object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := TunnelTermination{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.Tunnel = tunnel
+ this.Role = role
+ this.TerminationType = terminationType
+ this.Termination = termination
+ this.Created = created
+ this.LastUpdated = lastUpdated
+ return &this
+}
+
+// NewTunnelTerminationWithDefaults instantiates a new TunnelTermination object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTunnelTerminationWithDefaults() *TunnelTermination {
+ this := TunnelTermination{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *TunnelTermination) 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 *TunnelTermination) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *TunnelTermination) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *TunnelTermination) 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 *TunnelTermination) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *TunnelTermination) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplay returns the Display field value
+func (o *TunnelTermination) 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 *TunnelTermination) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *TunnelTermination) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetTunnel returns the Tunnel field value
+func (o *TunnelTermination) GetTunnel() NestedTunnel {
+ if o == nil {
+ var ret NestedTunnel
+ return ret
+ }
+
+ return o.Tunnel
+}
+
+// GetTunnelOk returns a tuple with the Tunnel field value
+// and a boolean to check if the value has been set.
+func (o *TunnelTermination) GetTunnelOk() (*NestedTunnel, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Tunnel, true
+}
+
+// SetTunnel sets field value
+func (o *TunnelTermination) SetTunnel(v NestedTunnel) {
+ o.Tunnel = v
+}
+
+// GetRole returns the Role field value
+func (o *TunnelTermination) GetRole() TunnelTerminationRole {
+ if o == nil {
+ var ret TunnelTerminationRole
+ return ret
+ }
+
+ return o.Role
+}
+
+// GetRoleOk returns a tuple with the Role field value
+// and a boolean to check if the value has been set.
+func (o *TunnelTermination) GetRoleOk() (*TunnelTerminationRole, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Role, true
+}
+
+// SetRole sets field value
+func (o *TunnelTermination) SetRole(v TunnelTerminationRole) {
+ o.Role = v
+}
+
+// GetTerminationType returns the TerminationType field value
+func (o *TunnelTermination) GetTerminationType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.TerminationType
+}
+
+// GetTerminationTypeOk returns a tuple with the TerminationType field value
+// and a boolean to check if the value has been set.
+func (o *TunnelTermination) GetTerminationTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TerminationType, true
+}
+
+// SetTerminationType sets field value
+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).
+func (o *TunnelTermination) GetTerminationId() int64 {
+ if o == nil || IsNil(o.TerminationId.Get()) {
+ var ret int64
+ return ret
+ }
+ return *o.TerminationId.Get()
+}
+
+// GetTerminationIdOk returns a tuple with the TerminationId field value if set, nil otherwise
+// and a 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) {
+ if o == nil {
+ return nil, false
+ }
+ return o.TerminationId.Get(), o.TerminationId.IsSet()
+}
+
+// HasTerminationId returns a boolean if a field has been set.
+func (o *TunnelTermination) HasTerminationId() bool {
+ if o != nil && o.TerminationId.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetTerminationId gets a reference to the given NullableInt64 and assigns it to the TerminationId field.
+func (o *TunnelTermination) SetTerminationId(v int64) {
+ o.TerminationId.Set(&v)
+}
+
+// SetTerminationIdNil sets the value for TerminationId to be an explicit nil
+func (o *TunnelTermination) SetTerminationIdNil() {
+ o.TerminationId.Set(nil)
+}
+
+// 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{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+
+ return o.Termination
+}
+
+// GetTerminationOk returns a tuple with the Termination 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) GetTerminationOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Termination) {
+ return nil, false
+ }
+ return &o.Termination, true
+}
+
+// SetTermination sets field value
+func (o *TunnelTermination) SetTermination(v interface{}) {
+ o.Termination = v
+}
+
+// GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *TunnelTermination) GetOutsideIp() NestedIPAddress {
+ if o == nil || IsNil(o.OutsideIp.Get()) {
+ var ret NestedIPAddress
+ return ret
+ }
+ return *o.OutsideIp.Get()
+}
+
+// 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) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OutsideIp.Get(), o.OutsideIp.IsSet()
+}
+
+// HasOutsideIp returns a boolean if a field has been set.
+func (o *TunnelTermination) HasOutsideIp() bool {
+ if o != nil && o.OutsideIp.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetOutsideIp gets a reference to the given NullableNestedIPAddress and assigns it to the OutsideIp field.
+func (o *TunnelTermination) SetOutsideIp(v NestedIPAddress) {
+ o.OutsideIp.Set(&v)
+}
+
+// SetOutsideIpNil sets the value for OutsideIp to be an explicit nil
+func (o *TunnelTermination) SetOutsideIpNil() {
+ o.OutsideIp.Set(nil)
+}
+
+// UnsetOutsideIp ensures that no value is present for OutsideIp, not even an explicit nil
+func (o *TunnelTermination) UnsetOutsideIp() {
+ o.OutsideIp.Unset()
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *TunnelTermination) 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 *TunnelTermination) 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 *TunnelTermination) 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 *TunnelTermination) SetTags(v []NestedTag) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *TunnelTermination) 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 *TunnelTermination) 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 *TunnelTermination) 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 *TunnelTermination) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetCreated returns the Created field value
+// If the value is explicit nil, the zero value for time.Time will be returned
+func (o *TunnelTermination) 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 *TunnelTermination) GetCreatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Created.Get(), o.Created.IsSet()
+}
+
+// SetCreated sets field value
+func (o *TunnelTermination) 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 *TunnelTermination) 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 *TunnelTermination) GetLastUpdatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.LastUpdated.Get(), o.LastUpdated.IsSet()
+}
+
+// SetLastUpdated sets field value
+func (o *TunnelTermination) SetLastUpdated(v time.Time) {
+ o.LastUpdated.Set(&v)
+}
+
+func (o TunnelTermination) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TunnelTermination) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ toSerialize["display"] = o.Display
+ toSerialize["tunnel"] = o.Tunnel
+ toSerialize["role"] = o.Role
+ toSerialize["termination_type"] = o.TerminationType
+ if o.TerminationId.IsSet() {
+ toSerialize["termination_id"] = o.TerminationId.Get()
+ }
+ if o.Termination != nil {
+ toSerialize["termination"] = o.Termination
+ }
+ if o.OutsideIp.IsSet() {
+ toSerialize["outside_ip"] = o.OutsideIp.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
+ }
+
+ return toSerialize, nil
+}
+
+func (o *TunnelTermination) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "tunnel",
+ "role",
+ "termination_type",
+ "termination",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
+ varTunnelTermination := _TunnelTermination{}
+
+ err = json.Unmarshal(data, &varTunnelTermination)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TunnelTermination(varTunnelTermination)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "tunnel")
+ delete(additionalProperties, "role")
+ delete(additionalProperties, "termination_type")
+ delete(additionalProperties, "termination_id")
+ delete(additionalProperties, "termination")
+ delete(additionalProperties, "outside_ip")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "created")
+ delete(additionalProperties, "last_updated")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTunnelTermination struct {
+ value *TunnelTermination
+ isSet bool
+}
+
+func (v NullableTunnelTermination) Get() *TunnelTermination {
+ return v.value
+}
+
+func (v *NullableTunnelTermination) Set(val *TunnelTermination) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTunnelTermination) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTunnelTermination) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTunnelTermination(val *TunnelTermination) *NullableTunnelTermination {
+ return &NullableTunnelTermination{value: val, isSet: true}
+}
+
+func (v NullableTunnelTermination) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTunnelTermination) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_tunnel_termination_request.go b/model_tunnel_termination_request.go
new file mode 100644
index 0000000000..683ed702e6
--- /dev/null
+++ b/model_tunnel_termination_request.go
@@ -0,0 +1,394 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the TunnelTerminationRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TunnelTerminationRequest{}
+
+// TunnelTerminationRequest Adds support for custom fields and tags.
+type TunnelTerminationRequest struct {
+ Tunnel NestedTunnelRequest `json:"tunnel"`
+ Role PatchedWritableTunnelTerminationRequestRole `json:"role"`
+ TerminationType string `json:"termination_type"`
+ TerminationId NullableInt64 `json:"termination_id,omitempty"`
+ OutsideIp NullableNestedIPAddressRequest `json:"outside_ip,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TunnelTerminationRequest TunnelTerminationRequest
+
+// NewTunnelTerminationRequest instantiates a new TunnelTerminationRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTunnelTerminationRequest(tunnel NestedTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string) *TunnelTerminationRequest {
+ this := TunnelTerminationRequest{}
+ this.Tunnel = tunnel
+ this.Role = role
+ this.TerminationType = terminationType
+ return &this
+}
+
+// NewTunnelTerminationRequestWithDefaults instantiates a new TunnelTerminationRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTunnelTerminationRequestWithDefaults() *TunnelTerminationRequest {
+ this := TunnelTerminationRequest{}
+ return &this
+}
+
+// GetTunnel returns the Tunnel field value
+func (o *TunnelTerminationRequest) GetTunnel() NestedTunnelRequest {
+ if o == nil {
+ var ret NestedTunnelRequest
+ return ret
+ }
+
+ return o.Tunnel
+}
+
+// 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) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Tunnel, true
+}
+
+// SetTunnel sets field value
+func (o *TunnelTerminationRequest) SetTunnel(v NestedTunnelRequest) {
+ o.Tunnel = v
+}
+
+// GetRole returns the Role field value
+func (o *TunnelTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole {
+ if o == nil {
+ var ret PatchedWritableTunnelTerminationRequestRole
+ return ret
+ }
+
+ return o.Role
+}
+
+// GetRoleOk returns a tuple with the Role field value
+// and a boolean to check if the value has been set.
+func (o *TunnelTerminationRequest) GetRoleOk() (*PatchedWritableTunnelTerminationRequestRole, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Role, true
+}
+
+// SetRole sets field value
+func (o *TunnelTerminationRequest) SetRole(v PatchedWritableTunnelTerminationRequestRole) {
+ o.Role = v
+}
+
+// GetTerminationType returns the TerminationType field value
+func (o *TunnelTerminationRequest) GetTerminationType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.TerminationType
+}
+
+// GetTerminationTypeOk returns a tuple with the TerminationType field value
+// and a boolean to check if the value has been set.
+func (o *TunnelTerminationRequest) GetTerminationTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TerminationType, true
+}
+
+// SetTerminationType sets field value
+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).
+func (o *TunnelTerminationRequest) GetTerminationId() int64 {
+ if o == nil || IsNil(o.TerminationId.Get()) {
+ var ret int64
+ return ret
+ }
+ return *o.TerminationId.Get()
+}
+
+// GetTerminationIdOk returns a tuple with the TerminationId field value if set, nil otherwise
+// and a 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) {
+ if o == nil {
+ return nil, false
+ }
+ return o.TerminationId.Get(), o.TerminationId.IsSet()
+}
+
+// HasTerminationId returns a boolean if a field has been set.
+func (o *TunnelTerminationRequest) HasTerminationId() bool {
+ if o != nil && o.TerminationId.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetTerminationId gets a reference to the given NullableInt64 and assigns it to the TerminationId field.
+func (o *TunnelTerminationRequest) SetTerminationId(v int64) {
+ o.TerminationId.Set(&v)
+}
+
+// SetTerminationIdNil sets the value for TerminationId to be an explicit nil
+func (o *TunnelTerminationRequest) SetTerminationIdNil() {
+ o.TerminationId.Set(nil)
+}
+
+// UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil
+func (o *TunnelTerminationRequest) UnsetTerminationId() {
+ o.TerminationId.Unset()
+}
+
+// GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *TunnelTerminationRequest) GetOutsideIp() NestedIPAddressRequest {
+ if o == nil || IsNil(o.OutsideIp.Get()) {
+ var ret NestedIPAddressRequest
+ return ret
+ }
+ return *o.OutsideIp.Get()
+}
+
+// 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) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OutsideIp.Get(), o.OutsideIp.IsSet()
+}
+
+// HasOutsideIp returns a boolean if a field has been set.
+func (o *TunnelTerminationRequest) HasOutsideIp() bool {
+ if o != nil && o.OutsideIp.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetOutsideIp gets a reference to the given NullableNestedIPAddressRequest and assigns it to the OutsideIp field.
+func (o *TunnelTerminationRequest) SetOutsideIp(v NestedIPAddressRequest) {
+ o.OutsideIp.Set(&v)
+}
+
+// SetOutsideIpNil sets the value for OutsideIp to be an explicit nil
+func (o *TunnelTerminationRequest) SetOutsideIpNil() {
+ o.OutsideIp.Set(nil)
+}
+
+// UnsetOutsideIp ensures that no value is present for OutsideIp, not even an explicit nil
+func (o *TunnelTerminationRequest) UnsetOutsideIp() {
+ o.OutsideIp.Unset()
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *TunnelTerminationRequest) 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 *TunnelTerminationRequest) 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 *TunnelTerminationRequest) 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 *TunnelTerminationRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *TunnelTerminationRequest) 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 *TunnelTerminationRequest) 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 *TunnelTerminationRequest) 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 *TunnelTerminationRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o TunnelTerminationRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TunnelTerminationRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["tunnel"] = o.Tunnel
+ toSerialize["role"] = o.Role
+ toSerialize["termination_type"] = o.TerminationType
+ if o.TerminationId.IsSet() {
+ toSerialize["termination_id"] = o.TerminationId.Get()
+ }
+ if o.OutsideIp.IsSet() {
+ toSerialize["outside_ip"] = o.OutsideIp.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 *TunnelTerminationRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "tunnel",
+ "role",
+ "termination_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)
+ }
+ }
+
+ varTunnelTerminationRequest := _TunnelTerminationRequest{}
+
+ err = json.Unmarshal(data, &varTunnelTerminationRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TunnelTerminationRequest(varTunnelTerminationRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "tunnel")
+ delete(additionalProperties, "role")
+ delete(additionalProperties, "termination_type")
+ delete(additionalProperties, "termination_id")
+ delete(additionalProperties, "outside_ip")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTunnelTerminationRequest struct {
+ value *TunnelTerminationRequest
+ isSet bool
+}
+
+func (v NullableTunnelTerminationRequest) Get() *TunnelTerminationRequest {
+ return v.value
+}
+
+func (v *NullableTunnelTerminationRequest) Set(val *TunnelTerminationRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTunnelTerminationRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTunnelTerminationRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTunnelTerminationRequest(val *TunnelTerminationRequest) *NullableTunnelTerminationRequest {
+ return &NullableTunnelTerminationRequest{value: val, isSet: true}
+}
+
+func (v NullableTunnelTerminationRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTunnelTerminationRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_tunnel_termination_role.go b/model_tunnel_termination_role.go
new file mode 100644
index 0000000000..af8b4e6249
--- /dev/null
+++ b/model_tunnel_termination_role.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the TunnelTerminationRole type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TunnelTerminationRole{}
+
+// TunnelTerminationRole struct for TunnelTerminationRole
+type TunnelTerminationRole struct {
+ Value *PatchedWritableTunnelTerminationRequestRole `json:"value,omitempty"`
+ Label *TunnelTerminationRoleLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TunnelTerminationRole TunnelTerminationRole
+
+// NewTunnelTerminationRole instantiates a new TunnelTerminationRole object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTunnelTerminationRole() *TunnelTerminationRole {
+ this := TunnelTerminationRole{}
+ return &this
+}
+
+// NewTunnelTerminationRoleWithDefaults instantiates a new TunnelTerminationRole object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTunnelTerminationRoleWithDefaults() *TunnelTerminationRole {
+ this := TunnelTerminationRole{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *TunnelTerminationRole) GetValue() PatchedWritableTunnelTerminationRequestRole {
+ if o == nil || IsNil(o.Value) {
+ var ret PatchedWritableTunnelTerminationRequestRole
+ 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 *TunnelTerminationRole) GetValueOk() (*PatchedWritableTunnelTerminationRequestRole, 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 *TunnelTerminationRole) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given PatchedWritableTunnelTerminationRequestRole and assigns it to the Value field.
+func (o *TunnelTerminationRole) SetValue(v PatchedWritableTunnelTerminationRequestRole) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *TunnelTerminationRole) GetLabel() TunnelTerminationRoleLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret TunnelTerminationRoleLabel
+ 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 *TunnelTerminationRole) GetLabelOk() (*TunnelTerminationRoleLabel, 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 *TunnelTerminationRole) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given TunnelTerminationRoleLabel and assigns it to the Label field.
+func (o *TunnelTerminationRole) SetLabel(v TunnelTerminationRoleLabel) {
+ o.Label = &v
+}
+
+func (o TunnelTerminationRole) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TunnelTerminationRole) 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 *TunnelTerminationRole) UnmarshalJSON(data []byte) (err error) {
+ varTunnelTerminationRole := _TunnelTerminationRole{}
+
+ err = json.Unmarshal(data, &varTunnelTerminationRole)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TunnelTerminationRole(varTunnelTerminationRole)
+
+ 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 NullableTunnelTerminationRole struct {
+ value *TunnelTerminationRole
+ isSet bool
+}
+
+func (v NullableTunnelTerminationRole) Get() *TunnelTerminationRole {
+ return v.value
+}
+
+func (v *NullableTunnelTerminationRole) Set(val *TunnelTerminationRole) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTunnelTerminationRole) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTunnelTerminationRole) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTunnelTerminationRole(val *TunnelTerminationRole) *NullableTunnelTerminationRole {
+ return &NullableTunnelTerminationRole{value: val, isSet: true}
+}
+
+func (v NullableTunnelTerminationRole) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTunnelTerminationRole) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_tunnel_termination_role_label.go b/model_tunnel_termination_role_label.go
new file mode 100644
index 0000000000..b72f8e6983
--- /dev/null
+++ b/model_tunnel_termination_role_label.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// TunnelTerminationRoleLabel the model 'TunnelTerminationRoleLabel'
+type TunnelTerminationRoleLabel string
+
+// List of TunnelTermination_role_label
+const (
+ TUNNELTERMINATIONROLELABEL_PEER TunnelTerminationRoleLabel = "Peer"
+ TUNNELTERMINATIONROLELABEL_HUB TunnelTerminationRoleLabel = "Hub"
+ TUNNELTERMINATIONROLELABEL_SPOKE TunnelTerminationRoleLabel = "Spoke"
+)
+
+// All allowed values of TunnelTerminationRoleLabel enum
+var AllowedTunnelTerminationRoleLabelEnumValues = []TunnelTerminationRoleLabel{
+ "Peer",
+ "Hub",
+ "Spoke",
+}
+
+func (v *TunnelTerminationRoleLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := TunnelTerminationRoleLabel(value)
+ for _, existing := range AllowedTunnelTerminationRoleLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid TunnelTerminationRoleLabel", value)
+}
+
+// NewTunnelTerminationRoleLabelFromValue returns a pointer to a valid TunnelTerminationRoleLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewTunnelTerminationRoleLabelFromValue(v string) (*TunnelTerminationRoleLabel, error) {
+ ev := TunnelTerminationRoleLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for TunnelTerminationRoleLabel: valid values are %v", v, AllowedTunnelTerminationRoleLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v TunnelTerminationRoleLabel) IsValid() bool {
+ for _, existing := range AllowedTunnelTerminationRoleLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to TunnelTermination_role_label value
+func (v TunnelTerminationRoleLabel) Ptr() *TunnelTerminationRoleLabel {
+ return &v
+}
+
+type NullableTunnelTerminationRoleLabel struct {
+ value *TunnelTerminationRoleLabel
+ isSet bool
+}
+
+func (v NullableTunnelTerminationRoleLabel) Get() *TunnelTerminationRoleLabel {
+ return v.value
+}
+
+func (v *NullableTunnelTerminationRoleLabel) Set(val *TunnelTerminationRoleLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTunnelTerminationRoleLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTunnelTerminationRoleLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTunnelTerminationRoleLabel(val *TunnelTerminationRoleLabel) *NullableTunnelTerminationRoleLabel {
+ return &NullableTunnelTerminationRoleLabel{value: val, isSet: true}
+}
+
+func (v NullableTunnelTerminationRoleLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTunnelTerminationRoleLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_user.go b/model_user.go
index 24be569710..528f2e6c18 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -423,10 +424,34 @@ func (o User) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *User) UnmarshalJSON(bytes []byte) (err error) {
+func (o *User) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "url",
+ "display",
+ "username",
+ }
+
+ 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)
+ }
+ }
+
varUser := _User{}
- err = json.Unmarshal(bytes, &varUser)
+ err = json.Unmarshal(data, &varUser)
if err != nil {
return err
@@ -436,7 +461,7 @@ func (o *User) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_user_request.go b/model_user_request.go
index ab5256abf3..b6db28c492 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -369,10 +370,32 @@ func (o UserRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *UserRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *UserRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varUserRequest := _UserRequest{}
- err = json.Unmarshal(bytes, &varUserRequest)
+ err = json.Unmarshal(data, &varUserRequest)
if err != nil {
return err
@@ -382,7 +405,7 @@ func (o *UserRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "username")
delete(additionalProperties, "password")
delete(additionalProperties, "first_name")
diff --git a/model_virtual_chassis.go b/model_virtual_chassis.go
index 3ad372e580..d364b10ec7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -480,10 +481,37 @@ func (o VirtualChassis) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *VirtualChassis) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "member_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)
+ }
+ }
+
varVirtualChassis := _VirtualChassis{}
- err = json.Unmarshal(bytes, &varVirtualChassis)
+ err = json.Unmarshal(data, &varVirtualChassis)
if err != nil {
return err
@@ -493,7 +521,7 @@ func (o *VirtualChassis) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_virtual_chassis_request.go b/model_virtual_chassis_request.go
index ee91f62244..eb876cd7cf 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 VirtualChassisRequest type satisfies the MappedNullable interface at compile time
@@ -313,10 +314,31 @@ func (o VirtualChassisRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *VirtualChassisRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VirtualChassisRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varVirtualChassisRequest := _VirtualChassisRequest{}
- err = json.Unmarshal(bytes, &varVirtualChassisRequest)
+ err = json.Unmarshal(data, &varVirtualChassisRequest)
if err != nil {
return err
@@ -326,7 +348,7 @@ func (o *VirtualChassisRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "domain")
delete(additionalProperties, "master")
diff --git a/model_virtual_device_context.go b/model_virtual_device_context.go
index 5d5a43414f..a475286ea8 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -669,10 +670,40 @@ func (o VirtualDeviceContext) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *VirtualDeviceContext) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VirtualDeviceContext) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "device",
+ "primary_ip",
+ "status",
+ "created",
+ "last_updated",
+ "interface_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)
+ }
+ }
+
varVirtualDeviceContext := _VirtualDeviceContext{}
- err = json.Unmarshal(bytes, &varVirtualDeviceContext)
+ err = json.Unmarshal(data, &varVirtualDeviceContext)
if err != nil {
return err
@@ -682,7 +713,7 @@ func (o *VirtualDeviceContext) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_virtual_device_context_request.go b/model_virtual_device_context_request.go
index d81e37c549..c723b45274 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 VirtualDeviceContextRequest type satisfies the MappedNullable interface at compile time
@@ -22,16 +23,15 @@ type VirtualDeviceContextRequest struct {
Name string `json:"name"`
Device NestedDeviceRequest `json:"device"`
// Numeric identifier unique to the parent device
- Identifier NullableInt32 `json:"identifier,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- PrimaryIp4 NullableNestedIPAddressRequest `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableNestedIPAddressRequest `json:"primary_ip6,omitempty"`
- // * `active` - Active * `planned` - Planned * `offline` - Offline
- Status string `json:"status"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Identifier NullableInt32 `json:"identifier,omitempty"`
+ Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
+ PrimaryIp4 NullableNestedIPAddressRequest `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableNestedIPAddressRequest `json:"primary_ip6,omitempty"`
+ Status PatchedWritableVirtualDeviceContextRequestStatus `json:"status"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -41,7 +41,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 string) *VirtualDeviceContextRequest {
+func NewVirtualDeviceContextRequest(name string, device NestedDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest {
this := VirtualDeviceContextRequest{}
this.Name = name
this.Device = device
@@ -278,9 +278,9 @@ func (o *VirtualDeviceContextRequest) UnsetPrimaryIp6() {
}
// GetStatus returns the Status field value
-func (o *VirtualDeviceContextRequest) GetStatus() string {
+func (o *VirtualDeviceContextRequest) GetStatus() PatchedWritableVirtualDeviceContextRequestStatus {
if o == nil {
- var ret string
+ var ret PatchedWritableVirtualDeviceContextRequestStatus
return ret
}
@@ -289,7 +289,7 @@ func (o *VirtualDeviceContextRequest) GetStatus() string {
// GetStatusOk returns a tuple with the Status field value
// and a boolean to check if the value has been set.
-func (o *VirtualDeviceContextRequest) GetStatusOk() (*string, bool) {
+func (o *VirtualDeviceContextRequest) GetStatusOk() (*PatchedWritableVirtualDeviceContextRequestStatus, bool) {
if o == nil {
return nil, false
}
@@ -297,7 +297,7 @@ func (o *VirtualDeviceContextRequest) GetStatusOk() (*string, bool) {
}
// SetStatus sets field value
-func (o *VirtualDeviceContextRequest) SetStatus(v string) {
+func (o *VirtualDeviceContextRequest) SetStatus(v PatchedWritableVirtualDeviceContextRequestStatus) {
o.Status = v
}
@@ -474,10 +474,33 @@ func (o VirtualDeviceContextRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *VirtualDeviceContextRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VirtualDeviceContextRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "device",
+ "status",
+ }
+
+ 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)
+ }
+ }
+
varVirtualDeviceContextRequest := _VirtualDeviceContextRequest{}
- err = json.Unmarshal(bytes, &varVirtualDeviceContextRequest)
+ err = json.Unmarshal(data, &varVirtualDeviceContextRequest)
if err != nil {
return err
@@ -487,7 +510,7 @@ func (o *VirtualDeviceContextRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "device")
delete(additionalProperties, "identifier")
diff --git a/model_virtual_device_context_status.go b/model_virtual_device_context_status.go
index 25cc000b27..e0ab7ff047 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &VirtualDeviceContextStatus{}
// VirtualDeviceContextStatus struct for VirtualDeviceContextStatus
type VirtualDeviceContextStatus struct {
- // * `active` - Active * `planned` - Planned * `offline` - Offline
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *PatchedWritableVirtualDeviceContextRequestStatus `json:"value,omitempty"`
+ Label *VirtualDeviceContextStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewVirtualDeviceContextStatusWithDefaults() *VirtualDeviceContextStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *VirtualDeviceContextStatus) GetValue() string {
+func (o *VirtualDeviceContextStatus) GetValue() PatchedWritableVirtualDeviceContextRequestStatus {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret PatchedWritableVirtualDeviceContextRequestStatus
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *VirtualDeviceContextStatus) GetValue() string {
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *VirtualDeviceContextStatus) GetValueOk() (*string, bool) {
+func (o *VirtualDeviceContextStatus) GetValueOk() (*PatchedWritableVirtualDeviceContextRequestStatus, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *VirtualDeviceContextStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *VirtualDeviceContextStatus) SetValue(v string) {
+// SetValue gets a reference to the given PatchedWritableVirtualDeviceContextRequestStatus and assigns it to the Value field.
+func (o *VirtualDeviceContextStatus) SetValue(v PatchedWritableVirtualDeviceContextRequestStatus) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *VirtualDeviceContextStatus) GetLabel() string {
+func (o *VirtualDeviceContextStatus) GetLabel() VirtualDeviceContextStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret VirtualDeviceContextStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *VirtualDeviceContextStatus) 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 *VirtualDeviceContextStatus) GetLabelOk() (*string, bool) {
+func (o *VirtualDeviceContextStatus) GetLabelOk() (*VirtualDeviceContextStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *VirtualDeviceContextStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *VirtualDeviceContextStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given VirtualDeviceContextStatusLabel and assigns it to the Label field.
+func (o *VirtualDeviceContextStatus) SetLabel(v VirtualDeviceContextStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o VirtualDeviceContextStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *VirtualDeviceContextStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VirtualDeviceContextStatus) UnmarshalJSON(data []byte) (err error) {
varVirtualDeviceContextStatus := _VirtualDeviceContextStatus{}
- err = json.Unmarshal(bytes, &varVirtualDeviceContextStatus)
+ err = json.Unmarshal(data, &varVirtualDeviceContextStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *VirtualDeviceContextStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_virtual_device_context_status_label.go b/model_virtual_device_context_status_label.go
new file mode 100644
index 0000000000..b2fef3cf2c
--- /dev/null
+++ b/model_virtual_device_context_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: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// VirtualDeviceContextStatusLabel the model 'VirtualDeviceContextStatusLabel'
+type VirtualDeviceContextStatusLabel string
+
+// List of VirtualDeviceContext_status_label
+const (
+ VIRTUALDEVICECONTEXTSTATUSLABEL_ACTIVE VirtualDeviceContextStatusLabel = "Active"
+ VIRTUALDEVICECONTEXTSTATUSLABEL_PLANNED VirtualDeviceContextStatusLabel = "Planned"
+ VIRTUALDEVICECONTEXTSTATUSLABEL_OFFLINE VirtualDeviceContextStatusLabel = "Offline"
+)
+
+// All allowed values of VirtualDeviceContextStatusLabel enum
+var AllowedVirtualDeviceContextStatusLabelEnumValues = []VirtualDeviceContextStatusLabel{
+ "Active",
+ "Planned",
+ "Offline",
+}
+
+func (v *VirtualDeviceContextStatusLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := VirtualDeviceContextStatusLabel(value)
+ for _, existing := range AllowedVirtualDeviceContextStatusLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid VirtualDeviceContextStatusLabel", value)
+}
+
+// NewVirtualDeviceContextStatusLabelFromValue returns a pointer to a valid VirtualDeviceContextStatusLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewVirtualDeviceContextStatusLabelFromValue(v string) (*VirtualDeviceContextStatusLabel, error) {
+ ev := VirtualDeviceContextStatusLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for VirtualDeviceContextStatusLabel: valid values are %v", v, AllowedVirtualDeviceContextStatusLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v VirtualDeviceContextStatusLabel) IsValid() bool {
+ for _, existing := range AllowedVirtualDeviceContextStatusLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to VirtualDeviceContext_status_label value
+func (v VirtualDeviceContextStatusLabel) Ptr() *VirtualDeviceContextStatusLabel {
+ return &v
+}
+
+type NullableVirtualDeviceContextStatusLabel struct {
+ value *VirtualDeviceContextStatusLabel
+ isSet bool
+}
+
+func (v NullableVirtualDeviceContextStatusLabel) Get() *VirtualDeviceContextStatusLabel {
+ return v.value
+}
+
+func (v *NullableVirtualDeviceContextStatusLabel) Set(val *VirtualDeviceContextStatusLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableVirtualDeviceContextStatusLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableVirtualDeviceContextStatusLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableVirtualDeviceContextStatusLabel(val *VirtualDeviceContextStatusLabel) *NullableVirtualDeviceContextStatusLabel {
+ return &NullableVirtualDeviceContextStatusLabel{value: val, isSet: true}
+}
+
+func (v NullableVirtualDeviceContextStatusLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableVirtualDeviceContextStatusLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_virtual_disk.go b/model_virtual_disk.go
new file mode 100644
index 0000000000..10e0f4b826
--- /dev/null
+++ b/model_virtual_disk.go
@@ -0,0 +1,456 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the VirtualDisk type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &VirtualDisk{}
+
+// VirtualDisk Adds support for custom fields and tags.
+type VirtualDisk struct {
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ VirtualMachine NestedVirtualMachine `json:"virtual_machine"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Size int32 `json:"size"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _VirtualDisk VirtualDisk
+
+// NewVirtualDisk instantiates a new VirtualDisk object
+// This constructor will assign default values to properties that have it defined,
+// and 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, virtualMachine NestedVirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime) *VirtualDisk {
+ this := VirtualDisk{}
+ this.Id = id
+ this.Url = url
+ this.VirtualMachine = virtualMachine
+ this.Name = name
+ this.Size = size
+ this.Created = created
+ this.LastUpdated = lastUpdated
+ return &this
+}
+
+// NewVirtualDiskWithDefaults instantiates a new VirtualDisk object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewVirtualDiskWithDefaults() *VirtualDisk {
+ this := VirtualDisk{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *VirtualDisk) 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 *VirtualDisk) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *VirtualDisk) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *VirtualDisk) 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 *VirtualDisk) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *VirtualDisk) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetVirtualMachine returns the VirtualMachine field value
+func (o *VirtualDisk) GetVirtualMachine() NestedVirtualMachine {
+ if o == nil {
+ var ret NestedVirtualMachine
+ 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 *VirtualDisk) GetVirtualMachineOk() (*NestedVirtualMachine, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.VirtualMachine, true
+}
+
+// SetVirtualMachine sets field value
+func (o *VirtualDisk) SetVirtualMachine(v NestedVirtualMachine) {
+ o.VirtualMachine = v
+}
+
+// GetName returns the Name field value
+func (o *VirtualDisk) 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 *VirtualDisk) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *VirtualDisk) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *VirtualDisk) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *VirtualDisk) 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 *VirtualDisk) 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 *VirtualDisk) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetSize returns the Size field value
+func (o *VirtualDisk) 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 *VirtualDisk) GetSizeOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Size, true
+}
+
+// SetSize sets field value
+func (o *VirtualDisk) SetSize(v int32) {
+ o.Size = v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *VirtualDisk) GetTags() []NestedTag {
+ if o == nil || IsNil(o.Tags) {
+ 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 *VirtualDisk) 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 *VirtualDisk) 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 *VirtualDisk) SetTags(v []NestedTag) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *VirtualDisk) 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 *VirtualDisk) 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 *VirtualDisk) 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 *VirtualDisk) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetCreated returns the Created field value
+// If the value is explicit nil, the zero value for time.Time will be returned
+func (o *VirtualDisk) 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 *VirtualDisk) GetCreatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Created.Get(), o.Created.IsSet()
+}
+
+// SetCreated sets field value
+func (o *VirtualDisk) 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 *VirtualDisk) 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 *VirtualDisk) GetLastUpdatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.LastUpdated.Get(), o.LastUpdated.IsSet()
+}
+
+// SetLastUpdated sets field value
+func (o *VirtualDisk) SetLastUpdated(v time.Time) {
+ o.LastUpdated.Set(&v)
+}
+
+func (o VirtualDisk) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o VirtualDisk) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ 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
+ }
+ toSerialize["created"] = o.Created.Get()
+ toSerialize["last_updated"] = o.LastUpdated.Get()
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *VirtualDisk) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "virtual_machine",
+ "name",
+ "size",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
+ varVirtualDisk := _VirtualDisk{}
+
+ err = json.Unmarshal(data, &varVirtualDisk)
+
+ if err != nil {
+ return err
+ }
+
+ *o = VirtualDisk(varVirtualDisk)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "virtual_machine")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "size")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "created")
+ delete(additionalProperties, "last_updated")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableVirtualDisk struct {
+ value *VirtualDisk
+ isSet bool
+}
+
+func (v NullableVirtualDisk) Get() *VirtualDisk {
+ return v.value
+}
+
+func (v *NullableVirtualDisk) Set(val *VirtualDisk) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableVirtualDisk) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableVirtualDisk) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableVirtualDisk(val *VirtualDisk) *NullableVirtualDisk {
+ return &NullableVirtualDisk{value: val, isSet: true}
+}
+
+func (v NullableVirtualDisk) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableVirtualDisk) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_virtual_disk_request.go b/model_virtual_disk_request.go
new file mode 100644
index 0000000000..c2efca71b1
--- /dev/null
+++ b/model_virtual_disk_request.go
@@ -0,0 +1,335 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the VirtualDiskRequest type satisfies the MappedNullable interface at compile time
+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"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _VirtualDiskRequest VirtualDiskRequest
+
+// NewVirtualDiskRequest instantiates a new VirtualDiskRequest object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := VirtualDiskRequest{}
+ this.VirtualMachine = virtualMachine
+ this.Name = name
+ this.Size = size
+ return &this
+}
+
+// NewVirtualDiskRequestWithDefaults instantiates a new VirtualDiskRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewVirtualDiskRequestWithDefaults() *VirtualDiskRequest {
+ this := VirtualDiskRequest{}
+ return &this
+}
+
+// GetVirtualMachine returns the VirtualMachine field value
+func (o *VirtualDiskRequest) GetVirtualMachine() NestedVirtualMachineRequest {
+ if o == nil {
+ var ret NestedVirtualMachineRequest
+ 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 *VirtualDiskRequest) GetVirtualMachineOk() (*NestedVirtualMachineRequest, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.VirtualMachine, true
+}
+
+// SetVirtualMachine sets field value
+func (o *VirtualDiskRequest) SetVirtualMachine(v NestedVirtualMachineRequest) {
+ o.VirtualMachine = v
+}
+
+// GetName returns the Name field value
+func (o *VirtualDiskRequest) 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 *VirtualDiskRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *VirtualDiskRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *VirtualDiskRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *VirtualDiskRequest) 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 *VirtualDiskRequest) 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 *VirtualDiskRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetSize returns the Size field value
+func (o *VirtualDiskRequest) 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 *VirtualDiskRequest) GetSizeOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Size, true
+}
+
+// SetSize sets field value
+func (o *VirtualDiskRequest) SetSize(v int32) {
+ o.Size = v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *VirtualDiskRequest) GetTags() []NestedTagRequest {
+ if o == nil || IsNil(o.Tags) {
+ 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 *VirtualDiskRequest) 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 *VirtualDiskRequest) 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 *VirtualDiskRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *VirtualDiskRequest) 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 *VirtualDiskRequest) 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 *VirtualDiskRequest) 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 *VirtualDiskRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o VirtualDiskRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o VirtualDiskRequest) 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 *VirtualDiskRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
+ varVirtualDiskRequest := _VirtualDiskRequest{}
+
+ err = json.Unmarshal(data, &varVirtualDiskRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = VirtualDiskRequest(varVirtualDiskRequest)
+
+ 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 NullableVirtualDiskRequest struct {
+ value *VirtualDiskRequest
+ isSet bool
+}
+
+func (v NullableVirtualDiskRequest) Get() *VirtualDiskRequest {
+ return v.value
+}
+
+func (v *NullableVirtualDiskRequest) Set(val *VirtualDiskRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableVirtualDiskRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableVirtualDiskRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableVirtualDiskRequest(val *VirtualDiskRequest) *NullableVirtualDiskRequest {
+ return &NullableVirtualDiskRequest{value: val, isSet: true}
+}
+
+func (v NullableVirtualDiskRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableVirtualDiskRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_virtual_machine_with_config_context.go b/model_virtual_machine_with_config_context.go
index 7f623146ea..2dfe20918d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -40,13 +41,14 @@ type VirtualMachineWithConfigContext struct {
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData map[string]interface{} `json:"local_context_data,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- ConfigContext map[string]interface{} `json:"config_context"`
+ ConfigContext interface{} `json:"config_context"`
Created NullableTime `json:"created"`
LastUpdated NullableTime `json:"last_updated"`
InterfaceCount int32 `json:"interface_count"`
+ VirtualDiskCount int32 `json:"virtual_disk_count"`
AdditionalProperties map[string]interface{}
}
@@ -56,7 +58,7 @@ type _VirtualMachineWithConfigContext VirtualMachineWithConfigContext
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NestedIPAddress, configContext map[string]interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32) *VirtualMachineWithConfigContext {
+func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NestedIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext {
this := VirtualMachineWithConfigContext{}
this.Id = id
this.Url = url
@@ -67,6 +69,7 @@ func NewVirtualMachineWithConfigContext(id int32, url string, display string, na
this.Created = created
this.LastUpdated = lastUpdated
this.InterfaceCount = interfaceCount
+ this.VirtualDiskCount = virtualDiskCount
return &this
}
@@ -768,9 +771,9 @@ func (o *VirtualMachineWithConfigContext) SetComments(v string) {
}
// GetLocalContextData returns the LocalContextData field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContext) GetLocalContextData() map[string]interface{} {
+func (o *VirtualMachineWithConfigContext) GetLocalContextData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.LocalContextData
@@ -779,11 +782,11 @@ func (o *VirtualMachineWithConfigContext) GetLocalContextData() map[string]inter
// GetLocalContextDataOk returns a tuple with the LocalContextData field value if set, nil otherwise
// and a 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) GetLocalContextDataOk() (map[string]interface{}, bool) {
+func (o *VirtualMachineWithConfigContext) GetLocalContextDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.LocalContextData) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.LocalContextData, true
+ return &o.LocalContextData, true
}
// HasLocalContextData returns a boolean if a field has been set.
@@ -795,8 +798,8 @@ func (o *VirtualMachineWithConfigContext) HasLocalContextData() bool {
return false
}
-// SetLocalContextData gets a reference to the given map[string]interface{} and assigns it to the LocalContextData field.
-func (o *VirtualMachineWithConfigContext) SetLocalContextData(v map[string]interface{}) {
+// SetLocalContextData gets a reference to the given interface{} and assigns it to the LocalContextData field.
+func (o *VirtualMachineWithConfigContext) SetLocalContextData(v interface{}) {
o.LocalContextData = v
}
@@ -865,10 +868,10 @@ func (o *VirtualMachineWithConfigContext) SetCustomFields(v map[string]interface
}
// GetConfigContext returns the ConfigContext field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *VirtualMachineWithConfigContext) GetConfigContext() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *VirtualMachineWithConfigContext) GetConfigContext() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -878,15 +881,15 @@ func (o *VirtualMachineWithConfigContext) GetConfigContext() map[string]interfac
// GetConfigContextOk returns a tuple with the ConfigContext field value
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualMachineWithConfigContext) GetConfigContextOk() (map[string]interface{}, bool) {
+func (o *VirtualMachineWithConfigContext) GetConfigContextOk() (*interface{}, bool) {
if o == nil || IsNil(o.ConfigContext) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.ConfigContext, true
+ return &o.ConfigContext, true
}
// SetConfigContext sets field value
-func (o *VirtualMachineWithConfigContext) SetConfigContext(v map[string]interface{}) {
+func (o *VirtualMachineWithConfigContext) SetConfigContext(v interface{}) {
o.ConfigContext = v
}
@@ -966,6 +969,30 @@ func (o *VirtualMachineWithConfigContext) SetInterfaceCount(v int32) {
o.InterfaceCount = v
}
+// GetVirtualDiskCount returns the VirtualDiskCount field value
+func (o *VirtualMachineWithConfigContext) GetVirtualDiskCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.VirtualDiskCount
+}
+
+// GetVirtualDiskCountOk returns a tuple with the VirtualDiskCount field value
+// and a boolean to check if the value has been set.
+func (o *VirtualMachineWithConfigContext) GetVirtualDiskCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.VirtualDiskCount, true
+}
+
+// SetVirtualDiskCount sets field value
+func (o *VirtualMachineWithConfigContext) SetVirtualDiskCount(v int32) {
+ o.VirtualDiskCount = v
+}
+
func (o VirtualMachineWithConfigContext) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -1038,6 +1065,7 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error)
toSerialize["created"] = o.Created.Get()
toSerialize["last_updated"] = o.LastUpdated.Get()
toSerialize["interface_count"] = o.InterfaceCount
+ toSerialize["virtual_disk_count"] = o.VirtualDiskCount
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -1046,10 +1074,40 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *VirtualMachineWithConfigContext) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VirtualMachineWithConfigContext) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "primary_ip",
+ "config_context",
+ "created",
+ "last_updated",
+ "interface_count",
+ "virtual_disk_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)
+ }
+ }
+
varVirtualMachineWithConfigContext := _VirtualMachineWithConfigContext{}
- err = json.Unmarshal(bytes, &varVirtualMachineWithConfigContext)
+ err = json.Unmarshal(data, &varVirtualMachineWithConfigContext)
if err != nil {
return err
@@ -1059,7 +1117,7 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
@@ -1086,6 +1144,7 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(bytes []byte) (err error
delete(additionalProperties, "created")
delete(additionalProperties, "last_updated")
delete(additionalProperties, "interface_count")
+ delete(additionalProperties, "virtual_disk_count")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_virtual_machine_with_config_context_request.go b/model_virtual_machine_with_config_context_request.go
index b3f54ba912..ac48e8696b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 VirtualMachineWithConfigContextRequest type satisfies the MappedNullable interface at compile time
@@ -19,9 +20,8 @@ var _ MappedNullable = &VirtualMachineWithConfigContextRequest{}
// VirtualMachineWithConfigContextRequest Adds support for custom fields and tags.
type VirtualMachineWithConfigContextRequest struct {
- Name string `json:"name"`
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
+ Name string `json:"name"`
+ Status *ModuleStatusValue `json:"status,omitempty"`
Site NullableNestedSiteRequest `json:"site,omitempty"`
Cluster NullableNestedClusterRequest `json:"cluster,omitempty"`
Device NullableNestedDeviceRequest `json:"device,omitempty"`
@@ -36,7 +36,7 @@ type VirtualMachineWithConfigContextRequest struct {
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData map[string]interface{} `json:"local_context_data,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -87,9 +87,9 @@ func (o *VirtualMachineWithConfigContextRequest) SetName(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *VirtualMachineWithConfigContextRequest) GetStatus() string {
+func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret ModuleStatusValue
return ret
}
return *o.Status
@@ -97,7 +97,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -113,8 +113,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *VirtualMachineWithConfigContextRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field.
+func (o *VirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) {
o.Status = &v
}
@@ -656,9 +656,9 @@ func (o *VirtualMachineWithConfigContextRequest) SetComments(v string) {
}
// GetLocalContextData returns the LocalContextData field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContextRequest) GetLocalContextData() map[string]interface{} {
+func (o *VirtualMachineWithConfigContextRequest) GetLocalContextData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.LocalContextData
@@ -667,11 +667,11 @@ func (o *VirtualMachineWithConfigContextRequest) GetLocalContextData() map[strin
// GetLocalContextDataOk returns a tuple with the LocalContextData field value if set, nil otherwise
// and a 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) GetLocalContextDataOk() (map[string]interface{}, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetLocalContextDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.LocalContextData) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.LocalContextData, true
+ return &o.LocalContextData, true
}
// HasLocalContextData returns a boolean if a field has been set.
@@ -683,8 +683,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasLocalContextData() bool {
return false
}
-// SetLocalContextData gets a reference to the given map[string]interface{} and assigns it to the LocalContextData field.
-func (o *VirtualMachineWithConfigContextRequest) SetLocalContextData(v map[string]interface{}) {
+// SetLocalContextData gets a reference to the given interface{} and assigns it to the LocalContextData field.
+func (o *VirtualMachineWithConfigContextRequest) SetLocalContextData(v interface{}) {
o.LocalContextData = v
}
@@ -822,10 +822,31 @@ func (o VirtualMachineWithConfigContextRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *VirtualMachineWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VirtualMachineWithConfigContextRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varVirtualMachineWithConfigContextRequest := _VirtualMachineWithConfigContextRequest{}
- err = json.Unmarshal(bytes, &varVirtualMachineWithConfigContextRequest)
+ err = json.Unmarshal(data, &varVirtualMachineWithConfigContextRequest)
if err != nil {
return err
@@ -835,7 +856,7 @@ func (o *VirtualMachineWithConfigContextRequest) UnmarshalJSON(bytes []byte) (er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "status")
delete(additionalProperties, "site")
diff --git a/model_vlan.go b/model_vlan.go
index 382b194bf3..a438486a93 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -678,10 +679,39 @@ func (o VLAN) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *VLAN) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VLAN) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "l2vpn_termination",
+ "created",
+ "last_updated",
+ "prefix_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)
+ }
+ }
+
varVLAN := _VLAN{}
- err = json.Unmarshal(bytes, &varVLAN)
+ err = json.Unmarshal(data, &varVLAN)
if err != nil {
return err
@@ -691,7 +721,7 @@ func (o *VLAN) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_vlan_group.go b/model_vlan_group.go
index 4d70733f8d..da9729a924 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -20,14 +21,14 @@ var _ MappedNullable = &VLANGroup{}
// VLANGroup Adds support for custom fields and tags.
type VLANGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Scope map[string]interface{} `json:"scope"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Scope interface{} `json:"scope"`
// Lowest permissible ID of a child VLAN
MinVid *int32 `json:"min_vid,omitempty"`
// Highest permissible ID of a child VLAN
@@ -48,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 map[string]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 int32, utilization string) *VLANGroup {
this := VLANGroup{}
this.Id = id
this.Url = url
@@ -278,10 +279,10 @@ func (o *VLANGroup) UnsetScopeId() {
}
// GetScope returns the Scope field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *VLANGroup) GetScope() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *VLANGroup) GetScope() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -291,15 +292,15 @@ func (o *VLANGroup) GetScope() map[string]interface{} {
// GetScopeOk returns a tuple with the Scope 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 *VLANGroup) GetScopeOk() (map[string]interface{}, bool) {
+func (o *VLANGroup) GetScopeOk() (*interface{}, bool) {
if o == nil || IsNil(o.Scope) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Scope, true
+ return &o.Scope, true
}
// SetScope sets field value
-func (o *VLANGroup) SetScope(v map[string]interface{}) {
+func (o *VLANGroup) SetScope(v interface{}) {
o.Scope = v
}
@@ -614,10 +615,40 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *VLANGroup) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VLANGroup) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "scope",
+ "created",
+ "last_updated",
+ "vlan_count",
+ "utilization",
+ }
+
+ 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)
+ }
+ }
+
varVLANGroup := _VLANGroup{}
- err = json.Unmarshal(bytes, &varVLANGroup)
+ err = json.Unmarshal(data, &varVLANGroup)
if err != nil {
return err
@@ -627,7 +658,7 @@ func (o *VLANGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_vlan_group_request.go b/model_vlan_group_request.go
index 59db244e9f..91d02ec1ca 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 VLANGroupRequest type satisfies the MappedNullable interface at compile time
@@ -389,10 +390,32 @@ func (o VLANGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *VLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varVLANGroupRequest := _VLANGroupRequest{}
- err = json.Unmarshal(bytes, &varVLANGroupRequest)
+ err = json.Unmarshal(data, &varVLANGroupRequest)
if err != nil {
return err
@@ -402,7 +425,7 @@ func (o *VLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "scope_type")
diff --git a/model_vlan_request.go b/model_vlan_request.go
index 487d1d2f76..461319d562 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 VLANRequest type satisfies the MappedNullable interface at compile time
@@ -22,16 +23,15 @@ 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"`
- // * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
- Role NullableNestedRoleRequest `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -234,9 +234,9 @@ func (o *VLANRequest) UnsetTenant() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *VLANRequest) GetStatus() string {
+func (o *VLANRequest) GetStatus() IPRangeStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret IPRangeStatusValue
return ret
}
return *o.Status
@@ -244,7 +244,7 @@ func (o *VLANRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *VLANRequest) GetStatusOk() (*IPRangeStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -260,8 +260,8 @@ func (o *VLANRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *VLANRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given IPRangeStatusValue and assigns it to the Status field.
+func (o *VLANRequest) SetStatus(v IPRangeStatusValue) {
o.Status = &v
}
@@ -483,10 +483,32 @@ func (o VLANRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *VLANRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VLANRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varVLANRequest := _VLANRequest{}
- err = json.Unmarshal(bytes, &varVLANRequest)
+ err = json.Unmarshal(data, &varVLANRequest)
if err != nil {
return err
@@ -496,7 +518,7 @@ func (o *VLANRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "site")
delete(additionalProperties, "group")
delete(additionalProperties, "vid")
diff --git a/model_vm_interface.go b/model_vm_interface.go
index 755a64bb43..4298fb83a8 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -834,10 +835,40 @@ func (o VMInterface) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *VMInterface) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VMInterface) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "url",
+ "display",
+ "virtual_machine",
+ "name",
+ "l2vpn_termination",
+ "created",
+ "last_updated",
+ "count_ipaddresses",
+ "count_fhrp_groups",
+ }
+
+ 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)
+ }
+ }
+
varVMInterface := _VMInterface{}
- err = json.Unmarshal(bytes, &varVMInterface)
+ err = json.Unmarshal(data, &varVMInterface)
if err != nil {
return err
@@ -847,7 +878,7 @@ func (o *VMInterface) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_vm_interface_request.go b/model_vm_interface_request.go
index d20b99b0d2..ad07843c54 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 VMInterfaceRequest type satisfies the MappedNullable interface at compile time
@@ -19,21 +20,20 @@ var _ MappedNullable = &VMInterfaceRequest{}
// VMInterfaceRequest Adds support for custom fields and tags.
type VMInterfaceRequest struct {
- VirtualMachine NestedVirtualMachineRequest `json:"virtual_machine"`
- Name string `json:"name"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableNestedVMInterfaceRequest `json:"parent,omitempty"`
- Bridge NullableNestedVMInterfaceRequest `json:"bridge,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- MacAddress NullableString `json:"mac_address,omitempty"`
- Description *string `json:"description,omitempty"`
- // * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All)
- Mode *string `json:"mode,omitempty"`
- UntaggedVlan NullableNestedVLANRequest `json:"untagged_vlan,omitempty"`
- TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
- Vrf NullableNestedVRFRequest `json:"vrf,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ VirtualMachine NestedVirtualMachineRequest `json:"virtual_machine"`
+ Name string `json:"name"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Parent NullableNestedVMInterfaceRequest `json:"parent,omitempty"`
+ Bridge NullableNestedVMInterfaceRequest `json:"bridge,omitempty"`
+ Mtu NullableInt32 `json:"mtu,omitempty"`
+ MacAddress NullableString `json:"mac_address,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode *InterfaceModeValue `json:"mode,omitempty"`
+ UntaggedVlan NullableNestedVLANRequest `json:"untagged_vlan,omitempty"`
+ TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
+ Vrf NullableNestedVRFRequest `json:"vrf,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -343,9 +343,9 @@ func (o *VMInterfaceRequest) SetDescription(v string) {
}
// GetMode returns the Mode field value if set, zero value otherwise.
-func (o *VMInterfaceRequest) GetMode() string {
+func (o *VMInterfaceRequest) GetMode() InterfaceModeValue {
if o == nil || IsNil(o.Mode) {
- var ret string
+ var ret InterfaceModeValue
return ret
}
return *o.Mode
@@ -353,7 +353,7 @@ func (o *VMInterfaceRequest) GetMode() string {
// GetModeOk returns a tuple with the Mode field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *VMInterfaceRequest) GetModeOk() (*string, bool) {
+func (o *VMInterfaceRequest) GetModeOk() (*InterfaceModeValue, bool) {
if o == nil || IsNil(o.Mode) {
return nil, false
}
@@ -369,8 +369,8 @@ func (o *VMInterfaceRequest) HasMode() bool {
return false
}
-// SetMode gets a reference to the given string and assigns it to the Mode field.
-func (o *VMInterfaceRequest) SetMode(v string) {
+// SetMode gets a reference to the given InterfaceModeValue and assigns it to the Mode field.
+func (o *VMInterfaceRequest) SetMode(v InterfaceModeValue) {
o.Mode = &v
}
@@ -612,10 +612,32 @@ func (o VMInterfaceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *VMInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VMInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ }
+
+ 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)
+ }
+ }
+
varVMInterfaceRequest := _VMInterfaceRequest{}
- err = json.Unmarshal(bytes, &varVMInterfaceRequest)
+ err = json.Unmarshal(data, &varVMInterfaceRequest)
if err != nil {
return err
@@ -625,7 +647,7 @@ func (o *VMInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "virtual_machine")
delete(additionalProperties, "name")
delete(additionalProperties, "enabled")
diff --git a/model_vrf.go b/model_vrf.go
index fdd532bfd6..33758b93fc 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -628,10 +629,38 @@ func (o VRF) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *VRF) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VRF) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "ipaddress_count",
+ "prefix_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)
+ }
+ }
+
varVRF := _VRF{}
- err = json.Unmarshal(bytes, &varVRF)
+ err = json.Unmarshal(data, &varVRF)
if err != nil {
return err
@@ -641,7 +670,7 @@ func (o *VRF) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_vrf_request.go b/model_vrf_request.go
index c5a4408467..44b9a9af88 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 VRFRequest type satisfies the MappedNullable interface at compile time
@@ -434,10 +435,31 @@ func (o VRFRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *VRFRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *VRFRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varVRFRequest := _VRFRequest{}
- err = json.Unmarshal(bytes, &varVRFRequest)
+ err = json.Unmarshal(data, &varVRFRequest)
if err != nil {
return err
@@ -447,7 +469,7 @@ func (o *VRFRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "rd")
delete(additionalProperties, "tenant")
diff --git a/model_webhook.go b/model_webhook.go
index aeb9068d0a..99d6c823ad 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -20,26 +21,14 @@ var _ MappedNullable = &Webhook{}
// Webhook Adds support for custom fields and tags.
type Webhook struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- ContentTypes []string `json:"content_types"`
- Name string `json:"name"`
- // Triggers when a matching object is created.
- TypeCreate *bool `json:"type_create,omitempty"`
- // Triggers when a matching object is updated.
- TypeUpdate *bool `json:"type_update,omitempty"`
- // Triggers when a matching object is deleted.
- TypeDelete *bool `json:"type_delete,omitempty"`
- // Triggers when a job for a matching object is started.
- TypeJobStart *bool `json:"type_job_start,omitempty"`
- // Triggers when a job for a matching object terminates.
- TypeJobEnd *bool `json:"type_job_end,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
// This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body.
- PayloadUrl string `json:"payload_url"`
- Enabled *bool `json:"enabled,omitempty"`
- // * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE
- HttpMethod *string `json:"http_method,omitempty"`
+ PayloadUrl string `json:"payload_url"`
+ HttpMethod *PatchedWebhookRequestHttpMethod `json:"http_method,omitempty"`
// The complete list of official content types is available here.
HttpContentType *string `json:"http_content_type,omitempty"`
// User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format Name: Value
. Jinja2 template processing is supported with the same context as the request body (below).
@@ -48,8 +37,6 @@ type Webhook struct {
BodyTemplate *string `json:"body_template,omitempty"`
// When provided, the request will include a X-Hook-Signature
header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request.
Secret *string `json:"secret,omitempty"`
- // A set of conditions which determine whether the webhook will be generated.
- Conditions map[string]interface{} `json:"conditions,omitempty"`
// Enable SSL certificate verification. Disable with caution!
SslVerification *bool `json:"ssl_verification,omitempty"`
// The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults.
@@ -67,12 +54,11 @@ type _Webhook Webhook
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWebhook(id int32, url string, display string, contentTypes []string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime) *Webhook {
+func NewWebhook(id int32, url string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime) *Webhook {
this := Webhook{}
this.Id = id
this.Url = url
this.Display = display
- this.ContentTypes = contentTypes
this.Name = name
this.PayloadUrl = payloadUrl
this.Created = created
@@ -160,30 +146,6 @@ func (o *Webhook) SetDisplay(v string) {
o.Display = v
}
-// GetContentTypes returns the ContentTypes field value
-func (o *Webhook) 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 *Webhook) GetContentTypesOk() ([]string, bool) {
- if o == nil {
- return nil, false
- }
- return o.ContentTypes, true
-}
-
-// SetContentTypes sets field value
-func (o *Webhook) SetContentTypes(v []string) {
- o.ContentTypes = v
-}
-
// GetName returns the Name field value
func (o *Webhook) GetName() string {
if o == nil {
@@ -208,164 +170,36 @@ func (o *Webhook) SetName(v string) {
o.Name = v
}
-// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise.
-func (o *Webhook) GetTypeCreate() bool {
- if o == nil || IsNil(o.TypeCreate) {
- var ret bool
- return ret
- }
- return *o.TypeCreate
-}
-
-// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *Webhook) GetTypeCreateOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeCreate) {
- return nil, false
- }
- return o.TypeCreate, true
-}
-
-// HasTypeCreate returns a boolean if a field has been set.
-func (o *Webhook) HasTypeCreate() bool {
- if o != nil && !IsNil(o.TypeCreate) {
- return true
- }
-
- return false
-}
-
-// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field.
-func (o *Webhook) SetTypeCreate(v bool) {
- o.TypeCreate = &v
-}
-
-// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise.
-func (o *Webhook) GetTypeUpdate() bool {
- if o == nil || IsNil(o.TypeUpdate) {
- var ret bool
- return ret
- }
- return *o.TypeUpdate
-}
-
-// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *Webhook) GetTypeUpdateOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeUpdate) {
- return nil, false
- }
- return o.TypeUpdate, true
-}
-
-// HasTypeUpdate returns a boolean if a field has been set.
-func (o *Webhook) HasTypeUpdate() bool {
- if o != nil && !IsNil(o.TypeUpdate) {
- return true
- }
-
- return false
-}
-
-// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field.
-func (o *Webhook) SetTypeUpdate(v bool) {
- o.TypeUpdate = &v
-}
-
-// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise.
-func (o *Webhook) GetTypeDelete() bool {
- if o == nil || IsNil(o.TypeDelete) {
- var ret bool
- return ret
- }
- return *o.TypeDelete
-}
-
-// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *Webhook) GetTypeDeleteOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeDelete) {
- return nil, false
- }
- return o.TypeDelete, true
-}
-
-// HasTypeDelete returns a boolean if a field has been set.
-func (o *Webhook) HasTypeDelete() bool {
- if o != nil && !IsNil(o.TypeDelete) {
- return true
- }
-
- return false
-}
-
-// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field.
-func (o *Webhook) SetTypeDelete(v bool) {
- o.TypeDelete = &v
-}
-
-// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise.
-func (o *Webhook) GetTypeJobStart() bool {
- if o == nil || IsNil(o.TypeJobStart) {
- var ret bool
- return ret
- }
- return *o.TypeJobStart
-}
-
-// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *Webhook) GetTypeJobStartOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeJobStart) {
- return nil, false
- }
- return o.TypeJobStart, true
-}
-
-// HasTypeJobStart returns a boolean if a field has been set.
-func (o *Webhook) HasTypeJobStart() bool {
- if o != nil && !IsNil(o.TypeJobStart) {
- return true
- }
-
- return false
-}
-
-// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field.
-func (o *Webhook) SetTypeJobStart(v bool) {
- o.TypeJobStart = &v
-}
-
-// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise.
-func (o *Webhook) GetTypeJobEnd() bool {
- if o == nil || IsNil(o.TypeJobEnd) {
- var ret bool
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *Webhook) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
return ret
}
- return *o.TypeJobEnd
+ return *o.Description
}
-// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise
+// 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 *Webhook) GetTypeJobEndOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeJobEnd) {
+func (o *Webhook) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
return nil, false
}
- return o.TypeJobEnd, true
+ return o.Description, true
}
-// HasTypeJobEnd returns a boolean if a field has been set.
-func (o *Webhook) HasTypeJobEnd() bool {
- if o != nil && !IsNil(o.TypeJobEnd) {
+// HasDescription returns a boolean if a field has been set.
+func (o *Webhook) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
return true
}
return false
}
-// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field.
-func (o *Webhook) SetTypeJobEnd(v bool) {
- o.TypeJobEnd = &v
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *Webhook) SetDescription(v string) {
+ o.Description = &v
}
// GetPayloadUrl returns the PayloadUrl field value
@@ -392,42 +226,10 @@ func (o *Webhook) SetPayloadUrl(v string) {
o.PayloadUrl = v
}
-// GetEnabled returns the Enabled field value if set, zero value otherwise.
-func (o *Webhook) 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 *Webhook) 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 *Webhook) 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 *Webhook) SetEnabled(v bool) {
- o.Enabled = &v
-}
-
// GetHttpMethod returns the HttpMethod field value if set, zero value otherwise.
-func (o *Webhook) GetHttpMethod() string {
+func (o *Webhook) GetHttpMethod() PatchedWebhookRequestHttpMethod {
if o == nil || IsNil(o.HttpMethod) {
- var ret string
+ var ret PatchedWebhookRequestHttpMethod
return ret
}
return *o.HttpMethod
@@ -435,7 +237,7 @@ func (o *Webhook) GetHttpMethod() string {
// GetHttpMethodOk returns a tuple with the HttpMethod field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *Webhook) GetHttpMethodOk() (*string, bool) {
+func (o *Webhook) GetHttpMethodOk() (*PatchedWebhookRequestHttpMethod, bool) {
if o == nil || IsNil(o.HttpMethod) {
return nil, false
}
@@ -451,8 +253,8 @@ func (o *Webhook) HasHttpMethod() bool {
return false
}
-// SetHttpMethod gets a reference to the given string and assigns it to the HttpMethod field.
-func (o *Webhook) SetHttpMethod(v string) {
+// SetHttpMethod gets a reference to the given PatchedWebhookRequestHttpMethod and assigns it to the HttpMethod field.
+func (o *Webhook) SetHttpMethod(v PatchedWebhookRequestHttpMethod) {
o.HttpMethod = &v
}
@@ -584,39 +386,6 @@ func (o *Webhook) SetSecret(v string) {
o.Secret = &v
}
-// GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Webhook) GetConditions() map[string]interface{} {
- if o == nil {
- var ret map[string]interface{}
- return ret
- }
- return o.Conditions
-}
-
-// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Webhook) GetConditionsOk() (map[string]interface{}, bool) {
- if o == nil || IsNil(o.Conditions) {
- return map[string]interface{}{}, false
- }
- return o.Conditions, true
-}
-
-// HasConditions returns a boolean if a field has been set.
-func (o *Webhook) HasConditions() bool {
- if o != nil && IsNil(o.Conditions) {
- return true
- }
-
- return false
-}
-
-// SetConditions gets a reference to the given map[string]interface{} and assigns it to the Conditions field.
-func (o *Webhook) SetConditions(v map[string]interface{}) {
- o.Conditions = v
-}
-
// GetSslVerification returns the SslVerification field value if set, zero value otherwise.
func (o *Webhook) GetSslVerification() bool {
if o == nil || IsNil(o.SslVerification) {
@@ -821,27 +590,11 @@ func (o Webhook) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
toSerialize["display"] = o.Display
- toSerialize["content_types"] = o.ContentTypes
toSerialize["name"] = o.Name
- if !IsNil(o.TypeCreate) {
- toSerialize["type_create"] = o.TypeCreate
- }
- if !IsNil(o.TypeUpdate) {
- toSerialize["type_update"] = o.TypeUpdate
- }
- if !IsNil(o.TypeDelete) {
- toSerialize["type_delete"] = o.TypeDelete
- }
- if !IsNil(o.TypeJobStart) {
- toSerialize["type_job_start"] = o.TypeJobStart
- }
- if !IsNil(o.TypeJobEnd) {
- toSerialize["type_job_end"] = o.TypeJobEnd
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
}
toSerialize["payload_url"] = o.PayloadUrl
- if !IsNil(o.Enabled) {
- toSerialize["enabled"] = o.Enabled
- }
if !IsNil(o.HttpMethod) {
toSerialize["http_method"] = o.HttpMethod
}
@@ -857,9 +610,6 @@ func (o Webhook) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Secret) {
toSerialize["secret"] = o.Secret
}
- if o.Conditions != nil {
- toSerialize["conditions"] = o.Conditions
- }
if !IsNil(o.SslVerification) {
toSerialize["ssl_verification"] = o.SslVerification
}
@@ -882,10 +632,37 @@ func (o Webhook) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *Webhook) UnmarshalJSON(bytes []byte) (err error) {
+func (o *Webhook) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "payload_url",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varWebhook := _Webhook{}
- err = json.Unmarshal(bytes, &varWebhook)
+ err = json.Unmarshal(data, &varWebhook)
if err != nil {
return err
@@ -895,25 +672,18 @@ func (o *Webhook) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
- delete(additionalProperties, "content_types")
delete(additionalProperties, "name")
- delete(additionalProperties, "type_create")
- delete(additionalProperties, "type_update")
- delete(additionalProperties, "type_delete")
- delete(additionalProperties, "type_job_start")
- delete(additionalProperties, "type_job_end")
+ delete(additionalProperties, "description")
delete(additionalProperties, "payload_url")
- delete(additionalProperties, "enabled")
delete(additionalProperties, "http_method")
delete(additionalProperties, "http_content_type")
delete(additionalProperties, "additional_headers")
delete(additionalProperties, "body_template")
delete(additionalProperties, "secret")
- delete(additionalProperties, "conditions")
delete(additionalProperties, "ssl_verification")
delete(additionalProperties, "ca_file_path")
delete(additionalProperties, "custom_fields")
diff --git a/model_webhook_request.go b/model_webhook_request.go
index 48cb869a2e..82bd659870 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WebhookRequest type satisfies the MappedNullable interface at compile time
@@ -19,23 +20,11 @@ var _ MappedNullable = &WebhookRequest{}
// WebhookRequest Adds support for custom fields and tags.
type WebhookRequest struct {
- ContentTypes []string `json:"content_types"`
- Name string `json:"name"`
- // Triggers when a matching object is created.
- TypeCreate *bool `json:"type_create,omitempty"`
- // Triggers when a matching object is updated.
- TypeUpdate *bool `json:"type_update,omitempty"`
- // Triggers when a matching object is deleted.
- TypeDelete *bool `json:"type_delete,omitempty"`
- // Triggers when a job for a matching object is started.
- TypeJobStart *bool `json:"type_job_start,omitempty"`
- // Triggers when a job for a matching object terminates.
- TypeJobEnd *bool `json:"type_job_end,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
// This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body.
- PayloadUrl string `json:"payload_url"`
- Enabled *bool `json:"enabled,omitempty"`
- // * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE
- HttpMethod *string `json:"http_method,omitempty"`
+ PayloadUrl string `json:"payload_url"`
+ HttpMethod *PatchedWebhookRequestHttpMethod `json:"http_method,omitempty"`
// The complete list of official content types is available here.
HttpContentType *string `json:"http_content_type,omitempty"`
// User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format Name: Value
. Jinja2 template processing is supported with the same context as the request body (below).
@@ -44,8 +33,6 @@ type WebhookRequest struct {
BodyTemplate *string `json:"body_template,omitempty"`
// When provided, the request will include a X-Hook-Signature
header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request.
Secret *string `json:"secret,omitempty"`
- // A set of conditions which determine whether the webhook will be generated.
- Conditions map[string]interface{} `json:"conditions,omitempty"`
// Enable SSL certificate verification. Disable with caution!
SslVerification *bool `json:"ssl_verification,omitempty"`
// The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults.
@@ -61,9 +48,8 @@ type _WebhookRequest WebhookRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWebhookRequest(contentTypes []string, name string, payloadUrl string) *WebhookRequest {
+func NewWebhookRequest(name string, payloadUrl string) *WebhookRequest {
this := WebhookRequest{}
- this.ContentTypes = contentTypes
this.Name = name
this.PayloadUrl = payloadUrl
return &this
@@ -77,30 +63,6 @@ func NewWebhookRequestWithDefaults() *WebhookRequest {
return &this
}
-// GetContentTypes returns the ContentTypes field value
-func (o *WebhookRequest) 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 *WebhookRequest) GetContentTypesOk() ([]string, bool) {
- if o == nil {
- return nil, false
- }
- return o.ContentTypes, true
-}
-
-// SetContentTypes sets field value
-func (o *WebhookRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
-}
-
// GetName returns the Name field value
func (o *WebhookRequest) GetName() string {
if o == nil {
@@ -125,164 +87,36 @@ func (o *WebhookRequest) SetName(v string) {
o.Name = v
}
-// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise.
-func (o *WebhookRequest) GetTypeCreate() bool {
- if o == nil || IsNil(o.TypeCreate) {
- var ret bool
- return ret
- }
- return *o.TypeCreate
-}
-
-// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WebhookRequest) GetTypeCreateOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeCreate) {
- return nil, false
- }
- return o.TypeCreate, true
-}
-
-// HasTypeCreate returns a boolean if a field has been set.
-func (o *WebhookRequest) HasTypeCreate() bool {
- if o != nil && !IsNil(o.TypeCreate) {
- return true
- }
-
- return false
-}
-
-// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field.
-func (o *WebhookRequest) SetTypeCreate(v bool) {
- o.TypeCreate = &v
-}
-
-// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise.
-func (o *WebhookRequest) GetTypeUpdate() bool {
- if o == nil || IsNil(o.TypeUpdate) {
- var ret bool
- return ret
- }
- return *o.TypeUpdate
-}
-
-// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WebhookRequest) GetTypeUpdateOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeUpdate) {
- return nil, false
- }
- return o.TypeUpdate, true
-}
-
-// HasTypeUpdate returns a boolean if a field has been set.
-func (o *WebhookRequest) HasTypeUpdate() bool {
- if o != nil && !IsNil(o.TypeUpdate) {
- return true
- }
-
- return false
-}
-
-// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field.
-func (o *WebhookRequest) SetTypeUpdate(v bool) {
- o.TypeUpdate = &v
-}
-
-// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise.
-func (o *WebhookRequest) GetTypeDelete() bool {
- if o == nil || IsNil(o.TypeDelete) {
- var ret bool
- return ret
- }
- return *o.TypeDelete
-}
-
-// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WebhookRequest) GetTypeDeleteOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeDelete) {
- return nil, false
- }
- return o.TypeDelete, true
-}
-
-// HasTypeDelete returns a boolean if a field has been set.
-func (o *WebhookRequest) HasTypeDelete() bool {
- if o != nil && !IsNil(o.TypeDelete) {
- return true
- }
-
- return false
-}
-
-// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field.
-func (o *WebhookRequest) SetTypeDelete(v bool) {
- o.TypeDelete = &v
-}
-
-// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise.
-func (o *WebhookRequest) GetTypeJobStart() bool {
- if o == nil || IsNil(o.TypeJobStart) {
- var ret bool
- return ret
- }
- return *o.TypeJobStart
-}
-
-// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WebhookRequest) GetTypeJobStartOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeJobStart) {
- return nil, false
- }
- return o.TypeJobStart, true
-}
-
-// HasTypeJobStart returns a boolean if a field has been set.
-func (o *WebhookRequest) HasTypeJobStart() bool {
- if o != nil && !IsNil(o.TypeJobStart) {
- return true
- }
-
- return false
-}
-
-// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field.
-func (o *WebhookRequest) SetTypeJobStart(v bool) {
- o.TypeJobStart = &v
-}
-
-// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise.
-func (o *WebhookRequest) GetTypeJobEnd() bool {
- if o == nil || IsNil(o.TypeJobEnd) {
- var ret bool
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *WebhookRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
return ret
}
- return *o.TypeJobEnd
+ return *o.Description
}
-// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise
+// 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 *WebhookRequest) GetTypeJobEndOk() (*bool, bool) {
- if o == nil || IsNil(o.TypeJobEnd) {
+func (o *WebhookRequest) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
return nil, false
}
- return o.TypeJobEnd, true
+ return o.Description, true
}
-// HasTypeJobEnd returns a boolean if a field has been set.
-func (o *WebhookRequest) HasTypeJobEnd() bool {
- if o != nil && !IsNil(o.TypeJobEnd) {
+// HasDescription returns a boolean if a field has been set.
+func (o *WebhookRequest) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
return true
}
return false
}
-// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field.
-func (o *WebhookRequest) SetTypeJobEnd(v bool) {
- o.TypeJobEnd = &v
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *WebhookRequest) SetDescription(v string) {
+ o.Description = &v
}
// GetPayloadUrl returns the PayloadUrl field value
@@ -309,42 +143,10 @@ func (o *WebhookRequest) SetPayloadUrl(v string) {
o.PayloadUrl = v
}
-// GetEnabled returns the Enabled field value if set, zero value otherwise.
-func (o *WebhookRequest) 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 *WebhookRequest) 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 *WebhookRequest) 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 *WebhookRequest) SetEnabled(v bool) {
- o.Enabled = &v
-}
-
// GetHttpMethod returns the HttpMethod field value if set, zero value otherwise.
-func (o *WebhookRequest) GetHttpMethod() string {
+func (o *WebhookRequest) GetHttpMethod() PatchedWebhookRequestHttpMethod {
if o == nil || IsNil(o.HttpMethod) {
- var ret string
+ var ret PatchedWebhookRequestHttpMethod
return ret
}
return *o.HttpMethod
@@ -352,7 +154,7 @@ func (o *WebhookRequest) GetHttpMethod() string {
// GetHttpMethodOk returns a tuple with the HttpMethod field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WebhookRequest) GetHttpMethodOk() (*string, bool) {
+func (o *WebhookRequest) GetHttpMethodOk() (*PatchedWebhookRequestHttpMethod, bool) {
if o == nil || IsNil(o.HttpMethod) {
return nil, false
}
@@ -368,8 +170,8 @@ func (o *WebhookRequest) HasHttpMethod() bool {
return false
}
-// SetHttpMethod gets a reference to the given string and assigns it to the HttpMethod field.
-func (o *WebhookRequest) SetHttpMethod(v string) {
+// SetHttpMethod gets a reference to the given PatchedWebhookRequestHttpMethod and assigns it to the HttpMethod field.
+func (o *WebhookRequest) SetHttpMethod(v PatchedWebhookRequestHttpMethod) {
o.HttpMethod = &v
}
@@ -501,39 +303,6 @@ func (o *WebhookRequest) SetSecret(v string) {
o.Secret = &v
}
-// GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WebhookRequest) GetConditions() map[string]interface{} {
- if o == nil {
- var ret map[string]interface{}
- return ret
- }
- return o.Conditions
-}
-
-// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WebhookRequest) GetConditionsOk() (map[string]interface{}, bool) {
- if o == nil || IsNil(o.Conditions) {
- return map[string]interface{}{}, false
- }
- return o.Conditions, true
-}
-
-// HasConditions returns a boolean if a field has been set.
-func (o *WebhookRequest) HasConditions() bool {
- if o != nil && IsNil(o.Conditions) {
- return true
- }
-
- return false
-}
-
-// SetConditions gets a reference to the given map[string]interface{} and assigns it to the Conditions field.
-func (o *WebhookRequest) SetConditions(v map[string]interface{}) {
- o.Conditions = v
-}
-
// GetSslVerification returns the SslVerification field value if set, zero value otherwise.
func (o *WebhookRequest) GetSslVerification() bool {
if o == nil || IsNil(o.SslVerification) {
@@ -683,27 +452,11 @@ func (o WebhookRequest) MarshalJSON() ([]byte, error) {
func (o WebhookRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- toSerialize["content_types"] = o.ContentTypes
toSerialize["name"] = o.Name
- if !IsNil(o.TypeCreate) {
- toSerialize["type_create"] = o.TypeCreate
- }
- if !IsNil(o.TypeUpdate) {
- toSerialize["type_update"] = o.TypeUpdate
- }
- if !IsNil(o.TypeDelete) {
- toSerialize["type_delete"] = o.TypeDelete
- }
- if !IsNil(o.TypeJobStart) {
- toSerialize["type_job_start"] = o.TypeJobStart
- }
- if !IsNil(o.TypeJobEnd) {
- toSerialize["type_job_end"] = o.TypeJobEnd
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
}
toSerialize["payload_url"] = o.PayloadUrl
- if !IsNil(o.Enabled) {
- toSerialize["enabled"] = o.Enabled
- }
if !IsNil(o.HttpMethod) {
toSerialize["http_method"] = o.HttpMethod
}
@@ -719,9 +472,6 @@ func (o WebhookRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Secret) {
toSerialize["secret"] = o.Secret
}
- if o.Conditions != nil {
- toSerialize["conditions"] = o.Conditions
- }
if !IsNil(o.SslVerification) {
toSerialize["ssl_verification"] = o.SslVerification
}
@@ -742,10 +492,32 @@ func (o WebhookRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WebhookRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WebhookRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "payload_url",
+ }
+
+ 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)
+ }
+ }
+
varWebhookRequest := _WebhookRequest{}
- err = json.Unmarshal(bytes, &varWebhookRequest)
+ err = json.Unmarshal(data, &varWebhookRequest)
if err != nil {
return err
@@ -755,22 +527,15 @@ func (o *WebhookRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
- delete(additionalProperties, "type_create")
- delete(additionalProperties, "type_update")
- delete(additionalProperties, "type_delete")
- delete(additionalProperties, "type_job_start")
- delete(additionalProperties, "type_job_end")
+ delete(additionalProperties, "description")
delete(additionalProperties, "payload_url")
- delete(additionalProperties, "enabled")
delete(additionalProperties, "http_method")
delete(additionalProperties, "http_content_type")
delete(additionalProperties, "additional_headers")
delete(additionalProperties, "body_template")
delete(additionalProperties, "secret")
- delete(additionalProperties, "conditions")
delete(additionalProperties, "ssl_verification")
delete(additionalProperties, "ca_file_path")
delete(additionalProperties, "custom_fields")
diff --git a/model_wireless_channel.go b/model_wireless_channel.go
new file mode 100644
index 0000000000..b97ab61c15
--- /dev/null
+++ b/model_wireless_channel.go
@@ -0,0 +1,502 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// WirelessChannel * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)
+type WirelessChannel string
+
+// List of Wireless_channel
+const (
+ WIRELESSCHANNEL__2_4G_1_2412_22 WirelessChannel = "2.4g-1-2412-22"
+ WIRELESSCHANNEL__2_4G_2_2417_22 WirelessChannel = "2.4g-2-2417-22"
+ WIRELESSCHANNEL__2_4G_3_2422_22 WirelessChannel = "2.4g-3-2422-22"
+ WIRELESSCHANNEL__2_4G_4_2427_22 WirelessChannel = "2.4g-4-2427-22"
+ WIRELESSCHANNEL__2_4G_5_2432_22 WirelessChannel = "2.4g-5-2432-22"
+ WIRELESSCHANNEL__2_4G_6_2437_22 WirelessChannel = "2.4g-6-2437-22"
+ WIRELESSCHANNEL__2_4G_7_2442_22 WirelessChannel = "2.4g-7-2442-22"
+ WIRELESSCHANNEL__2_4G_8_2447_22 WirelessChannel = "2.4g-8-2447-22"
+ WIRELESSCHANNEL__2_4G_9_2452_22 WirelessChannel = "2.4g-9-2452-22"
+ WIRELESSCHANNEL__2_4G_10_2457_22 WirelessChannel = "2.4g-10-2457-22"
+ WIRELESSCHANNEL__2_4G_11_2462_22 WirelessChannel = "2.4g-11-2462-22"
+ WIRELESSCHANNEL__2_4G_12_2467_22 WirelessChannel = "2.4g-12-2467-22"
+ WIRELESSCHANNEL__2_4G_13_2472_22 WirelessChannel = "2.4g-13-2472-22"
+ WIRELESSCHANNEL__5G_32_5160_20 WirelessChannel = "5g-32-5160-20"
+ WIRELESSCHANNEL__5G_34_5170_40 WirelessChannel = "5g-34-5170-40"
+ WIRELESSCHANNEL__5G_36_5180_20 WirelessChannel = "5g-36-5180-20"
+ WIRELESSCHANNEL__5G_38_5190_40 WirelessChannel = "5g-38-5190-40"
+ WIRELESSCHANNEL__5G_40_5200_20 WirelessChannel = "5g-40-5200-20"
+ WIRELESSCHANNEL__5G_42_5210_80 WirelessChannel = "5g-42-5210-80"
+ WIRELESSCHANNEL__5G_44_5220_20 WirelessChannel = "5g-44-5220-20"
+ WIRELESSCHANNEL__5G_46_5230_40 WirelessChannel = "5g-46-5230-40"
+ WIRELESSCHANNEL__5G_48_5240_20 WirelessChannel = "5g-48-5240-20"
+ WIRELESSCHANNEL__5G_50_5250_160 WirelessChannel = "5g-50-5250-160"
+ WIRELESSCHANNEL__5G_52_5260_20 WirelessChannel = "5g-52-5260-20"
+ WIRELESSCHANNEL__5G_54_5270_40 WirelessChannel = "5g-54-5270-40"
+ WIRELESSCHANNEL__5G_56_5280_20 WirelessChannel = "5g-56-5280-20"
+ WIRELESSCHANNEL__5G_58_5290_80 WirelessChannel = "5g-58-5290-80"
+ WIRELESSCHANNEL__5G_60_5300_20 WirelessChannel = "5g-60-5300-20"
+ WIRELESSCHANNEL__5G_62_5310_40 WirelessChannel = "5g-62-5310-40"
+ WIRELESSCHANNEL__5G_64_5320_20 WirelessChannel = "5g-64-5320-20"
+ WIRELESSCHANNEL__5G_100_5500_20 WirelessChannel = "5g-100-5500-20"
+ WIRELESSCHANNEL__5G_102_5510_40 WirelessChannel = "5g-102-5510-40"
+ WIRELESSCHANNEL__5G_104_5520_20 WirelessChannel = "5g-104-5520-20"
+ WIRELESSCHANNEL__5G_106_5530_80 WirelessChannel = "5g-106-5530-80"
+ WIRELESSCHANNEL__5G_108_5540_20 WirelessChannel = "5g-108-5540-20"
+ WIRELESSCHANNEL__5G_110_5550_40 WirelessChannel = "5g-110-5550-40"
+ WIRELESSCHANNEL__5G_112_5560_20 WirelessChannel = "5g-112-5560-20"
+ WIRELESSCHANNEL__5G_114_5570_160 WirelessChannel = "5g-114-5570-160"
+ WIRELESSCHANNEL__5G_116_5580_20 WirelessChannel = "5g-116-5580-20"
+ WIRELESSCHANNEL__5G_118_5590_40 WirelessChannel = "5g-118-5590-40"
+ WIRELESSCHANNEL__5G_120_5600_20 WirelessChannel = "5g-120-5600-20"
+ WIRELESSCHANNEL__5G_122_5610_80 WirelessChannel = "5g-122-5610-80"
+ WIRELESSCHANNEL__5G_124_5620_20 WirelessChannel = "5g-124-5620-20"
+ WIRELESSCHANNEL__5G_126_5630_40 WirelessChannel = "5g-126-5630-40"
+ WIRELESSCHANNEL__5G_128_5640_20 WirelessChannel = "5g-128-5640-20"
+ WIRELESSCHANNEL__5G_132_5660_20 WirelessChannel = "5g-132-5660-20"
+ WIRELESSCHANNEL__5G_134_5670_40 WirelessChannel = "5g-134-5670-40"
+ WIRELESSCHANNEL__5G_136_5680_20 WirelessChannel = "5g-136-5680-20"
+ WIRELESSCHANNEL__5G_138_5690_80 WirelessChannel = "5g-138-5690-80"
+ WIRELESSCHANNEL__5G_140_5700_20 WirelessChannel = "5g-140-5700-20"
+ WIRELESSCHANNEL__5G_142_5710_40 WirelessChannel = "5g-142-5710-40"
+ WIRELESSCHANNEL__5G_144_5720_20 WirelessChannel = "5g-144-5720-20"
+ WIRELESSCHANNEL__5G_149_5745_20 WirelessChannel = "5g-149-5745-20"
+ WIRELESSCHANNEL__5G_151_5755_40 WirelessChannel = "5g-151-5755-40"
+ WIRELESSCHANNEL__5G_153_5765_20 WirelessChannel = "5g-153-5765-20"
+ WIRELESSCHANNEL__5G_155_5775_80 WirelessChannel = "5g-155-5775-80"
+ WIRELESSCHANNEL__5G_157_5785_20 WirelessChannel = "5g-157-5785-20"
+ WIRELESSCHANNEL__5G_159_5795_40 WirelessChannel = "5g-159-5795-40"
+ WIRELESSCHANNEL__5G_161_5805_20 WirelessChannel = "5g-161-5805-20"
+ WIRELESSCHANNEL__5G_163_5815_160 WirelessChannel = "5g-163-5815-160"
+ WIRELESSCHANNEL__5G_165_5825_20 WirelessChannel = "5g-165-5825-20"
+ WIRELESSCHANNEL__5G_167_5835_40 WirelessChannel = "5g-167-5835-40"
+ WIRELESSCHANNEL__5G_169_5845_20 WirelessChannel = "5g-169-5845-20"
+ WIRELESSCHANNEL__5G_171_5855_80 WirelessChannel = "5g-171-5855-80"
+ WIRELESSCHANNEL__5G_173_5865_20 WirelessChannel = "5g-173-5865-20"
+ WIRELESSCHANNEL__5G_175_5875_40 WirelessChannel = "5g-175-5875-40"
+ WIRELESSCHANNEL__5G_177_5885_20 WirelessChannel = "5g-177-5885-20"
+ WIRELESSCHANNEL__6G_1_5955_20 WirelessChannel = "6g-1-5955-20"
+ WIRELESSCHANNEL__6G_3_5965_40 WirelessChannel = "6g-3-5965-40"
+ WIRELESSCHANNEL__6G_5_5975_20 WirelessChannel = "6g-5-5975-20"
+ WIRELESSCHANNEL__6G_7_5985_80 WirelessChannel = "6g-7-5985-80"
+ WIRELESSCHANNEL__6G_9_5995_20 WirelessChannel = "6g-9-5995-20"
+ WIRELESSCHANNEL__6G_11_6005_40 WirelessChannel = "6g-11-6005-40"
+ WIRELESSCHANNEL__6G_13_6015_20 WirelessChannel = "6g-13-6015-20"
+ WIRELESSCHANNEL__6G_15_6025_160 WirelessChannel = "6g-15-6025-160"
+ WIRELESSCHANNEL__6G_17_6035_20 WirelessChannel = "6g-17-6035-20"
+ WIRELESSCHANNEL__6G_19_6045_40 WirelessChannel = "6g-19-6045-40"
+ WIRELESSCHANNEL__6G_21_6055_20 WirelessChannel = "6g-21-6055-20"
+ WIRELESSCHANNEL__6G_23_6065_80 WirelessChannel = "6g-23-6065-80"
+ WIRELESSCHANNEL__6G_25_6075_20 WirelessChannel = "6g-25-6075-20"
+ WIRELESSCHANNEL__6G_27_6085_40 WirelessChannel = "6g-27-6085-40"
+ WIRELESSCHANNEL__6G_29_6095_20 WirelessChannel = "6g-29-6095-20"
+ WIRELESSCHANNEL__6G_31_6105_320 WirelessChannel = "6g-31-6105-320"
+ WIRELESSCHANNEL__6G_33_6115_20 WirelessChannel = "6g-33-6115-20"
+ WIRELESSCHANNEL__6G_35_6125_40 WirelessChannel = "6g-35-6125-40"
+ WIRELESSCHANNEL__6G_37_6135_20 WirelessChannel = "6g-37-6135-20"
+ WIRELESSCHANNEL__6G_39_6145_80 WirelessChannel = "6g-39-6145-80"
+ WIRELESSCHANNEL__6G_41_6155_20 WirelessChannel = "6g-41-6155-20"
+ WIRELESSCHANNEL__6G_43_6165_40 WirelessChannel = "6g-43-6165-40"
+ WIRELESSCHANNEL__6G_45_6175_20 WirelessChannel = "6g-45-6175-20"
+ WIRELESSCHANNEL__6G_47_6185_160 WirelessChannel = "6g-47-6185-160"
+ WIRELESSCHANNEL__6G_49_6195_20 WirelessChannel = "6g-49-6195-20"
+ WIRELESSCHANNEL__6G_51_6205_40 WirelessChannel = "6g-51-6205-40"
+ WIRELESSCHANNEL__6G_53_6215_20 WirelessChannel = "6g-53-6215-20"
+ WIRELESSCHANNEL__6G_55_6225_80 WirelessChannel = "6g-55-6225-80"
+ WIRELESSCHANNEL__6G_57_6235_20 WirelessChannel = "6g-57-6235-20"
+ WIRELESSCHANNEL__6G_59_6245_40 WirelessChannel = "6g-59-6245-40"
+ WIRELESSCHANNEL__6G_61_6255_20 WirelessChannel = "6g-61-6255-20"
+ WIRELESSCHANNEL__6G_65_6275_20 WirelessChannel = "6g-65-6275-20"
+ WIRELESSCHANNEL__6G_67_6285_40 WirelessChannel = "6g-67-6285-40"
+ WIRELESSCHANNEL__6G_69_6295_20 WirelessChannel = "6g-69-6295-20"
+ WIRELESSCHANNEL__6G_71_6305_80 WirelessChannel = "6g-71-6305-80"
+ WIRELESSCHANNEL__6G_73_6315_20 WirelessChannel = "6g-73-6315-20"
+ WIRELESSCHANNEL__6G_75_6325_40 WirelessChannel = "6g-75-6325-40"
+ WIRELESSCHANNEL__6G_77_6335_20 WirelessChannel = "6g-77-6335-20"
+ WIRELESSCHANNEL__6G_79_6345_160 WirelessChannel = "6g-79-6345-160"
+ WIRELESSCHANNEL__6G_81_6355_20 WirelessChannel = "6g-81-6355-20"
+ WIRELESSCHANNEL__6G_83_6365_40 WirelessChannel = "6g-83-6365-40"
+ WIRELESSCHANNEL__6G_85_6375_20 WirelessChannel = "6g-85-6375-20"
+ WIRELESSCHANNEL__6G_87_6385_80 WirelessChannel = "6g-87-6385-80"
+ WIRELESSCHANNEL__6G_89_6395_20 WirelessChannel = "6g-89-6395-20"
+ WIRELESSCHANNEL__6G_91_6405_40 WirelessChannel = "6g-91-6405-40"
+ WIRELESSCHANNEL__6G_93_6415_20 WirelessChannel = "6g-93-6415-20"
+ WIRELESSCHANNEL__6G_95_6425_320 WirelessChannel = "6g-95-6425-320"
+ WIRELESSCHANNEL__6G_97_6435_20 WirelessChannel = "6g-97-6435-20"
+ WIRELESSCHANNEL__6G_99_6445_40 WirelessChannel = "6g-99-6445-40"
+ WIRELESSCHANNEL__6G_101_6455_20 WirelessChannel = "6g-101-6455-20"
+ WIRELESSCHANNEL__6G_103_6465_80 WirelessChannel = "6g-103-6465-80"
+ WIRELESSCHANNEL__6G_105_6475_20 WirelessChannel = "6g-105-6475-20"
+ WIRELESSCHANNEL__6G_107_6485_40 WirelessChannel = "6g-107-6485-40"
+ WIRELESSCHANNEL__6G_109_6495_20 WirelessChannel = "6g-109-6495-20"
+ WIRELESSCHANNEL__6G_111_6505_160 WirelessChannel = "6g-111-6505-160"
+ WIRELESSCHANNEL__6G_113_6515_20 WirelessChannel = "6g-113-6515-20"
+ WIRELESSCHANNEL__6G_115_6525_40 WirelessChannel = "6g-115-6525-40"
+ WIRELESSCHANNEL__6G_117_6535_20 WirelessChannel = "6g-117-6535-20"
+ WIRELESSCHANNEL__6G_119_6545_80 WirelessChannel = "6g-119-6545-80"
+ WIRELESSCHANNEL__6G_121_6555_20 WirelessChannel = "6g-121-6555-20"
+ WIRELESSCHANNEL__6G_123_6565_40 WirelessChannel = "6g-123-6565-40"
+ WIRELESSCHANNEL__6G_125_6575_20 WirelessChannel = "6g-125-6575-20"
+ WIRELESSCHANNEL__6G_129_6595_20 WirelessChannel = "6g-129-6595-20"
+ WIRELESSCHANNEL__6G_131_6605_40 WirelessChannel = "6g-131-6605-40"
+ WIRELESSCHANNEL__6G_133_6615_20 WirelessChannel = "6g-133-6615-20"
+ WIRELESSCHANNEL__6G_135_6625_80 WirelessChannel = "6g-135-6625-80"
+ WIRELESSCHANNEL__6G_137_6635_20 WirelessChannel = "6g-137-6635-20"
+ WIRELESSCHANNEL__6G_139_6645_40 WirelessChannel = "6g-139-6645-40"
+ WIRELESSCHANNEL__6G_141_6655_20 WirelessChannel = "6g-141-6655-20"
+ WIRELESSCHANNEL__6G_143_6665_160 WirelessChannel = "6g-143-6665-160"
+ WIRELESSCHANNEL__6G_145_6675_20 WirelessChannel = "6g-145-6675-20"
+ WIRELESSCHANNEL__6G_147_6685_40 WirelessChannel = "6g-147-6685-40"
+ WIRELESSCHANNEL__6G_149_6695_20 WirelessChannel = "6g-149-6695-20"
+ WIRELESSCHANNEL__6G_151_6705_80 WirelessChannel = "6g-151-6705-80"
+ WIRELESSCHANNEL__6G_153_6715_20 WirelessChannel = "6g-153-6715-20"
+ WIRELESSCHANNEL__6G_155_6725_40 WirelessChannel = "6g-155-6725-40"
+ WIRELESSCHANNEL__6G_157_6735_20 WirelessChannel = "6g-157-6735-20"
+ WIRELESSCHANNEL__6G_159_6745_320 WirelessChannel = "6g-159-6745-320"
+ WIRELESSCHANNEL__6G_161_6755_20 WirelessChannel = "6g-161-6755-20"
+ WIRELESSCHANNEL__6G_163_6765_40 WirelessChannel = "6g-163-6765-40"
+ WIRELESSCHANNEL__6G_165_6775_20 WirelessChannel = "6g-165-6775-20"
+ WIRELESSCHANNEL__6G_167_6785_80 WirelessChannel = "6g-167-6785-80"
+ WIRELESSCHANNEL__6G_169_6795_20 WirelessChannel = "6g-169-6795-20"
+ WIRELESSCHANNEL__6G_171_6805_40 WirelessChannel = "6g-171-6805-40"
+ WIRELESSCHANNEL__6G_173_6815_20 WirelessChannel = "6g-173-6815-20"
+ WIRELESSCHANNEL__6G_175_6825_160 WirelessChannel = "6g-175-6825-160"
+ WIRELESSCHANNEL__6G_177_6835_20 WirelessChannel = "6g-177-6835-20"
+ WIRELESSCHANNEL__6G_179_6845_40 WirelessChannel = "6g-179-6845-40"
+ WIRELESSCHANNEL__6G_181_6855_20 WirelessChannel = "6g-181-6855-20"
+ WIRELESSCHANNEL__6G_183_6865_80 WirelessChannel = "6g-183-6865-80"
+ WIRELESSCHANNEL__6G_185_6875_20 WirelessChannel = "6g-185-6875-20"
+ WIRELESSCHANNEL__6G_187_6885_40 WirelessChannel = "6g-187-6885-40"
+ WIRELESSCHANNEL__6G_189_6895_20 WirelessChannel = "6g-189-6895-20"
+ WIRELESSCHANNEL__6G_193_6915_20 WirelessChannel = "6g-193-6915-20"
+ WIRELESSCHANNEL__6G_195_6925_40 WirelessChannel = "6g-195-6925-40"
+ WIRELESSCHANNEL__6G_197_6935_20 WirelessChannel = "6g-197-6935-20"
+ WIRELESSCHANNEL__6G_199_6945_80 WirelessChannel = "6g-199-6945-80"
+ WIRELESSCHANNEL__6G_201_6955_20 WirelessChannel = "6g-201-6955-20"
+ WIRELESSCHANNEL__6G_203_6965_40 WirelessChannel = "6g-203-6965-40"
+ WIRELESSCHANNEL__6G_205_6975_20 WirelessChannel = "6g-205-6975-20"
+ WIRELESSCHANNEL__6G_207_6985_160 WirelessChannel = "6g-207-6985-160"
+ WIRELESSCHANNEL__6G_209_6995_20 WirelessChannel = "6g-209-6995-20"
+ WIRELESSCHANNEL__6G_211_7005_40 WirelessChannel = "6g-211-7005-40"
+ WIRELESSCHANNEL__6G_213_7015_20 WirelessChannel = "6g-213-7015-20"
+ WIRELESSCHANNEL__6G_215_7025_80 WirelessChannel = "6g-215-7025-80"
+ WIRELESSCHANNEL__6G_217_7035_20 WirelessChannel = "6g-217-7035-20"
+ WIRELESSCHANNEL__6G_219_7045_40 WirelessChannel = "6g-219-7045-40"
+ WIRELESSCHANNEL__6G_221_7055_20 WirelessChannel = "6g-221-7055-20"
+ WIRELESSCHANNEL__6G_225_7075_20 WirelessChannel = "6g-225-7075-20"
+ WIRELESSCHANNEL__6G_227_7085_40 WirelessChannel = "6g-227-7085-40"
+ WIRELESSCHANNEL__6G_229_7095_20 WirelessChannel = "6g-229-7095-20"
+ WIRELESSCHANNEL__6G_233_7115_20 WirelessChannel = "6g-233-7115-20"
+ WIRELESSCHANNEL__60G_1_58320_2160 WirelessChannel = "60g-1-58320-2160"
+ WIRELESSCHANNEL__60G_2_60480_2160 WirelessChannel = "60g-2-60480-2160"
+ WIRELESSCHANNEL__60G_3_62640_2160 WirelessChannel = "60g-3-62640-2160"
+ WIRELESSCHANNEL__60G_4_64800_2160 WirelessChannel = "60g-4-64800-2160"
+ WIRELESSCHANNEL__60G_5_66960_2160 WirelessChannel = "60g-5-66960-2160"
+ WIRELESSCHANNEL__60G_6_69120_2160 WirelessChannel = "60g-6-69120-2160"
+ WIRELESSCHANNEL__60G_9_59400_4320 WirelessChannel = "60g-9-59400-4320"
+ WIRELESSCHANNEL__60G_10_61560_4320 WirelessChannel = "60g-10-61560-4320"
+ WIRELESSCHANNEL__60G_11_63720_4320 WirelessChannel = "60g-11-63720-4320"
+ WIRELESSCHANNEL__60G_12_65880_4320 WirelessChannel = "60g-12-65880-4320"
+ WIRELESSCHANNEL__60G_13_68040_4320 WirelessChannel = "60g-13-68040-4320"
+ WIRELESSCHANNEL__60G_17_60480_6480 WirelessChannel = "60g-17-60480-6480"
+ WIRELESSCHANNEL__60G_18_62640_6480 WirelessChannel = "60g-18-62640-6480"
+ WIRELESSCHANNEL__60G_19_64800_6480 WirelessChannel = "60g-19-64800-6480"
+ WIRELESSCHANNEL__60G_20_66960_6480 WirelessChannel = "60g-20-66960-6480"
+ WIRELESSCHANNEL__60G_25_61560_6480 WirelessChannel = "60g-25-61560-6480"
+ WIRELESSCHANNEL__60G_26_63720_6480 WirelessChannel = "60g-26-63720-6480"
+ WIRELESSCHANNEL__60G_27_65880_6480 WirelessChannel = "60g-27-65880-6480"
+ WIRELESSCHANNEL_EMPTY WirelessChannel = ""
+)
+
+// All allowed values of WirelessChannel enum
+var AllowedWirelessChannelEnumValues = []WirelessChannel{
+ "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",
+ "",
+}
+
+func (v *WirelessChannel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := WirelessChannel(value)
+ for _, existing := range AllowedWirelessChannelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid WirelessChannel", value)
+}
+
+// NewWirelessChannelFromValue returns a pointer to a valid WirelessChannel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewWirelessChannelFromValue(v string) (*WirelessChannel, error) {
+ ev := WirelessChannel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for WirelessChannel: valid values are %v", v, AllowedWirelessChannelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v WirelessChannel) IsValid() bool {
+ for _, existing := range AllowedWirelessChannelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Wireless_channel value
+func (v WirelessChannel) Ptr() *WirelessChannel {
+ return &v
+}
+
+type NullableWirelessChannel struct {
+ value *WirelessChannel
+ isSet bool
+}
+
+func (v NullableWirelessChannel) Get() *WirelessChannel {
+ return v.value
+}
+
+func (v *NullableWirelessChannel) Set(val *WirelessChannel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWirelessChannel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWirelessChannel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWirelessChannel(val *WirelessChannel) *NullableWirelessChannel {
+ return &NullableWirelessChannel{value: val, isSet: true}
+}
+
+func (v NullableWirelessChannel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWirelessChannel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_wireless_lan.go b/model_wireless_lan.go
index 221e202fb7..654d9057f0 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -655,10 +656,36 @@ func (o WirelessLAN) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WirelessLAN) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WirelessLAN) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "ssid",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varWirelessLAN := _WirelessLAN{}
- err = json.Unmarshal(bytes, &varWirelessLAN)
+ err = json.Unmarshal(data, &varWirelessLAN)
if err != nil {
return err
@@ -668,7 +695,7 @@ func (o *WirelessLAN) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_wireless_lan_auth_cipher.go b/model_wireless_lan_auth_cipher.go
index f8a1469240..a513bf67e1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &WirelessLANAuthCipher{}
// WirelessLANAuthCipher struct for WirelessLANAuthCipher
type WirelessLANAuthCipher struct {
- // * `auto` - Auto * `tkip` - TKIP * `aes` - AES
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *WirelessLANAuthCipherValue `json:"value,omitempty"`
+ Label *WirelessLANAuthCipherLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewWirelessLANAuthCipherWithDefaults() *WirelessLANAuthCipher {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *WirelessLANAuthCipher) GetValue() string {
+func (o *WirelessLANAuthCipher) GetValue() WirelessLANAuthCipherValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret WirelessLANAuthCipherValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *WirelessLANAuthCipher) GetValue() string {
// 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 *WirelessLANAuthCipher) GetValueOk() (*string, bool) {
+func (o *WirelessLANAuthCipher) GetValueOk() (*WirelessLANAuthCipherValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *WirelessLANAuthCipher) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *WirelessLANAuthCipher) SetValue(v string) {
+// SetValue gets a reference to the given WirelessLANAuthCipherValue and assigns it to the Value field.
+func (o *WirelessLANAuthCipher) SetValue(v WirelessLANAuthCipherValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *WirelessLANAuthCipher) GetLabel() string {
+func (o *WirelessLANAuthCipher) GetLabel() WirelessLANAuthCipherLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret WirelessLANAuthCipherLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *WirelessLANAuthCipher) 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 *WirelessLANAuthCipher) GetLabelOk() (*string, bool) {
+func (o *WirelessLANAuthCipher) GetLabelOk() (*WirelessLANAuthCipherLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *WirelessLANAuthCipher) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *WirelessLANAuthCipher) SetLabel(v string) {
+// SetLabel gets a reference to the given WirelessLANAuthCipherLabel and assigns it to the Label field.
+func (o *WirelessLANAuthCipher) SetLabel(v WirelessLANAuthCipherLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o WirelessLANAuthCipher) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WirelessLANAuthCipher) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WirelessLANAuthCipher) UnmarshalJSON(data []byte) (err error) {
varWirelessLANAuthCipher := _WirelessLANAuthCipher{}
- err = json.Unmarshal(bytes, &varWirelessLANAuthCipher)
+ err = json.Unmarshal(data, &varWirelessLANAuthCipher)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *WirelessLANAuthCipher) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_wireless_lan_auth_cipher_label.go b/model_wireless_lan_auth_cipher_label.go
new file mode 100644
index 0000000000..dcddf707db
--- /dev/null
+++ b/model_wireless_lan_auth_cipher_label.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// WirelessLANAuthCipherLabel the model 'WirelessLANAuthCipherLabel'
+type WirelessLANAuthCipherLabel string
+
+// List of WirelessLAN_auth_cipher_label
+const (
+ WIRELESSLANAUTHCIPHERLABEL_AUTO WirelessLANAuthCipherLabel = "Auto"
+ WIRELESSLANAUTHCIPHERLABEL_TKIP WirelessLANAuthCipherLabel = "TKIP"
+ WIRELESSLANAUTHCIPHERLABEL_AES WirelessLANAuthCipherLabel = "AES"
+)
+
+// All allowed values of WirelessLANAuthCipherLabel enum
+var AllowedWirelessLANAuthCipherLabelEnumValues = []WirelessLANAuthCipherLabel{
+ "Auto",
+ "TKIP",
+ "AES",
+}
+
+func (v *WirelessLANAuthCipherLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := WirelessLANAuthCipherLabel(value)
+ for _, existing := range AllowedWirelessLANAuthCipherLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid WirelessLANAuthCipherLabel", value)
+}
+
+// NewWirelessLANAuthCipherLabelFromValue returns a pointer to a valid WirelessLANAuthCipherLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewWirelessLANAuthCipherLabelFromValue(v string) (*WirelessLANAuthCipherLabel, error) {
+ ev := WirelessLANAuthCipherLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for WirelessLANAuthCipherLabel: valid values are %v", v, AllowedWirelessLANAuthCipherLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v WirelessLANAuthCipherLabel) IsValid() bool {
+ for _, existing := range AllowedWirelessLANAuthCipherLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to WirelessLAN_auth_cipher_label value
+func (v WirelessLANAuthCipherLabel) Ptr() *WirelessLANAuthCipherLabel {
+ return &v
+}
+
+type NullableWirelessLANAuthCipherLabel struct {
+ value *WirelessLANAuthCipherLabel
+ isSet bool
+}
+
+func (v NullableWirelessLANAuthCipherLabel) Get() *WirelessLANAuthCipherLabel {
+ return v.value
+}
+
+func (v *NullableWirelessLANAuthCipherLabel) Set(val *WirelessLANAuthCipherLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWirelessLANAuthCipherLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWirelessLANAuthCipherLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWirelessLANAuthCipherLabel(val *WirelessLANAuthCipherLabel) *NullableWirelessLANAuthCipherLabel {
+ return &NullableWirelessLANAuthCipherLabel{value: val, isSet: true}
+}
+
+func (v NullableWirelessLANAuthCipherLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWirelessLANAuthCipherLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_wireless_lan_auth_cipher_value.go b/model_wireless_lan_auth_cipher_value.go
new file mode 100644
index 0000000000..cd13cb0ad6
--- /dev/null
+++ b/model_wireless_lan_auth_cipher_value.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// WirelessLANAuthCipherValue * `auto` - Auto * `tkip` - TKIP * `aes` - AES
+type WirelessLANAuthCipherValue string
+
+// List of WirelessLAN_auth_cipher_value
+const (
+ WIRELESSLANAUTHCIPHERVALUE_AUTO WirelessLANAuthCipherValue = "auto"
+ WIRELESSLANAUTHCIPHERVALUE_TKIP WirelessLANAuthCipherValue = "tkip"
+ WIRELESSLANAUTHCIPHERVALUE_AES WirelessLANAuthCipherValue = "aes"
+ WIRELESSLANAUTHCIPHERVALUE_EMPTY WirelessLANAuthCipherValue = ""
+)
+
+// All allowed values of WirelessLANAuthCipherValue enum
+var AllowedWirelessLANAuthCipherValueEnumValues = []WirelessLANAuthCipherValue{
+ "auto",
+ "tkip",
+ "aes",
+ "",
+}
+
+func (v *WirelessLANAuthCipherValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := WirelessLANAuthCipherValue(value)
+ for _, existing := range AllowedWirelessLANAuthCipherValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid WirelessLANAuthCipherValue", value)
+}
+
+// NewWirelessLANAuthCipherValueFromValue returns a pointer to a valid WirelessLANAuthCipherValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewWirelessLANAuthCipherValueFromValue(v string) (*WirelessLANAuthCipherValue, error) {
+ ev := WirelessLANAuthCipherValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for WirelessLANAuthCipherValue: valid values are %v", v, AllowedWirelessLANAuthCipherValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v WirelessLANAuthCipherValue) IsValid() bool {
+ for _, existing := range AllowedWirelessLANAuthCipherValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to WirelessLAN_auth_cipher_value value
+func (v WirelessLANAuthCipherValue) Ptr() *WirelessLANAuthCipherValue {
+ return &v
+}
+
+type NullableWirelessLANAuthCipherValue struct {
+ value *WirelessLANAuthCipherValue
+ isSet bool
+}
+
+func (v NullableWirelessLANAuthCipherValue) Get() *WirelessLANAuthCipherValue {
+ return v.value
+}
+
+func (v *NullableWirelessLANAuthCipherValue) Set(val *WirelessLANAuthCipherValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWirelessLANAuthCipherValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWirelessLANAuthCipherValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWirelessLANAuthCipherValue(val *WirelessLANAuthCipherValue) *NullableWirelessLANAuthCipherValue {
+ return &NullableWirelessLANAuthCipherValue{value: val, isSet: true}
+}
+
+func (v NullableWirelessLANAuthCipherValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWirelessLANAuthCipherValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_wireless_lan_auth_type.go b/model_wireless_lan_auth_type.go
index 7d251a5974..0d270cfa9f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &WirelessLANAuthType{}
// WirelessLANAuthType struct for WirelessLANAuthType
type WirelessLANAuthType struct {
- // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *WirelessLANAuthTypeValue `json:"value,omitempty"`
+ Label *WirelessLANAuthTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewWirelessLANAuthTypeWithDefaults() *WirelessLANAuthType {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *WirelessLANAuthType) GetValue() string {
+func (o *WirelessLANAuthType) GetValue() WirelessLANAuthTypeValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret WirelessLANAuthTypeValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *WirelessLANAuthType) GetValue() string {
// 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 *WirelessLANAuthType) GetValueOk() (*string, bool) {
+func (o *WirelessLANAuthType) GetValueOk() (*WirelessLANAuthTypeValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *WirelessLANAuthType) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *WirelessLANAuthType) SetValue(v string) {
+// SetValue gets a reference to the given WirelessLANAuthTypeValue and assigns it to the Value field.
+func (o *WirelessLANAuthType) SetValue(v WirelessLANAuthTypeValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *WirelessLANAuthType) GetLabel() string {
+func (o *WirelessLANAuthType) GetLabel() WirelessLANAuthTypeLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret WirelessLANAuthTypeLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *WirelessLANAuthType) 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 *WirelessLANAuthType) GetLabelOk() (*string, bool) {
+func (o *WirelessLANAuthType) GetLabelOk() (*WirelessLANAuthTypeLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *WirelessLANAuthType) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *WirelessLANAuthType) SetLabel(v string) {
+// SetLabel gets a reference to the given WirelessLANAuthTypeLabel and assigns it to the Label field.
+func (o *WirelessLANAuthType) SetLabel(v WirelessLANAuthTypeLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o WirelessLANAuthType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WirelessLANAuthType) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WirelessLANAuthType) UnmarshalJSON(data []byte) (err error) {
varWirelessLANAuthType := _WirelessLANAuthType{}
- err = json.Unmarshal(bytes, &varWirelessLANAuthType)
+ err = json.Unmarshal(data, &varWirelessLANAuthType)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *WirelessLANAuthType) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_wireless_lan_auth_type_label.go b/model_wireless_lan_auth_type_label.go
new file mode 100644
index 0000000000..ac552a6f44
--- /dev/null
+++ b/model_wireless_lan_auth_type_label.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// WirelessLANAuthTypeLabel the model 'WirelessLANAuthTypeLabel'
+type WirelessLANAuthTypeLabel string
+
+// List of WirelessLAN_auth_type_label
+const (
+ WIRELESSLANAUTHTYPELABEL_OPEN WirelessLANAuthTypeLabel = "Open"
+ WIRELESSLANAUTHTYPELABEL_WEP WirelessLANAuthTypeLabel = "WEP"
+ WIRELESSLANAUTHTYPELABEL_WPA_PERSONAL__PSK WirelessLANAuthTypeLabel = "WPA Personal (PSK)"
+ WIRELESSLANAUTHTYPELABEL_WPA_ENTERPRISE WirelessLANAuthTypeLabel = "WPA Enterprise"
+)
+
+// All allowed values of WirelessLANAuthTypeLabel enum
+var AllowedWirelessLANAuthTypeLabelEnumValues = []WirelessLANAuthTypeLabel{
+ "Open",
+ "WEP",
+ "WPA Personal (PSK)",
+ "WPA Enterprise",
+}
+
+func (v *WirelessLANAuthTypeLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := WirelessLANAuthTypeLabel(value)
+ for _, existing := range AllowedWirelessLANAuthTypeLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid WirelessLANAuthTypeLabel", value)
+}
+
+// NewWirelessLANAuthTypeLabelFromValue returns a pointer to a valid WirelessLANAuthTypeLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewWirelessLANAuthTypeLabelFromValue(v string) (*WirelessLANAuthTypeLabel, error) {
+ ev := WirelessLANAuthTypeLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for WirelessLANAuthTypeLabel: valid values are %v", v, AllowedWirelessLANAuthTypeLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v WirelessLANAuthTypeLabel) IsValid() bool {
+ for _, existing := range AllowedWirelessLANAuthTypeLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to WirelessLAN_auth_type_label value
+func (v WirelessLANAuthTypeLabel) Ptr() *WirelessLANAuthTypeLabel {
+ return &v
+}
+
+type NullableWirelessLANAuthTypeLabel struct {
+ value *WirelessLANAuthTypeLabel
+ isSet bool
+}
+
+func (v NullableWirelessLANAuthTypeLabel) Get() *WirelessLANAuthTypeLabel {
+ return v.value
+}
+
+func (v *NullableWirelessLANAuthTypeLabel) Set(val *WirelessLANAuthTypeLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWirelessLANAuthTypeLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWirelessLANAuthTypeLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWirelessLANAuthTypeLabel(val *WirelessLANAuthTypeLabel) *NullableWirelessLANAuthTypeLabel {
+ return &NullableWirelessLANAuthTypeLabel{value: val, isSet: true}
+}
+
+func (v NullableWirelessLANAuthTypeLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWirelessLANAuthTypeLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_wireless_lan_auth_type_value.go b/model_wireless_lan_auth_type_value.go
new file mode 100644
index 0000000000..dce1b205a6
--- /dev/null
+++ b/model_wireless_lan_auth_type_value.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// WirelessLANAuthTypeValue * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise
+type WirelessLANAuthTypeValue string
+
+// List of WirelessLAN_auth_type_value
+const (
+ WIRELESSLANAUTHTYPEVALUE_OPEN WirelessLANAuthTypeValue = "open"
+ WIRELESSLANAUTHTYPEVALUE_WEP WirelessLANAuthTypeValue = "wep"
+ WIRELESSLANAUTHTYPEVALUE_WPA_PERSONAL WirelessLANAuthTypeValue = "wpa-personal"
+ WIRELESSLANAUTHTYPEVALUE_WPA_ENTERPRISE WirelessLANAuthTypeValue = "wpa-enterprise"
+ WIRELESSLANAUTHTYPEVALUE_EMPTY WirelessLANAuthTypeValue = ""
+)
+
+// All allowed values of WirelessLANAuthTypeValue enum
+var AllowedWirelessLANAuthTypeValueEnumValues = []WirelessLANAuthTypeValue{
+ "open",
+ "wep",
+ "wpa-personal",
+ "wpa-enterprise",
+ "",
+}
+
+func (v *WirelessLANAuthTypeValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := WirelessLANAuthTypeValue(value)
+ for _, existing := range AllowedWirelessLANAuthTypeValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid WirelessLANAuthTypeValue", value)
+}
+
+// NewWirelessLANAuthTypeValueFromValue returns a pointer to a valid WirelessLANAuthTypeValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewWirelessLANAuthTypeValueFromValue(v string) (*WirelessLANAuthTypeValue, error) {
+ ev := WirelessLANAuthTypeValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for WirelessLANAuthTypeValue: valid values are %v", v, AllowedWirelessLANAuthTypeValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v WirelessLANAuthTypeValue) IsValid() bool {
+ for _, existing := range AllowedWirelessLANAuthTypeValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to WirelessLAN_auth_type_value value
+func (v WirelessLANAuthTypeValue) Ptr() *WirelessLANAuthTypeValue {
+ return &v
+}
+
+type NullableWirelessLANAuthTypeValue struct {
+ value *WirelessLANAuthTypeValue
+ isSet bool
+}
+
+func (v NullableWirelessLANAuthTypeValue) Get() *WirelessLANAuthTypeValue {
+ return v.value
+}
+
+func (v *NullableWirelessLANAuthTypeValue) Set(val *WirelessLANAuthTypeValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWirelessLANAuthTypeValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWirelessLANAuthTypeValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWirelessLANAuthTypeValue(val *WirelessLANAuthTypeValue) *NullableWirelessLANAuthTypeValue {
+ return &NullableWirelessLANAuthTypeValue{value: val, isSet: true}
+}
+
+func (v NullableWirelessLANAuthTypeValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWirelessLANAuthTypeValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_wireless_lan_group.go b/model_wireless_lan_group.go
index 6fbd6fdf86..2aa64ccce6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -462,10 +463,39 @@ func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WirelessLANGroup) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "created",
+ "last_updated",
+ "wirelesslan_count",
+ "_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)
+ }
+ }
+
varWirelessLANGroup := _WirelessLANGroup{}
- err = json.Unmarshal(bytes, &varWirelessLANGroup)
+ err = json.Unmarshal(data, &varWirelessLANGroup)
if err != nil {
return err
@@ -475,7 +505,7 @@ func (o *WirelessLANGroup) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_wireless_lan_group_request.go b/model_wireless_lan_group_request.go
index 3630378e86..59eb557de4 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WirelessLANGroupRequest type satisfies the MappedNullable interface at compile time
@@ -268,10 +269,32 @@ func (o WirelessLANGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WirelessLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWirelessLANGroupRequest := _WirelessLANGroupRequest{}
- err = json.Unmarshal(bytes, &varWirelessLANGroupRequest)
+ err = json.Unmarshal(data, &varWirelessLANGroupRequest)
if err != nil {
return err
@@ -281,7 +304,7 @@ func (o *WirelessLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_wireless_lan_request.go b/model_wireless_lan_request.go
index 7a13c8c38e..0904e83a00 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WirelessLANRequest type satisfies the MappedNullable interface at compile time
@@ -19,21 +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"`
- // * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
- Vlan NullableNestedVLANRequest `json:"vlan,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise
- AuthType *string `json:"auth_type,omitempty"`
- // * `auto` - Auto * `tkip` - TKIP * `aes` - AES
- AuthCipher *string `json:"auth_cipher,omitempty"`
- AuthPsk *string `json:"auth_psk,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -157,9 +155,9 @@ func (o *WirelessLANRequest) UnsetGroup() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WirelessLANRequest) GetStatus() string {
+func (o *WirelessLANRequest) GetStatus() WirelessLANStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret WirelessLANStatusValue
return ret
}
return *o.Status
@@ -167,7 +165,7 @@ func (o *WirelessLANRequest) GetStatus() string {
// 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 *WirelessLANRequest) GetStatusOk() (*string, bool) {
+func (o *WirelessLANRequest) GetStatusOk() (*WirelessLANStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -183,8 +181,8 @@ func (o *WirelessLANRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WirelessLANRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given WirelessLANStatusValue and assigns it to the Status field.
+func (o *WirelessLANRequest) SetStatus(v WirelessLANStatusValue) {
o.Status = &v
}
@@ -275,9 +273,9 @@ func (o *WirelessLANRequest) UnsetTenant() {
}
// GetAuthType returns the AuthType field value if set, zero value otherwise.
-func (o *WirelessLANRequest) GetAuthType() string {
+func (o *WirelessLANRequest) GetAuthType() WirelessLANAuthTypeValue {
if o == nil || IsNil(o.AuthType) {
- var ret string
+ var ret WirelessLANAuthTypeValue
return ret
}
return *o.AuthType
@@ -285,7 +283,7 @@ func (o *WirelessLANRequest) GetAuthType() string {
// 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 *WirelessLANRequest) GetAuthTypeOk() (*string, bool) {
+func (o *WirelessLANRequest) GetAuthTypeOk() (*WirelessLANAuthTypeValue, bool) {
if o == nil || IsNil(o.AuthType) {
return nil, false
}
@@ -301,15 +299,15 @@ func (o *WirelessLANRequest) HasAuthType() bool {
return false
}
-// SetAuthType gets a reference to the given string and assigns it to the AuthType field.
-func (o *WirelessLANRequest) SetAuthType(v string) {
+// SetAuthType gets a reference to the given WirelessLANAuthTypeValue and assigns it to the AuthType field.
+func (o *WirelessLANRequest) SetAuthType(v WirelessLANAuthTypeValue) {
o.AuthType = &v
}
// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise.
-func (o *WirelessLANRequest) GetAuthCipher() string {
+func (o *WirelessLANRequest) GetAuthCipher() WirelessLANAuthCipherValue {
if o == nil || IsNil(o.AuthCipher) {
- var ret string
+ var ret WirelessLANAuthCipherValue
return ret
}
return *o.AuthCipher
@@ -317,7 +315,7 @@ func (o *WirelessLANRequest) GetAuthCipher() string {
// GetAuthCipherOk returns a tuple with the AuthCipher field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WirelessLANRequest) GetAuthCipherOk() (*string, bool) {
+func (o *WirelessLANRequest) GetAuthCipherOk() (*WirelessLANAuthCipherValue, bool) {
if o == nil || IsNil(o.AuthCipher) {
return nil, false
}
@@ -333,8 +331,8 @@ func (o *WirelessLANRequest) HasAuthCipher() bool {
return false
}
-// SetAuthCipher gets a reference to the given string and assigns it to the AuthCipher field.
-func (o *WirelessLANRequest) SetAuthCipher(v string) {
+// SetAuthCipher gets a reference to the given WirelessLANAuthCipherValue and assigns it to the AuthCipher field.
+func (o *WirelessLANRequest) SetAuthCipher(v WirelessLANAuthCipherValue) {
o.AuthCipher = &v
}
@@ -518,10 +516,31 @@ func (o WirelessLANRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WirelessLANRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WirelessLANRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "ssid",
+ }
+
+ 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)
+ }
+ }
+
varWirelessLANRequest := _WirelessLANRequest{}
- err = json.Unmarshal(bytes, &varWirelessLANRequest)
+ err = json.Unmarshal(data, &varWirelessLANRequest)
if err != nil {
return err
@@ -531,7 +550,7 @@ func (o *WirelessLANRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "ssid")
delete(additionalProperties, "description")
delete(additionalProperties, "group")
diff --git a/model_wireless_lan_status.go b/model_wireless_lan_status.go
index 7cd1c3885a..7c7dcb45af 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,8 @@ var _ MappedNullable = &WirelessLANStatus{}
// WirelessLANStatus struct for WirelessLANStatus
type WirelessLANStatus struct {
- // * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated
- Value *string `json:"value,omitempty"`
- Label *string `json:"label,omitempty"`
+ Value *WirelessLANStatusValue `json:"value,omitempty"`
+ Label *WirelessLANStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,9 +44,9 @@ func NewWirelessLANStatusWithDefaults() *WirelessLANStatus {
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *WirelessLANStatus) GetValue() string {
+func (o *WirelessLANStatus) GetValue() WirelessLANStatusValue {
if o == nil || IsNil(o.Value) {
- var ret string
+ var ret WirelessLANStatusValue
return ret
}
return *o.Value
@@ -55,7 +54,7 @@ func (o *WirelessLANStatus) GetValue() string {
// 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 *WirelessLANStatus) GetValueOk() (*string, bool) {
+func (o *WirelessLANStatus) GetValueOk() (*WirelessLANStatusValue, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -71,15 +70,15 @@ func (o *WirelessLANStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given string and assigns it to the Value field.
-func (o *WirelessLANStatus) SetValue(v string) {
+// SetValue gets a reference to the given WirelessLANStatusValue and assigns it to the Value field.
+func (o *WirelessLANStatus) SetValue(v WirelessLANStatusValue) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *WirelessLANStatus) GetLabel() string {
+func (o *WirelessLANStatus) GetLabel() WirelessLANStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret string
+ var ret WirelessLANStatusLabel
return ret
}
return *o.Label
@@ -87,7 +86,7 @@ func (o *WirelessLANStatus) 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 *WirelessLANStatus) GetLabelOk() (*string, bool) {
+func (o *WirelessLANStatus) GetLabelOk() (*WirelessLANStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -103,8 +102,8 @@ func (o *WirelessLANStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *WirelessLANStatus) SetLabel(v string) {
+// SetLabel gets a reference to the given WirelessLANStatusLabel and assigns it to the Label field.
+func (o *WirelessLANStatus) SetLabel(v WirelessLANStatusLabel) {
o.Label = &v
}
@@ -132,10 +131,10 @@ func (o WirelessLANStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WirelessLANStatus) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WirelessLANStatus) UnmarshalJSON(data []byte) (err error) {
varWirelessLANStatus := _WirelessLANStatus{}
- err = json.Unmarshal(bytes, &varWirelessLANStatus)
+ err = json.Unmarshal(data, &varWirelessLANStatus)
if err != nil {
return err
@@ -145,7 +144,7 @@ func (o *WirelessLANStatus) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "value")
delete(additionalProperties, "label")
o.AdditionalProperties = additionalProperties
diff --git a/model_wireless_lan_status_label.go b/model_wireless_lan_status_label.go
new file mode 100644
index 0000000000..2134204177
--- /dev/null
+++ b/model_wireless_lan_status_label.go
@@ -0,0 +1,114 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// WirelessLANStatusLabel the model 'WirelessLANStatusLabel'
+type WirelessLANStatusLabel string
+
+// List of WirelessLAN_status_label
+const (
+ WIRELESSLANSTATUSLABEL_ACTIVE WirelessLANStatusLabel = "Active"
+ WIRELESSLANSTATUSLABEL_RESERVED WirelessLANStatusLabel = "Reserved"
+ WIRELESSLANSTATUSLABEL_DISABLED WirelessLANStatusLabel = "Disabled"
+ WIRELESSLANSTATUSLABEL_DEPRECATED WirelessLANStatusLabel = "Deprecated"
+)
+
+// All allowed values of WirelessLANStatusLabel enum
+var AllowedWirelessLANStatusLabelEnumValues = []WirelessLANStatusLabel{
+ "Active",
+ "Reserved",
+ "Disabled",
+ "Deprecated",
+}
+
+func (v *WirelessLANStatusLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := WirelessLANStatusLabel(value)
+ for _, existing := range AllowedWirelessLANStatusLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid WirelessLANStatusLabel", value)
+}
+
+// NewWirelessLANStatusLabelFromValue returns a pointer to a valid WirelessLANStatusLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewWirelessLANStatusLabelFromValue(v string) (*WirelessLANStatusLabel, error) {
+ ev := WirelessLANStatusLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for WirelessLANStatusLabel: valid values are %v", v, AllowedWirelessLANStatusLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v WirelessLANStatusLabel) IsValid() bool {
+ for _, existing := range AllowedWirelessLANStatusLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to WirelessLAN_status_label value
+func (v WirelessLANStatusLabel) Ptr() *WirelessLANStatusLabel {
+ return &v
+}
+
+type NullableWirelessLANStatusLabel struct {
+ value *WirelessLANStatusLabel
+ isSet bool
+}
+
+func (v NullableWirelessLANStatusLabel) Get() *WirelessLANStatusLabel {
+ return v.value
+}
+
+func (v *NullableWirelessLANStatusLabel) Set(val *WirelessLANStatusLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWirelessLANStatusLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWirelessLANStatusLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWirelessLANStatusLabel(val *WirelessLANStatusLabel) *NullableWirelessLANStatusLabel {
+ return &NullableWirelessLANStatusLabel{value: val, isSet: true}
+}
+
+func (v NullableWirelessLANStatusLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWirelessLANStatusLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_wireless_lan_status_value.go b/model_wireless_lan_status_value.go
new file mode 100644
index 0000000000..08085dbe55
--- /dev/null
+++ b/model_wireless_lan_status_value.go
@@ -0,0 +1,116 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// WirelessLANStatusValue * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated
+type WirelessLANStatusValue string
+
+// List of WirelessLAN_status_value
+const (
+ WIRELESSLANSTATUSVALUE_ACTIVE WirelessLANStatusValue = "active"
+ WIRELESSLANSTATUSVALUE_RESERVED WirelessLANStatusValue = "reserved"
+ WIRELESSLANSTATUSVALUE_DISABLED WirelessLANStatusValue = "disabled"
+ WIRELESSLANSTATUSVALUE_DEPRECATED WirelessLANStatusValue = "deprecated"
+ WIRELESSLANSTATUSVALUE_EMPTY WirelessLANStatusValue = ""
+)
+
+// All allowed values of WirelessLANStatusValue enum
+var AllowedWirelessLANStatusValueEnumValues = []WirelessLANStatusValue{
+ "active",
+ "reserved",
+ "disabled",
+ "deprecated",
+ "",
+}
+
+func (v *WirelessLANStatusValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := WirelessLANStatusValue(value)
+ for _, existing := range AllowedWirelessLANStatusValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid WirelessLANStatusValue", value)
+}
+
+// NewWirelessLANStatusValueFromValue returns a pointer to a valid WirelessLANStatusValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewWirelessLANStatusValueFromValue(v string) (*WirelessLANStatusValue, error) {
+ ev := WirelessLANStatusValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for WirelessLANStatusValue: valid values are %v", v, AllowedWirelessLANStatusValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v WirelessLANStatusValue) IsValid() bool {
+ for _, existing := range AllowedWirelessLANStatusValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to WirelessLAN_status_value value
+func (v WirelessLANStatusValue) Ptr() *WirelessLANStatusValue {
+ return &v
+}
+
+type NullableWirelessLANStatusValue struct {
+ value *WirelessLANStatusValue
+ isSet bool
+}
+
+func (v NullableWirelessLANStatusValue) Get() *WirelessLANStatusValue {
+ return v.value
+}
+
+func (v *NullableWirelessLANStatusValue) Set(val *WirelessLANStatusValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWirelessLANStatusValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWirelessLANStatusValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWirelessLANStatusValue(val *WirelessLANStatusValue) *NullableWirelessLANStatusValue {
+ return &NullableWirelessLANStatusValue{value: val, isSet: true}
+}
+
+func (v NullableWirelessLANStatusValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWirelessLANStatusValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_wireless_link.go b/model_wireless_link.go
index c3b099975a..6595156e3e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -624,10 +625,37 @@ func (o WirelessLink) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WirelessLink) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "interface_a",
+ "interface_b",
+ "created",
+ "last_updated",
+ }
+
+ 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)
+ }
+ }
+
varWirelessLink := _WirelessLink{}
- err = json.Unmarshal(bytes, &varWirelessLink)
+ err = json.Unmarshal(data, &varWirelessLink)
if err != nil {
return err
@@ -637,7 +665,7 @@ func (o *WirelessLink) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
diff --git a/model_wireless_link_request.go b/model_wireless_link_request.go
index fc166a8fec..83b01faaea 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WirelessLinkRequest type satisfies the MappedNullable interface at compile time
@@ -19,21 +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"`
- // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise
- AuthType *string `json:"auth_type,omitempty"`
- // * `auto` - Auto * `tkip` - TKIP * `aes` - AES
- AuthCipher *string `json:"auth_cipher,omitempty"`
- AuthPsk *string `json:"auth_psk,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -139,9 +137,9 @@ func (o *WirelessLinkRequest) SetSsid(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WirelessLinkRequest) GetStatus() string {
+func (o *WirelessLinkRequest) GetStatus() CableStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret CableStatusValue
return ret
}
return *o.Status
@@ -149,7 +147,7 @@ func (o *WirelessLinkRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *WirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -165,8 +163,8 @@ func (o *WirelessLinkRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WirelessLinkRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field.
+func (o *WirelessLinkRequest) SetStatus(v CableStatusValue) {
o.Status = &v
}
@@ -214,9 +212,9 @@ func (o *WirelessLinkRequest) UnsetTenant() {
}
// GetAuthType returns the AuthType field value if set, zero value otherwise.
-func (o *WirelessLinkRequest) GetAuthType() string {
+func (o *WirelessLinkRequest) GetAuthType() WirelessLANAuthTypeValue {
if o == nil || IsNil(o.AuthType) {
- var ret string
+ var ret WirelessLANAuthTypeValue
return ret
}
return *o.AuthType
@@ -224,7 +222,7 @@ func (o *WirelessLinkRequest) GetAuthType() string {
// 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 *WirelessLinkRequest) GetAuthTypeOk() (*string, bool) {
+func (o *WirelessLinkRequest) GetAuthTypeOk() (*WirelessLANAuthTypeValue, bool) {
if o == nil || IsNil(o.AuthType) {
return nil, false
}
@@ -240,15 +238,15 @@ func (o *WirelessLinkRequest) HasAuthType() bool {
return false
}
-// SetAuthType gets a reference to the given string and assigns it to the AuthType field.
-func (o *WirelessLinkRequest) SetAuthType(v string) {
+// SetAuthType gets a reference to the given WirelessLANAuthTypeValue and assigns it to the AuthType field.
+func (o *WirelessLinkRequest) SetAuthType(v WirelessLANAuthTypeValue) {
o.AuthType = &v
}
// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise.
-func (o *WirelessLinkRequest) GetAuthCipher() string {
+func (o *WirelessLinkRequest) GetAuthCipher() WirelessLANAuthCipherValue {
if o == nil || IsNil(o.AuthCipher) {
- var ret string
+ var ret WirelessLANAuthCipherValue
return ret
}
return *o.AuthCipher
@@ -256,7 +254,7 @@ func (o *WirelessLinkRequest) GetAuthCipher() string {
// GetAuthCipherOk returns a tuple with the AuthCipher field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WirelessLinkRequest) GetAuthCipherOk() (*string, bool) {
+func (o *WirelessLinkRequest) GetAuthCipherOk() (*WirelessLANAuthCipherValue, bool) {
if o == nil || IsNil(o.AuthCipher) {
return nil, false
}
@@ -272,8 +270,8 @@ func (o *WirelessLinkRequest) HasAuthCipher() bool {
return false
}
-// SetAuthCipher gets a reference to the given string and assigns it to the AuthCipher field.
-func (o *WirelessLinkRequest) SetAuthCipher(v string) {
+// SetAuthCipher gets a reference to the given WirelessLANAuthCipherValue and assigns it to the AuthCipher field.
+func (o *WirelessLinkRequest) SetAuthCipher(v WirelessLANAuthCipherValue) {
o.AuthCipher = &v
}
@@ -487,10 +485,32 @@ func (o WirelessLinkRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WirelessLinkRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WirelessLinkRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "interface_a",
+ "interface_b",
+ }
+
+ 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)
+ }
+ }
+
varWirelessLinkRequest := _WirelessLinkRequest{}
- err = json.Unmarshal(bytes, &varWirelessLinkRequest)
+ err = json.Unmarshal(data, &varWirelessLinkRequest)
if err != nil {
return err
@@ -500,7 +520,7 @@ func (o *WirelessLinkRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "interface_a")
delete(additionalProperties, "interface_b")
delete(additionalProperties, "ssid")
diff --git a/model_wireless_role.go b/model_wireless_role.go
new file mode 100644
index 0000000000..e23a926f31
--- /dev/null
+++ b/model_wireless_role.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// WirelessRole * `ap` - Access point * `station` - Station
+type WirelessRole string
+
+// List of Wireless_role
+const (
+ WIRELESSROLE_AP WirelessRole = "ap"
+ WIRELESSROLE_STATION WirelessRole = "station"
+ WIRELESSROLE_EMPTY WirelessRole = ""
+)
+
+// All allowed values of WirelessRole enum
+var AllowedWirelessRoleEnumValues = []WirelessRole{
+ "ap",
+ "station",
+ "",
+}
+
+func (v *WirelessRole) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := WirelessRole(value)
+ for _, existing := range AllowedWirelessRoleEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid WirelessRole", value)
+}
+
+// NewWirelessRoleFromValue returns a pointer to a valid WirelessRole
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewWirelessRoleFromValue(v string) (*WirelessRole, error) {
+ ev := WirelessRole(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for WirelessRole: valid values are %v", v, AllowedWirelessRoleEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v WirelessRole) IsValid() bool {
+ for _, existing := range AllowedWirelessRoleEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Wireless_role value
+func (v WirelessRole) Ptr() *WirelessRole {
+ return &v
+}
+
+type NullableWirelessRole struct {
+ value *WirelessRole
+ isSet bool
+}
+
+func (v NullableWirelessRole) Get() *WirelessRole {
+ return v.value
+}
+
+func (v *NullableWirelessRole) Set(val *WirelessRole) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWirelessRole) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWirelessRole) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWirelessRole(val *WirelessRole) *NullableWirelessRole {
+ return &NullableWirelessRole{value: val, isSet: true}
+}
+
+func (v NullableWirelessRole) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWirelessRole) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_writable_aggregate_request.go b/model_writable_aggregate_request.go
index a64d814acf..b1072e0eda 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableAggregateRequest type satisfies the MappedNullable interface at compile time
@@ -352,10 +353,32 @@ func (o WritableAggregateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableAggregateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableAggregateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "prefix",
+ "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)
+ }
+ }
+
varWritableAggregateRequest := _WritableAggregateRequest{}
- err = json.Unmarshal(bytes, &varWritableAggregateRequest)
+ err = json.Unmarshal(data, &varWritableAggregateRequest)
if err != nil {
return err
@@ -365,7 +388,7 @@ func (o *WritableAggregateRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "prefix")
delete(additionalProperties, "rir")
delete(additionalProperties, "tenant")
diff --git a/model_writable_asn_range_request.go b/model_writable_asn_range_request.go
index d0a3a8d5cf..c0331d3cf8 100644
--- a/model_writable_asn_range_request.go
+++ b/model_writable_asn_range_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableASNRangeRequest type satisfies the MappedNullable interface at compile time
@@ -349,10 +350,35 @@ func (o WritableASNRangeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableASNRangeRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableASNRangeRequest)
+ err = json.Unmarshal(data, &varWritableASNRangeRequest)
if err != nil {
return err
@@ -362,7 +388,7 @@ func (o *WritableASNRangeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "rir")
diff --git a/model_writable_asn_request.go b/model_writable_asn_request.go
index eb9f9be3b0..fd37d59a01 100644
--- a/model_writable_asn_request.go
+++ b/model_writable_asn_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableASNRequest type satisfies the MappedNullable interface at compile time
@@ -306,10 +307,32 @@ func (o WritableASNRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableASNRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableASNRequest)
+ err = json.Unmarshal(data, &varWritableASNRequest)
if err != nil {
return err
@@ -319,7 +342,7 @@ func (o *WritableASNRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "asn")
delete(additionalProperties, "rir")
delete(additionalProperties, "tenant")
diff --git a/model_writable_bookmark_request.go b/model_writable_bookmark_request.go
index 0331da18d9..8cce4e4744 100644
--- a/model_writable_bookmark_request.go
+++ b/model_writable_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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableBookmarkRequest type satisfies the MappedNullable interface at compile time
@@ -140,10 +141,33 @@ func (o WritableBookmarkRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableBookmarkRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableBookmarkRequest)
+ err = json.Unmarshal(data, &varWritableBookmarkRequest)
if err != nil {
return err
@@ -153,7 +177,7 @@ func (o *WritableBookmarkRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "object_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "user")
diff --git a/model_writable_cable_request.go b/model_writable_cable_request.go
index fcbb06ebd1..ee3da9f58a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,18 +19,15 @@ var _ MappedNullable = &WritableCableRequest{}
// WritableCableRequest Adds support for custom fields and tags.
type WritableCableRequest struct {
- // * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `power` - Power
- Type *string `json:"type,omitempty"`
- ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"`
- BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"`
- // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Label *string `json:"label,omitempty"`
- Color *string `json:"color,omitempty"`
- Length NullableFloat64 `json:"length,omitempty"`
- // * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches
- LengthUnit *string `json:"length_unit,omitempty"`
+ 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"`
@@ -58,9 +55,9 @@ func NewWritableCableRequestWithDefaults() *WritableCableRequest {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *WritableCableRequest) GetType() string {
+func (o *WritableCableRequest) GetType() CableType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret CableType
return ret
}
return *o.Type
@@ -68,7 +65,7 @@ func (o *WritableCableRequest) GetType() string {
// 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() (*string, bool) {
+func (o *WritableCableRequest) GetTypeOk() (*CableType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -84,8 +81,8 @@ func (o *WritableCableRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *WritableCableRequest) SetType(v string) {
+// SetType gets a reference to the given CableType and assigns it to the Type field.
+func (o *WritableCableRequest) SetType(v CableType) {
o.Type = &v
}
@@ -154,9 +151,9 @@ func (o *WritableCableRequest) SetBTerminations(v []GenericObjectRequest) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableCableRequest) GetStatus() string {
+func (o *WritableCableRequest) GetStatus() CableStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret CableStatusValue
return ret
}
return *o.Status
@@ -164,7 +161,7 @@ func (o *WritableCableRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *WritableCableRequest) GetStatusOk() (*CableStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -180,8 +177,8 @@ func (o *WritableCableRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritableCableRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field.
+func (o *WritableCableRequest) SetStatus(v CableStatusValue) {
o.Status = &v
}
@@ -336,9 +333,9 @@ func (o *WritableCableRequest) UnsetLength() {
}
// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise.
-func (o *WritableCableRequest) GetLengthUnit() string {
+func (o *WritableCableRequest) GetLengthUnit() CableLengthUnitValue {
if o == nil || IsNil(o.LengthUnit) {
- var ret string
+ var ret CableLengthUnitValue
return ret
}
return *o.LengthUnit
@@ -346,7 +343,7 @@ func (o *WritableCableRequest) GetLengthUnit() string {
// 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() (*string, bool) {
+func (o *WritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool) {
if o == nil || IsNil(o.LengthUnit) {
return nil, false
}
@@ -362,8 +359,8 @@ func (o *WritableCableRequest) HasLengthUnit() bool {
return false
}
-// SetLengthUnit gets a reference to the given string and assigns it to the LengthUnit field.
-func (o *WritableCableRequest) SetLengthUnit(v string) {
+// SetLengthUnit gets a reference to the given CableLengthUnitValue and assigns it to the LengthUnit field.
+func (o *WritableCableRequest) SetLengthUnit(v CableLengthUnitValue) {
o.LengthUnit = &v
}
@@ -552,10 +549,10 @@ func (o WritableCableRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableCableRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableCableRequest) UnmarshalJSON(data []byte) (err error) {
varWritableCableRequest := _WritableCableRequest{}
- err = json.Unmarshal(bytes, &varWritableCableRequest)
+ err = json.Unmarshal(data, &varWritableCableRequest)
if err != nil {
return err
@@ -565,7 +562,7 @@ func (o *WritableCableRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "type")
delete(additionalProperties, "a_terminations")
delete(additionalProperties, "b_terminations")
diff --git a/model_writable_circuit_request.go b/model_writable_circuit_request.go
index eb9e77d91f..ca3c0efbbf 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableCircuitRequest type satisfies the MappedNullable interface at compile time
@@ -20,15 +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"`
- // * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned
- Status *string `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- InstallDate NullableString `json:"install_date,omitempty"`
- TerminationDate NullableString `json:"termination_date,omitempty"`
+ 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"`
// Committed rate
CommitRate NullableInt32 `json:"commit_rate,omitempty"`
Description *string `json:"description,omitempty"`
@@ -176,9 +176,9 @@ func (o *WritableCircuitRequest) SetType(v int32) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableCircuitRequest) GetStatus() string {
+func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret CircuitStatusValue
return ret
}
return *o.Status
@@ -186,7 +186,7 @@ func (o *WritableCircuitRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *WritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -202,8 +202,8 @@ func (o *WritableCircuitRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritableCircuitRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field.
+func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue) {
o.Status = &v
}
@@ -558,10 +558,33 @@ func (o WritableCircuitRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableCircuitRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableCircuitRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "cid",
+ "provider",
+ "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)
+ }
+ }
+
varWritableCircuitRequest := _WritableCircuitRequest{}
- err = json.Unmarshal(bytes, &varWritableCircuitRequest)
+ err = json.Unmarshal(data, &varWritableCircuitRequest)
if err != nil {
return err
@@ -571,7 +594,7 @@ func (o *WritableCircuitRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "cid")
delete(additionalProperties, "provider")
delete(additionalProperties, "provider_account")
diff --git a/model_writable_circuit_termination_request.go b/model_writable_circuit_termination_request.go
index d24a3e6a71..b4e2046d2f 100644
--- a/model_writable_circuit_termination_request.go
+++ b/model_writable_circuit_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableCircuitTerminationRequest type satisfies the MappedNullable interface at compile time
@@ -19,9 +20,8 @@ var _ MappedNullable = &WritableCircuitTerminationRequest{}
// WritableCircuitTerminationRequest Adds support for custom fields and tags.
type WritableCircuitTerminationRequest struct {
- Circuit int32 `json:"circuit"`
- // * `A` - A * `Z` - Z
- TermSide string `json:"term_side"`
+ Circuit int32 `json:"circuit"`
+ TermSide Termination `json:"term_side"`
Site NullableInt32 `json:"site,omitempty"`
ProviderNetwork NullableInt32 `json:"provider_network,omitempty"`
// Physical circuit speed
@@ -46,7 +46,7 @@ type _WritableCircuitTerminationRequest WritableCircuitTerminationRequest
// This constructor will assign default values to properties that have it defined,
// and 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 string) *WritableCircuitTerminationRequest {
+func NewWritableCircuitTerminationRequest(circuit int32, termSide Termination) *WritableCircuitTerminationRequest {
this := WritableCircuitTerminationRequest{}
this.Circuit = circuit
this.TermSide = termSide
@@ -86,9 +86,9 @@ func (o *WritableCircuitTerminationRequest) SetCircuit(v int32) {
}
// GetTermSide returns the TermSide field value
-func (o *WritableCircuitTerminationRequest) GetTermSide() string {
+func (o *WritableCircuitTerminationRequest) GetTermSide() Termination {
if o == nil {
- var ret string
+ var ret Termination
return ret
}
@@ -97,7 +97,7 @@ func (o *WritableCircuitTerminationRequest) GetTermSide() string {
// GetTermSideOk returns a tuple with the TermSide field value
// and a boolean to check if the value has been set.
-func (o *WritableCircuitTerminationRequest) GetTermSideOk() (*string, bool) {
+func (o *WritableCircuitTerminationRequest) GetTermSideOk() (*Termination, bool) {
if o == nil {
return nil, false
}
@@ -105,7 +105,7 @@ func (o *WritableCircuitTerminationRequest) GetTermSideOk() (*string, bool) {
}
// SetTermSide sets field value
-func (o *WritableCircuitTerminationRequest) SetTermSide(v string) {
+func (o *WritableCircuitTerminationRequest) SetTermSide(v Termination) {
o.TermSide = v
}
@@ -523,10 +523,32 @@ func (o WritableCircuitTerminationRequest) ToMap() (map[string]interface{}, erro
return toSerialize, nil
}
-func (o *WritableCircuitTerminationRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableCircuitTerminationRequest)
+ err = json.Unmarshal(data, &varWritableCircuitTerminationRequest)
if err != nil {
return err
@@ -536,7 +558,7 @@ func (o *WritableCircuitTerminationRequest) UnmarshalJSON(bytes []byte) (err err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "circuit")
delete(additionalProperties, "term_side")
delete(additionalProperties, "site")
diff --git a/model_writable_cluster_request.go b/model_writable_cluster_request.go
index 2270666cdb..46e3e6b15b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableClusterRequest type satisfies the MappedNullable interface at compile time
@@ -19,11 +20,10 @@ 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"`
- // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline
- Status *string `json:"status,omitempty"`
+ 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"`
@@ -146,9 +146,9 @@ func (o *WritableClusterRequest) UnsetGroup() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableClusterRequest) GetStatus() string {
+func (o *WritableClusterRequest) GetStatus() ClusterStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret ClusterStatusValue
return ret
}
return *o.Status
@@ -156,7 +156,7 @@ func (o *WritableClusterRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *WritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -172,8 +172,8 @@ func (o *WritableClusterRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritableClusterRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field.
+func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue) {
o.Status = &v
}
@@ -435,10 +435,32 @@ func (o WritableClusterRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableClusterRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableClusterRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "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)
+ }
+ }
+
varWritableClusterRequest := _WritableClusterRequest{}
- err = json.Unmarshal(bytes, &varWritableClusterRequest)
+ err = json.Unmarshal(data, &varWritableClusterRequest)
if err != nil {
return err
@@ -448,7 +470,7 @@ func (o *WritableClusterRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "type")
delete(additionalProperties, "group")
diff --git a/model_writable_config_context_request.go b/model_writable_config_context_request.go
index 5de6246f51..b26b525a97 100644
--- a/model_writable_config_context_request.go
+++ b/model_writable_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableConfigContextRequest type satisfies the MappedNullable interface at compile time
@@ -37,8 +38,8 @@ type WritableConfigContextRequest struct {
Tenants []int32 `json:"tenants,omitempty"`
Tags []string `json:"tags,omitempty"`
// Remote data source
- DataSource NullableInt32 `json:"data_source,omitempty"`
- Data map[string]interface{} `json:"data"`
+ DataSource NullableInt32 `json:"data_source,omitempty"`
+ Data interface{} `json:"data"`
AdditionalProperties map[string]interface{}
}
@@ -48,7 +49,7 @@ type _WritableConfigContextRequest WritableConfigContextRequest
// This constructor will assign default values to properties that have it defined,
// and 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 map[string]interface{}) *WritableConfigContextRequest {
+func NewWritableConfigContextRequest(name string, data interface{}) *WritableConfigContextRequest {
this := WritableConfigContextRequest{}
this.Name = name
this.Data = data
@@ -643,9 +644,10 @@ func (o *WritableConfigContextRequest) UnsetDataSource() {
}
// GetData returns the Data field value
-func (o *WritableConfigContextRequest) GetData() map[string]interface{} {
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *WritableConfigContextRequest) GetData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
@@ -654,15 +656,16 @@ func (o *WritableConfigContextRequest) GetData() map[string]interface{} {
// GetDataOk returns a tuple with the Data field value
// and a boolean to check if the value has been set.
-func (o *WritableConfigContextRequest) GetDataOk() (map[string]interface{}, bool) {
- if o == nil {
- return map[string]interface{}{}, false
+// 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
+ return &o.Data, true
}
// SetData sets field value
-func (o *WritableConfigContextRequest) SetData(v map[string]interface{}) {
+func (o *WritableConfigContextRequest) SetData(v interface{}) {
o.Data = v
}
@@ -728,7 +731,9 @@ func (o WritableConfigContextRequest) ToMap() (map[string]interface{}, error) {
if o.DataSource.IsSet() {
toSerialize["data_source"] = o.DataSource.Get()
}
- toSerialize["data"] = o.Data
+ if o.Data != nil {
+ toSerialize["data"] = o.Data
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -737,10 +742,32 @@ func (o WritableConfigContextRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableConfigContextRequest)
+ err = json.Unmarshal(data, &varWritableConfigContextRequest)
if err != nil {
return err
@@ -750,7 +777,7 @@ func (o *WritableConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "weight")
delete(additionalProperties, "description")
diff --git a/model_writable_config_template_request.go b/model_writable_config_template_request.go
index 06a225de29..ba8e279cae 100644
--- a/model_writable_config_template_request.go
+++ b/model_writable_config_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableConfigTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -22,11 +23,12 @@ type WritableConfigTemplateRequest struct {
Name string `json:"name"`
Description *string `json:"description,omitempty"`
// Any additional parameters to pass when constructing the Jinja2 environment.
- EnvironmentParams map[string]interface{} `json:"environment_params,omitempty"`
+ 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{}
}
@@ -109,9 +111,9 @@ func (o *WritableConfigTemplateRequest) SetDescription(v string) {
}
// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableConfigTemplateRequest) GetEnvironmentParams() map[string]interface{} {
+func (o *WritableConfigTemplateRequest) GetEnvironmentParams() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.EnvironmentParams
@@ -120,11 +122,11 @@ func (o *WritableConfigTemplateRequest) GetEnvironmentParams() map[string]interf
// 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() (map[string]interface{}, bool) {
+func (o *WritableConfigTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool) {
if o == nil || IsNil(o.EnvironmentParams) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.EnvironmentParams, true
+ return &o.EnvironmentParams, true
}
// HasEnvironmentParams returns a boolean if a field has been set.
@@ -136,8 +138,8 @@ func (o *WritableConfigTemplateRequest) HasEnvironmentParams() bool {
return false
}
-// SetEnvironmentParams gets a reference to the given map[string]interface{} and assigns it to the EnvironmentParams field.
-func (o *WritableConfigTemplateRequest) SetEnvironmentParams(v map[string]interface{}) {
+// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field.
+func (o *WritableConfigTemplateRequest) SetEnvironmentParams(v interface{}) {
o.EnvironmentParams = v
}
@@ -208,6 +210,49 @@ 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) {
@@ -261,6 +306,9 @@ func (o WritableConfigTemplateRequest) ToMap() (map[string]interface{}, error) {
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
}
@@ -272,10 +320,32 @@ func (o WritableConfigTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableConfigTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableConfigTemplateRequest)
+ err = json.Unmarshal(data, &varWritableConfigTemplateRequest)
if err != nil {
return err
@@ -285,12 +355,13 @@ func (o *WritableConfigTemplateRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ 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
}
diff --git a/model_writable_console_port_request.go b/model_writable_console_port_request.go
index 747b6250fe..0cde2ada1a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableConsolePortRequest type satisfies the MappedNullable interface at compile time
@@ -23,12 +24,10 @@ type WritableConsolePortRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
- Type *string `json:"type,omitempty"`
- // Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps
- Speed NullableInt32 `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"`
+ Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -181,9 +180,9 @@ func (o *WritableConsolePortRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *WritableConsolePortRequest) GetType() string {
+func (o *WritableConsolePortRequest) GetType() PatchedWritableConsolePortRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritableConsolePortRequestType
return ret
}
return *o.Type
@@ -191,7 +190,7 @@ func (o *WritableConsolePortRequest) GetType() string {
// 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 *WritableConsolePortRequest) GetTypeOk() (*string, bool) {
+func (o *WritableConsolePortRequest) GetTypeOk() (*PatchedWritableConsolePortRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -207,15 +206,15 @@ func (o *WritableConsolePortRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *WritableConsolePortRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritableConsolePortRequestType and assigns it to the Type field.
+func (o *WritableConsolePortRequest) SetType(v PatchedWritableConsolePortRequestType) {
o.Type = &v
}
// GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableConsolePortRequest) GetSpeed() int32 {
+func (o *WritableConsolePortRequest) GetSpeed() PatchedWritableConsolePortRequestSpeed {
if o == nil || IsNil(o.Speed.Get()) {
- var ret int32
+ var ret PatchedWritableConsolePortRequestSpeed
return ret
}
return *o.Speed.Get()
@@ -224,7 +223,7 @@ func (o *WritableConsolePortRequest) GetSpeed() int32 {
// GetSpeedOk returns a tuple with the Speed field value if set, nil otherwise
// and a 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) GetSpeedOk() (*int32, bool) {
+func (o *WritableConsolePortRequest) GetSpeedOk() (*PatchedWritableConsolePortRequestSpeed, bool) {
if o == nil {
return nil, false
}
@@ -240,8 +239,8 @@ func (o *WritableConsolePortRequest) HasSpeed() bool {
return false
}
-// SetSpeed gets a reference to the given NullableInt32 and assigns it to the Speed field.
-func (o *WritableConsolePortRequest) SetSpeed(v int32) {
+// SetSpeed gets a reference to the given NullablePatchedWritableConsolePortRequestSpeed and assigns it to the Speed field.
+func (o *WritableConsolePortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed) {
o.Speed.Set(&v)
}
@@ -427,10 +426,32 @@ func (o WritableConsolePortRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableConsolePortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableConsolePortRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableConsolePortRequest := _WritableConsolePortRequest{}
- err = json.Unmarshal(bytes, &varWritableConsolePortRequest)
+ err = json.Unmarshal(data, &varWritableConsolePortRequest)
if err != nil {
return err
@@ -440,7 +461,7 @@ func (o *WritableConsolePortRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_writable_console_port_template_request.go b/model_writable_console_port_template_request.go
index 6f83a8f6e8..0d809a42ba 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableConsolePortTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,10 +25,9 @@ type WritableConsolePortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
- Type *string `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortTypeValue `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -194,9 +194,9 @@ func (o *WritableConsolePortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *WritableConsolePortTemplateRequest) GetType() string {
+func (o *WritableConsolePortTemplateRequest) GetType() ConsolePortTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret ConsolePortTypeValue
return ret
}
return *o.Type
@@ -204,7 +204,7 @@ func (o *WritableConsolePortTemplateRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableConsolePortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *WritableConsolePortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -220,8 +220,8 @@ func (o *WritableConsolePortTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *WritableConsolePortTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given ConsolePortTypeValue and assigns it to the Type field.
+func (o *WritableConsolePortTemplateRequest) SetType(v ConsolePortTypeValue) {
o.Type = &v
}
@@ -291,10 +291,31 @@ func (o WritableConsolePortTemplateRequest) ToMap() (map[string]interface{}, err
return toSerialize, nil
}
-func (o *WritableConsolePortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableConsolePortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableConsolePortTemplateRequest := _WritableConsolePortTemplateRequest{}
- err = json.Unmarshal(bytes, &varWritableConsolePortTemplateRequest)
+ err = json.Unmarshal(data, &varWritableConsolePortTemplateRequest)
if err != nil {
return err
@@ -304,7 +325,7 @@ func (o *WritableConsolePortTemplateRequest) UnmarshalJSON(bytes []byte) (err er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_writable_console_server_port_request.go b/model_writable_console_server_port_request.go
index 8bbe64718c..19a85c6e50 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableConsoleServerPortRequest type satisfies the MappedNullable interface at compile time
@@ -23,12 +24,10 @@ type WritableConsoleServerPortRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
- Type *string `json:"type,omitempty"`
- // Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps
- Speed NullableInt32 `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"`
+ Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -181,9 +180,9 @@ func (o *WritableConsoleServerPortRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *WritableConsoleServerPortRequest) GetType() string {
+func (o *WritableConsoleServerPortRequest) GetType() PatchedWritableConsolePortRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritableConsolePortRequestType
return ret
}
return *o.Type
@@ -191,7 +190,7 @@ func (o *WritableConsoleServerPortRequest) GetType() string {
// 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 *WritableConsoleServerPortRequest) GetTypeOk() (*string, bool) {
+func (o *WritableConsoleServerPortRequest) GetTypeOk() (*PatchedWritableConsolePortRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -207,15 +206,15 @@ func (o *WritableConsoleServerPortRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *WritableConsoleServerPortRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritableConsolePortRequestType and assigns it to the Type field.
+func (o *WritableConsoleServerPortRequest) SetType(v PatchedWritableConsolePortRequestType) {
o.Type = &v
}
// GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableConsoleServerPortRequest) GetSpeed() int32 {
+func (o *WritableConsoleServerPortRequest) GetSpeed() PatchedWritableConsolePortRequestSpeed {
if o == nil || IsNil(o.Speed.Get()) {
- var ret int32
+ var ret PatchedWritableConsolePortRequestSpeed
return ret
}
return *o.Speed.Get()
@@ -224,7 +223,7 @@ func (o *WritableConsoleServerPortRequest) GetSpeed() int32 {
// GetSpeedOk returns a tuple with the Speed field value if set, nil otherwise
// and a 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) GetSpeedOk() (*int32, bool) {
+func (o *WritableConsoleServerPortRequest) GetSpeedOk() (*PatchedWritableConsolePortRequestSpeed, bool) {
if o == nil {
return nil, false
}
@@ -240,8 +239,8 @@ func (o *WritableConsoleServerPortRequest) HasSpeed() bool {
return false
}
-// SetSpeed gets a reference to the given NullableInt32 and assigns it to the Speed field.
-func (o *WritableConsoleServerPortRequest) SetSpeed(v int32) {
+// SetSpeed gets a reference to the given NullablePatchedWritableConsolePortRequestSpeed and assigns it to the Speed field.
+func (o *WritableConsoleServerPortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed) {
o.Speed.Set(&v)
}
@@ -427,10 +426,32 @@ func (o WritableConsoleServerPortRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *WritableConsoleServerPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableConsoleServerPortRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableConsoleServerPortRequest := _WritableConsoleServerPortRequest{}
- err = json.Unmarshal(bytes, &varWritableConsoleServerPortRequest)
+ err = json.Unmarshal(data, &varWritableConsoleServerPortRequest)
if err != nil {
return err
@@ -440,7 +461,7 @@ func (o *WritableConsoleServerPortRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_writable_console_server_port_template_request.go b/model_writable_console_server_port_template_request.go
index d45a522edb..9646307d00 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableConsoleServerPortTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,10 +25,9 @@ type WritableConsoleServerPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
- Type *string `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortTypeValue `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -194,9 +194,9 @@ func (o *WritableConsoleServerPortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *WritableConsoleServerPortTemplateRequest) GetType() string {
+func (o *WritableConsoleServerPortTemplateRequest) GetType() ConsolePortTypeValue {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret ConsolePortTypeValue
return ret
}
return *o.Type
@@ -204,7 +204,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableConsoleServerPortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *WritableConsoleServerPortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -220,8 +220,8 @@ func (o *WritableConsoleServerPortTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *WritableConsoleServerPortTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given ConsolePortTypeValue and assigns it to the Type field.
+func (o *WritableConsoleServerPortTemplateRequest) SetType(v ConsolePortTypeValue) {
o.Type = &v
}
@@ -291,10 +291,31 @@ func (o WritableConsoleServerPortTemplateRequest) ToMap() (map[string]interface{
return toSerialize, nil
}
-func (o *WritableConsoleServerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableConsoleServerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableConsoleServerPortTemplateRequest := _WritableConsoleServerPortTemplateRequest{}
- err = json.Unmarshal(bytes, &varWritableConsoleServerPortTemplateRequest)
+ err = json.Unmarshal(data, &varWritableConsoleServerPortTemplateRequest)
if err != nil {
return err
@@ -304,7 +325,7 @@ func (o *WritableConsoleServerPortTemplateRequest) UnmarshalJSON(bytes []byte) (
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_writable_contact_assignment_request.go b/model_writable_contact_assignment_request.go
index ae57770347..950f4c4061 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableContactAssignmentRequest type satisfies the MappedNullable interface at compile time
@@ -19,13 +20,13 @@ var _ MappedNullable = &WritableContactAssignmentRequest{}
// WritableContactAssignmentRequest Adds support for custom fields and tags.
type WritableContactAssignmentRequest struct {
- ContentType string `json:"content_type"`
- ObjectId int64 `json:"object_id"`
- Contact int32 `json:"contact"`
- Role int32 `json:"role"`
- // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive
- Priority *string `json:"priority,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ ContentType string `json:"content_type"`
+ ObjectId int64 `json:"object_id"`
+ Contact int32 `json:"contact"`
+ Role int32 `json:"role"`
+ Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -149,9 +150,9 @@ func (o *WritableContactAssignmentRequest) SetRole(v int32) {
}
// GetPriority returns the Priority field value if set, zero value otherwise.
-func (o *WritableContactAssignmentRequest) GetPriority() string {
+func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue {
if o == nil || IsNil(o.Priority) {
- var ret string
+ var ret ContactAssignmentPriorityValue
return ret
}
return *o.Priority
@@ -159,7 +160,7 @@ func (o *WritableContactAssignmentRequest) GetPriority() string {
// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableContactAssignmentRequest) GetPriorityOk() (*string, bool) {
+func (o *WritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) {
if o == nil || IsNil(o.Priority) {
return nil, false
}
@@ -175,8 +176,8 @@ func (o *WritableContactAssignmentRequest) HasPriority() bool {
return false
}
-// SetPriority gets a reference to the given string and assigns it to the Priority field.
-func (o *WritableContactAssignmentRequest) SetPriority(v string) {
+// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field.
+func (o *WritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) {
o.Priority = &v
}
@@ -212,6 +213,38 @@ func (o *WritableContactAssignmentRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *WritableContactAssignmentRequest) 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 *WritableContactAssignmentRequest) 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 *WritableContactAssignmentRequest) 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 *WritableContactAssignmentRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
func (o WritableContactAssignmentRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -232,6 +265,9 @@ func (o WritableContactAssignmentRequest) ToMap() (map[string]interface{}, error
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
@@ -240,10 +276,34 @@ func (o WritableContactAssignmentRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *WritableContactAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableContactAssignmentRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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_id",
+ "contact",
+ "role",
+ }
+
+ 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)
+ }
+ }
+
varWritableContactAssignmentRequest := _WritableContactAssignmentRequest{}
- err = json.Unmarshal(bytes, &varWritableContactAssignmentRequest)
+ err = json.Unmarshal(data, &varWritableContactAssignmentRequest)
if err != nil {
return err
@@ -253,13 +313,14 @@ func (o *WritableContactAssignmentRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "contact")
delete(additionalProperties, "role")
delete(additionalProperties, "priority")
delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_writable_contact_group_request.go b/model_writable_contact_group_request.go
index 28c3d8a061..e9193f1d44 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableContactGroupRequest type satisfies the MappedNullable interface at compile time
@@ -268,10 +269,32 @@ func (o WritableContactGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableContactGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableContactGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableContactGroupRequest := _WritableContactGroupRequest{}
- err = json.Unmarshal(bytes, &varWritableContactGroupRequest)
+ err = json.Unmarshal(data, &varWritableContactGroupRequest)
if err != nil {
return err
@@ -281,7 +304,7 @@ func (o *WritableContactGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_writable_contact_request.go b/model_writable_contact_request.go
index 1f7384fc28..9afe175703 100644
--- a/model_writable_contact_request.go
+++ b/model_writable_contact_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableContactRequest type satisfies the MappedNullable interface at compile time
@@ -457,10 +458,31 @@ func (o WritableContactRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableContactRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableContactRequest)
+ err = json.Unmarshal(data, &varWritableContactRequest)
if err != nil {
return err
@@ -470,7 +492,7 @@ func (o *WritableContactRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "group")
delete(additionalProperties, "name")
delete(additionalProperties, "title")
diff --git a/model_writable_custom_field_choice_set_request.go b/model_writable_custom_field_choice_set_request.go
index 808f1ebfee..72ffdebcb7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableCustomFieldChoiceSetRequest type satisfies the MappedNullable interface at compile time
@@ -19,11 +20,10 @@ var _ MappedNullable = &WritableCustomFieldChoiceSetRequest{}
// WritableCustomFieldChoiceSetRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type WritableCustomFieldChoiceSetRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- // Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes)
- BaseChoices *string `json:"base_choices,omitempty"`
- ExtraChoices [][]string `json:"extra_choices,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ BaseChoices *PatchedWritableCustomFieldChoiceSetRequestBaseChoices `json:"base_choices,omitempty"`
+ ExtraChoices [][]string `json:"extra_choices,omitempty"`
// Choices are automatically ordered alphabetically
OrderAlphabetically *bool `json:"order_alphabetically,omitempty"`
AdditionalProperties map[string]interface{}
@@ -106,9 +106,9 @@ func (o *WritableCustomFieldChoiceSetRequest) SetDescription(v string) {
}
// GetBaseChoices returns the BaseChoices field value if set, zero value otherwise.
-func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoices() string {
+func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoices() PatchedWritableCustomFieldChoiceSetRequestBaseChoices {
if o == nil || IsNil(o.BaseChoices) {
- var ret string
+ var ret PatchedWritableCustomFieldChoiceSetRequestBaseChoices
return ret
}
return *o.BaseChoices
@@ -116,7 +116,7 @@ func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoices() string {
// GetBaseChoicesOk returns a tuple with the BaseChoices field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoicesOk() (*string, bool) {
+func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoicesOk() (*PatchedWritableCustomFieldChoiceSetRequestBaseChoices, bool) {
if o == nil || IsNil(o.BaseChoices) {
return nil, false
}
@@ -132,8 +132,8 @@ func (o *WritableCustomFieldChoiceSetRequest) HasBaseChoices() bool {
return false
}
-// SetBaseChoices gets a reference to the given string and assigns it to the BaseChoices field.
-func (o *WritableCustomFieldChoiceSetRequest) SetBaseChoices(v string) {
+// SetBaseChoices gets a reference to the given PatchedWritableCustomFieldChoiceSetRequestBaseChoices and assigns it to the BaseChoices field.
+func (o *WritableCustomFieldChoiceSetRequest) SetBaseChoices(v PatchedWritableCustomFieldChoiceSetRequestBaseChoices) {
o.BaseChoices = &v
}
@@ -233,10 +233,31 @@ func (o WritableCustomFieldChoiceSetRequest) ToMap() (map[string]interface{}, er
return toSerialize, nil
}
-func (o *WritableCustomFieldChoiceSetRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableCustomFieldChoiceSetRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableCustomFieldChoiceSetRequest := _WritableCustomFieldChoiceSetRequest{}
- err = json.Unmarshal(bytes, &varWritableCustomFieldChoiceSetRequest)
+ err = json.Unmarshal(data, &varWritableCustomFieldChoiceSetRequest)
if err != nil {
return err
@@ -246,7 +267,7 @@ func (o *WritableCustomFieldChoiceSetRequest) UnmarshalJSON(bytes []byte) (err e
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "description")
delete(additionalProperties, "base_choices")
diff --git a/model_writable_custom_field_request.go b/model_writable_custom_field_request.go
index 01df816406..2f792ddb81 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableCustomFieldRequest type satisfies the MappedNullable interface at compile time
@@ -19,10 +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"`
- // The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects
- Type *string `json:"type,omitempty"`
- ObjectType *string `json:"object_type,omitempty"`
+ ContentTypes []string `json:"content_types"`
+ Type *PatchedWritableCustomFieldRequestType `json:"type,omitempty"`
+ ObjectType *string `json:"object_type,omitempty"`
// Internal field name
Name string `json:"name"`
// Name of the field as displayed to users (if not provided, 'the field's name will be used)
@@ -33,21 +33,20 @@ type WritableCustomFieldRequest struct {
// If true, this field is required when creating new objects or editing an existing object.
Required *bool `json:"required,omitempty"`
// Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored.
- SearchWeight *int32 `json:"search_weight,omitempty"`
- // Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact
- FilterLogic *string `json:"filter_logic,omitempty"`
- // Specifies the visibility of custom field in the UI * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset)
- UiVisibility *string `json:"ui_visibility,omitempty"`
+ SearchWeight *int32 `json:"search_weight,omitempty"`
+ FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"`
+ UiVisible *PatchedWritableCustomFieldRequestUiVisible `json:"ui_visible,omitempty"`
+ UiEditable *PatchedWritableCustomFieldRequestUiEditable `json:"ui_editable,omitempty"`
// Replicate this value when cloning objects
IsCloneable *bool `json:"is_cloneable,omitempty"`
// Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\").
- Default map[string]interface{} `json:"default,omitempty"`
+ Default interface{} `json:"default,omitempty"`
// Fields with higher weights appear lower in a form.
Weight *int32 `json:"weight,omitempty"`
// Minimum allowed value (for numeric fields)
- ValidationMinimum NullableInt32 `json:"validation_minimum,omitempty"`
+ ValidationMinimum NullableInt64 `json:"validation_minimum,omitempty"`
// Maximum allowed value (for numeric fields)
- ValidationMaximum NullableInt32 `json:"validation_maximum,omitempty"`
+ 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"`
@@ -100,9 +99,9 @@ func (o *WritableCustomFieldRequest) SetContentTypes(v []string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *WritableCustomFieldRequest) GetType() string {
+func (o *WritableCustomFieldRequest) GetType() PatchedWritableCustomFieldRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritableCustomFieldRequestType
return ret
}
return *o.Type
@@ -110,7 +109,7 @@ func (o *WritableCustomFieldRequest) GetType() string {
// 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 *WritableCustomFieldRequest) GetTypeOk() (*string, bool) {
+func (o *WritableCustomFieldRequest) GetTypeOk() (*PatchedWritableCustomFieldRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -126,8 +125,8 @@ func (o *WritableCustomFieldRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *WritableCustomFieldRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritableCustomFieldRequestType and assigns it to the Type field.
+func (o *WritableCustomFieldRequest) SetType(v PatchedWritableCustomFieldRequestType) {
o.Type = &v
}
@@ -348,9 +347,9 @@ func (o *WritableCustomFieldRequest) SetSearchWeight(v int32) {
}
// GetFilterLogic returns the FilterLogic field value if set, zero value otherwise.
-func (o *WritableCustomFieldRequest) GetFilterLogic() string {
+func (o *WritableCustomFieldRequest) GetFilterLogic() PatchedWritableCustomFieldRequestFilterLogic {
if o == nil || IsNil(o.FilterLogic) {
- var ret string
+ var ret PatchedWritableCustomFieldRequestFilterLogic
return ret
}
return *o.FilterLogic
@@ -358,7 +357,7 @@ func (o *WritableCustomFieldRequest) GetFilterLogic() string {
// GetFilterLogicOk returns a tuple with the FilterLogic field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableCustomFieldRequest) GetFilterLogicOk() (*string, bool) {
+func (o *WritableCustomFieldRequest) GetFilterLogicOk() (*PatchedWritableCustomFieldRequestFilterLogic, bool) {
if o == nil || IsNil(o.FilterLogic) {
return nil, false
}
@@ -374,41 +373,73 @@ func (o *WritableCustomFieldRequest) HasFilterLogic() bool {
return false
}
-// SetFilterLogic gets a reference to the given string and assigns it to the FilterLogic field.
-func (o *WritableCustomFieldRequest) SetFilterLogic(v string) {
+// SetFilterLogic gets a reference to the given PatchedWritableCustomFieldRequestFilterLogic and assigns it to the FilterLogic field.
+func (o *WritableCustomFieldRequest) SetFilterLogic(v PatchedWritableCustomFieldRequestFilterLogic) {
o.FilterLogic = &v
}
-// GetUiVisibility returns the UiVisibility field value if set, zero value otherwise.
-func (o *WritableCustomFieldRequest) GetUiVisibility() string {
- if o == nil || IsNil(o.UiVisibility) {
- var ret string
+// GetUiVisible returns the UiVisible field value if set, zero value otherwise.
+func (o *WritableCustomFieldRequest) GetUiVisible() PatchedWritableCustomFieldRequestUiVisible {
+ if o == nil || IsNil(o.UiVisible) {
+ var ret PatchedWritableCustomFieldRequestUiVisible
+ return ret
+ }
+ return *o.UiVisible
+}
+
+// GetUiVisibleOk returns a tuple with the UiVisible field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableCustomFieldRequest) GetUiVisibleOk() (*PatchedWritableCustomFieldRequestUiVisible, bool) {
+ if o == nil || IsNil(o.UiVisible) {
+ return nil, false
+ }
+ return o.UiVisible, true
+}
+
+// HasUiVisible returns a boolean if a field has been set.
+func (o *WritableCustomFieldRequest) HasUiVisible() bool {
+ if o != nil && !IsNil(o.UiVisible) {
+ return true
+ }
+
+ return false
+}
+
+// SetUiVisible gets a reference to the given PatchedWritableCustomFieldRequestUiVisible and assigns it to the UiVisible field.
+func (o *WritableCustomFieldRequest) SetUiVisible(v PatchedWritableCustomFieldRequestUiVisible) {
+ o.UiVisible = &v
+}
+
+// GetUiEditable returns the UiEditable field value if set, zero value otherwise.
+func (o *WritableCustomFieldRequest) GetUiEditable() PatchedWritableCustomFieldRequestUiEditable {
+ if o == nil || IsNil(o.UiEditable) {
+ var ret PatchedWritableCustomFieldRequestUiEditable
return ret
}
- return *o.UiVisibility
+ return *o.UiEditable
}
-// GetUiVisibilityOk returns a tuple with the UiVisibility field value if set, nil otherwise
+// GetUiEditableOk returns a tuple with the UiEditable field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableCustomFieldRequest) GetUiVisibilityOk() (*string, bool) {
- if o == nil || IsNil(o.UiVisibility) {
+func (o *WritableCustomFieldRequest) GetUiEditableOk() (*PatchedWritableCustomFieldRequestUiEditable, bool) {
+ if o == nil || IsNil(o.UiEditable) {
return nil, false
}
- return o.UiVisibility, true
+ return o.UiEditable, true
}
-// HasUiVisibility returns a boolean if a field has been set.
-func (o *WritableCustomFieldRequest) HasUiVisibility() bool {
- if o != nil && !IsNil(o.UiVisibility) {
+// HasUiEditable returns a boolean if a field has been set.
+func (o *WritableCustomFieldRequest) HasUiEditable() bool {
+ if o != nil && !IsNil(o.UiEditable) {
return true
}
return false
}
-// SetUiVisibility gets a reference to the given string and assigns it to the UiVisibility field.
-func (o *WritableCustomFieldRequest) SetUiVisibility(v string) {
- o.UiVisibility = &v
+// SetUiEditable gets a reference to the given PatchedWritableCustomFieldRequestUiEditable and assigns it to the UiEditable field.
+func (o *WritableCustomFieldRequest) SetUiEditable(v PatchedWritableCustomFieldRequestUiEditable) {
+ o.UiEditable = &v
}
// GetIsCloneable returns the IsCloneable field value if set, zero value otherwise.
@@ -444,9 +475,9 @@ func (o *WritableCustomFieldRequest) SetIsCloneable(v bool) {
}
// GetDefault returns the Default field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableCustomFieldRequest) GetDefault() map[string]interface{} {
+func (o *WritableCustomFieldRequest) GetDefault() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.Default
@@ -455,11 +486,11 @@ func (o *WritableCustomFieldRequest) GetDefault() map[string]interface{} {
// GetDefaultOk returns a tuple with the Default field value if set, nil otherwise
// and a 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) GetDefaultOk() (map[string]interface{}, bool) {
+func (o *WritableCustomFieldRequest) GetDefaultOk() (*interface{}, bool) {
if o == nil || IsNil(o.Default) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Default, true
+ return &o.Default, true
}
// HasDefault returns a boolean if a field has been set.
@@ -471,8 +502,8 @@ func (o *WritableCustomFieldRequest) HasDefault() bool {
return false
}
-// SetDefault gets a reference to the given map[string]interface{} and assigns it to the Default field.
-func (o *WritableCustomFieldRequest) SetDefault(v map[string]interface{}) {
+// SetDefault gets a reference to the given interface{} and assigns it to the Default field.
+func (o *WritableCustomFieldRequest) SetDefault(v interface{}) {
o.Default = v
}
@@ -509,9 +540,9 @@ func (o *WritableCustomFieldRequest) SetWeight(v int32) {
}
// GetValidationMinimum returns the ValidationMinimum field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableCustomFieldRequest) GetValidationMinimum() int32 {
+func (o *WritableCustomFieldRequest) GetValidationMinimum() int64 {
if o == nil || IsNil(o.ValidationMinimum.Get()) {
- var ret int32
+ var ret int64
return ret
}
return *o.ValidationMinimum.Get()
@@ -520,7 +551,7 @@ func (o *WritableCustomFieldRequest) GetValidationMinimum() int32 {
// GetValidationMinimumOk returns a tuple with the ValidationMinimum field value if set, nil otherwise
// and a 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) GetValidationMinimumOk() (*int32, bool) {
+func (o *WritableCustomFieldRequest) GetValidationMinimumOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -536,8 +567,8 @@ func (o *WritableCustomFieldRequest) HasValidationMinimum() bool {
return false
}
-// SetValidationMinimum gets a reference to the given NullableInt32 and assigns it to the ValidationMinimum field.
-func (o *WritableCustomFieldRequest) SetValidationMinimum(v int32) {
+// SetValidationMinimum gets a reference to the given NullableInt64 and assigns it to the ValidationMinimum field.
+func (o *WritableCustomFieldRequest) SetValidationMinimum(v int64) {
o.ValidationMinimum.Set(&v)
}
@@ -552,9 +583,9 @@ func (o *WritableCustomFieldRequest) UnsetValidationMinimum() {
}
// GetValidationMaximum returns the ValidationMaximum field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableCustomFieldRequest) GetValidationMaximum() int32 {
+func (o *WritableCustomFieldRequest) GetValidationMaximum() int64 {
if o == nil || IsNil(o.ValidationMaximum.Get()) {
- var ret int32
+ var ret int64
return ret
}
return *o.ValidationMaximum.Get()
@@ -563,7 +594,7 @@ func (o *WritableCustomFieldRequest) GetValidationMaximum() int32 {
// GetValidationMaximumOk returns a tuple with the ValidationMaximum field value if set, nil otherwise
// and a 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) GetValidationMaximumOk() (*int32, bool) {
+func (o *WritableCustomFieldRequest) GetValidationMaximumOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -579,8 +610,8 @@ func (o *WritableCustomFieldRequest) HasValidationMaximum() bool {
return false
}
-// SetValidationMaximum gets a reference to the given NullableInt32 and assigns it to the ValidationMaximum field.
-func (o *WritableCustomFieldRequest) SetValidationMaximum(v int32) {
+// SetValidationMaximum gets a reference to the given NullableInt64 and assigns it to the ValidationMaximum field.
+func (o *WritableCustomFieldRequest) SetValidationMaximum(v int64) {
o.ValidationMaximum.Set(&v)
}
@@ -705,8 +736,11 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.FilterLogic) {
toSerialize["filter_logic"] = o.FilterLogic
}
- if !IsNil(o.UiVisibility) {
- toSerialize["ui_visibility"] = o.UiVisibility
+ if !IsNil(o.UiVisible) {
+ toSerialize["ui_visible"] = o.UiVisible
+ }
+ if !IsNil(o.UiEditable) {
+ toSerialize["ui_editable"] = o.UiEditable
}
if !IsNil(o.IsCloneable) {
toSerialize["is_cloneable"] = o.IsCloneable
@@ -737,10 +771,32 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableCustomFieldRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableCustomFieldRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ }
+
+ 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)
+ }
+ }
+
varWritableCustomFieldRequest := _WritableCustomFieldRequest{}
- err = json.Unmarshal(bytes, &varWritableCustomFieldRequest)
+ err = json.Unmarshal(data, &varWritableCustomFieldRequest)
if err != nil {
return err
@@ -750,7 +806,7 @@ func (o *WritableCustomFieldRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_types")
delete(additionalProperties, "type")
delete(additionalProperties, "object_type")
@@ -761,7 +817,8 @@ func (o *WritableCustomFieldRequest) UnmarshalJSON(bytes []byte) (err error) {
delete(additionalProperties, "required")
delete(additionalProperties, "search_weight")
delete(additionalProperties, "filter_logic")
- delete(additionalProperties, "ui_visibility")
+ delete(additionalProperties, "ui_visible")
+ delete(additionalProperties, "ui_editable")
delete(additionalProperties, "is_cloneable")
delete(additionalProperties, "default")
delete(additionalProperties, "weight")
diff --git a/model_writable_data_source_request.go b/model_writable_data_source_request.go
index b2b4ed1101..48b7b9455b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableDataSourceRequest type satisfies the MappedNullable interface at compile time
@@ -19,14 +20,13 @@ var _ MappedNullable = &WritableDataSourceRequest{}
// WritableDataSourceRequest Adds support for custom fields and tags.
type WritableDataSourceRequest struct {
- Name string `json:"name"`
- // * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3
- Type *string `json:"type,omitempty"`
- SourceUrl string `json:"source_url"`
- Enabled *bool `json:"enabled,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Parameters map[string]interface{} `json:"parameters,omitempty"`
+ Name string `json:"name"`
+ Type string `json:"type"`
+ SourceUrl string `json:"source_url"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Parameters interface{} `json:"parameters,omitempty"`
// Patterns (one per line) matching files to ignore when syncing
IgnoreRules *string `json:"ignore_rules,omitempty"`
AdditionalProperties map[string]interface{}
@@ -38,9 +38,10 @@ type _WritableDataSourceRequest WritableDataSourceRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableDataSourceRequest(name string, sourceUrl string) *WritableDataSourceRequest {
+func NewWritableDataSourceRequest(name string, type_ string, sourceUrl string) *WritableDataSourceRequest {
this := WritableDataSourceRequest{}
this.Name = name
+ this.Type = type_
this.SourceUrl = sourceUrl
return &this
}
@@ -77,36 +78,28 @@ func (o *WritableDataSourceRequest) SetName(v string) {
o.Name = v
}
-// GetType returns the Type field value if set, zero value otherwise.
+// GetType returns the Type field value
func (o *WritableDataSourceRequest) GetType() string {
- if o == nil || IsNil(o.Type) {
+ if o == nil {
var ret string
return ret
}
- return *o.Type
+
+ return o.Type
}
-// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
+// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
func (o *WritableDataSourceRequest) GetTypeOk() (*string, bool) {
- if o == nil || IsNil(o.Type) {
+ if o == nil {
return nil, false
}
- return o.Type, true
+ return &o.Type, true
}
-// HasType returns a boolean if a field has been set.
-func (o *WritableDataSourceRequest) HasType() bool {
- if o != nil && !IsNil(o.Type) {
- return true
- }
-
- return false
-}
-
-// SetType gets a reference to the given string and assigns it to the Type field.
+// SetType sets field value
func (o *WritableDataSourceRequest) SetType(v string) {
- o.Type = &v
+ o.Type = v
}
// GetSourceUrl returns the SourceUrl field value
@@ -230,9 +223,9 @@ func (o *WritableDataSourceRequest) SetComments(v string) {
}
// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDataSourceRequest) GetParameters() map[string]interface{} {
+func (o *WritableDataSourceRequest) GetParameters() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.Parameters
@@ -241,11 +234,11 @@ func (o *WritableDataSourceRequest) GetParameters() map[string]interface{} {
// 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 *WritableDataSourceRequest) GetParametersOk() (map[string]interface{}, bool) {
+func (o *WritableDataSourceRequest) GetParametersOk() (*interface{}, bool) {
if o == nil || IsNil(o.Parameters) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Parameters, true
+ return &o.Parameters, true
}
// HasParameters returns a boolean if a field has been set.
@@ -257,8 +250,8 @@ func (o *WritableDataSourceRequest) HasParameters() bool {
return false
}
-// SetParameters gets a reference to the given map[string]interface{} and assigns it to the Parameters field.
-func (o *WritableDataSourceRequest) SetParameters(v map[string]interface{}) {
+// SetParameters gets a reference to the given interface{} and assigns it to the Parameters field.
+func (o *WritableDataSourceRequest) SetParameters(v interface{}) {
o.Parameters = v
}
@@ -305,9 +298,7 @@ func (o WritableDataSourceRequest) MarshalJSON() ([]byte, error) {
func (o WritableDataSourceRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["name"] = o.Name
- if !IsNil(o.Type) {
- toSerialize["type"] = o.Type
- }
+ toSerialize["type"] = o.Type
toSerialize["source_url"] = o.SourceUrl
if !IsNil(o.Enabled) {
toSerialize["enabled"] = o.Enabled
@@ -332,10 +323,33 @@ func (o WritableDataSourceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableDataSourceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableDataSourceRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "source_url",
+ }
+
+ 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)
+ }
+ }
+
varWritableDataSourceRequest := _WritableDataSourceRequest{}
- err = json.Unmarshal(bytes, &varWritableDataSourceRequest)
+ err = json.Unmarshal(data, &varWritableDataSourceRequest)
if err != nil {
return err
@@ -345,7 +359,7 @@ func (o *WritableDataSourceRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "type")
delete(additionalProperties, "source_url")
diff --git a/model_writable_device_bay_request.go b/model_writable_device_bay_request.go
index 60e9ac7722..5b9b3b3b3c 100644
--- a/model_writable_device_bay_request.go
+++ b/model_writable_device_bay_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableDeviceBayRequest type satisfies the MappedNullable interface at compile time
@@ -305,10 +306,32 @@ func (o WritableDeviceBayRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableDeviceBayRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableDeviceBayRequest)
+ err = json.Unmarshal(data, &varWritableDeviceBayRequest)
if err != nil {
return err
@@ -318,7 +341,7 @@ func (o *WritableDeviceBayRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "name")
delete(additionalProperties, "label")
diff --git a/model_writable_device_bay_template_request.go b/model_writable_device_bay_template_request.go
index 2aecc3f1b5..1e2f1e4d67 100644
--- a/model_writable_device_bay_template_request.go
+++ b/model_writable_device_bay_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableDeviceBayTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -187,10 +188,32 @@ func (o WritableDeviceBayTemplateRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *WritableDeviceBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableDeviceBayTemplateRequest)
+ err = json.Unmarshal(data, &varWritableDeviceBayTemplateRequest)
if err != nil {
return err
@@ -200,7 +223,7 @@ func (o *WritableDeviceBayTemplateRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "name")
delete(additionalProperties, "label")
diff --git a/model_writable_device_role_request.go b/model_writable_device_role_request.go
index aff7d74f51..3eb6c2d2c3 100644
--- a/model_writable_device_role_request.go
+++ b/model_writable_device_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableDeviceRoleRequest type satisfies the MappedNullable interface at compile time
@@ -341,10 +342,32 @@ func (o WritableDeviceRoleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableDeviceRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableDeviceRoleRequest)
+ err = json.Unmarshal(data, &varWritableDeviceRoleRequest)
if err != nil {
return err
@@ -354,7 +377,7 @@ func (o *WritableDeviceRoleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "color")
diff --git a/model_writable_device_type_request.go b/model_writable_device_type_request.go
index 203e395673..38654af7e0 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"os"
)
@@ -27,21 +28,20 @@ type WritableDeviceTypeRequest struct {
// Discrete part number (optional)
PartNumber *string `json:"part_number,omitempty"`
UHeight *float64 `json:"u_height,omitempty"`
- // Device consumes both front and rear rack faces
- IsFullDepth *bool `json:"is_full_depth,omitempty"`
- // Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. * `parent` - Parent * `child` - Child
- SubdeviceRole *string `json:"subdevice_role,omitempty"`
- // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed
- Airflow *string `json:"airflow,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
- WeightUnit *string `json:"weight_unit,omitempty"`
- FrontImage **os.File `json:"front_image,omitempty"`
- RearImage **os.File `json:"rear_image,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ // 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"`
AdditionalProperties map[string]interface{}
}
@@ -250,6 +250,38 @@ func (o *WritableDeviceTypeRequest) SetUHeight(v float64) {
o.UHeight = &v
}
+// GetExcludeFromUtilization returns the ExcludeFromUtilization field value if set, zero value otherwise.
+func (o *WritableDeviceTypeRequest) 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 *WritableDeviceTypeRequest) 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 *WritableDeviceTypeRequest) 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 *WritableDeviceTypeRequest) SetExcludeFromUtilization(v bool) {
+ o.ExcludeFromUtilization = &v
+}
+
// GetIsFullDepth returns the IsFullDepth field value if set, zero value otherwise.
func (o *WritableDeviceTypeRequest) GetIsFullDepth() bool {
if o == nil || IsNil(o.IsFullDepth) {
@@ -283,9 +315,9 @@ func (o *WritableDeviceTypeRequest) SetIsFullDepth(v bool) {
}
// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise.
-func (o *WritableDeviceTypeRequest) GetSubdeviceRole() string {
+func (o *WritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus {
if o == nil || IsNil(o.SubdeviceRole) {
- var ret string
+ var ret ParentChildStatus
return ret
}
return *o.SubdeviceRole
@@ -293,7 +325,7 @@ func (o *WritableDeviceTypeRequest) GetSubdeviceRole() string {
// 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() (*string, bool) {
+func (o *WritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus, bool) {
if o == nil || IsNil(o.SubdeviceRole) {
return nil, false
}
@@ -309,15 +341,15 @@ func (o *WritableDeviceTypeRequest) HasSubdeviceRole() bool {
return false
}
-// SetSubdeviceRole gets a reference to the given string and assigns it to the SubdeviceRole field.
-func (o *WritableDeviceTypeRequest) SetSubdeviceRole(v string) {
+// SetSubdeviceRole gets a reference to the given ParentChildStatus and assigns it to the SubdeviceRole field.
+func (o *WritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus) {
o.SubdeviceRole = &v
}
// GetAirflow returns the Airflow field value if set, zero value otherwise.
-func (o *WritableDeviceTypeRequest) GetAirflow() string {
+func (o *WritableDeviceTypeRequest) GetAirflow() DeviceAirflowValue {
if o == nil || IsNil(o.Airflow) {
- var ret string
+ var ret DeviceAirflowValue
return ret
}
return *o.Airflow
@@ -325,7 +357,7 @@ func (o *WritableDeviceTypeRequest) GetAirflow() string {
// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableDeviceTypeRequest) GetAirflowOk() (*string, bool) {
+func (o *WritableDeviceTypeRequest) GetAirflowOk() (*DeviceAirflowValue, bool) {
if o == nil || IsNil(o.Airflow) {
return nil, false
}
@@ -341,8 +373,8 @@ func (o *WritableDeviceTypeRequest) HasAirflow() bool {
return false
}
-// SetAirflow gets a reference to the given string and assigns it to the Airflow field.
-func (o *WritableDeviceTypeRequest) SetAirflow(v string) {
+// SetAirflow gets a reference to the given DeviceAirflowValue and assigns it to the Airflow field.
+func (o *WritableDeviceTypeRequest) SetAirflow(v DeviceAirflowValue) {
o.Airflow = &v
}
@@ -390,9 +422,9 @@ func (o *WritableDeviceTypeRequest) UnsetWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise.
-func (o *WritableDeviceTypeRequest) GetWeightUnit() string {
+func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
if o == nil || IsNil(o.WeightUnit) {
- var ret string
+ var ret DeviceTypeWeightUnitValue
return ret
}
return *o.WeightUnit
@@ -400,7 +432,7 @@ func (o *WritableDeviceTypeRequest) GetWeightUnit() string {
// 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() (*string, bool) {
+func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) {
if o == nil || IsNil(o.WeightUnit) {
return nil, false
}
@@ -416,8 +448,8 @@ func (o *WritableDeviceTypeRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given string and assigns it to the WeightUnit field.
-func (o *WritableDeviceTypeRequest) SetWeightUnit(v string) {
+// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field.
+func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) {
o.WeightUnit = &v
}
@@ -635,6 +667,9 @@ func (o WritableDeviceTypeRequest) ToMap() (map[string]interface{}, error) {
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
}
@@ -676,10 +711,33 @@ func (o WritableDeviceTypeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableDeviceTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableDeviceTypeRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "manufacturer",
+ "model",
+ "slug",
+ }
+
+ 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)
+ }
+ }
+
varWritableDeviceTypeRequest := _WritableDeviceTypeRequest{}
- err = json.Unmarshal(bytes, &varWritableDeviceTypeRequest)
+ err = json.Unmarshal(data, &varWritableDeviceTypeRequest)
if err != nil {
return err
@@ -689,13 +747,14 @@ func (o *WritableDeviceTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ 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")
diff --git a/model_writable_device_with_config_context_request.go b/model_writable_device_with_config_context_request.go
index 1ff32cb964..bdb8a4f12f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableDeviceWithConfigContextRequest type satisfies the MappedNullable interface at compile time
@@ -33,29 +34,26 @@ type WritableDeviceWithConfigContextRequest struct {
Location NullableInt32 `json:"location,omitempty"`
Rack NullableInt32 `json:"rack,omitempty"`
Position NullableFloat64 `json:"position,omitempty"`
- // * `front` - Front * `rear` - Rear
- Face *string `json:"face,omitempty"`
+ Face *RackFace `json:"face,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
Latitude NullableFloat64 `json:"latitude,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
- Longitude NullableFloat64 `json:"longitude,omitempty"`
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed
- Airflow *string `json:"airflow,omitempty"`
- PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"`
- 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 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"`
// 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"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData map[string]interface{} `json:"local_context_data,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -489,9 +487,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPosition() {
}
// GetFace returns the Face field value if set, zero value otherwise.
-func (o *WritableDeviceWithConfigContextRequest) GetFace() string {
+func (o *WritableDeviceWithConfigContextRequest) GetFace() RackFace {
if o == nil || IsNil(o.Face) {
- var ret string
+ var ret RackFace
return ret
}
return *o.Face
@@ -499,7 +497,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetFace() string {
// 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 *WritableDeviceWithConfigContextRequest) GetFaceOk() (*string, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetFaceOk() (*RackFace, bool) {
if o == nil || IsNil(o.Face) {
return nil, false
}
@@ -515,8 +513,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasFace() bool {
return false
}
-// SetFace gets a reference to the given string and assigns it to the Face field.
-func (o *WritableDeviceWithConfigContextRequest) SetFace(v string) {
+// SetFace gets a reference to the given RackFace and assigns it to the Face field.
+func (o *WritableDeviceWithConfigContextRequest) SetFace(v RackFace) {
o.Face = &v
}
@@ -607,9 +605,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetLongitude() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableDeviceWithConfigContextRequest) GetStatus() string {
+func (o *WritableDeviceWithConfigContextRequest) GetStatus() DeviceStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret DeviceStatusValue
return ret
}
return *o.Status
@@ -617,7 +615,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetStatus() string {
// 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 *WritableDeviceWithConfigContextRequest) GetStatusOk() (*string, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetStatusOk() (*DeviceStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -633,15 +631,15 @@ func (o *WritableDeviceWithConfigContextRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritableDeviceWithConfigContextRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given DeviceStatusValue and assigns it to the Status field.
+func (o *WritableDeviceWithConfigContextRequest) SetStatus(v DeviceStatusValue) {
o.Status = &v
}
// GetAirflow returns the Airflow field value if set, zero value otherwise.
-func (o *WritableDeviceWithConfigContextRequest) GetAirflow() string {
+func (o *WritableDeviceWithConfigContextRequest) GetAirflow() DeviceAirflowValue {
if o == nil || IsNil(o.Airflow) {
- var ret string
+ var ret DeviceAirflowValue
return ret
}
return *o.Airflow
@@ -649,7 +647,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetAirflow() string {
// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableDeviceWithConfigContextRequest) GetAirflowOk() (*string, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceAirflowValue, bool) {
if o == nil || IsNil(o.Airflow) {
return nil, false
}
@@ -665,8 +663,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasAirflow() bool {
return false
}
-// SetAirflow gets a reference to the given string and assigns it to the Airflow field.
-func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v string) {
+// SetAirflow gets a reference to the given DeviceAirflowValue and assigns it to the Airflow field.
+func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue) {
o.Airflow = &v
}
@@ -1079,9 +1077,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetConfigTemplate() {
}
// GetLocalContextData returns the LocalContextData field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDeviceWithConfigContextRequest) GetLocalContextData() map[string]interface{} {
+func (o *WritableDeviceWithConfigContextRequest) GetLocalContextData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.LocalContextData
@@ -1090,11 +1088,11 @@ func (o *WritableDeviceWithConfigContextRequest) GetLocalContextData() map[strin
// GetLocalContextDataOk returns a tuple with the LocalContextData field value if set, nil otherwise
// and a 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) GetLocalContextDataOk() (map[string]interface{}, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetLocalContextDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.LocalContextData) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.LocalContextData, true
+ return &o.LocalContextData, true
}
// HasLocalContextData returns a boolean if a field has been set.
@@ -1106,8 +1104,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasLocalContextData() bool {
return false
}
-// SetLocalContextData gets a reference to the given map[string]interface{} and assigns it to the LocalContextData field.
-func (o *WritableDeviceWithConfigContextRequest) SetLocalContextData(v map[string]interface{}) {
+// SetLocalContextData gets a reference to the given interface{} and assigns it to the LocalContextData field.
+func (o *WritableDeviceWithConfigContextRequest) SetLocalContextData(v interface{}) {
o.LocalContextData = v
}
@@ -1274,10 +1272,33 @@ func (o WritableDeviceWithConfigContextRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *WritableDeviceWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableDeviceWithConfigContextRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "role",
+ "site",
+ }
+
+ 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)
+ }
+ }
+
varWritableDeviceWithConfigContextRequest := _WritableDeviceWithConfigContextRequest{}
- err = json.Unmarshal(bytes, &varWritableDeviceWithConfigContextRequest)
+ err = json.Unmarshal(data, &varWritableDeviceWithConfigContextRequest)
if err != nil {
return err
@@ -1287,7 +1308,7 @@ func (o *WritableDeviceWithConfigContextRequest) UnmarshalJSON(bytes []byte) (er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "device_type")
delete(additionalProperties, "role")
diff --git a/model_writable_event_rule_request.go b/model_writable_event_rule_request.go
new file mode 100644
index 0000000000..3fa34f8210
--- /dev/null
+++ b/model_writable_event_rule_request.go
@@ -0,0 +1,686 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WritableEventRuleRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WritableEventRuleRequest{}
+
+// WritableEventRuleRequest Adds support for custom fields and tags.
+type WritableEventRuleRequest struct {
+ ContentTypes []string `json:"content_types"`
+ Name string `json:"name"`
+ // Triggers when a matching object is created.
+ TypeCreate *bool `json:"type_create,omitempty"`
+ // Triggers when a matching object is updated.
+ TypeUpdate *bool `json:"type_update,omitempty"`
+ // Triggers when a matching object is deleted.
+ TypeDelete *bool `json:"type_delete,omitempty"`
+ // Triggers when a job for a matching object is started.
+ TypeJobStart *bool `json:"type_job_start,omitempty"`
+ // Triggers when a job for a matching object terminates.
+ TypeJobEnd *bool `json:"type_job_end,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ // A set of conditions which determine whether the event will be generated.
+ Conditions interface{} `json:"conditions,omitempty"`
+ ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"`
+ ActionObjectType string `json:"action_object_type"`
+ ActionObjectId NullableInt64 `json:"action_object_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WritableEventRuleRequest WritableEventRuleRequest
+
+// NewWritableEventRuleRequest instantiates a new WritableEventRuleRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWritableEventRuleRequest(contentTypes []string, name string, actionObjectType string) *WritableEventRuleRequest {
+ this := WritableEventRuleRequest{}
+ this.ContentTypes = contentTypes
+ this.Name = name
+ this.ActionObjectType = actionObjectType
+ return &this
+}
+
+// NewWritableEventRuleRequestWithDefaults instantiates a new WritableEventRuleRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWritableEventRuleRequestWithDefaults() *WritableEventRuleRequest {
+ this := WritableEventRuleRequest{}
+ return &this
+}
+
+// GetContentTypes returns the ContentTypes field value
+func (o *WritableEventRuleRequest) 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 *WritableEventRuleRequest) GetContentTypesOk() ([]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ContentTypes, true
+}
+
+// SetContentTypes sets field value
+func (o *WritableEventRuleRequest) SetContentTypes(v []string) {
+ o.ContentTypes = v
+}
+
+// GetName returns the Name field value
+func (o *WritableEventRuleRequest) 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 *WritableEventRuleRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *WritableEventRuleRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise.
+func (o *WritableEventRuleRequest) GetTypeCreate() bool {
+ if o == nil || IsNil(o.TypeCreate) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeCreate
+}
+
+// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableEventRuleRequest) GetTypeCreateOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeCreate) {
+ return nil, false
+ }
+ return o.TypeCreate, true
+}
+
+// HasTypeCreate returns a boolean if a field has been set.
+func (o *WritableEventRuleRequest) HasTypeCreate() bool {
+ if o != nil && !IsNil(o.TypeCreate) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field.
+func (o *WritableEventRuleRequest) SetTypeCreate(v bool) {
+ o.TypeCreate = &v
+}
+
+// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise.
+func (o *WritableEventRuleRequest) GetTypeUpdate() bool {
+ if o == nil || IsNil(o.TypeUpdate) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeUpdate
+}
+
+// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeUpdate) {
+ return nil, false
+ }
+ return o.TypeUpdate, true
+}
+
+// HasTypeUpdate returns a boolean if a field has been set.
+func (o *WritableEventRuleRequest) HasTypeUpdate() bool {
+ if o != nil && !IsNil(o.TypeUpdate) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field.
+func (o *WritableEventRuleRequest) SetTypeUpdate(v bool) {
+ o.TypeUpdate = &v
+}
+
+// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise.
+func (o *WritableEventRuleRequest) GetTypeDelete() bool {
+ if o == nil || IsNil(o.TypeDelete) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeDelete
+}
+
+// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeDelete) {
+ return nil, false
+ }
+ return o.TypeDelete, true
+}
+
+// HasTypeDelete returns a boolean if a field has been set.
+func (o *WritableEventRuleRequest) HasTypeDelete() bool {
+ if o != nil && !IsNil(o.TypeDelete) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field.
+func (o *WritableEventRuleRequest) SetTypeDelete(v bool) {
+ o.TypeDelete = &v
+}
+
+// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise.
+func (o *WritableEventRuleRequest) GetTypeJobStart() bool {
+ if o == nil || IsNil(o.TypeJobStart) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeJobStart
+}
+
+// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeJobStart) {
+ return nil, false
+ }
+ return o.TypeJobStart, true
+}
+
+// HasTypeJobStart returns a boolean if a field has been set.
+func (o *WritableEventRuleRequest) HasTypeJobStart() bool {
+ if o != nil && !IsNil(o.TypeJobStart) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field.
+func (o *WritableEventRuleRequest) SetTypeJobStart(v bool) {
+ o.TypeJobStart = &v
+}
+
+// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise.
+func (o *WritableEventRuleRequest) GetTypeJobEnd() bool {
+ if o == nil || IsNil(o.TypeJobEnd) {
+ var ret bool
+ return ret
+ }
+ return *o.TypeJobEnd
+}
+
+// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool) {
+ if o == nil || IsNil(o.TypeJobEnd) {
+ return nil, false
+ }
+ return o.TypeJobEnd, true
+}
+
+// HasTypeJobEnd returns a boolean if a field has been set.
+func (o *WritableEventRuleRequest) HasTypeJobEnd() bool {
+ if o != nil && !IsNil(o.TypeJobEnd) {
+ return true
+ }
+
+ return false
+}
+
+// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field.
+func (o *WritableEventRuleRequest) SetTypeJobEnd(v bool) {
+ o.TypeJobEnd = &v
+}
+
+// GetEnabled returns the Enabled field value if set, zero value otherwise.
+func (o *WritableEventRuleRequest) GetEnabled() bool {
+ 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 *WritableEventRuleRequest) 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 *WritableEventRuleRequest) 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 *WritableEventRuleRequest) SetEnabled(v bool) {
+ o.Enabled = &v
+}
+
+// GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableEventRuleRequest) GetConditions() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.Conditions
+}
+
+// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *WritableEventRuleRequest) GetConditionsOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Conditions) {
+ return nil, false
+ }
+ return &o.Conditions, true
+}
+
+// HasConditions returns a boolean if a field has been set.
+func (o *WritableEventRuleRequest) HasConditions() bool {
+ if o != nil && IsNil(o.Conditions) {
+ return true
+ }
+
+ return false
+}
+
+// SetConditions gets a reference to the given interface{} and assigns it to the Conditions field.
+func (o *WritableEventRuleRequest) SetConditions(v interface{}) {
+ o.Conditions = v
+}
+
+// GetActionType returns the ActionType field value if set, zero value otherwise.
+func (o *WritableEventRuleRequest) GetActionType() EventRuleActionTypeValue {
+ if o == nil || IsNil(o.ActionType) {
+ var ret EventRuleActionTypeValue
+ return ret
+ }
+ return *o.ActionType
+}
+
+// GetActionTypeOk returns a tuple with the ActionType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableEventRuleRequest) GetActionTypeOk() (*EventRuleActionTypeValue, bool) {
+ if o == nil || IsNil(o.ActionType) {
+ return nil, false
+ }
+ return o.ActionType, true
+}
+
+// HasActionType returns a boolean if a field has been set.
+func (o *WritableEventRuleRequest) HasActionType() bool {
+ if o != nil && !IsNil(o.ActionType) {
+ return true
+ }
+
+ return false
+}
+
+// SetActionType gets a reference to the given EventRuleActionTypeValue and assigns it to the ActionType field.
+func (o *WritableEventRuleRequest) SetActionType(v EventRuleActionTypeValue) {
+ o.ActionType = &v
+}
+
+// GetActionObjectType returns the ActionObjectType field value
+func (o *WritableEventRuleRequest) GetActionObjectType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ActionObjectType
+}
+
+// GetActionObjectTypeOk returns a tuple with the ActionObjectType field value
+// and a boolean to check if the value has been set.
+func (o *WritableEventRuleRequest) GetActionObjectTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ActionObjectType, true
+}
+
+// SetActionObjectType sets field value
+func (o *WritableEventRuleRequest) SetActionObjectType(v string) {
+ o.ActionObjectType = v
+}
+
+// GetActionObjectId returns the ActionObjectId field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableEventRuleRequest) GetActionObjectId() int64 {
+ if o == nil || IsNil(o.ActionObjectId.Get()) {
+ var ret int64
+ return ret
+ }
+ return *o.ActionObjectId.Get()
+}
+
+// GetActionObjectIdOk returns a tuple with the ActionObjectId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *WritableEventRuleRequest) GetActionObjectIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ActionObjectId.Get(), o.ActionObjectId.IsSet()
+}
+
+// HasActionObjectId returns a boolean if a field has been set.
+func (o *WritableEventRuleRequest) HasActionObjectId() bool {
+ if o != nil && o.ActionObjectId.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetActionObjectId gets a reference to the given NullableInt64 and assigns it to the ActionObjectId field.
+func (o *WritableEventRuleRequest) SetActionObjectId(v int64) {
+ o.ActionObjectId.Set(&v)
+}
+
+// SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil
+func (o *WritableEventRuleRequest) SetActionObjectIdNil() {
+ o.ActionObjectId.Set(nil)
+}
+
+// UnsetActionObjectId ensures that no value is present for ActionObjectId, not even an explicit nil
+func (o *WritableEventRuleRequest) UnsetActionObjectId() {
+ o.ActionObjectId.Unset()
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *WritableEventRuleRequest) 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 *WritableEventRuleRequest) 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 *WritableEventRuleRequest) 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 *WritableEventRuleRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *WritableEventRuleRequest) 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 *WritableEventRuleRequest) 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 *WritableEventRuleRequest) 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 *WritableEventRuleRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *WritableEventRuleRequest) 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 *WritableEventRuleRequest) 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 *WritableEventRuleRequest) 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 *WritableEventRuleRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+func (o WritableEventRuleRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WritableEventRuleRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["content_types"] = o.ContentTypes
+ toSerialize["name"] = o.Name
+ if !IsNil(o.TypeCreate) {
+ toSerialize["type_create"] = o.TypeCreate
+ }
+ if !IsNil(o.TypeUpdate) {
+ toSerialize["type_update"] = o.TypeUpdate
+ }
+ if !IsNil(o.TypeDelete) {
+ toSerialize["type_delete"] = o.TypeDelete
+ }
+ if !IsNil(o.TypeJobStart) {
+ toSerialize["type_job_start"] = o.TypeJobStart
+ }
+ if !IsNil(o.TypeJobEnd) {
+ toSerialize["type_job_end"] = o.TypeJobEnd
+ }
+ if !IsNil(o.Enabled) {
+ toSerialize["enabled"] = o.Enabled
+ }
+ if o.Conditions != nil {
+ toSerialize["conditions"] = o.Conditions
+ }
+ if !IsNil(o.ActionType) {
+ toSerialize["action_type"] = o.ActionType
+ }
+ toSerialize["action_object_type"] = o.ActionObjectType
+ if o.ActionObjectId.IsSet() {
+ toSerialize["action_object_id"] = o.ActionObjectId.Get()
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "action_object_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)
+ }
+ }
+
+ varWritableEventRuleRequest := _WritableEventRuleRequest{}
+
+ err = json.Unmarshal(data, &varWritableEventRuleRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WritableEventRuleRequest(varWritableEventRuleRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "content_types")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "type_create")
+ delete(additionalProperties, "type_update")
+ delete(additionalProperties, "type_delete")
+ delete(additionalProperties, "type_job_start")
+ delete(additionalProperties, "type_job_end")
+ delete(additionalProperties, "enabled")
+ delete(additionalProperties, "conditions")
+ delete(additionalProperties, "action_type")
+ delete(additionalProperties, "action_object_type")
+ delete(additionalProperties, "action_object_id")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "tags")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWritableEventRuleRequest struct {
+ value *WritableEventRuleRequest
+ isSet bool
+}
+
+func (v NullableWritableEventRuleRequest) Get() *WritableEventRuleRequest {
+ return v.value
+}
+
+func (v *NullableWritableEventRuleRequest) Set(val *WritableEventRuleRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWritableEventRuleRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWritableEventRuleRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWritableEventRuleRequest(val *WritableEventRuleRequest) *NullableWritableEventRuleRequest {
+ return &NullableWritableEventRuleRequest{value: val, isSet: true}
+}
+
+func (v NullableWritableEventRuleRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWritableEventRuleRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_writable_export_template_request.go b/model_writable_export_template_request.go
index 981a160a56..f4b96f21c5 100644
--- a/model_writable_export_template_request.go
+++ b/model_writable_export_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableExportTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -336,10 +337,33 @@ func (o WritableExportTemplateRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableExportTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableExportTemplateRequest)
+ err = json.Unmarshal(data, &varWritableExportTemplateRequest)
if err != nil {
return err
@@ -349,7 +373,7 @@ func (o *WritableExportTemplateRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "content_types")
delete(additionalProperties, "name")
delete(additionalProperties, "description")
diff --git a/model_writable_fhrp_group_assignment_request.go b/model_writable_fhrp_group_assignment_request.go
index 1c1603da56..22e1b7e599 100644
--- a/model_writable_fhrp_group_assignment_request.go
+++ b/model_writable_fhrp_group_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableFHRPGroupAssignmentRequest type satisfies the MappedNullable interface at compile time
@@ -167,10 +168,34 @@ func (o WritableFHRPGroupAssignmentRequest) ToMap() (map[string]interface{}, err
return toSerialize, nil
}
-func (o *WritableFHRPGroupAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableFHRPGroupAssignmentRequest)
+ err = json.Unmarshal(data, &varWritableFHRPGroupAssignmentRequest)
if err != nil {
return err
@@ -180,7 +205,7 @@ func (o *WritableFHRPGroupAssignmentRequest) UnmarshalJSON(bytes []byte) (err er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "group")
delete(additionalProperties, "interface_type")
delete(additionalProperties, "interface_id")
diff --git a/model_writable_front_port_request.go b/model_writable_front_port_request.go
index 8975867671..00521cf7c3 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableFrontPortRequest type satisfies the MappedNullable interface at compile time
@@ -23,11 +24,10 @@ type WritableFrontPortRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
- Type string `json:"type"`
- Color *string `json:"color,omitempty"`
- RearPort int32 `json:"rear_port"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
+ Color *string `json:"color,omitempty"`
+ RearPort int32 `json:"rear_port"`
// Mapped position on corresponding rear port
RearPortPosition *int32 `json:"rear_port_position,omitempty"`
Description *string `json:"description,omitempty"`
@@ -44,7 +44,7 @@ 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_ string, rearPort int32) *WritableFrontPortRequest {
+func NewWritableFrontPortRequest(device int32, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest {
this := WritableFrontPortRequest{}
this.Device = device
this.Name = name
@@ -185,9 +185,9 @@ func (o *WritableFrontPortRequest) SetLabel(v string) {
}
// GetType returns the Type field value
-func (o *WritableFrontPortRequest) GetType() string {
+func (o *WritableFrontPortRequest) GetType() FrontPortTypeValue {
if o == nil {
- var ret string
+ var ret FrontPortTypeValue
return ret
}
@@ -196,7 +196,7 @@ func (o *WritableFrontPortRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *WritableFrontPortRequest) GetTypeOk() (*string, bool) {
+func (o *WritableFrontPortRequest) GetTypeOk() (*FrontPortTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -204,7 +204,7 @@ func (o *WritableFrontPortRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *WritableFrontPortRequest) SetType(v string) {
+func (o *WritableFrontPortRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
@@ -470,10 +470,34 @@ func (o WritableFrontPortRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableFrontPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableFrontPortRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "rear_port",
+ }
+
+ 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)
+ }
+ }
+
varWritableFrontPortRequest := _WritableFrontPortRequest{}
- err = json.Unmarshal(bytes, &varWritableFrontPortRequest)
+ err = json.Unmarshal(data, &varWritableFrontPortRequest)
if err != nil {
return err
@@ -483,7 +507,7 @@ func (o *WritableFrontPortRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_writable_front_port_template_request.go b/model_writable_front_port_template_request.go
index 2bc0b97c72..1aae7accdf 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableFrontPortTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,13 +25,12 @@ type WritableFrontPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
- Type string `json:"type"`
- Color *string `json:"color,omitempty"`
- RearPort int32 `json:"rear_port"`
- RearPortPosition *int32 `json:"rear_port_position,omitempty"`
- Description *string `json:"description,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +40,7 @@ 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_ string, rearPort int32) *WritableFrontPortTemplateRequest {
+func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortTemplateRequest {
this := WritableFrontPortTemplateRequest{}
this.Name = name
this.Type = type_
@@ -199,9 +199,9 @@ func (o *WritableFrontPortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value
-func (o *WritableFrontPortTemplateRequest) GetType() string {
+func (o *WritableFrontPortTemplateRequest) GetType() FrontPortTypeValue {
if o == nil {
- var ret string
+ var ret FrontPortTypeValue
return ret
}
@@ -210,7 +210,7 @@ func (o *WritableFrontPortTemplateRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *WritableFrontPortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *WritableFrontPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -218,7 +218,7 @@ func (o *WritableFrontPortTemplateRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *WritableFrontPortTemplateRequest) SetType(v string) {
+func (o *WritableFrontPortTemplateRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
@@ -381,10 +381,33 @@ func (o WritableFrontPortTemplateRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *WritableFrontPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableFrontPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "type",
+ "rear_port",
+ }
+
+ 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)
+ }
+ }
+
varWritableFrontPortTemplateRequest := _WritableFrontPortTemplateRequest{}
- err = json.Unmarshal(bytes, &varWritableFrontPortTemplateRequest)
+ err = json.Unmarshal(data, &varWritableFrontPortTemplateRequest)
if err != nil {
return err
@@ -394,7 +417,7 @@ func (o *WritableFrontPortTemplateRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_writable_ike_policy_request.go b/model_writable_ike_policy_request.go
new file mode 100644
index 0000000000..34148160bd
--- /dev/null
+++ b/model_writable_ike_policy_request.go
@@ -0,0 +1,446 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WritableIKEPolicyRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WritableIKEPolicyRequest{}
+
+// WritableIKEPolicyRequest Adds support for custom fields and tags.
+type WritableIKEPolicyRequest struct {
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Version *PatchedWritableIKEPolicyRequestVersion `json:"version,omitempty"`
+ Mode IKEPolicyModeValue `json:"mode"`
+ Proposals []int32 `json:"proposals"`
+ PresharedKey *string `json:"preshared_key,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WritableIKEPolicyRequest WritableIKEPolicyRequest
+
+// NewWritableIKEPolicyRequest instantiates a new WritableIKEPolicyRequest object
+// This constructor will assign default values to properties that have it defined,
+// and 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, mode IKEPolicyModeValue, proposals []int32) *WritableIKEPolicyRequest {
+ this := WritableIKEPolicyRequest{}
+ this.Name = name
+ this.Mode = mode
+ this.Proposals = proposals
+ return &this
+}
+
+// NewWritableIKEPolicyRequestWithDefaults instantiates a new WritableIKEPolicyRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWritableIKEPolicyRequestWithDefaults() *WritableIKEPolicyRequest {
+ this := WritableIKEPolicyRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *WritableIKEPolicyRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *WritableIKEPolicyRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetVersion returns the Version field value if set, zero value otherwise.
+func (o *WritableIKEPolicyRequest) GetVersion() PatchedWritableIKEPolicyRequestVersion {
+ if o == nil || IsNil(o.Version) {
+ var ret PatchedWritableIKEPolicyRequestVersion
+ return ret
+ }
+ return *o.Version
+}
+
+// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableIKEPolicyRequest) GetVersionOk() (*PatchedWritableIKEPolicyRequestVersion, bool) {
+ if o == nil || IsNil(o.Version) {
+ return nil, false
+ }
+ return o.Version, true
+}
+
+// HasVersion returns a boolean if a field has been set.
+func (o *WritableIKEPolicyRequest) HasVersion() bool {
+ if o != nil && !IsNil(o.Version) {
+ return true
+ }
+
+ return false
+}
+
+// SetVersion gets a reference to the given PatchedWritableIKEPolicyRequestVersion and assigns it to the Version field.
+func (o *WritableIKEPolicyRequest) SetVersion(v PatchedWritableIKEPolicyRequestVersion) {
+ o.Version = &v
+}
+
+// GetMode returns the Mode field value
+func (o *WritableIKEPolicyRequest) GetMode() IKEPolicyModeValue {
+ if o == nil {
+ var ret IKEPolicyModeValue
+ return ret
+ }
+
+ return o.Mode
+}
+
+// GetModeOk returns a tuple with the Mode field value
+// and a boolean to check if the value has been set.
+func (o *WritableIKEPolicyRequest) GetModeOk() (*IKEPolicyModeValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Mode, true
+}
+
+// SetMode sets field value
+func (o *WritableIKEPolicyRequest) SetMode(v IKEPolicyModeValue) {
+ o.Mode = v
+}
+
+// GetProposals returns the Proposals field value
+func (o *WritableIKEPolicyRequest) GetProposals() []int32 {
+ if o == nil {
+ var ret []int32
+ return ret
+ }
+
+ return o.Proposals
+}
+
+// GetProposalsOk returns a tuple with the Proposals field value
+// and a boolean to check if the value has been set.
+func (o *WritableIKEPolicyRequest) GetProposalsOk() ([]int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Proposals, true
+}
+
+// SetProposals sets field value
+func (o *WritableIKEPolicyRequest) SetProposals(v []int32) {
+ o.Proposals = v
+}
+
+// GetPresharedKey returns the PresharedKey field value if set, zero value otherwise.
+func (o *WritableIKEPolicyRequest) GetPresharedKey() string {
+ if o == nil || IsNil(o.PresharedKey) {
+ var ret string
+ return ret
+ }
+ return *o.PresharedKey
+}
+
+// GetPresharedKeyOk returns a tuple with the PresharedKey field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableIKEPolicyRequest) GetPresharedKeyOk() (*string, bool) {
+ if o == nil || IsNil(o.PresharedKey) {
+ return nil, false
+ }
+ return o.PresharedKey, true
+}
+
+// HasPresharedKey returns a boolean if a field has been set.
+func (o *WritableIKEPolicyRequest) HasPresharedKey() bool {
+ if o != nil && !IsNil(o.PresharedKey) {
+ return true
+ }
+
+ return false
+}
+
+// SetPresharedKey gets a reference to the given string and assigns it to the PresharedKey field.
+func (o *WritableIKEPolicyRequest) SetPresharedKey(v string) {
+ o.PresharedKey = &v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) 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 *WritableIKEPolicyRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o WritableIKEPolicyRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WritableIKEPolicyRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.Version) {
+ toSerialize["version"] = o.Version
+ }
+ toSerialize["mode"] = o.Mode
+ toSerialize["proposals"] = o.Proposals
+ if !IsNil(o.PresharedKey) {
+ toSerialize["preshared_key"] = o.PresharedKey
+ }
+ 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 *WritableIKEPolicyRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "mode",
+ "proposals",
+ }
+
+ 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)
+ }
+ }
+
+ varWritableIKEPolicyRequest := _WritableIKEPolicyRequest{}
+
+ err = json.Unmarshal(data, &varWritableIKEPolicyRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WritableIKEPolicyRequest(varWritableIKEPolicyRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "version")
+ delete(additionalProperties, "mode")
+ delete(additionalProperties, "proposals")
+ delete(additionalProperties, "preshared_key")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWritableIKEPolicyRequest struct {
+ value *WritableIKEPolicyRequest
+ isSet bool
+}
+
+func (v NullableWritableIKEPolicyRequest) Get() *WritableIKEPolicyRequest {
+ return v.value
+}
+
+func (v *NullableWritableIKEPolicyRequest) Set(val *WritableIKEPolicyRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWritableIKEPolicyRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWritableIKEPolicyRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWritableIKEPolicyRequest(val *WritableIKEPolicyRequest) *NullableWritableIKEPolicyRequest {
+ return &NullableWritableIKEPolicyRequest{value: val, isSet: true}
+}
+
+func (v NullableWritableIKEPolicyRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWritableIKEPolicyRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_writable_ike_proposal_request.go b/model_writable_ike_proposal_request.go
new file mode 100644
index 0000000000..8fad866c56
--- /dev/null
+++ b/model_writable_ike_proposal_request.go
@@ -0,0 +1,487 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WritableIKEProposalRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WritableIKEProposalRequest{}
+
+// WritableIKEProposalRequest Adds support for custom fields and tags.
+type WritableIKEProposalRequest struct {
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"`
+ EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"`
+ AuthenticationAlgorithm *PatchedWritableIKEProposalRequestAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"`
+ Group PatchedWritableIKEProposalRequestGroup `json:"group"`
+ // Security association lifetime (in seconds)
+ SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WritableIKEProposalRequest WritableIKEProposalRequest
+
+// NewWritableIKEProposalRequest instantiates a new WritableIKEProposalRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWritableIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, group PatchedWritableIKEProposalRequestGroup) *WritableIKEProposalRequest {
+ this := WritableIKEProposalRequest{}
+ this.Name = name
+ this.AuthenticationMethod = authenticationMethod
+ this.EncryptionAlgorithm = encryptionAlgorithm
+ this.Group = group
+ return &this
+}
+
+// NewWritableIKEProposalRequestWithDefaults instantiates a new WritableIKEProposalRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWritableIKEProposalRequestWithDefaults() *WritableIKEProposalRequest {
+ this := WritableIKEProposalRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *WritableIKEProposalRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *WritableIKEProposalRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetAuthenticationMethod returns the AuthenticationMethod field value
+func (o *WritableIKEProposalRequest) GetAuthenticationMethod() IKEProposalAuthenticationMethodValue {
+ if o == nil {
+ var ret IKEProposalAuthenticationMethodValue
+ return ret
+ }
+
+ return o.AuthenticationMethod
+}
+
+// GetAuthenticationMethodOk returns a tuple with the AuthenticationMethod field value
+// and a boolean to check if the value has been set.
+func (o *WritableIKEProposalRequest) GetAuthenticationMethodOk() (*IKEProposalAuthenticationMethodValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.AuthenticationMethod, true
+}
+
+// SetAuthenticationMethod sets field value
+func (o *WritableIKEProposalRequest) SetAuthenticationMethod(v IKEProposalAuthenticationMethodValue) {
+ o.AuthenticationMethod = v
+}
+
+// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value
+func (o *WritableIKEProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue {
+ if o == nil {
+ var ret IKEProposalEncryptionAlgorithmValue
+ return ret
+ }
+
+ return o.EncryptionAlgorithm
+}
+
+// GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value
+// and a boolean to check if the value has been set.
+func (o *WritableIKEProposalRequest) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithmValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.EncryptionAlgorithm, true
+}
+
+// SetEncryptionAlgorithm sets field value
+func (o *WritableIKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithmValue) {
+ o.EncryptionAlgorithm = v
+}
+
+// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise.
+func (o *WritableIKEProposalRequest) GetAuthenticationAlgorithm() PatchedWritableIKEProposalRequestAuthenticationAlgorithm {
+ if o == nil || IsNil(o.AuthenticationAlgorithm) {
+ var ret PatchedWritableIKEProposalRequestAuthenticationAlgorithm
+ return ret
+ }
+ return *o.AuthenticationAlgorithm
+}
+
+// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableIKEProposalRequest) GetAuthenticationAlgorithmOk() (*PatchedWritableIKEProposalRequestAuthenticationAlgorithm, bool) {
+ if o == nil || IsNil(o.AuthenticationAlgorithm) {
+ return nil, false
+ }
+ return o.AuthenticationAlgorithm, true
+}
+
+// HasAuthenticationAlgorithm returns a boolean if a field has been set.
+func (o *WritableIKEProposalRequest) HasAuthenticationAlgorithm() bool {
+ if o != nil && !IsNil(o.AuthenticationAlgorithm) {
+ return true
+ }
+
+ return false
+}
+
+// SetAuthenticationAlgorithm gets a reference to the given PatchedWritableIKEProposalRequestAuthenticationAlgorithm and assigns it to the AuthenticationAlgorithm field.
+func (o *WritableIKEProposalRequest) SetAuthenticationAlgorithm(v PatchedWritableIKEProposalRequestAuthenticationAlgorithm) {
+ o.AuthenticationAlgorithm = &v
+}
+
+// GetGroup returns the Group field value
+func (o *WritableIKEProposalRequest) GetGroup() PatchedWritableIKEProposalRequestGroup {
+ if o == nil {
+ var ret PatchedWritableIKEProposalRequestGroup
+ 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 *WritableIKEProposalRequest) GetGroupOk() (*PatchedWritableIKEProposalRequestGroup, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Group, true
+}
+
+// SetGroup sets field value
+func (o *WritableIKEProposalRequest) SetGroup(v PatchedWritableIKEProposalRequestGroup) {
+ o.Group = v
+}
+
+// GetSaLifetime returns the SaLifetime field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableIKEProposalRequest) GetSaLifetime() int32 {
+ if o == nil || IsNil(o.SaLifetime.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.SaLifetime.Get()
+}
+
+// GetSaLifetimeOk returns a tuple with the SaLifetime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *WritableIKEProposalRequest) GetSaLifetimeOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SaLifetime.Get(), o.SaLifetime.IsSet()
+}
+
+// HasSaLifetime returns a boolean if a field has been set.
+func (o *WritableIKEProposalRequest) HasSaLifetime() bool {
+ if o != nil && o.SaLifetime.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSaLifetime gets a reference to the given NullableInt32 and assigns it to the SaLifetime field.
+func (o *WritableIKEProposalRequest) SetSaLifetime(v int32) {
+ o.SaLifetime.Set(&v)
+}
+
+// SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil
+func (o *WritableIKEProposalRequest) SetSaLifetimeNil() {
+ o.SaLifetime.Set(nil)
+}
+
+// UnsetSaLifetime ensures that no value is present for SaLifetime, not even an explicit nil
+func (o *WritableIKEProposalRequest) UnsetSaLifetime() {
+ o.SaLifetime.Unset()
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) 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 *WritableIKEProposalRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o WritableIKEProposalRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WritableIKEProposalRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["authentication_method"] = o.AuthenticationMethod
+ toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm
+ if !IsNil(o.AuthenticationAlgorithm) {
+ toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm
+ }
+ toSerialize["group"] = o.Group
+ if o.SaLifetime.IsSet() {
+ toSerialize["sa_lifetime"] = o.SaLifetime.Get()
+ }
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WritableIKEProposalRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "authentication_method",
+ "encryption_algorithm",
+ "group",
+ }
+
+ 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)
+ }
+ }
+
+ varWritableIKEProposalRequest := _WritableIKEProposalRequest{}
+
+ err = json.Unmarshal(data, &varWritableIKEProposalRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WritableIKEProposalRequest(varWritableIKEProposalRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "authentication_method")
+ delete(additionalProperties, "encryption_algorithm")
+ delete(additionalProperties, "authentication_algorithm")
+ delete(additionalProperties, "group")
+ delete(additionalProperties, "sa_lifetime")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWritableIKEProposalRequest struct {
+ value *WritableIKEProposalRequest
+ isSet bool
+}
+
+func (v NullableWritableIKEProposalRequest) Get() *WritableIKEProposalRequest {
+ return v.value
+}
+
+func (v *NullableWritableIKEProposalRequest) Set(val *WritableIKEProposalRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWritableIKEProposalRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWritableIKEProposalRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWritableIKEProposalRequest(val *WritableIKEProposalRequest) *NullableWritableIKEProposalRequest {
+ return &NullableWritableIKEProposalRequest{value: val, isSet: true}
+}
+
+func (v NullableWritableIKEProposalRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWritableIKEProposalRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_writable_interface_request.go b/model_writable_interface_request.go
index 4a4ca1a09a..6b0cf6a927 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableInterfaceRequest type satisfies the MappedNullable interface at compile time
@@ -24,32 +25,25 @@ type WritableInterfaceRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other
- Type string `json:"type"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Bridge NullableInt32 `json:"bridge,omitempty"`
- Lag NullableInt32 `json:"lag,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- MacAddress NullableString `json:"mac_address,omitempty"`
- Speed NullableInt32 `json:"speed,omitempty"`
- // * `half` - Half * `full` - Full * `auto` - Auto
- Duplex NullableString `json:"duplex,omitempty"`
- Wwn NullableString `json:"wwn,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type InterfaceTypeValue `json:"type"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Bridge NullableInt32 `json:"bridge,omitempty"`
+ Lag NullableInt32 `json:"lag,omitempty"`
+ Mtu NullableInt32 `json:"mtu,omitempty"`
+ MacAddress NullableString `json:"mac_address,omitempty"`
+ Speed NullableInt32 `json:"speed,omitempty"`
+ Duplex NullableInterfaceRequestDuplex `json:"duplex,omitempty"`
+ Wwn NullableString `json:"wwn,omitempty"`
// This interface is used only for out-of-band management
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- // IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All)
- Mode *string `json:"mode,omitempty"`
- // * `ap` - Access point * `station` - Station
- RfRole *string `json:"rf_role,omitempty"`
- // * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)
- RfChannel *string `json:"rf_channel,omitempty"`
- // * `pd` - PD * `pse` - PSE
- PoeMode *string `json:"poe_mode,omitempty"`
- // * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair)
- PoeType *string `json:"poe_type,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
+ RfRole *WirelessRole `json:"rf_role,omitempty"`
+ RfChannel *WirelessChannel `json:"rf_channel,omitempty"`
+ PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"`
+ PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"`
// Populated by selected channel (if set)
RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"`
// Populated by selected channel (if set)
@@ -72,7 +66,7 @@ type _WritableInterfaceRequest WritableInterfaceRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableInterfaceRequest(device int32, vdcs []int32, name string, type_ string) *WritableInterfaceRequest {
+func NewWritableInterfaceRequest(device int32, vdcs []int32, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest {
this := WritableInterfaceRequest{}
this.Device = device
this.Vdcs = vdcs
@@ -237,9 +231,9 @@ func (o *WritableInterfaceRequest) SetLabel(v string) {
}
// GetType returns the Type field value
-func (o *WritableInterfaceRequest) GetType() string {
+func (o *WritableInterfaceRequest) GetType() InterfaceTypeValue {
if o == nil {
- var ret string
+ var ret InterfaceTypeValue
return ret
}
@@ -248,7 +242,7 @@ func (o *WritableInterfaceRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *WritableInterfaceRequest) GetTypeOk() (*string, bool) {
+func (o *WritableInterfaceRequest) GetTypeOk() (*InterfaceTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -256,7 +250,7 @@ func (o *WritableInterfaceRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *WritableInterfaceRequest) SetType(v string) {
+func (o *WritableInterfaceRequest) SetType(v InterfaceTypeValue) {
o.Type = v
}
@@ -551,9 +545,9 @@ func (o *WritableInterfaceRequest) UnsetSpeed() {
}
// GetDuplex returns the Duplex field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInterfaceRequest) GetDuplex() string {
+func (o *WritableInterfaceRequest) GetDuplex() InterfaceRequestDuplex {
if o == nil || IsNil(o.Duplex.Get()) {
- var ret string
+ var ret InterfaceRequestDuplex
return ret
}
return *o.Duplex.Get()
@@ -562,7 +556,7 @@ func (o *WritableInterfaceRequest) GetDuplex() string {
// GetDuplexOk returns a tuple with the Duplex field value if set, nil otherwise
// and a 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) GetDuplexOk() (*string, bool) {
+func (o *WritableInterfaceRequest) GetDuplexOk() (*InterfaceRequestDuplex, bool) {
if o == nil {
return nil, false
}
@@ -578,8 +572,8 @@ func (o *WritableInterfaceRequest) HasDuplex() bool {
return false
}
-// SetDuplex gets a reference to the given NullableString and assigns it to the Duplex field.
-func (o *WritableInterfaceRequest) SetDuplex(v string) {
+// SetDuplex gets a reference to the given NullableInterfaceRequestDuplex and assigns it to the Duplex field.
+func (o *WritableInterfaceRequest) SetDuplex(v InterfaceRequestDuplex) {
o.Duplex.Set(&v)
}
@@ -701,9 +695,9 @@ func (o *WritableInterfaceRequest) SetDescription(v string) {
}
// GetMode returns the Mode field value if set, zero value otherwise.
-func (o *WritableInterfaceRequest) GetMode() string {
+func (o *WritableInterfaceRequest) GetMode() PatchedWritableInterfaceRequestMode {
if o == nil || IsNil(o.Mode) {
- var ret string
+ var ret PatchedWritableInterfaceRequestMode
return ret
}
return *o.Mode
@@ -711,7 +705,7 @@ func (o *WritableInterfaceRequest) GetMode() string {
// GetModeOk returns a tuple with the Mode field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableInterfaceRequest) GetModeOk() (*string, bool) {
+func (o *WritableInterfaceRequest) GetModeOk() (*PatchedWritableInterfaceRequestMode, bool) {
if o == nil || IsNil(o.Mode) {
return nil, false
}
@@ -727,15 +721,15 @@ func (o *WritableInterfaceRequest) HasMode() bool {
return false
}
-// SetMode gets a reference to the given string and assigns it to the Mode field.
-func (o *WritableInterfaceRequest) SetMode(v string) {
+// SetMode gets a reference to the given PatchedWritableInterfaceRequestMode and assigns it to the Mode field.
+func (o *WritableInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode) {
o.Mode = &v
}
// GetRfRole returns the RfRole field value if set, zero value otherwise.
-func (o *WritableInterfaceRequest) GetRfRole() string {
+func (o *WritableInterfaceRequest) GetRfRole() WirelessRole {
if o == nil || IsNil(o.RfRole) {
- var ret string
+ var ret WirelessRole
return ret
}
return *o.RfRole
@@ -743,7 +737,7 @@ func (o *WritableInterfaceRequest) GetRfRole() string {
// GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableInterfaceRequest) GetRfRoleOk() (*string, bool) {
+func (o *WritableInterfaceRequest) GetRfRoleOk() (*WirelessRole, bool) {
if o == nil || IsNil(o.RfRole) {
return nil, false
}
@@ -759,15 +753,15 @@ func (o *WritableInterfaceRequest) HasRfRole() bool {
return false
}
-// SetRfRole gets a reference to the given string and assigns it to the RfRole field.
-func (o *WritableInterfaceRequest) SetRfRole(v string) {
+// SetRfRole gets a reference to the given WirelessRole and assigns it to the RfRole field.
+func (o *WritableInterfaceRequest) SetRfRole(v WirelessRole) {
o.RfRole = &v
}
// GetRfChannel returns the RfChannel field value if set, zero value otherwise.
-func (o *WritableInterfaceRequest) GetRfChannel() string {
+func (o *WritableInterfaceRequest) GetRfChannel() WirelessChannel {
if o == nil || IsNil(o.RfChannel) {
- var ret string
+ var ret WirelessChannel
return ret
}
return *o.RfChannel
@@ -775,7 +769,7 @@ func (o *WritableInterfaceRequest) GetRfChannel() string {
// GetRfChannelOk returns a tuple with the RfChannel field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableInterfaceRequest) GetRfChannelOk() (*string, bool) {
+func (o *WritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel, bool) {
if o == nil || IsNil(o.RfChannel) {
return nil, false
}
@@ -791,15 +785,15 @@ func (o *WritableInterfaceRequest) HasRfChannel() bool {
return false
}
-// SetRfChannel gets a reference to the given string and assigns it to the RfChannel field.
-func (o *WritableInterfaceRequest) SetRfChannel(v string) {
+// SetRfChannel gets a reference to the given WirelessChannel and assigns it to the RfChannel field.
+func (o *WritableInterfaceRequest) SetRfChannel(v WirelessChannel) {
o.RfChannel = &v
}
// GetPoeMode returns the PoeMode field value if set, zero value otherwise.
-func (o *WritableInterfaceRequest) GetPoeMode() string {
+func (o *WritableInterfaceRequest) GetPoeMode() InterfacePoeModeValue {
if o == nil || IsNil(o.PoeMode) {
- var ret string
+ var ret InterfacePoeModeValue
return ret
}
return *o.PoeMode
@@ -807,7 +801,7 @@ func (o *WritableInterfaceRequest) GetPoeMode() string {
// GetPoeModeOk returns a tuple with the PoeMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableInterfaceRequest) GetPoeModeOk() (*string, bool) {
+func (o *WritableInterfaceRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool) {
if o == nil || IsNil(o.PoeMode) {
return nil, false
}
@@ -823,15 +817,15 @@ func (o *WritableInterfaceRequest) HasPoeMode() bool {
return false
}
-// SetPoeMode gets a reference to the given string and assigns it to the PoeMode field.
-func (o *WritableInterfaceRequest) SetPoeMode(v string) {
+// SetPoeMode gets a reference to the given InterfacePoeModeValue and assigns it to the PoeMode field.
+func (o *WritableInterfaceRequest) SetPoeMode(v InterfacePoeModeValue) {
o.PoeMode = &v
}
// GetPoeType returns the PoeType field value if set, zero value otherwise.
-func (o *WritableInterfaceRequest) GetPoeType() string {
+func (o *WritableInterfaceRequest) GetPoeType() InterfacePoeTypeValue {
if o == nil || IsNil(o.PoeType) {
- var ret string
+ var ret InterfacePoeTypeValue
return ret
}
return *o.PoeType
@@ -839,7 +833,7 @@ func (o *WritableInterfaceRequest) GetPoeType() string {
// GetPoeTypeOk returns a tuple with the PoeType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableInterfaceRequest) GetPoeTypeOk() (*string, bool) {
+func (o *WritableInterfaceRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool) {
if o == nil || IsNil(o.PoeType) {
return nil, false
}
@@ -855,8 +849,8 @@ func (o *WritableInterfaceRequest) HasPoeType() bool {
return false
}
-// SetPoeType gets a reference to the given string and assigns it to the PoeType field.
-func (o *WritableInterfaceRequest) SetPoeType(v string) {
+// SetPoeType gets a reference to the given InterfacePoeTypeValue and assigns it to the PoeType field.
+func (o *WritableInterfaceRequest) SetPoeType(v InterfacePoeTypeValue) {
o.PoeType = &v
}
@@ -1341,10 +1335,34 @@ func (o WritableInterfaceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "vdcs",
+ "name",
+ "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)
+ }
+ }
+
varWritableInterfaceRequest := _WritableInterfaceRequest{}
- err = json.Unmarshal(bytes, &varWritableInterfaceRequest)
+ err = json.Unmarshal(data, &varWritableInterfaceRequest)
if err != nil {
return err
@@ -1354,7 +1372,7 @@ func (o *WritableInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "vdcs")
delete(additionalProperties, "module")
diff --git a/model_writable_interface_template_request.go b/model_writable_interface_template_request.go
index 1c1e9bb4cd..f39330a86a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableInterfaceTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,19 +25,15 @@ type WritableInterfaceTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other
- Type string `json:"type"`
- Enabled *bool `json:"enabled,omitempty"`
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- Bridge NullableInt32 `json:"bridge,omitempty"`
- // * `pd` - PD * `pse` - PSE
- PoeMode *string `json:"poe_mode,omitempty"`
- // * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair)
- PoeType *string `json:"poe_type,omitempty"`
- // * `ap` - Access point * `station` - Station
- RfRole *string `json:"rf_role,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type InterfaceTypeValue `json:"type"`
+ Enabled *bool `json:"enabled,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Bridge NullableInt32 `json:"bridge,omitempty"`
+ PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"`
+ PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"`
+ RfRole *WirelessRole `json:"rf_role,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -46,7 +43,7 @@ type _WritableInterfaceTemplateRequest WritableInterfaceTemplateRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableInterfaceTemplateRequest(name string, type_ string) *WritableInterfaceTemplateRequest {
+func NewWritableInterfaceTemplateRequest(name string, type_ InterfaceTypeValue) *WritableInterfaceTemplateRequest {
this := WritableInterfaceTemplateRequest{}
this.Name = name
this.Type = type_
@@ -204,9 +201,9 @@ func (o *WritableInterfaceTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value
-func (o *WritableInterfaceTemplateRequest) GetType() string {
+func (o *WritableInterfaceTemplateRequest) GetType() InterfaceTypeValue {
if o == nil {
- var ret string
+ var ret InterfaceTypeValue
return ret
}
@@ -215,7 +212,7 @@ func (o *WritableInterfaceTemplateRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *WritableInterfaceTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *WritableInterfaceTemplateRequest) GetTypeOk() (*InterfaceTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -223,7 +220,7 @@ func (o *WritableInterfaceTemplateRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *WritableInterfaceTemplateRequest) SetType(v string) {
+func (o *WritableInterfaceTemplateRequest) SetType(v InterfaceTypeValue) {
o.Type = v
}
@@ -367,9 +364,9 @@ func (o *WritableInterfaceTemplateRequest) UnsetBridge() {
}
// GetPoeMode returns the PoeMode field value if set, zero value otherwise.
-func (o *WritableInterfaceTemplateRequest) GetPoeMode() string {
+func (o *WritableInterfaceTemplateRequest) GetPoeMode() InterfacePoeModeValue {
if o == nil || IsNil(o.PoeMode) {
- var ret string
+ var ret InterfacePoeModeValue
return ret
}
return *o.PoeMode
@@ -377,7 +374,7 @@ func (o *WritableInterfaceTemplateRequest) GetPoeMode() string {
// GetPoeModeOk returns a tuple with the PoeMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableInterfaceTemplateRequest) GetPoeModeOk() (*string, bool) {
+func (o *WritableInterfaceTemplateRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool) {
if o == nil || IsNil(o.PoeMode) {
return nil, false
}
@@ -393,15 +390,15 @@ func (o *WritableInterfaceTemplateRequest) HasPoeMode() bool {
return false
}
-// SetPoeMode gets a reference to the given string and assigns it to the PoeMode field.
-func (o *WritableInterfaceTemplateRequest) SetPoeMode(v string) {
+// SetPoeMode gets a reference to the given InterfacePoeModeValue and assigns it to the PoeMode field.
+func (o *WritableInterfaceTemplateRequest) SetPoeMode(v InterfacePoeModeValue) {
o.PoeMode = &v
}
// GetPoeType returns the PoeType field value if set, zero value otherwise.
-func (o *WritableInterfaceTemplateRequest) GetPoeType() string {
+func (o *WritableInterfaceTemplateRequest) GetPoeType() InterfacePoeTypeValue {
if o == nil || IsNil(o.PoeType) {
- var ret string
+ var ret InterfacePoeTypeValue
return ret
}
return *o.PoeType
@@ -409,7 +406,7 @@ func (o *WritableInterfaceTemplateRequest) GetPoeType() string {
// GetPoeTypeOk returns a tuple with the PoeType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableInterfaceTemplateRequest) GetPoeTypeOk() (*string, bool) {
+func (o *WritableInterfaceTemplateRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool) {
if o == nil || IsNil(o.PoeType) {
return nil, false
}
@@ -425,15 +422,15 @@ func (o *WritableInterfaceTemplateRequest) HasPoeType() bool {
return false
}
-// SetPoeType gets a reference to the given string and assigns it to the PoeType field.
-func (o *WritableInterfaceTemplateRequest) SetPoeType(v string) {
+// SetPoeType gets a reference to the given InterfacePoeTypeValue and assigns it to the PoeType field.
+func (o *WritableInterfaceTemplateRequest) SetPoeType(v InterfacePoeTypeValue) {
o.PoeType = &v
}
// GetRfRole returns the RfRole field value if set, zero value otherwise.
-func (o *WritableInterfaceTemplateRequest) GetRfRole() string {
+func (o *WritableInterfaceTemplateRequest) GetRfRole() WirelessRole {
if o == nil || IsNil(o.RfRole) {
- var ret string
+ var ret WirelessRole
return ret
}
return *o.RfRole
@@ -441,7 +438,7 @@ func (o *WritableInterfaceTemplateRequest) GetRfRole() string {
// GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableInterfaceTemplateRequest) GetRfRoleOk() (*string, bool) {
+func (o *WritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole, bool) {
if o == nil || IsNil(o.RfRole) {
return nil, false
}
@@ -457,8 +454,8 @@ func (o *WritableInterfaceTemplateRequest) HasRfRole() bool {
return false
}
-// SetRfRole gets a reference to the given string and assigns it to the RfRole field.
-func (o *WritableInterfaceTemplateRequest) SetRfRole(v string) {
+// SetRfRole gets a reference to the given WirelessRole and assigns it to the RfRole field.
+func (o *WritableInterfaceTemplateRequest) SetRfRole(v WirelessRole) {
o.RfRole = &v
}
@@ -512,10 +509,32 @@ func (o WritableInterfaceTemplateRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *WritableInterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableInterfaceTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "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)
+ }
+ }
+
varWritableInterfaceTemplateRequest := _WritableInterfaceTemplateRequest{}
- err = json.Unmarshal(bytes, &varWritableInterfaceTemplateRequest)
+ err = json.Unmarshal(data, &varWritableInterfaceTemplateRequest)
if err != nil {
return err
@@ -525,7 +544,7 @@ func (o *WritableInterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_writable_inventory_item_request.go b/model_writable_inventory_item_request.go
index 1259cf4c85..1574a08802 100644
--- a/model_writable_inventory_item_request.go
+++ b/model_writable_inventory_item_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableInventoryItemRequest type satisfies the MappedNullable interface at compile time
@@ -651,10 +652,32 @@ func (o WritableInventoryItemRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableInventoryItemRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableInventoryItemRequest)
+ err = json.Unmarshal(data, &varWritableInventoryItemRequest)
if err != nil {
return err
@@ -664,7 +687,7 @@ func (o *WritableInventoryItemRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "parent")
delete(additionalProperties, "name")
diff --git a/model_writable_inventory_item_template_request.go b/model_writable_inventory_item_template_request.go
index 3717143f30..b5f0aeb466 100644
--- a/model_writable_inventory_item_template_request.go
+++ b/model_writable_inventory_item_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableInventoryItemTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -459,10 +460,32 @@ func (o WritableInventoryItemTemplateRequest) ToMap() (map[string]interface{}, e
return toSerialize, nil
}
-func (o *WritableInventoryItemTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableInventoryItemTemplateRequest)
+ err = json.Unmarshal(data, &varWritableInventoryItemTemplateRequest)
if err != nil {
return err
@@ -472,7 +495,7 @@ func (o *WritableInventoryItemTemplateRequest) UnmarshalJSON(bytes []byte) (err
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "parent")
delete(additionalProperties, "name")
diff --git a/model_writable_ip_address_request.go b/model_writable_ip_address_request.go
index f5242fa3a6..31448a321d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableIPAddressRequest type satisfies the MappedNullable interface at compile time
@@ -19,15 +20,13 @@ 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"`
- // The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC
- Status *string `json:"status,omitempty"`
- // The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP
- Role *string `json:"role,omitempty"`
- AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
- AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
+ Address string `json:"address"`
+ Vrf NullableInt32 `json:"vrf,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
+ Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"`
+ Role *PatchedWritableIPAddressRequestRole `json:"role,omitempty"`
+ AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
+ AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
// The IP for which this address is the \"outside\" IP
NatInside NullableInt32 `json:"nat_inside,omitempty"`
// Hostname or FQDN (not case-sensitive)
@@ -170,9 +169,9 @@ func (o *WritableIPAddressRequest) UnsetTenant() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableIPAddressRequest) GetStatus() string {
+func (o *WritableIPAddressRequest) GetStatus() PatchedWritableIPAddressRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritableIPAddressRequestStatus
return ret
}
return *o.Status
@@ -180,7 +179,7 @@ func (o *WritableIPAddressRequest) GetStatus() string {
// 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 *WritableIPAddressRequest) GetStatusOk() (*string, bool) {
+func (o *WritableIPAddressRequest) GetStatusOk() (*PatchedWritableIPAddressRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -196,15 +195,15 @@ func (o *WritableIPAddressRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritableIPAddressRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritableIPAddressRequestStatus and assigns it to the Status field.
+func (o *WritableIPAddressRequest) SetStatus(v PatchedWritableIPAddressRequestStatus) {
o.Status = &v
}
// GetRole returns the Role field value if set, zero value otherwise.
-func (o *WritableIPAddressRequest) GetRole() string {
+func (o *WritableIPAddressRequest) GetRole() PatchedWritableIPAddressRequestRole {
if o == nil || IsNil(o.Role) {
- var ret string
+ var ret PatchedWritableIPAddressRequestRole
return ret
}
return *o.Role
@@ -212,7 +211,7 @@ func (o *WritableIPAddressRequest) GetRole() string {
// 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 *WritableIPAddressRequest) GetRoleOk() (*string, bool) {
+func (o *WritableIPAddressRequest) GetRoleOk() (*PatchedWritableIPAddressRequestRole, bool) {
if o == nil || IsNil(o.Role) {
return nil, false
}
@@ -228,8 +227,8 @@ func (o *WritableIPAddressRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given string and assigns it to the Role field.
-func (o *WritableIPAddressRequest) SetRole(v string) {
+// SetRole gets a reference to the given PatchedWritableIPAddressRequestRole and assigns it to the Role field.
+func (o *WritableIPAddressRequest) SetRole(v PatchedWritableIPAddressRequestRole) {
o.Role = &v
}
@@ -577,10 +576,31 @@ func (o WritableIPAddressRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableIPAddressRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableIPAddressRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableIPAddressRequest := _WritableIPAddressRequest{}
- err = json.Unmarshal(bytes, &varWritableIPAddressRequest)
+ err = json.Unmarshal(data, &varWritableIPAddressRequest)
if err != nil {
return err
@@ -590,7 +610,7 @@ func (o *WritableIPAddressRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "address")
delete(additionalProperties, "vrf")
delete(additionalProperties, "tenant")
diff --git a/model_writable_ip_range_request.go b/model_writable_ip_range_request.go
index e6e10032a2..e4aef6929d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableIPRangeRequest type satisfies the MappedNullable interface at compile time
@@ -19,12 +20,11 @@ var _ MappedNullable = &WritableIPRangeRequest{}
// WritableIPRangeRequest Adds support for custom fields and tags.
type WritableIPRangeRequest struct {
- StartAddress string `json:"start_address"`
- EndAddress string `json:"end_address"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- // Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
+ StartAddress string `json:"start_address"`
+ EndAddress string `json:"end_address"`
+ Vrf NullableInt32 `json:"vrf,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
+ Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"`
// The primary function of this range
Role NullableInt32 `json:"role,omitempty"`
Description *string `json:"description,omitempty"`
@@ -192,9 +192,9 @@ func (o *WritableIPRangeRequest) UnsetTenant() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableIPRangeRequest) GetStatus() string {
+func (o *WritableIPRangeRequest) GetStatus() PatchedWritableIPRangeRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritableIPRangeRequestStatus
return ret
}
return *o.Status
@@ -202,7 +202,7 @@ func (o *WritableIPRangeRequest) GetStatus() string {
// 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 *WritableIPRangeRequest) GetStatusOk() (*string, bool) {
+func (o *WritableIPRangeRequest) GetStatusOk() (*PatchedWritableIPRangeRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -218,8 +218,8 @@ func (o *WritableIPRangeRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritableIPRangeRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritableIPRangeRequestStatus and assigns it to the Status field.
+func (o *WritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeRequestStatus) {
o.Status = &v
}
@@ -473,10 +473,32 @@ func (o WritableIPRangeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableIPRangeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableIPRangeRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "start_address",
+ "end_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)
+ }
+ }
+
varWritableIPRangeRequest := _WritableIPRangeRequest{}
- err = json.Unmarshal(bytes, &varWritableIPRangeRequest)
+ err = json.Unmarshal(data, &varWritableIPRangeRequest)
if err != nil {
return err
@@ -486,7 +508,7 @@ func (o *WritableIPRangeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "start_address")
delete(additionalProperties, "end_address")
delete(additionalProperties, "vrf")
diff --git a/model_writable_ip_sec_policy_request.go b/model_writable_ip_sec_policy_request.go
new file mode 100644
index 0000000000..8e6d7c0dea
--- /dev/null
+++ b/model_writable_ip_sec_policy_request.go
@@ -0,0 +1,391 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WritableIPSecPolicyRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WritableIPSecPolicyRequest{}
+
+// WritableIPSecPolicyRequest Adds support for custom fields and tags.
+type WritableIPSecPolicyRequest struct {
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Proposals []int32 `json:"proposals"`
+ PfsGroup NullablePatchedWritableIPSecPolicyRequestPfsGroup `json:"pfs_group,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WritableIPSecPolicyRequest WritableIPSecPolicyRequest
+
+// NewWritableIPSecPolicyRequest instantiates a new WritableIPSecPolicyRequest object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := WritableIPSecPolicyRequest{}
+ this.Name = name
+ this.Proposals = proposals
+ return &this
+}
+
+// NewWritableIPSecPolicyRequestWithDefaults instantiates a new WritableIPSecPolicyRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWritableIPSecPolicyRequestWithDefaults() *WritableIPSecPolicyRequest {
+ this := WritableIPSecPolicyRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *WritableIPSecPolicyRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *WritableIPSecPolicyRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetProposals returns the Proposals field value
+func (o *WritableIPSecPolicyRequest) GetProposals() []int32 {
+ if o == nil {
+ var ret []int32
+ return ret
+ }
+
+ return o.Proposals
+}
+
+// GetProposalsOk returns a tuple with the Proposals field value
+// and a boolean to check if the value has been set.
+func (o *WritableIPSecPolicyRequest) GetProposalsOk() ([]int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Proposals, true
+}
+
+// SetProposals sets field value
+func (o *WritableIPSecPolicyRequest) SetProposals(v []int32) {
+ o.Proposals = v
+}
+
+// GetPfsGroup returns the PfsGroup field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableIPSecPolicyRequest) GetPfsGroup() PatchedWritableIPSecPolicyRequestPfsGroup {
+ if o == nil || IsNil(o.PfsGroup.Get()) {
+ var ret PatchedWritableIPSecPolicyRequestPfsGroup
+ return ret
+ }
+ return *o.PfsGroup.Get()
+}
+
+// GetPfsGroupOk returns a tuple with the PfsGroup field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *WritableIPSecPolicyRequest) GetPfsGroupOk() (*PatchedWritableIPSecPolicyRequestPfsGroup, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.PfsGroup.Get(), o.PfsGroup.IsSet()
+}
+
+// HasPfsGroup returns a boolean if a field has been set.
+func (o *WritableIPSecPolicyRequest) HasPfsGroup() bool {
+ if o != nil && o.PfsGroup.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetPfsGroup gets a reference to the given NullablePatchedWritableIPSecPolicyRequestPfsGroup and assigns it to the PfsGroup field.
+func (o *WritableIPSecPolicyRequest) SetPfsGroup(v PatchedWritableIPSecPolicyRequestPfsGroup) {
+ o.PfsGroup.Set(&v)
+}
+
+// SetPfsGroupNil sets the value for PfsGroup to be an explicit nil
+func (o *WritableIPSecPolicyRequest) SetPfsGroupNil() {
+ o.PfsGroup.Set(nil)
+}
+
+// UnsetPfsGroup ensures that no value is present for PfsGroup, not even an explicit nil
+func (o *WritableIPSecPolicyRequest) UnsetPfsGroup() {
+ o.PfsGroup.Unset()
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) 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 *WritableIPSecPolicyRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o WritableIPSecPolicyRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WritableIPSecPolicyRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["proposals"] = o.Proposals
+ if o.PfsGroup.IsSet() {
+ toSerialize["pfs_group"] = o.PfsGroup.Get()
+ }
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WritableIPSecPolicyRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "proposals",
+ }
+
+ 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)
+ }
+ }
+
+ varWritableIPSecPolicyRequest := _WritableIPSecPolicyRequest{}
+
+ err = json.Unmarshal(data, &varWritableIPSecPolicyRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WritableIPSecPolicyRequest(varWritableIPSecPolicyRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "proposals")
+ delete(additionalProperties, "pfs_group")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWritableIPSecPolicyRequest struct {
+ value *WritableIPSecPolicyRequest
+ isSet bool
+}
+
+func (v NullableWritableIPSecPolicyRequest) Get() *WritableIPSecPolicyRequest {
+ return v.value
+}
+
+func (v *NullableWritableIPSecPolicyRequest) Set(val *WritableIPSecPolicyRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWritableIPSecPolicyRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWritableIPSecPolicyRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWritableIPSecPolicyRequest(val *WritableIPSecPolicyRequest) *NullableWritableIPSecPolicyRequest {
+ return &NullableWritableIPSecPolicyRequest{value: val, isSet: true}
+}
+
+func (v NullableWritableIPSecPolicyRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWritableIPSecPolicyRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_writable_ip_sec_profile_request.go b/model_writable_ip_sec_profile_request.go
new file mode 100644
index 0000000000..3206a6e29b
--- /dev/null
+++ b/model_writable_ip_sec_profile_request.go
@@ -0,0 +1,401 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WritableIPSecProfileRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WritableIPSecProfileRequest{}
+
+// WritableIPSecProfileRequest Adds support for custom fields and tags.
+type WritableIPSecProfileRequest struct {
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Mode IPSecProfileModeValue `json:"mode"`
+ IkePolicy int32 `json:"ike_policy"`
+ IpsecPolicy int32 `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{}
+}
+
+type _WritableIPSecProfileRequest WritableIPSecProfileRequest
+
+// NewWritableIPSecProfileRequest instantiates a new WritableIPSecProfileRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy int32, ipsecPolicy int32) *WritableIPSecProfileRequest {
+ this := WritableIPSecProfileRequest{}
+ this.Name = name
+ this.Mode = mode
+ this.IkePolicy = ikePolicy
+ this.IpsecPolicy = ipsecPolicy
+ return &this
+}
+
+// NewWritableIPSecProfileRequestWithDefaults instantiates a new WritableIPSecProfileRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWritableIPSecProfileRequestWithDefaults() *WritableIPSecProfileRequest {
+ this := WritableIPSecProfileRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *WritableIPSecProfileRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *WritableIPSecProfileRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetMode returns the Mode field value
+func (o *WritableIPSecProfileRequest) GetMode() IPSecProfileModeValue {
+ if o == nil {
+ var ret IPSecProfileModeValue
+ return ret
+ }
+
+ return o.Mode
+}
+
+// GetModeOk returns a tuple with the Mode field value
+// and a boolean to check if the value has been set.
+func (o *WritableIPSecProfileRequest) GetModeOk() (*IPSecProfileModeValue, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Mode, true
+}
+
+// SetMode sets field value
+func (o *WritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) {
+ o.Mode = v
+}
+
+// GetIkePolicy returns the IkePolicy field value
+func (o *WritableIPSecProfileRequest) GetIkePolicy() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.IkePolicy
+}
+
+// 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) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.IkePolicy, true
+}
+
+// SetIkePolicy sets field value
+func (o *WritableIPSecProfileRequest) SetIkePolicy(v int32) {
+ o.IkePolicy = v
+}
+
+// GetIpsecPolicy returns the IpsecPolicy field value
+func (o *WritableIPSecProfileRequest) GetIpsecPolicy() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.IpsecPolicy
+}
+
+// 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) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.IpsecPolicy, true
+}
+
+// SetIpsecPolicy sets field value
+func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v int32) {
+ o.IpsecPolicy = v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableIPSecProfileRequest) GetComments() string {
+ if o == nil || IsNil(o.Comments) {
+ 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 *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o WritableIPSecProfileRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WritableIPSecProfileRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["mode"] = o.Mode
+ toSerialize["ike_policy"] = o.IkePolicy
+ toSerialize["ipsec_policy"] = o.IpsecPolicy
+ 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 *WritableIPSecProfileRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "mode",
+ "ike_policy",
+ "ipsec_policy",
+ }
+
+ 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)
+ }
+ }
+
+ varWritableIPSecProfileRequest := _WritableIPSecProfileRequest{}
+
+ err = json.Unmarshal(data, &varWritableIPSecProfileRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WritableIPSecProfileRequest(varWritableIPSecProfileRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "mode")
+ delete(additionalProperties, "ike_policy")
+ delete(additionalProperties, "ipsec_policy")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWritableIPSecProfileRequest struct {
+ value *WritableIPSecProfileRequest
+ isSet bool
+}
+
+func (v NullableWritableIPSecProfileRequest) Get() *WritableIPSecProfileRequest {
+ return v.value
+}
+
+func (v *NullableWritableIPSecProfileRequest) Set(val *WritableIPSecProfileRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWritableIPSecProfileRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWritableIPSecProfileRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWritableIPSecProfileRequest(val *WritableIPSecProfileRequest) *NullableWritableIPSecProfileRequest {
+ return &NullableWritableIPSecProfileRequest{value: val, isSet: true}
+}
+
+func (v NullableWritableIPSecProfileRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWritableIPSecProfileRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_writable_ip_sec_proposal_request.go b/model_writable_ip_sec_proposal_request.go
new file mode 100644
index 0000000000..6f37486e9d
--- /dev/null
+++ b/model_writable_ip_sec_proposal_request.go
@@ -0,0 +1,486 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WritableIPSecProposalRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WritableIPSecProposalRequest{}
+
+// WritableIPSecProposalRequest Adds support for custom fields and tags.
+type WritableIPSecProposalRequest struct {
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ EncryptionAlgorithm *Encryption `json:"encryption_algorithm,omitempty"`
+ AuthenticationAlgorithm *Authentication `json:"authentication_algorithm,omitempty"`
+ // Security association lifetime (seconds)
+ SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"`
+ // Security association lifetime (in kilobytes)
+ SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WritableIPSecProposalRequest WritableIPSecProposalRequest
+
+// NewWritableIPSecProposalRequest instantiates a new WritableIPSecProposalRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWritableIPSecProposalRequest(name string) *WritableIPSecProposalRequest {
+ this := WritableIPSecProposalRequest{}
+ this.Name = name
+ return &this
+}
+
+// NewWritableIPSecProposalRequestWithDefaults instantiates a new WritableIPSecProposalRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWritableIPSecProposalRequestWithDefaults() *WritableIPSecProposalRequest {
+ this := WritableIPSecProposalRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *WritableIPSecProposalRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *WritableIPSecProposalRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ 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 *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise.
+func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption {
+ if o == nil || IsNil(o.EncryptionAlgorithm) {
+ var ret Encryption
+ return ret
+ }
+ return *o.EncryptionAlgorithm
+}
+
+// GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption, bool) {
+ if o == nil || IsNil(o.EncryptionAlgorithm) {
+ return nil, false
+ }
+ return o.EncryptionAlgorithm, true
+}
+
+// HasEncryptionAlgorithm returns a boolean if a field has been set.
+func (o *WritableIPSecProposalRequest) HasEncryptionAlgorithm() bool {
+ if o != nil && !IsNil(o.EncryptionAlgorithm) {
+ return true
+ }
+
+ return false
+}
+
+// SetEncryptionAlgorithm gets a reference to the given Encryption and assigns it to the EncryptionAlgorithm field.
+func (o *WritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption) {
+ o.EncryptionAlgorithm = &v
+}
+
+// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise.
+func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication {
+ if o == nil || IsNil(o.AuthenticationAlgorithm) {
+ var ret Authentication
+ return ret
+ }
+ return *o.AuthenticationAlgorithm
+}
+
+// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication, bool) {
+ if o == nil || IsNil(o.AuthenticationAlgorithm) {
+ return nil, false
+ }
+ return o.AuthenticationAlgorithm, true
+}
+
+// HasAuthenticationAlgorithm returns a boolean if a field has been set.
+func (o *WritableIPSecProposalRequest) HasAuthenticationAlgorithm() bool {
+ if o != nil && !IsNil(o.AuthenticationAlgorithm) {
+ return true
+ }
+
+ return false
+}
+
+// SetAuthenticationAlgorithm gets a reference to the given Authentication and assigns it to the AuthenticationAlgorithm field.
+func (o *WritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication) {
+ o.AuthenticationAlgorithm = &v
+}
+
+// GetSaLifetimeSeconds returns the SaLifetimeSeconds field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableIPSecProposalRequest) GetSaLifetimeSeconds() int32 {
+ if o == nil || IsNil(o.SaLifetimeSeconds.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.SaLifetimeSeconds.Get()
+}
+
+// GetSaLifetimeSecondsOk returns a tuple with the SaLifetimeSeconds field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *WritableIPSecProposalRequest) GetSaLifetimeSecondsOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SaLifetimeSeconds.Get(), o.SaLifetimeSeconds.IsSet()
+}
+
+// HasSaLifetimeSeconds returns a boolean if a field has been set.
+func (o *WritableIPSecProposalRequest) HasSaLifetimeSeconds() bool {
+ if o != nil && o.SaLifetimeSeconds.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSaLifetimeSeconds gets a reference to the given NullableInt32 and assigns it to the SaLifetimeSeconds field.
+func (o *WritableIPSecProposalRequest) SetSaLifetimeSeconds(v int32) {
+ o.SaLifetimeSeconds.Set(&v)
+}
+
+// SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil
+func (o *WritableIPSecProposalRequest) SetSaLifetimeSecondsNil() {
+ o.SaLifetimeSeconds.Set(nil)
+}
+
+// UnsetSaLifetimeSeconds ensures that no value is present for SaLifetimeSeconds, not even an explicit nil
+func (o *WritableIPSecProposalRequest) UnsetSaLifetimeSeconds() {
+ o.SaLifetimeSeconds.Unset()
+}
+
+// GetSaLifetimeData returns the SaLifetimeData field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableIPSecProposalRequest) GetSaLifetimeData() int32 {
+ if o == nil || IsNil(o.SaLifetimeData.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.SaLifetimeData.Get()
+}
+
+// GetSaLifetimeDataOk returns a tuple with the SaLifetimeData field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *WritableIPSecProposalRequest) GetSaLifetimeDataOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SaLifetimeData.Get(), o.SaLifetimeData.IsSet()
+}
+
+// HasSaLifetimeData returns a boolean if a field has been set.
+func (o *WritableIPSecProposalRequest) HasSaLifetimeData() bool {
+ if o != nil && o.SaLifetimeData.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSaLifetimeData gets a reference to the given NullableInt32 and assigns it to the SaLifetimeData field.
+func (o *WritableIPSecProposalRequest) SetSaLifetimeData(v int32) {
+ o.SaLifetimeData.Set(&v)
+}
+
+// SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil
+func (o *WritableIPSecProposalRequest) SetSaLifetimeDataNil() {
+ o.SaLifetimeData.Set(nil)
+}
+
+// UnsetSaLifetimeData ensures that no value is present for SaLifetimeData, not even an explicit nil
+func (o *WritableIPSecProposalRequest) UnsetSaLifetimeData() {
+ o.SaLifetimeData.Unset()
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) 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 *WritableIPSecProposalRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o WritableIPSecProposalRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WritableIPSecProposalRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.EncryptionAlgorithm) {
+ toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm
+ }
+ if !IsNil(o.AuthenticationAlgorithm) {
+ toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm
+ }
+ if o.SaLifetimeSeconds.IsSet() {
+ toSerialize["sa_lifetime_seconds"] = o.SaLifetimeSeconds.Get()
+ }
+ if o.SaLifetimeData.IsSet() {
+ toSerialize["sa_lifetime_data"] = o.SaLifetimeData.Get()
+ }
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WritableIPSecProposalRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
+ varWritableIPSecProposalRequest := _WritableIPSecProposalRequest{}
+
+ err = json.Unmarshal(data, &varWritableIPSecProposalRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WritableIPSecProposalRequest(varWritableIPSecProposalRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "encryption_algorithm")
+ delete(additionalProperties, "authentication_algorithm")
+ delete(additionalProperties, "sa_lifetime_seconds")
+ delete(additionalProperties, "sa_lifetime_data")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWritableIPSecProposalRequest struct {
+ value *WritableIPSecProposalRequest
+ isSet bool
+}
+
+func (v NullableWritableIPSecProposalRequest) Get() *WritableIPSecProposalRequest {
+ return v.value
+}
+
+func (v *NullableWritableIPSecProposalRequest) Set(val *WritableIPSecProposalRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWritableIPSecProposalRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWritableIPSecProposalRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWritableIPSecProposalRequest(val *WritableIPSecProposalRequest) *NullableWritableIPSecProposalRequest {
+ return &NullableWritableIPSecProposalRequest{value: val, isSet: true}
+}
+
+func (v NullableWritableIPSecProposalRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWritableIPSecProposalRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_writable_journal_entry_request.go b/model_writable_journal_entry_request.go
index 1ab2cb00c0..052fde0df2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableJournalEntryRequest type satisfies the MappedNullable interface at compile time
@@ -19,11 +20,10 @@ var _ MappedNullable = &WritableJournalEntryRequest{}
// WritableJournalEntryRequest Adds support for custom fields and tags.
type WritableJournalEntryRequest struct {
- AssignedObjectType string `json:"assigned_object_type"`
- AssignedObjectId int64 `json:"assigned_object_id"`
- CreatedBy NullableInt32 `json:"created_by,omitempty"`
- // * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger
- Kind *string `json:"kind,omitempty"`
+ AssignedObjectType string `json:"assigned_object_type"`
+ AssignedObjectId int64 `json:"assigned_object_id"`
+ CreatedBy NullableInt32 `json:"created_by,omitempty"`
+ Kind *JournalEntryKindValue `json:"kind,omitempty"`
Comments string `json:"comments"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -144,9 +144,9 @@ func (o *WritableJournalEntryRequest) UnsetCreatedBy() {
}
// GetKind returns the Kind field value if set, zero value otherwise.
-func (o *WritableJournalEntryRequest) GetKind() string {
+func (o *WritableJournalEntryRequest) GetKind() JournalEntryKindValue {
if o == nil || IsNil(o.Kind) {
- var ret string
+ var ret JournalEntryKindValue
return ret
}
return *o.Kind
@@ -154,7 +154,7 @@ func (o *WritableJournalEntryRequest) GetKind() string {
// GetKindOk returns a tuple with the Kind field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableJournalEntryRequest) GetKindOk() (*string, bool) {
+func (o *WritableJournalEntryRequest) GetKindOk() (*JournalEntryKindValue, bool) {
if o == nil || IsNil(o.Kind) {
return nil, false
}
@@ -170,8 +170,8 @@ func (o *WritableJournalEntryRequest) HasKind() bool {
return false
}
-// SetKind gets a reference to the given string and assigns it to the Kind field.
-func (o *WritableJournalEntryRequest) SetKind(v string) {
+// SetKind gets a reference to the given JournalEntryKindValue and assigns it to the Kind field.
+func (o *WritableJournalEntryRequest) SetKind(v JournalEntryKindValue) {
o.Kind = &v
}
@@ -296,10 +296,33 @@ func (o WritableJournalEntryRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableJournalEntryRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableJournalEntryRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "assigned_object_type",
+ "assigned_object_id",
+ "comments",
+ }
+
+ 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)
+ }
+ }
+
varWritableJournalEntryRequest := _WritableJournalEntryRequest{}
- err = json.Unmarshal(bytes, &varWritableJournalEntryRequest)
+ err = json.Unmarshal(data, &varWritableJournalEntryRequest)
if err != nil {
return err
@@ -309,7 +332,7 @@ func (o *WritableJournalEntryRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "assigned_object_type")
delete(additionalProperties, "assigned_object_id")
delete(additionalProperties, "created_by")
diff --git a/model_writable_l2_vpn_request.go b/model_writable_l2_vpn_request.go
index 303df56982..5f467e10c7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableL2VPNRequest type satisfies the MappedNullable interface at compile time
@@ -19,11 +20,10 @@ var _ MappedNullable = &WritableL2VPNRequest{}
// WritableL2VPNRequest Adds support for custom fields and tags.
type WritableL2VPNRequest struct {
- Identifier NullableInt64 `json:"identifier,omitempty"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- // * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree
- Type string `json:"type"`
+ Identifier NullableInt64 `json:"identifier,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type L2VPNTypeValue `json:"type"`
ImportTargets []int32 `json:"import_targets,omitempty"`
ExportTargets []int32 `json:"export_targets,omitempty"`
Description *string `json:"description,omitempty"`
@@ -40,7 +40,7 @@ type _WritableL2VPNRequest WritableL2VPNRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableL2VPNRequest(name string, slug string, type_ string) *WritableL2VPNRequest {
+func NewWritableL2VPNRequest(name string, slug string, type_ L2VPNTypeValue) *WritableL2VPNRequest {
this := WritableL2VPNRequest{}
this.Name = name
this.Slug = slug
@@ -148,9 +148,9 @@ func (o *WritableL2VPNRequest) SetSlug(v string) {
}
// GetType returns the Type field value
-func (o *WritableL2VPNRequest) GetType() string {
+func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue {
if o == nil {
- var ret string
+ var ret L2VPNTypeValue
return ret
}
@@ -159,7 +159,7 @@ func (o *WritableL2VPNRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *WritableL2VPNRequest) GetTypeOk() (*string, bool) {
+func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -167,7 +167,7 @@ func (o *WritableL2VPNRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *WritableL2VPNRequest) SetType(v string) {
+func (o *WritableL2VPNRequest) SetType(v L2VPNTypeValue) {
o.Type = v
}
@@ -451,10 +451,33 @@ func (o WritableL2VPNRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableL2VPNRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableL2VPNRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableL2VPNRequest := _WritableL2VPNRequest{}
- err = json.Unmarshal(bytes, &varWritableL2VPNRequest)
+ err = json.Unmarshal(data, &varWritableL2VPNRequest)
if err != nil {
return err
@@ -464,7 +487,7 @@ func (o *WritableL2VPNRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "identifier")
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
diff --git a/model_writable_l2_vpn_termination_request.go b/model_writable_l2_vpn_termination_request.go
index 7b70e2aba1..559fdbe695 100644
--- a/model_writable_l2_vpn_termination_request.go
+++ b/model_writable_l2_vpn_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableL2VPNTerminationRequest type satisfies the MappedNullable interface at compile time
@@ -212,10 +213,33 @@ func (o WritableL2VPNTerminationRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *WritableL2VPNTerminationRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableL2VPNTerminationRequest)
+ err = json.Unmarshal(data, &varWritableL2VPNTerminationRequest)
if err != nil {
return err
@@ -225,7 +249,7 @@ func (o *WritableL2VPNTerminationRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "l2vpn")
delete(additionalProperties, "assigned_object_type")
delete(additionalProperties, "assigned_object_id")
diff --git a/model_writable_location_request.go b/model_writable_location_request.go
index 3205299465..de7dee7616 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableLocationRequest type satisfies the MappedNullable interface at compile time
@@ -19,12 +20,11 @@ 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"`
- // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired
- Status *string `json:"status,omitempty"`
+ 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"`
Description *string `json:"description,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -170,9 +170,9 @@ func (o *WritableLocationRequest) UnsetParent() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableLocationRequest) GetStatus() string {
+func (o *WritableLocationRequest) GetStatus() LocationStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret LocationStatusValue
return ret
}
return *o.Status
@@ -180,7 +180,7 @@ func (o *WritableLocationRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *WritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -196,8 +196,8 @@ func (o *WritableLocationRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritableLocationRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field.
+func (o *WritableLocationRequest) SetStatus(v LocationStatusValue) {
o.Status = &v
}
@@ -379,10 +379,33 @@ func (o WritableLocationRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableLocationRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableLocationRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "site",
+ }
+
+ 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)
+ }
+ }
+
varWritableLocationRequest := _WritableLocationRequest{}
- err = json.Unmarshal(bytes, &varWritableLocationRequest)
+ err = json.Unmarshal(data, &varWritableLocationRequest)
if err != nil {
return err
@@ -392,7 +415,7 @@ func (o *WritableLocationRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "site")
diff --git a/model_writable_module_bay_request.go b/model_writable_module_bay_request.go
index e93f7ddc31..6bb652bc6b 100644
--- a/model_writable_module_bay_request.go
+++ b/model_writable_module_bay_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableModuleBayRequest type satisfies the MappedNullable interface at compile time
@@ -322,10 +323,33 @@ func (o WritableModuleBayRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableModuleBayRequest)
+ err = json.Unmarshal(data, &varWritableModuleBayRequest)
if err != nil {
return err
@@ -335,7 +359,7 @@ func (o *WritableModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "name")
delete(additionalProperties, "installed_module")
diff --git a/model_writable_module_bay_template_request.go b/model_writable_module_bay_template_request.go
index 316550294a..18e58613b6 100644
--- a/model_writable_module_bay_template_request.go
+++ b/model_writable_module_bay_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableModuleBayTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -224,10 +225,32 @@ func (o WritableModuleBayTemplateRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *WritableModuleBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableModuleBayTemplateRequest)
+ err = json.Unmarshal(data, &varWritableModuleBayTemplateRequest)
if err != nil {
return err
@@ -237,7 +260,7 @@ func (o *WritableModuleBayTemplateRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "name")
delete(additionalProperties, "label")
diff --git a/model_writable_module_request.go b/model_writable_module_request.go
index 4ff6cbc88a..4aff318b35 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableModuleRequest type satisfies the MappedNullable interface at compile time
@@ -19,12 +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"`
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ Device int32 `json:"device"`
+ ModuleBay int32 `json:"module_bay"`
+ ModuleType int32 `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"`
@@ -129,9 +129,9 @@ func (o *WritableModuleRequest) SetModuleType(v int32) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableModuleRequest) GetStatus() string {
+func (o *WritableModuleRequest) GetStatus() ModuleStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret ModuleStatusValue
return ret
}
return *o.Status
@@ -139,7 +139,7 @@ func (o *WritableModuleRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *WritableModuleRequest) GetStatusOk() (*ModuleStatusValue, 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 string and assigns it to the Status field.
-func (o *WritableModuleRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field.
+func (o *WritableModuleRequest) SetStatus(v ModuleStatusValue) {
o.Status = &v
}
@@ -405,10 +405,33 @@ func (o WritableModuleRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableModuleRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableModuleRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "device",
+ "module_bay",
+ "module_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)
+ }
+ }
+
varWritableModuleRequest := _WritableModuleRequest{}
- err = json.Unmarshal(bytes, &varWritableModuleRequest)
+ err = json.Unmarshal(data, &varWritableModuleRequest)
if err != nil {
return err
@@ -418,7 +441,7 @@ func (o *WritableModuleRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module_bay")
delete(additionalProperties, "module_type")
diff --git a/model_writable_module_type_request.go b/model_writable_module_type_request.go
index 6a7ca9f98c..c952f2d7d7 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableModuleTypeRequest type satisfies the MappedNullable interface at compile time
@@ -22,14 +23,13 @@ type WritableModuleTypeRequest struct {
Manufacturer int32 `json:"manufacturer"`
Model string `json:"model"`
// Discrete part number (optional)
- PartNumber *string `json:"part_number,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
- WeightUnit *string `json:"weight_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -178,9 +178,9 @@ func (o *WritableModuleTypeRequest) UnsetWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise.
-func (o *WritableModuleTypeRequest) GetWeightUnit() string {
+func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
if o == nil || IsNil(o.WeightUnit) {
- var ret string
+ var ret DeviceTypeWeightUnitValue
return ret
}
return *o.WeightUnit
@@ -188,7 +188,7 @@ func (o *WritableModuleTypeRequest) GetWeightUnit() string {
// 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() (*string, bool) {
+func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, 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 string and assigns it to the WeightUnit field.
-func (o *WritableModuleTypeRequest) SetWeightUnit(v string) {
+// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field.
+func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) {
o.WeightUnit = &v
}
@@ -378,10 +378,32 @@ func (o WritableModuleTypeRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableModuleTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "manufacturer",
+ "model",
+ }
+
+ 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)
+ }
+ }
+
varWritableModuleTypeRequest := _WritableModuleTypeRequest{}
- err = json.Unmarshal(bytes, &varWritableModuleTypeRequest)
+ err = json.Unmarshal(data, &varWritableModuleTypeRequest)
if err != nil {
return err
@@ -391,7 +413,7 @@ func (o *WritableModuleTypeRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "manufacturer")
delete(additionalProperties, "model")
delete(additionalProperties, "part_number")
diff --git a/model_writable_object_permission_request.go b/model_writable_object_permission_request.go
index 43f0c25ce0..3ef6de5e53 100644
--- a/model_writable_object_permission_request.go
+++ b/model_writable_object_permission_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableObjectPermissionRequest type satisfies the MappedNullable interface at compile time
@@ -28,7 +29,7 @@ type WritableObjectPermissionRequest struct {
// The list of actions granted by this permission
Actions []string `json:"actions"`
// Queryset filter matching the applicable objects of the selected type(s)
- Constraints map[string]interface{} `json:"constraints,omitempty"`
+ Constraints interface{} `json:"constraints,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -255,9 +256,9 @@ func (o *WritableObjectPermissionRequest) SetActions(v []string) {
}
// GetConstraints returns the Constraints field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableObjectPermissionRequest) GetConstraints() map[string]interface{} {
+func (o *WritableObjectPermissionRequest) GetConstraints() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.Constraints
@@ -266,11 +267,11 @@ func (o *WritableObjectPermissionRequest) GetConstraints() map[string]interface{
// 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() (map[string]interface{}, bool) {
+func (o *WritableObjectPermissionRequest) GetConstraintsOk() (*interface{}, bool) {
if o == nil || IsNil(o.Constraints) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.Constraints, true
+ return &o.Constraints, true
}
// HasConstraints returns a boolean if a field has been set.
@@ -282,8 +283,8 @@ func (o *WritableObjectPermissionRequest) HasConstraints() bool {
return false
}
-// SetConstraints gets a reference to the given map[string]interface{} and assigns it to the Constraints field.
-func (o *WritableObjectPermissionRequest) SetConstraints(v map[string]interface{}) {
+// SetConstraints gets a reference to the given interface{} and assigns it to the Constraints field.
+func (o *WritableObjectPermissionRequest) SetConstraints(v interface{}) {
o.Constraints = v
}
@@ -323,10 +324,33 @@ func (o WritableObjectPermissionRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *WritableObjectPermissionRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableObjectPermissionRequest)
+ err = json.Unmarshal(data, &varWritableObjectPermissionRequest)
if err != nil {
return err
@@ -336,7 +360,7 @@ func (o *WritableObjectPermissionRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "description")
delete(additionalProperties, "enabled")
diff --git a/model_writable_platform_request.go b/model_writable_platform_request.go
index 71e5faffb5..180b104059 100644
--- a/model_writable_platform_request.go
+++ b/model_writable_platform_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritablePlatformRequest type satisfies the MappedNullable interface at compile time
@@ -316,10 +317,32 @@ func (o WritablePlatformRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritablePlatformRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritablePlatformRequest)
+ err = json.Unmarshal(data, &varWritablePlatformRequest)
if err != nil {
return err
@@ -329,7 +352,7 @@ func (o *WritablePlatformRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "manufacturer")
diff --git a/model_writable_power_feed_request.go b/model_writable_power_feed_request.go
index 46ede0a2d4..44e2a8c0cc 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritablePowerFeedRequest type satisfies the MappedNullable interface at compile time
@@ -19,19 +20,15 @@ var _ MappedNullable = &WritablePowerFeedRequest{}
// WritablePowerFeedRequest Adds support for custom fields and tags.
type WritablePowerFeedRequest struct {
- PowerPanel int32 `json:"power_panel"`
- Rack NullableInt32 `json:"rack,omitempty"`
- Name string `json:"name"`
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed
- Status *string `json:"status,omitempty"`
- // * `primary` - Primary * `redundant` - Redundant
- Type *string `json:"type,omitempty"`
- // * `ac` - AC * `dc` - DC
- Supply *string `json:"supply,omitempty"`
- // * `single-phase` - Single phase * `three-phase` - Three-phase
- Phase *string `json:"phase,omitempty"`
- Voltage *int32 `json:"voltage,omitempty"`
- Amperage *int32 `json:"amperage,omitempty"`
+ PowerPanel int32 `json:"power_panel"`
+ Rack NullableInt32 `json:"rack,omitempty"`
+ Name string `json:"name"`
+ Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"`
+ Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"`
+ Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"`
+ Phase *PatchedWritablePowerFeedRequestPhase `json:"phase,omitempty"`
+ Voltage *int32 `json:"voltage,omitempty"`
+ Amperage *int32 `json:"amperage,omitempty"`
// Maximum permissible draw (percentage)
MaxUtilization *int32 `json:"max_utilization,omitempty"`
// Treat as if a cable is connected
@@ -157,9 +154,9 @@ func (o *WritablePowerFeedRequest) SetName(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritablePowerFeedRequest) GetStatus() string {
+func (o *WritablePowerFeedRequest) GetStatus() PatchedWritablePowerFeedRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestStatus
return ret
}
return *o.Status
@@ -167,7 +164,7 @@ func (o *WritablePowerFeedRequest) GetStatus() string {
// 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 *WritablePowerFeedRequest) GetStatusOk() (*string, bool) {
+func (o *WritablePowerFeedRequest) GetStatusOk() (*PatchedWritablePowerFeedRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -183,15 +180,15 @@ func (o *WritablePowerFeedRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritablePowerFeedRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritablePowerFeedRequestStatus and assigns it to the Status field.
+func (o *WritablePowerFeedRequest) SetStatus(v PatchedWritablePowerFeedRequestStatus) {
o.Status = &v
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *WritablePowerFeedRequest) GetType() string {
+func (o *WritablePowerFeedRequest) GetType() PatchedWritablePowerFeedRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestType
return ret
}
return *o.Type
@@ -199,7 +196,7 @@ func (o *WritablePowerFeedRequest) GetType() string {
// 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 *WritablePowerFeedRequest) GetTypeOk() (*string, bool) {
+func (o *WritablePowerFeedRequest) GetTypeOk() (*PatchedWritablePowerFeedRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -215,15 +212,15 @@ func (o *WritablePowerFeedRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *WritablePowerFeedRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritablePowerFeedRequestType and assigns it to the Type field.
+func (o *WritablePowerFeedRequest) SetType(v PatchedWritablePowerFeedRequestType) {
o.Type = &v
}
// GetSupply returns the Supply field value if set, zero value otherwise.
-func (o *WritablePowerFeedRequest) GetSupply() string {
+func (o *WritablePowerFeedRequest) GetSupply() PatchedWritablePowerFeedRequestSupply {
if o == nil || IsNil(o.Supply) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestSupply
return ret
}
return *o.Supply
@@ -231,7 +228,7 @@ func (o *WritablePowerFeedRequest) GetSupply() string {
// GetSupplyOk returns a tuple with the Supply field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritablePowerFeedRequest) GetSupplyOk() (*string, bool) {
+func (o *WritablePowerFeedRequest) GetSupplyOk() (*PatchedWritablePowerFeedRequestSupply, bool) {
if o == nil || IsNil(o.Supply) {
return nil, false
}
@@ -247,15 +244,15 @@ func (o *WritablePowerFeedRequest) HasSupply() bool {
return false
}
-// SetSupply gets a reference to the given string and assigns it to the Supply field.
-func (o *WritablePowerFeedRequest) SetSupply(v string) {
+// SetSupply gets a reference to the given PatchedWritablePowerFeedRequestSupply and assigns it to the Supply field.
+func (o *WritablePowerFeedRequest) SetSupply(v PatchedWritablePowerFeedRequestSupply) {
o.Supply = &v
}
// GetPhase returns the Phase field value if set, zero value otherwise.
-func (o *WritablePowerFeedRequest) GetPhase() string {
+func (o *WritablePowerFeedRequest) GetPhase() PatchedWritablePowerFeedRequestPhase {
if o == nil || IsNil(o.Phase) {
- var ret string
+ var ret PatchedWritablePowerFeedRequestPhase
return ret
}
return *o.Phase
@@ -263,7 +260,7 @@ func (o *WritablePowerFeedRequest) GetPhase() string {
// GetPhaseOk returns a tuple with the Phase field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritablePowerFeedRequest) GetPhaseOk() (*string, bool) {
+func (o *WritablePowerFeedRequest) GetPhaseOk() (*PatchedWritablePowerFeedRequestPhase, bool) {
if o == nil || IsNil(o.Phase) {
return nil, false
}
@@ -279,8 +276,8 @@ func (o *WritablePowerFeedRequest) HasPhase() bool {
return false
}
-// SetPhase gets a reference to the given string and assigns it to the Phase field.
-func (o *WritablePowerFeedRequest) SetPhase(v string) {
+// SetPhase gets a reference to the given PatchedWritablePowerFeedRequestPhase and assigns it to the Phase field.
+func (o *WritablePowerFeedRequest) SetPhase(v PatchedWritablePowerFeedRequestPhase) {
o.Phase = &v
}
@@ -645,10 +642,32 @@ func (o WritablePowerFeedRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritablePowerFeedRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritablePowerFeedRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "power_panel",
+ "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)
+ }
+ }
+
varWritablePowerFeedRequest := _WritablePowerFeedRequest{}
- err = json.Unmarshal(bytes, &varWritablePowerFeedRequest)
+ err = json.Unmarshal(data, &varWritablePowerFeedRequest)
if err != nil {
return err
@@ -658,7 +677,7 @@ func (o *WritablePowerFeedRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "power_panel")
delete(additionalProperties, "rack")
delete(additionalProperties, "name")
diff --git a/model_writable_power_outlet_request.go b/model_writable_power_outlet_request.go
index 678fb6a9f1..028f82a033 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritablePowerOutletRequest type satisfies the MappedNullable interface at compile time
@@ -23,13 +24,11 @@ type WritablePowerOutletRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other
- Type *string `json:"type,omitempty"`
- PowerPort NullableInt32 `json:"power_port,omitempty"`
- // Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C
- FeedLeg *string `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"`
+ PowerPort NullableInt32 `json:"power_port,omitempty"`
+ FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -182,9 +181,9 @@ func (o *WritablePowerOutletRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *WritablePowerOutletRequest) GetType() string {
+func (o *WritablePowerOutletRequest) GetType() PatchedWritablePowerOutletRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritablePowerOutletRequestType
return ret
}
return *o.Type
@@ -192,7 +191,7 @@ func (o *WritablePowerOutletRequest) GetType() string {
// 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 *WritablePowerOutletRequest) GetTypeOk() (*string, bool) {
+func (o *WritablePowerOutletRequest) GetTypeOk() (*PatchedWritablePowerOutletRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -208,8 +207,8 @@ func (o *WritablePowerOutletRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *WritablePowerOutletRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritablePowerOutletRequestType and assigns it to the Type field.
+func (o *WritablePowerOutletRequest) SetType(v PatchedWritablePowerOutletRequestType) {
o.Type = &v
}
@@ -257,9 +256,9 @@ func (o *WritablePowerOutletRequest) UnsetPowerPort() {
}
// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise.
-func (o *WritablePowerOutletRequest) GetFeedLeg() string {
+func (o *WritablePowerOutletRequest) GetFeedLeg() PatchedWritablePowerOutletRequestFeedLeg {
if o == nil || IsNil(o.FeedLeg) {
- var ret string
+ var ret PatchedWritablePowerOutletRequestFeedLeg
return ret
}
return *o.FeedLeg
@@ -267,7 +266,7 @@ func (o *WritablePowerOutletRequest) GetFeedLeg() string {
// GetFeedLegOk returns a tuple with the FeedLeg field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritablePowerOutletRequest) GetFeedLegOk() (*string, bool) {
+func (o *WritablePowerOutletRequest) GetFeedLegOk() (*PatchedWritablePowerOutletRequestFeedLeg, bool) {
if o == nil || IsNil(o.FeedLeg) {
return nil, false
}
@@ -283,8 +282,8 @@ func (o *WritablePowerOutletRequest) HasFeedLeg() bool {
return false
}
-// SetFeedLeg gets a reference to the given string and assigns it to the FeedLeg field.
-func (o *WritablePowerOutletRequest) SetFeedLeg(v string) {
+// SetFeedLeg gets a reference to the given PatchedWritablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field.
+func (o *WritablePowerOutletRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg) {
o.FeedLeg = &v
}
@@ -463,10 +462,32 @@ func (o WritablePowerOutletRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritablePowerOutletRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritablePowerOutletRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritablePowerOutletRequest := _WritablePowerOutletRequest{}
- err = json.Unmarshal(bytes, &varWritablePowerOutletRequest)
+ err = json.Unmarshal(data, &varWritablePowerOutletRequest)
if err != nil {
return err
@@ -476,7 +497,7 @@ func (o *WritablePowerOutletRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_writable_power_outlet_template_request.go b/model_writable_power_outlet_template_request.go
index 3032318ca4..b7760fe82a 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritablePowerOutletTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,13 +25,11 @@ type WritablePowerOutletTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other
- Type *string `json:"type,omitempty"`
- PowerPort NullableInt32 `json:"power_port,omitempty"`
- // Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C
- FeedLeg *string `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *PatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"`
+ PowerPort NullableInt32 `json:"power_port,omitempty"`
+ FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -197,9 +196,9 @@ func (o *WritablePowerOutletTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *WritablePowerOutletTemplateRequest) GetType() string {
+func (o *WritablePowerOutletTemplateRequest) GetType() PatchedWritablePowerOutletTemplateRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritablePowerOutletTemplateRequestType
return ret
}
return *o.Type
@@ -207,7 +206,7 @@ func (o *WritablePowerOutletTemplateRequest) GetType() string {
// 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 *WritablePowerOutletTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *WritablePowerOutletTemplateRequest) GetTypeOk() (*PatchedWritablePowerOutletTemplateRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -223,8 +222,8 @@ func (o *WritablePowerOutletTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *WritablePowerOutletTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritablePowerOutletTemplateRequestType and assigns it to the Type field.
+func (o *WritablePowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType) {
o.Type = &v
}
@@ -272,9 +271,9 @@ func (o *WritablePowerOutletTemplateRequest) UnsetPowerPort() {
}
// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise.
-func (o *WritablePowerOutletTemplateRequest) GetFeedLeg() string {
+func (o *WritablePowerOutletTemplateRequest) GetFeedLeg() PatchedWritablePowerOutletRequestFeedLeg {
if o == nil || IsNil(o.FeedLeg) {
- var ret string
+ var ret PatchedWritablePowerOutletRequestFeedLeg
return ret
}
return *o.FeedLeg
@@ -282,7 +281,7 @@ func (o *WritablePowerOutletTemplateRequest) GetFeedLeg() string {
// GetFeedLegOk returns a tuple with the FeedLeg field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritablePowerOutletTemplateRequest) GetFeedLegOk() (*string, bool) {
+func (o *WritablePowerOutletTemplateRequest) GetFeedLegOk() (*PatchedWritablePowerOutletRequestFeedLeg, bool) {
if o == nil || IsNil(o.FeedLeg) {
return nil, false
}
@@ -298,8 +297,8 @@ func (o *WritablePowerOutletTemplateRequest) HasFeedLeg() bool {
return false
}
-// SetFeedLeg gets a reference to the given string and assigns it to the FeedLeg field.
-func (o *WritablePowerOutletTemplateRequest) SetFeedLeg(v string) {
+// SetFeedLeg gets a reference to the given PatchedWritablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field.
+func (o *WritablePowerOutletTemplateRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg) {
o.FeedLeg = &v
}
@@ -375,10 +374,31 @@ func (o WritablePowerOutletTemplateRequest) ToMap() (map[string]interface{}, err
return toSerialize, nil
}
-func (o *WritablePowerOutletTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritablePowerOutletTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritablePowerOutletTemplateRequest := _WritablePowerOutletTemplateRequest{}
- err = json.Unmarshal(bytes, &varWritablePowerOutletTemplateRequest)
+ err = json.Unmarshal(data, &varWritablePowerOutletTemplateRequest)
if err != nil {
return err
@@ -388,7 +408,7 @@ func (o *WritablePowerOutletTemplateRequest) UnmarshalJSON(bytes []byte) (err er
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_writable_power_panel_request.go b/model_writable_power_panel_request.go
index 9881096d4f..d99d3b184e 100644
--- a/model_writable_power_panel_request.go
+++ b/model_writable_power_panel_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritablePowerPanelRequest type satisfies the MappedNullable interface at compile time
@@ -304,10 +305,32 @@ func (o WritablePowerPanelRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritablePowerPanelRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritablePowerPanelRequest)
+ err = json.Unmarshal(data, &varWritablePowerPanelRequest)
if err != nil {
return err
@@ -317,7 +340,7 @@ func (o *WritablePowerPanelRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "site")
delete(additionalProperties, "location")
delete(additionalProperties, "name")
diff --git a/model_writable_power_port_request.go b/model_writable_power_port_request.go
index bca9e61c3b..f68b6eb698 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritablePowerPortRequest type satisfies the MappedNullable interface at compile time
@@ -23,9 +24,8 @@ type WritablePowerPortRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other
- Type *string `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
@@ -183,9 +183,9 @@ func (o *WritablePowerPortRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *WritablePowerPortRequest) GetType() string {
+func (o *WritablePowerPortRequest) GetType() PatchedWritablePowerPortRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritablePowerPortRequestType
return ret
}
return *o.Type
@@ -193,7 +193,7 @@ func (o *WritablePowerPortRequest) GetType() string {
// 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 *WritablePowerPortRequest) GetTypeOk() (*string, bool) {
+func (o *WritablePowerPortRequest) GetTypeOk() (*PatchedWritablePowerPortRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -209,8 +209,8 @@ func (o *WritablePowerPortRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *WritablePowerPortRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritablePowerPortRequestType and assigns it to the Type field.
+func (o *WritablePowerPortRequest) SetType(v PatchedWritablePowerPortRequestType) {
o.Type = &v
}
@@ -475,10 +475,32 @@ func (o WritablePowerPortRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritablePowerPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritablePowerPortRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritablePowerPortRequest := _WritablePowerPortRequest{}
- err = json.Unmarshal(bytes, &varWritablePowerPortRequest)
+ err = json.Unmarshal(data, &varWritablePowerPortRequest)
if err != nil {
return err
@@ -488,7 +510,7 @@ func (o *WritablePowerPortRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_writable_power_port_template_request.go b/model_writable_power_port_template_request.go
index f1e52df339..991f76719e 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritablePowerPortTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,9 +25,8 @@ type WritablePowerPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `iec-60320-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 *string `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *PatchedWritablePowerPortTemplateRequestType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
@@ -198,9 +198,9 @@ func (o *WritablePowerPortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *WritablePowerPortTemplateRequest) GetType() string {
+func (o *WritablePowerPortTemplateRequest) GetType() PatchedWritablePowerPortTemplateRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritablePowerPortTemplateRequestType
return ret
}
return *o.Type
@@ -208,7 +208,7 @@ func (o *WritablePowerPortTemplateRequest) GetType() string {
// 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 *WritablePowerPortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *WritablePowerPortTemplateRequest) GetTypeOk() (*PatchedWritablePowerPortTemplateRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -224,8 +224,8 @@ func (o *WritablePowerPortTemplateRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *WritablePowerPortTemplateRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritablePowerPortTemplateRequestType and assigns it to the Type field.
+func (o *WritablePowerPortTemplateRequest) SetType(v PatchedWritablePowerPortTemplateRequestType) {
o.Type = &v
}
@@ -387,10 +387,31 @@ func (o WritablePowerPortTemplateRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *WritablePowerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritablePowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritablePowerPortTemplateRequest := _WritablePowerPortTemplateRequest{}
- err = json.Unmarshal(bytes, &varWritablePowerPortTemplateRequest)
+ err = json.Unmarshal(data, &varWritablePowerPortTemplateRequest)
if err != nil {
return err
@@ -400,7 +421,7 @@ func (o *WritablePowerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err erro
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_writable_prefix_request.go b/model_writable_prefix_request.go
index 3f0363af34..e9aa4cebf6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritablePrefixRequest type satisfies the MappedNullable interface at compile time
@@ -19,13 +20,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"`
- // Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
+ Prefix string `json:"prefix"`
+ Site NullableInt32 `json:"site,omitempty"`
+ Vrf NullableInt32 `json:"vrf,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
+ Vlan NullableInt32 `json:"vlan,omitempty"`
+ Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"`
// The primary function of this prefix
Role NullableInt32 `json:"role,omitempty"`
// All IP addresses within this prefix are considered usable
@@ -256,9 +256,9 @@ func (o *WritablePrefixRequest) UnsetVlan() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritablePrefixRequest) GetStatus() string {
+func (o *WritablePrefixRequest) GetStatus() PatchedWritablePrefixRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritablePrefixRequestStatus
return ret
}
return *o.Status
@@ -266,7 +266,7 @@ func (o *WritablePrefixRequest) GetStatus() string {
// 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 *WritablePrefixRequest) GetStatusOk() (*string, bool) {
+func (o *WritablePrefixRequest) GetStatusOk() (*PatchedWritablePrefixRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -282,8 +282,8 @@ func (o *WritablePrefixRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritablePrefixRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritablePrefixRequestStatus and assigns it to the Status field.
+func (o *WritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestStatus) {
o.Status = &v
}
@@ -577,10 +577,31 @@ func (o WritablePrefixRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritablePrefixRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritablePrefixRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "prefix",
+ }
+
+ 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)
+ }
+ }
+
varWritablePrefixRequest := _WritablePrefixRequest{}
- err = json.Unmarshal(bytes, &varWritablePrefixRequest)
+ err = json.Unmarshal(data, &varWritablePrefixRequest)
if err != nil {
return err
@@ -590,7 +611,7 @@ func (o *WritablePrefixRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "prefix")
delete(additionalProperties, "site")
delete(additionalProperties, "vrf")
diff --git a/model_writable_provider_account_request.go b/model_writable_provider_account_request.go
index 2a7d0e58fd..b87d1f27dc 100644
--- a/model_writable_provider_account_request.go
+++ b/model_writable_provider_account_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableProviderAccountRequest type satisfies the MappedNullable interface at compile time
@@ -293,10 +294,32 @@ func (o WritableProviderAccountRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *WritableProviderAccountRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableProviderAccountRequest)
+ err = json.Unmarshal(data, &varWritableProviderAccountRequest)
if err != nil {
return err
@@ -306,7 +329,7 @@ func (o *WritableProviderAccountRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "provider")
delete(additionalProperties, "name")
delete(additionalProperties, "account")
diff --git a/model_writable_provider_network_request.go b/model_writable_provider_network_request.go
index 1f1df3ef18..4dd78b7bce 100644
--- a/model_writable_provider_network_request.go
+++ b/model_writable_provider_network_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableProviderNetworkRequest type satisfies the MappedNullable interface at compile time
@@ -293,10 +294,32 @@ func (o WritableProviderNetworkRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *WritableProviderNetworkRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableProviderNetworkRequest)
+ err = json.Unmarshal(data, &varWritableProviderNetworkRequest)
if err != nil {
return err
@@ -306,7 +329,7 @@ func (o *WritableProviderNetworkRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "provider")
delete(additionalProperties, "name")
delete(additionalProperties, "service_id")
diff --git a/model_writable_provider_request.go b/model_writable_provider_request.go
index b676e45355..869d425c19 100644
--- a/model_writable_provider_request.go
+++ b/model_writable_provider_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableProviderRequest type satisfies the MappedNullable interface at compile time
@@ -321,10 +322,33 @@ func (o WritableProviderRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableProviderRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableProviderRequest)
+ err = json.Unmarshal(data, &varWritableProviderRequest)
if err != nil {
return err
@@ -334,7 +358,7 @@ func (o *WritableProviderRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "accounts")
diff --git a/model_writable_rack_request.go b/model_writable_rack_request.go
index c68c3731fb..c9e87fc3f6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableRackRequest type satisfies the MappedNullable interface at compile time
@@ -19,39 +20,34 @@ var _ MappedNullable = &WritableRackRequest{}
// WritableRackRequest Adds support for custom fields and tags.
type WritableRackRequest struct {
- Name string `json:"name"`
- FacilityId NullableString `json:"facility_id,omitempty"`
- Site int32 `json:"site"`
- Location NullableInt32 `json:"location,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- // * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
+ Name string `json:"name"`
+ FacilityId NullableString `json:"facility_id,omitempty"`
+ Site int32 `json:"site"`
+ Location NullableInt32 `json:"location,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
+ Status *PatchedWritableRackRequestStatus `json:"status,omitempty"`
// Functional role
Role NullableInt32 `json:"role,omitempty"`
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this rack
- AssetTag NullableString `json:"asset_tag,omitempty"`
- // * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)
- Type *string `json:"type,omitempty"`
- // Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches
- Width *int32 `json:"width,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ Type *PatchedWritableRackRequestType `json:"type,omitempty"`
+ Width *PatchedWritableRackRequestWidth `json:"width,omitempty"`
// Height in rack units
UHeight *int32 `json:"u_height,omitempty"`
// Starting unit for rack
StartingUnit *int32 `json:"starting_unit,omitempty"`
Weight NullableFloat64 `json:"weight,omitempty"`
// Maximum load capacity for the rack
- MaxWeight NullableInt32 `json:"max_weight,omitempty"`
- // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
- WeightUnit *string `json:"weight_unit,omitempty"`
+ MaxWeight NullableInt32 `json:"max_weight,omitempty"`
+ WeightUnit *DeviceTypeWeightUnitValue `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"`
- // * `mm` - Millimeters * `in` - Inches
- OuterUnit *string `json:"outer_unit,omitempty"`
+ OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
+ OuterUnit *PatchedWritableRackRequestOuterUnit `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"`
@@ -260,9 +256,9 @@ func (o *WritableRackRequest) UnsetTenant() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableRackRequest) GetStatus() string {
+func (o *WritableRackRequest) GetStatus() PatchedWritableRackRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritableRackRequestStatus
return ret
}
return *o.Status
@@ -270,7 +266,7 @@ func (o *WritableRackRequest) GetStatus() string {
// 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 *WritableRackRequest) GetStatusOk() (*string, bool) {
+func (o *WritableRackRequest) GetStatusOk() (*PatchedWritableRackRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -286,8 +282,8 @@ func (o *WritableRackRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritableRackRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritableRackRequestStatus and assigns it to the Status field.
+func (o *WritableRackRequest) SetStatus(v PatchedWritableRackRequestStatus) {
o.Status = &v
}
@@ -410,9 +406,9 @@ func (o *WritableRackRequest) UnsetAssetTag() {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *WritableRackRequest) GetType() string {
+func (o *WritableRackRequest) GetType() PatchedWritableRackRequestType {
if o == nil || IsNil(o.Type) {
- var ret string
+ var ret PatchedWritableRackRequestType
return ret
}
return *o.Type
@@ -420,7 +416,7 @@ func (o *WritableRackRequest) GetType() string {
// 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 *WritableRackRequest) GetTypeOk() (*string, bool) {
+func (o *WritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -436,15 +432,15 @@ func (o *WritableRackRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given string and assigns it to the Type field.
-func (o *WritableRackRequest) SetType(v string) {
+// SetType gets a reference to the given PatchedWritableRackRequestType and assigns it to the Type field.
+func (o *WritableRackRequest) SetType(v PatchedWritableRackRequestType) {
o.Type = &v
}
// GetWidth returns the Width field value if set, zero value otherwise.
-func (o *WritableRackRequest) GetWidth() int32 {
+func (o *WritableRackRequest) GetWidth() PatchedWritableRackRequestWidth {
if o == nil || IsNil(o.Width) {
- var ret int32
+ var ret PatchedWritableRackRequestWidth
return ret
}
return *o.Width
@@ -452,7 +448,7 @@ func (o *WritableRackRequest) GetWidth() int32 {
// 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 *WritableRackRequest) GetWidthOk() (*int32, bool) {
+func (o *WritableRackRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool) {
if o == nil || IsNil(o.Width) {
return nil, false
}
@@ -468,8 +464,8 @@ func (o *WritableRackRequest) HasWidth() bool {
return false
}
-// SetWidth gets a reference to the given int32 and assigns it to the Width field.
-func (o *WritableRackRequest) SetWidth(v int32) {
+// SetWidth gets a reference to the given PatchedWritableRackRequestWidth and assigns it to the Width field.
+func (o *WritableRackRequest) SetWidth(v PatchedWritableRackRequestWidth) {
o.Width = &v
}
@@ -624,9 +620,9 @@ func (o *WritableRackRequest) UnsetMaxWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise.
-func (o *WritableRackRequest) GetWeightUnit() string {
+func (o *WritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
if o == nil || IsNil(o.WeightUnit) {
- var ret string
+ var ret DeviceTypeWeightUnitValue
return ret
}
return *o.WeightUnit
@@ -634,7 +630,7 @@ func (o *WritableRackRequest) GetWeightUnit() string {
// 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() (*string, bool) {
+func (o *WritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) {
if o == nil || IsNil(o.WeightUnit) {
return nil, false
}
@@ -650,8 +646,8 @@ func (o *WritableRackRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given string and assigns it to the WeightUnit field.
-func (o *WritableRackRequest) SetWeightUnit(v string) {
+// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field.
+func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) {
o.WeightUnit = &v
}
@@ -774,9 +770,9 @@ func (o *WritableRackRequest) UnsetOuterDepth() {
}
// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise.
-func (o *WritableRackRequest) GetOuterUnit() string {
+func (o *WritableRackRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit {
if o == nil || IsNil(o.OuterUnit) {
- var ret string
+ var ret PatchedWritableRackRequestOuterUnit
return ret
}
return *o.OuterUnit
@@ -784,7 +780,7 @@ func (o *WritableRackRequest) GetOuterUnit() string {
// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableRackRequest) GetOuterUnitOk() (*string, bool) {
+func (o *WritableRackRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool) {
if o == nil || IsNil(o.OuterUnit) {
return nil, false
}
@@ -800,8 +796,8 @@ func (o *WritableRackRequest) HasOuterUnit() bool {
return false
}
-// SetOuterUnit gets a reference to the given string and assigns it to the OuterUnit field.
-func (o *WritableRackRequest) SetOuterUnit(v string) {
+// SetOuterUnit gets a reference to the given PatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field.
+func (o *WritableRackRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) {
o.OuterUnit = &v
}
@@ -1065,10 +1061,32 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableRackRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "site",
+ }
+
+ 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)
+ }
+ }
+
varWritableRackRequest := _WritableRackRequest{}
- err = json.Unmarshal(bytes, &varWritableRackRequest)
+ err = json.Unmarshal(data, &varWritableRackRequest)
if err != nil {
return err
@@ -1078,7 +1096,7 @@ func (o *WritableRackRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "facility_id")
delete(additionalProperties, "site")
diff --git a/model_writable_rack_reservation_request.go b/model_writable_rack_reservation_request.go
index 0bc74082fd..a13cdffe00 100644
--- a/model_writable_rack_reservation_request.go
+++ b/model_writable_rack_reservation_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableRackReservationRequest type satisfies the MappedNullable interface at compile time
@@ -322,10 +323,34 @@ func (o WritableRackReservationRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *WritableRackReservationRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableRackReservationRequest)
+ err = json.Unmarshal(data, &varWritableRackReservationRequest)
if err != nil {
return err
@@ -335,7 +360,7 @@ func (o *WritableRackReservationRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "rack")
delete(additionalProperties, "units")
delete(additionalProperties, "user")
diff --git a/model_writable_rear_port_request.go b/model_writable_rear_port_request.go
index d52995bcbf..1f7b21d9de 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableRearPortRequest type satisfies the MappedNullable interface at compile time
@@ -23,10 +24,9 @@ type WritableRearPortRequest struct {
Module NullableInt32 `json:"module,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
- Type string `json:"type"`
- Color *string `json:"color,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
+ Color *string `json:"color,omitempty"`
// Number of front ports which may be mapped
Positions *int32 `json:"positions,omitempty"`
Description *string `json:"description,omitempty"`
@@ -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_ string) *WritableRearPortRequest {
+func NewWritableRearPortRequest(device int32, name string, type_ FrontPortTypeValue) *WritableRearPortRequest {
this := WritableRearPortRequest{}
this.Device = device
this.Name = name
@@ -183,9 +183,9 @@ func (o *WritableRearPortRequest) SetLabel(v string) {
}
// GetType returns the Type field value
-func (o *WritableRearPortRequest) GetType() string {
+func (o *WritableRearPortRequest) GetType() FrontPortTypeValue {
if o == nil {
- var ret string
+ var ret FrontPortTypeValue
return ret
}
@@ -194,7 +194,7 @@ func (o *WritableRearPortRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *WritableRearPortRequest) GetTypeOk() (*string, bool) {
+func (o *WritableRearPortRequest) GetTypeOk() (*FrontPortTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -202,7 +202,7 @@ func (o *WritableRearPortRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *WritableRearPortRequest) SetType(v string) {
+func (o *WritableRearPortRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
@@ -443,10 +443,33 @@ func (o WritableRearPortRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableRearPortRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableRearPortRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "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)
+ }
+ }
+
varWritableRearPortRequest := _WritableRearPortRequest{}
- err = json.Unmarshal(bytes, &varWritableRearPortRequest)
+ err = json.Unmarshal(data, &varWritableRearPortRequest)
if err != nil {
return err
@@ -456,7 +479,7 @@ func (o *WritableRearPortRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "module")
delete(additionalProperties, "name")
diff --git a/model_writable_rear_port_template_request.go b/model_writable_rear_port_template_request.go
index d498e7fb7e..e08203ac90 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableRearPortTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -24,12 +25,11 @@ type WritableRearPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other
- Type string `json:"type"`
- Color *string `json:"color,omitempty"`
- Positions *int32 `json:"positions,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
+ Color *string `json:"color,omitempty"`
+ Positions *int32 `json:"positions,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -39,7 +39,7 @@ type _WritableRearPortTemplateRequest WritableRearPortTemplateRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableRearPortTemplateRequest(name string, type_ string) *WritableRearPortTemplateRequest {
+func NewWritableRearPortTemplateRequest(name string, type_ FrontPortTypeValue) *WritableRearPortTemplateRequest {
this := WritableRearPortTemplateRequest{}
this.Name = name
this.Type = type_
@@ -197,9 +197,9 @@ func (o *WritableRearPortTemplateRequest) SetLabel(v string) {
}
// GetType returns the Type field value
-func (o *WritableRearPortTemplateRequest) GetType() string {
+func (o *WritableRearPortTemplateRequest) GetType() FrontPortTypeValue {
if o == nil {
- var ret string
+ var ret FrontPortTypeValue
return ret
}
@@ -208,7 +208,7 @@ func (o *WritableRearPortTemplateRequest) GetType() string {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *WritableRearPortTemplateRequest) GetTypeOk() (*string, bool) {
+func (o *WritableRearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool) {
if o == nil {
return nil, false
}
@@ -216,7 +216,7 @@ func (o *WritableRearPortTemplateRequest) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *WritableRearPortTemplateRequest) SetType(v string) {
+func (o *WritableRearPortTemplateRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
@@ -354,10 +354,32 @@ func (o WritableRearPortTemplateRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *WritableRearPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableRearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "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)
+ }
+ }
+
varWritableRearPortTemplateRequest := _WritableRearPortTemplateRequest{}
- err = json.Unmarshal(bytes, &varWritableRearPortTemplateRequest)
+ err = json.Unmarshal(data, &varWritableRearPortTemplateRequest)
if err != nil {
return err
@@ -367,7 +389,7 @@ func (o *WritableRearPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device_type")
delete(additionalProperties, "module_type")
delete(additionalProperties, "name")
diff --git a/model_writable_region_request.go b/model_writable_region_request.go
index 71989ee3f9..3422a6768c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableRegionRequest type satisfies the MappedNullable interface at compile time
@@ -268,10 +269,32 @@ func (o WritableRegionRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableRegionRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableRegionRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableRegionRequest := _WritableRegionRequest{}
- err = json.Unmarshal(bytes, &varWritableRegionRequest)
+ err = json.Unmarshal(data, &varWritableRegionRequest)
if err != nil {
return err
@@ -281,7 +304,7 @@ func (o *WritableRegionRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_writable_route_target_request.go b/model_writable_route_target_request.go
index eaf6efa2b5..75e23feec5 100644
--- a/model_writable_route_target_request.go
+++ b/model_writable_route_target_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableRouteTargetRequest type satisfies the MappedNullable interface at compile time
@@ -278,10 +279,31 @@ func (o WritableRouteTargetRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableRouteTargetRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableRouteTargetRequest)
+ err = json.Unmarshal(data, &varWritableRouteTargetRequest)
if err != nil {
return err
@@ -291,7 +313,7 @@ func (o *WritableRouteTargetRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "tenant")
delete(additionalProperties, "description")
diff --git a/model_writable_service_request.go b/model_writable_service_request.go
index e27e8359f8..5f0710d03c 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableServiceRequest type satisfies the MappedNullable interface at compile time
@@ -19,12 +20,11 @@ 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"`
- // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP
- Protocol string `json:"protocol"`
+ 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"`
@@ -40,7 +40,7 @@ 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 string) *WritableServiceRequest {
+func NewWritableServiceRequest(name string, ports []int32, protocol PatchedWritableServiceRequestProtocol) *WritableServiceRequest {
this := WritableServiceRequest{}
this.Name = name
this.Ports = ports
@@ -191,9 +191,9 @@ func (o *WritableServiceRequest) SetPorts(v []int32) {
}
// GetProtocol returns the Protocol field value
-func (o *WritableServiceRequest) GetProtocol() string {
+func (o *WritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
if o == nil {
- var ret string
+ var ret PatchedWritableServiceRequestProtocol
return ret
}
@@ -202,7 +202,7 @@ func (o *WritableServiceRequest) GetProtocol() string {
// GetProtocolOk returns a tuple with the Protocol field value
// and a boolean to check if the value has been set.
-func (o *WritableServiceRequest) GetProtocolOk() (*string, bool) {
+func (o *WritableServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
if o == nil {
return nil, false
}
@@ -210,7 +210,7 @@ func (o *WritableServiceRequest) GetProtocolOk() (*string, bool) {
}
// SetProtocol sets field value
-func (o *WritableServiceRequest) SetProtocol(v string) {
+func (o *WritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
o.Protocol = v
}
@@ -416,10 +416,33 @@ func (o WritableServiceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableServiceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableServiceRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "ports",
+ "protocol",
+ }
+
+ 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)
+ }
+ }
+
varWritableServiceRequest := _WritableServiceRequest{}
- err = json.Unmarshal(bytes, &varWritableServiceRequest)
+ err = json.Unmarshal(data, &varWritableServiceRequest)
if err != nil {
return err
@@ -429,7 +452,7 @@ func (o *WritableServiceRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "device")
delete(additionalProperties, "virtual_machine")
delete(additionalProperties, "name")
diff --git a/model_writable_service_template_request.go b/model_writable_service_template_request.go
index cc219cddee..27083ec837 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableServiceTemplateRequest type satisfies the MappedNullable interface at compile time
@@ -19,14 +20,13 @@ var _ MappedNullable = &WritableServiceTemplateRequest{}
// WritableServiceTemplateRequest Adds support for custom fields and tags.
type WritableServiceTemplateRequest struct {
- Name string `json:"name"`
- Ports []int32 `json:"ports"`
- // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP
- Protocol string `json:"protocol"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Ports []int32 `json:"ports"`
+ Protocol PatchedWritableServiceRequestProtocol `json:"protocol"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -36,7 +36,7 @@ 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 string) *WritableServiceTemplateRequest {
+func NewWritableServiceTemplateRequest(name string, ports []int32, protocol PatchedWritableServiceRequestProtocol) *WritableServiceTemplateRequest {
this := WritableServiceTemplateRequest{}
this.Name = name
this.Ports = ports
@@ -101,9 +101,9 @@ func (o *WritableServiceTemplateRequest) SetPorts(v []int32) {
}
// GetProtocol returns the Protocol field value
-func (o *WritableServiceTemplateRequest) GetProtocol() string {
+func (o *WritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
if o == nil {
- var ret string
+ var ret PatchedWritableServiceRequestProtocol
return ret
}
@@ -112,7 +112,7 @@ func (o *WritableServiceTemplateRequest) GetProtocol() string {
// GetProtocolOk returns a tuple with the Protocol field value
// and a boolean to check if the value has been set.
-func (o *WritableServiceTemplateRequest) GetProtocolOk() (*string, bool) {
+func (o *WritableServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
if o == nil {
return nil, false
}
@@ -120,7 +120,7 @@ func (o *WritableServiceTemplateRequest) GetProtocolOk() (*string, bool) {
}
// SetProtocol sets field value
-func (o *WritableServiceTemplateRequest) SetProtocol(v string) {
+func (o *WritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
o.Protocol = v
}
@@ -285,10 +285,33 @@ func (o WritableServiceTemplateRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *WritableServiceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableServiceTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "ports",
+ "protocol",
+ }
+
+ 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)
+ }
+ }
+
varWritableServiceTemplateRequest := _WritableServiceTemplateRequest{}
- err = json.Unmarshal(bytes, &varWritableServiceTemplateRequest)
+ err = json.Unmarshal(data, &varWritableServiceTemplateRequest)
if err != nil {
return err
@@ -298,7 +321,7 @@ func (o *WritableServiceTemplateRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "ports")
delete(additionalProperties, "protocol")
diff --git a/model_writable_site_group_request.go b/model_writable_site_group_request.go
index 6653d64f90..14f60f0ba6 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableSiteGroupRequest type satisfies the MappedNullable interface at compile time
@@ -268,10 +269,32 @@ func (o WritableSiteGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableSiteGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableSiteGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableSiteGroupRequest := _WritableSiteGroupRequest{}
- err = json.Unmarshal(bytes, &varWritableSiteGroupRequest)
+ err = json.Unmarshal(data, &varWritableSiteGroupRequest)
if err != nil {
return err
@@ -281,7 +304,7 @@ func (o *WritableSiteGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_writable_site_request.go b/model_writable_site_request.go
index 2e15fba991..ba7e64e74b 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableSiteRequest type satisfies the MappedNullable interface at compile time
@@ -20,13 +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"`
- // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired
- Status *string `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 *LocationStatusValue `json:"status,omitempty"`
+ Region NullableInt32 `json:"region,omitempty"`
+ Group NullableInt32 `json:"group,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
// Local facility ID or description
Facility *string `json:"facility,omitempty"`
TimeZone NullableString `json:"time_zone,omitempty"`
@@ -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() string {
+func (o *WritableSiteRequest) GetStatus() LocationStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret LocationStatusValue
return ret
}
return *o.Status
@@ -126,7 +126,7 @@ func (o *WritableSiteRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *WritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -142,8 +142,8 @@ func (o *WritableSiteRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritableSiteRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field.
+func (o *WritableSiteRequest) SetStatus(v LocationStatusValue) {
o.Status = &v
}
@@ -726,10 +726,32 @@ func (o WritableSiteRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableSiteRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableSiteRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableSiteRequest := _WritableSiteRequest{}
- err = json.Unmarshal(bytes, &varWritableSiteRequest)
+ err = json.Unmarshal(data, &varWritableSiteRequest)
if err != nil {
return err
@@ -739,7 +761,7 @@ func (o *WritableSiteRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "status")
diff --git a/model_writable_tenant_group_request.go b/model_writable_tenant_group_request.go
index 56f2367990..4fb204863f 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableTenantGroupRequest type satisfies the MappedNullable interface at compile time
@@ -268,10 +269,32 @@ func (o WritableTenantGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableTenantGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableTenantGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableTenantGroupRequest := _WritableTenantGroupRequest{}
- err = json.Unmarshal(bytes, &varWritableTenantGroupRequest)
+ err = json.Unmarshal(data, &varWritableTenantGroupRequest)
if err != nil {
return err
@@ -281,7 +304,7 @@ func (o *WritableTenantGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_writable_tenant_request.go b/model_writable_tenant_request.go
index 2932644aca..08d704813c 100644
--- a/model_writable_tenant_request.go
+++ b/model_writable_tenant_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableTenantRequest type satisfies the MappedNullable interface at compile time
@@ -304,10 +305,32 @@ func (o WritableTenantRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableTenantRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableTenantRequest)
+ err = json.Unmarshal(data, &varWritableTenantRequest)
if err != nil {
return err
@@ -317,7 +340,7 @@ func (o *WritableTenantRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "group")
diff --git a/model_writable_token_request.go b/model_writable_token_request.go
index 519fa794d8..d47fdb69fd 100644
--- a/model_writable_token_request.go
+++ b/model_writable_token_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -290,10 +291,31 @@ func (o WritableTokenRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableTokenRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableTokenRequest)
+ err = json.Unmarshal(data, &varWritableTokenRequest)
if err != nil {
return err
@@ -303,7 +325,7 @@ func (o *WritableTokenRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "user")
delete(additionalProperties, "expires")
delete(additionalProperties, "last_used")
diff --git a/model_writable_tunnel_request.go b/model_writable_tunnel_request.go
new file mode 100644
index 0000000000..efc8660333
--- /dev/null
+++ b/model_writable_tunnel_request.go
@@ -0,0 +1,572 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WritableTunnelRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WritableTunnelRequest{}
+
+// WritableTunnelRequest Adds support for custom fields and tags.
+type WritableTunnelRequest struct {
+ Name string `json:"name"`
+ Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"`
+ Group NullableInt32 `json:"group,omitempty"`
+ Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"`
+ IpsecProfile NullableInt32 `json:"ipsec_profile,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
+ TunnelId NullableInt64 `json:"tunnel_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WritableTunnelRequest WritableTunnelRequest
+
+// NewWritableTunnelRequest instantiates a new WritableTunnelRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWritableTunnelRequest(name string, encapsulation PatchedWritableTunnelRequestEncapsulation) *WritableTunnelRequest {
+ this := WritableTunnelRequest{}
+ this.Name = name
+ this.Encapsulation = encapsulation
+ return &this
+}
+
+// NewWritableTunnelRequestWithDefaults instantiates a new WritableTunnelRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWritableTunnelRequestWithDefaults() *WritableTunnelRequest {
+ this := WritableTunnelRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *WritableTunnelRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *WritableTunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus {
+ if o == nil || IsNil(o.Status) {
+ var ret PatchedWritableTunnelRequestStatus
+ 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 *WritableTunnelRequest) GetStatusOk() (*PatchedWritableTunnelRequestStatus, 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 *WritableTunnelRequest) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given PatchedWritableTunnelRequestStatus and assigns it to the Status field.
+func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) SetGroup(v int32) {
+ o.Group.Set(&v)
+}
+
+// SetGroupNil sets the value for Group to be an explicit nil
+func (o *WritableTunnelRequest) SetGroupNil() {
+ o.Group.Set(nil)
+}
+
+// UnsetGroup ensures that no value is present for Group, not even an explicit nil
+func (o *WritableTunnelRequest) UnsetGroup() {
+ o.Group.Unset()
+}
+
+// GetEncapsulation returns the Encapsulation field value
+func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) GetEncapsulationOk() (*PatchedWritableTunnelRequestEncapsulation, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Encapsulation, true
+}
+
+// SetEncapsulation sets field value
+func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) GetIpsecProfile() int32 {
+ if o == nil || IsNil(o.IpsecProfile.Get()) {
+ var ret int32
+ 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 *WritableTunnelRequest) GetIpsecProfileOk() (*int32, 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 *WritableTunnelRequest) HasIpsecProfile() bool {
+ if o != nil && o.IpsecProfile.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetIpsecProfile gets a reference to the given NullableInt32 and assigns it to the IpsecProfile field.
+func (o *WritableTunnelRequest) SetIpsecProfile(v int32) {
+ o.IpsecProfile.Set(&v)
+}
+
+// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil
+func (o *WritableTunnelRequest) SetIpsecProfileNil() {
+ o.IpsecProfile.Set(nil)
+}
+
+// UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil
+func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) SetTenant(v int32) {
+ o.Tenant.Set(&v)
+}
+
+// SetTenantNil sets the value for Tenant to be an explicit nil
+func (o *WritableTunnelRequest) SetTenantNil() {
+ o.Tenant.Set(nil)
+}
+
+// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
+func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) SetTunnelId(v int64) {
+ o.TunnelId.Set(&v)
+}
+
+// SetTunnelIdNil sets the value for TunnelId to be an explicit nil
+func (o *WritableTunnelRequest) SetTunnelIdNil() {
+ o.TunnelId.Set(nil)
+}
+
+// UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil
+func (o *WritableTunnelRequest) UnsetTunnelId() {
+ o.TunnelId.Unset()
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) 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 *WritableTunnelRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o WritableTunnelRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WritableTunnelRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Status) {
+ 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
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WritableTunnelRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "encapsulation",
+ }
+
+ 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)
+ }
+ }
+
+ varWritableTunnelRequest := _WritableTunnelRequest{}
+
+ err = json.Unmarshal(data, &varWritableTunnelRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WritableTunnelRequest(varWritableTunnelRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ 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
+ }
+
+ return err
+}
+
+type NullableWritableTunnelRequest struct {
+ value *WritableTunnelRequest
+ isSet bool
+}
+
+func (v NullableWritableTunnelRequest) Get() *WritableTunnelRequest {
+ return v.value
+}
+
+func (v *NullableWritableTunnelRequest) Set(val *WritableTunnelRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWritableTunnelRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWritableTunnelRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWritableTunnelRequest(val *WritableTunnelRequest) *NullableWritableTunnelRequest {
+ return &NullableWritableTunnelRequest{value: val, isSet: true}
+}
+
+func (v NullableWritableTunnelRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWritableTunnelRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_writable_tunnel_termination_request.go b/model_writable_tunnel_termination_request.go
new file mode 100644
index 0000000000..05943533b3
--- /dev/null
+++ b/model_writable_tunnel_termination_request.go
@@ -0,0 +1,402 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (3.7)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WritableTunnelTerminationRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WritableTunnelTerminationRequest{}
+
+// WritableTunnelTerminationRequest Adds support for custom fields and tags.
+type WritableTunnelTerminationRequest struct {
+ Tunnel int32 `json:"tunnel"`
+ Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"`
+ TerminationType string `json:"termination_type"`
+ TerminationId NullableInt64 `json:"termination_id,omitempty"`
+ OutsideIp NullableInt32 `json:"outside_ip,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WritableTunnelTerminationRequest WritableTunnelTerminationRequest
+
+// NewWritableTunnelTerminationRequest instantiates a new WritableTunnelTerminationRequest object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ this := WritableTunnelTerminationRequest{}
+ this.Tunnel = tunnel
+ this.TerminationType = terminationType
+ return &this
+}
+
+// NewWritableTunnelTerminationRequestWithDefaults instantiates a new WritableTunnelTerminationRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWritableTunnelTerminationRequestWithDefaults() *WritableTunnelTerminationRequest {
+ this := WritableTunnelTerminationRequest{}
+ return &this
+}
+
+// GetTunnel returns the Tunnel field value
+func (o *WritableTunnelTerminationRequest) GetTunnel() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.Tunnel
+}
+
+// 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) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Tunnel, true
+}
+
+// SetTunnel sets field value
+func (o *WritableTunnelTerminationRequest) SetTunnel(v int32) {
+ o.Tunnel = v
+}
+
+// GetRole returns the Role field value if set, zero value otherwise.
+func (o *WritableTunnelTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole {
+ if o == nil || IsNil(o.Role) {
+ var ret PatchedWritableTunnelTerminationRequestRole
+ return ret
+ }
+ return *o.Role
+}
+
+// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableTunnelTerminationRequest) GetRoleOk() (*PatchedWritableTunnelTerminationRequestRole, bool) {
+ if o == nil || IsNil(o.Role) {
+ return nil, false
+ }
+ return o.Role, true
+}
+
+// HasRole returns a boolean if a field has been set.
+func (o *WritableTunnelTerminationRequest) HasRole() bool {
+ if o != nil && !IsNil(o.Role) {
+ return true
+ }
+
+ return false
+}
+
+// SetRole gets a reference to the given PatchedWritableTunnelTerminationRequestRole and assigns it to the Role field.
+func (o *WritableTunnelTerminationRequest) SetRole(v PatchedWritableTunnelTerminationRequestRole) {
+ o.Role = &v
+}
+
+// GetTerminationType returns the TerminationType field value
+func (o *WritableTunnelTerminationRequest) GetTerminationType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.TerminationType
+}
+
+// GetTerminationTypeOk returns a tuple with the TerminationType field value
+// and a boolean to check if the value has been set.
+func (o *WritableTunnelTerminationRequest) GetTerminationTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TerminationType, true
+}
+
+// SetTerminationType sets field value
+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).
+func (o *WritableTunnelTerminationRequest) GetTerminationId() int64 {
+ if o == nil || IsNil(o.TerminationId.Get()) {
+ var ret int64
+ return ret
+ }
+ return *o.TerminationId.Get()
+}
+
+// GetTerminationIdOk returns a tuple with the TerminationId field value if set, nil otherwise
+// and a 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) {
+ if o == nil {
+ return nil, false
+ }
+ return o.TerminationId.Get(), o.TerminationId.IsSet()
+}
+
+// HasTerminationId returns a boolean if a field has been set.
+func (o *WritableTunnelTerminationRequest) HasTerminationId() bool {
+ if o != nil && o.TerminationId.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetTerminationId gets a reference to the given NullableInt64 and assigns it to the TerminationId field.
+func (o *WritableTunnelTerminationRequest) SetTerminationId(v int64) {
+ o.TerminationId.Set(&v)
+}
+
+// SetTerminationIdNil sets the value for TerminationId to be an explicit nil
+func (o *WritableTunnelTerminationRequest) SetTerminationIdNil() {
+ o.TerminationId.Set(nil)
+}
+
+// UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil
+func (o *WritableTunnelTerminationRequest) UnsetTerminationId() {
+ o.TerminationId.Unset()
+}
+
+// GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableTunnelTerminationRequest) GetOutsideIp() int32 {
+ if o == nil || IsNil(o.OutsideIp.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.OutsideIp.Get()
+}
+
+// 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) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OutsideIp.Get(), o.OutsideIp.IsSet()
+}
+
+// HasOutsideIp returns a boolean if a field has been set.
+func (o *WritableTunnelTerminationRequest) HasOutsideIp() bool {
+ if o != nil && o.OutsideIp.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetOutsideIp gets a reference to the given NullableInt32 and assigns it to the OutsideIp field.
+func (o *WritableTunnelTerminationRequest) SetOutsideIp(v int32) {
+ o.OutsideIp.Set(&v)
+}
+
+// SetOutsideIpNil sets the value for OutsideIp to be an explicit nil
+func (o *WritableTunnelTerminationRequest) SetOutsideIpNil() {
+ o.OutsideIp.Set(nil)
+}
+
+// UnsetOutsideIp ensures that no value is present for OutsideIp, not even an explicit nil
+func (o *WritableTunnelTerminationRequest) UnsetOutsideIp() {
+ o.OutsideIp.Unset()
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *WritableTunnelTerminationRequest) 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 *WritableTunnelTerminationRequest) 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 *WritableTunnelTerminationRequest) 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 *WritableTunnelTerminationRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *WritableTunnelTerminationRequest) 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 *WritableTunnelTerminationRequest) 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 *WritableTunnelTerminationRequest) 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 *WritableTunnelTerminationRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o WritableTunnelTerminationRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WritableTunnelTerminationRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["tunnel"] = o.Tunnel
+ if !IsNil(o.Role) {
+ toSerialize["role"] = o.Role
+ }
+ toSerialize["termination_type"] = o.TerminationType
+ if o.TerminationId.IsSet() {
+ toSerialize["termination_id"] = o.TerminationId.Get()
+ }
+ if o.OutsideIp.IsSet() {
+ toSerialize["outside_ip"] = o.OutsideIp.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 *WritableTunnelTerminationRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "tunnel",
+ "termination_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)
+ }
+ }
+
+ varWritableTunnelTerminationRequest := _WritableTunnelTerminationRequest{}
+
+ err = json.Unmarshal(data, &varWritableTunnelTerminationRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WritableTunnelTerminationRequest(varWritableTunnelTerminationRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "tunnel")
+ delete(additionalProperties, "role")
+ delete(additionalProperties, "termination_type")
+ delete(additionalProperties, "termination_id")
+ delete(additionalProperties, "outside_ip")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWritableTunnelTerminationRequest struct {
+ value *WritableTunnelTerminationRequest
+ isSet bool
+}
+
+func (v NullableWritableTunnelTerminationRequest) Get() *WritableTunnelTerminationRequest {
+ return v.value
+}
+
+func (v *NullableWritableTunnelTerminationRequest) Set(val *WritableTunnelTerminationRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWritableTunnelTerminationRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWritableTunnelTerminationRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWritableTunnelTerminationRequest(val *WritableTunnelTerminationRequest) *NullableWritableTunnelTerminationRequest {
+ return &NullableWritableTunnelTerminationRequest{value: val, isSet: true}
+}
+
+func (v NullableWritableTunnelTerminationRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWritableTunnelTerminationRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_writable_user_request.go b/model_writable_user_request.go
index 3adada89cf..a18294695e 100644
--- a/model_writable_user_request.go
+++ b/model_writable_user_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
"time"
)
@@ -370,10 +371,32 @@ func (o WritableUserRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableUserRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableUserRequest)
+ err = json.Unmarshal(data, &varWritableUserRequest)
if err != nil {
return err
@@ -383,7 +406,7 @@ func (o *WritableUserRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "username")
delete(additionalProperties, "password")
delete(additionalProperties, "first_name")
diff --git a/model_writable_virtual_chassis_request.go b/model_writable_virtual_chassis_request.go
index 8fcdcabffb..b2494e60b5 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableVirtualChassisRequest type satisfies the MappedNullable interface at compile time
@@ -313,10 +314,31 @@ func (o WritableVirtualChassisRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableVirtualChassisRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableVirtualChassisRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableVirtualChassisRequest := _WritableVirtualChassisRequest{}
- err = json.Unmarshal(bytes, &varWritableVirtualChassisRequest)
+ err = json.Unmarshal(data, &varWritableVirtualChassisRequest)
if err != nil {
return err
@@ -326,7 +348,7 @@ func (o *WritableVirtualChassisRequest) UnmarshalJSON(bytes []byte) (err error)
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "domain")
delete(additionalProperties, "master")
diff --git a/model_writable_virtual_device_context_request.go b/model_writable_virtual_device_context_request.go
index c051547b83..b769a0e4d1 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableVirtualDeviceContextRequest type satisfies the MappedNullable interface at compile time
@@ -22,16 +23,15 @@ type WritableVirtualDeviceContextRequest struct {
Name string `json:"name"`
Device NullableInt32 `json:"device,omitempty"`
// Numeric identifier unique to the parent device
- Identifier NullableInt32 `json:"identifier,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"`
- // * `active` - Active * `planned` - Planned * `offline` - Offline
- Status string `json:"status"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Identifier NullableInt32 `json:"identifier,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
+ PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"`
+ Status PatchedWritableVirtualDeviceContextRequestStatus `json:"status"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -41,7 +41,7 @@ type _WritableVirtualDeviceContextRequest WritableVirtualDeviceContextRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableVirtualDeviceContextRequest(name string, status string) *WritableVirtualDeviceContextRequest {
+func NewWritableVirtualDeviceContextRequest(name string, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest {
this := WritableVirtualDeviceContextRequest{}
this.Name = name
this.Status = status
@@ -296,9 +296,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetPrimaryIp6() {
}
// GetStatus returns the Status field value
-func (o *WritableVirtualDeviceContextRequest) GetStatus() string {
+func (o *WritableVirtualDeviceContextRequest) GetStatus() PatchedWritableVirtualDeviceContextRequestStatus {
if o == nil {
- var ret string
+ var ret PatchedWritableVirtualDeviceContextRequestStatus
return ret
}
@@ -307,7 +307,7 @@ func (o *WritableVirtualDeviceContextRequest) GetStatus() string {
// GetStatusOk returns a tuple with the Status field value
// and a boolean to check if the value has been set.
-func (o *WritableVirtualDeviceContextRequest) GetStatusOk() (*string, bool) {
+func (o *WritableVirtualDeviceContextRequest) GetStatusOk() (*PatchedWritableVirtualDeviceContextRequestStatus, bool) {
if o == nil {
return nil, false
}
@@ -315,7 +315,7 @@ func (o *WritableVirtualDeviceContextRequest) GetStatusOk() (*string, bool) {
}
// SetStatus sets field value
-func (o *WritableVirtualDeviceContextRequest) SetStatus(v string) {
+func (o *WritableVirtualDeviceContextRequest) SetStatus(v PatchedWritableVirtualDeviceContextRequestStatus) {
o.Status = v
}
@@ -494,10 +494,32 @@ func (o WritableVirtualDeviceContextRequest) ToMap() (map[string]interface{}, er
return toSerialize, nil
}
-func (o *WritableVirtualDeviceContextRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableVirtualDeviceContextRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "status",
+ }
+
+ 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)
+ }
+ }
+
varWritableVirtualDeviceContextRequest := _WritableVirtualDeviceContextRequest{}
- err = json.Unmarshal(bytes, &varWritableVirtualDeviceContextRequest)
+ err = json.Unmarshal(data, &varWritableVirtualDeviceContextRequest)
if err != nil {
return err
@@ -507,7 +529,7 @@ func (o *WritableVirtualDeviceContextRequest) UnmarshalJSON(bytes []byte) (err e
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "device")
delete(additionalProperties, "identifier")
diff --git a/model_writable_virtual_disk_request.go b/model_writable_virtual_disk_request.go
new file mode 100644
index 0000000000..7643acf2e7
--- /dev/null
+++ b/model_writable_virtual_disk_request.go
@@ -0,0 +1,335 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 3.7.0 (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 cc56b43d94..2fd2912ed4 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableVirtualMachineWithConfigContextRequest type satisfies the MappedNullable interface at compile time
@@ -19,24 +20,23 @@ var _ MappedNullable = &WritableVirtualMachineWithConfigContextRequest{}
// WritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags.
type WritableVirtualMachineWithConfigContextRequest struct {
- Name string `json:"name"`
- // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- Site NullableInt32 `json:"site,omitempty"`
- Cluster NullableInt32 `json:"cluster,omitempty"`
- Device NullableInt32 `json:"device,omitempty"`
- Role NullableInt32 `json:"role,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Platform NullableInt32 `json:"platform,omitempty"`
- PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"`
- Vcpus NullableFloat64 `json:"vcpus,omitempty"`
- Memory NullableInt32 `json:"memory,omitempty"`
- Disk NullableInt32 `json:"disk,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
+ 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"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData map[string]interface{} `json:"local_context_data,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -87,9 +87,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetName(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() string {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret ModuleStatusValue
return ret
}
return *o.Status
@@ -97,7 +97,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -113,8 +113,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) {
o.Status = &v
}
@@ -656,9 +656,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetComments(v string) {
}
// GetLocalContextData returns the LocalContextData field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualMachineWithConfigContextRequest) GetLocalContextData() map[string]interface{} {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetLocalContextData() interface{} {
if o == nil {
- var ret map[string]interface{}
+ var ret interface{}
return ret
}
return o.LocalContextData
@@ -667,11 +667,11 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetLocalContextData() m
// GetLocalContextDataOk returns a tuple with the LocalContextData field value if set, nil otherwise
// and a 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) GetLocalContextDataOk() (map[string]interface{}, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetLocalContextDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.LocalContextData) {
- return map[string]interface{}{}, false
+ return nil, false
}
- return o.LocalContextData, true
+ return &o.LocalContextData, true
}
// HasLocalContextData returns a boolean if a field has been set.
@@ -683,8 +683,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasLocalContextData() b
return false
}
-// SetLocalContextData gets a reference to the given map[string]interface{} and assigns it to the LocalContextData field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetLocalContextData(v map[string]interface{}) {
+// SetLocalContextData gets a reference to the given interface{} and assigns it to the LocalContextData field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetLocalContextData(v interface{}) {
o.LocalContextData = v
}
@@ -822,10 +822,31 @@ func (o WritableVirtualMachineWithConfigContextRequest) ToMap() (map[string]inte
return toSerialize, nil
}
-func (o *WritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableVirtualMachineWithConfigContextRequest := _WritableVirtualMachineWithConfigContextRequest{}
- err = json.Unmarshal(bytes, &varWritableVirtualMachineWithConfigContextRequest)
+ err = json.Unmarshal(data, &varWritableVirtualMachineWithConfigContextRequest)
if err != nil {
return err
@@ -835,7 +856,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(bytes []b
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "status")
delete(additionalProperties, "site")
diff --git a/model_writable_vlan_request.go b/model_writable_vlan_request.go
index f7df357b7e..a18214e428 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableVLANRequest type satisfies the MappedNullable interface at compile time
@@ -24,11 +25,10 @@ type WritableVLANRequest struct {
// VLAN group (optional)
Group NullableInt32 `json:"group,omitempty"`
// Numeric VLAN ID (1-4094)
- Vid int32 `json:"vid"`
- Name string `json:"name"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- // Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
+ 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"`
@@ -237,9 +237,9 @@ func (o *WritableVLANRequest) UnsetTenant() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableVLANRequest) GetStatus() string {
+func (o *WritableVLANRequest) GetStatus() PatchedWritableVLANRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritableVLANRequestStatus
return ret
}
return *o.Status
@@ -247,7 +247,7 @@ func (o *WritableVLANRequest) GetStatus() string {
// 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 *WritableVLANRequest) GetStatusOk() (*string, bool) {
+func (o *WritableVLANRequest) GetStatusOk() (*PatchedWritableVLANRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -263,8 +263,8 @@ func (o *WritableVLANRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritableVLANRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritableVLANRequestStatus and assigns it to the Status field.
+func (o *WritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatus) {
o.Status = &v
}
@@ -486,10 +486,32 @@ func (o WritableVLANRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableVLANRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableVLANRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableVLANRequest := _WritableVLANRequest{}
- err = json.Unmarshal(bytes, &varWritableVLANRequest)
+ err = json.Unmarshal(data, &varWritableVLANRequest)
if err != nil {
return err
@@ -499,7 +521,7 @@ func (o *WritableVLANRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "site")
delete(additionalProperties, "group")
delete(additionalProperties, "vid")
diff --git a/model_writable_vm_interface_request.go b/model_writable_vm_interface_request.go
index b74f6f34d9..a8822abf1d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableVMInterfaceRequest type satisfies the MappedNullable interface at compile time
@@ -19,21 +20,20 @@ var _ MappedNullable = &WritableVMInterfaceRequest{}
// WritableVMInterfaceRequest Adds support for custom fields and tags.
type WritableVMInterfaceRequest struct {
- VirtualMachine int32 `json:"virtual_machine"`
- Name string `json:"name"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Bridge NullableInt32 `json:"bridge,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- MacAddress NullableString `json:"mac_address,omitempty"`
- Description *string `json:"description,omitempty"`
- // IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All)
- Mode *string `json:"mode,omitempty"`
- UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"`
- TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ VirtualMachine int32 `json:"virtual_machine"`
+ Name string `json:"name"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Bridge NullableInt32 `json:"bridge,omitempty"`
+ Mtu NullableInt32 `json:"mtu,omitempty"`
+ MacAddress NullableString `json:"mac_address,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
+ UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"`
+ TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
+ Vrf NullableInt32 `json:"vrf,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -343,9 +343,9 @@ func (o *WritableVMInterfaceRequest) SetDescription(v string) {
}
// GetMode returns the Mode field value if set, zero value otherwise.
-func (o *WritableVMInterfaceRequest) GetMode() string {
+func (o *WritableVMInterfaceRequest) GetMode() PatchedWritableInterfaceRequestMode {
if o == nil || IsNil(o.Mode) {
- var ret string
+ var ret PatchedWritableInterfaceRequestMode
return ret
}
return *o.Mode
@@ -353,7 +353,7 @@ func (o *WritableVMInterfaceRequest) GetMode() string {
// GetModeOk returns a tuple with the Mode field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableVMInterfaceRequest) GetModeOk() (*string, bool) {
+func (o *WritableVMInterfaceRequest) GetModeOk() (*PatchedWritableInterfaceRequestMode, bool) {
if o == nil || IsNil(o.Mode) {
return nil, false
}
@@ -369,8 +369,8 @@ func (o *WritableVMInterfaceRequest) HasMode() bool {
return false
}
-// SetMode gets a reference to the given string and assigns it to the Mode field.
-func (o *WritableVMInterfaceRequest) SetMode(v string) {
+// SetMode gets a reference to the given PatchedWritableInterfaceRequestMode and assigns it to the Mode field.
+func (o *WritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode) {
o.Mode = &v
}
@@ -612,10 +612,32 @@ func (o WritableVMInterfaceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableVMInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableVMInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ }
+
+ 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)
+ }
+ }
+
varWritableVMInterfaceRequest := _WritableVMInterfaceRequest{}
- err = json.Unmarshal(bytes, &varWritableVMInterfaceRequest)
+ err = json.Unmarshal(data, &varWritableVMInterfaceRequest)
if err != nil {
return err
@@ -625,7 +647,7 @@ func (o *WritableVMInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "virtual_machine")
delete(additionalProperties, "name")
delete(additionalProperties, "enabled")
diff --git a/model_writable_vrf_request.go b/model_writable_vrf_request.go
index 1e87cb5ab5..92a1cd6876 100644
--- a/model_writable_vrf_request.go
+++ b/model_writable_vrf_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableVRFRequest type satisfies the MappedNullable interface at compile time
@@ -434,10 +435,31 @@ func (o WritableVRFRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableVRFRequest) UnmarshalJSON(bytes []byte) (err error) {
+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(bytes, &varWritableVRFRequest)
+ err = json.Unmarshal(data, &varWritableVRFRequest)
if err != nil {
return err
@@ -447,7 +469,7 @@ func (o *WritableVRFRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "rd")
delete(additionalProperties, "tenant")
diff --git a/model_writable_wireless_lan_group_request.go b/model_writable_wireless_lan_group_request.go
index 881cc7c9d7..5a4b9a77c2 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableWirelessLANGroupRequest type satisfies the MappedNullable interface at compile time
@@ -268,10 +269,32 @@ func (o WritableWirelessLANGroupRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *WritableWirelessLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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)
+ }
+ }
+
varWritableWirelessLANGroupRequest := _WritableWirelessLANGroupRequest{}
- err = json.Unmarshal(bytes, &varWritableWirelessLANGroupRequest)
+ err = json.Unmarshal(data, &varWritableWirelessLANGroupRequest)
if err != nil {
return err
@@ -281,7 +304,7 @@ func (o *WritableWirelessLANGroupRequest) UnmarshalJSON(bytes []byte) (err error
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "parent")
diff --git a/model_writable_wireless_lan_request.go b/model_writable_wireless_lan_request.go
index 19e285598b..30874503c3 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableWirelessLANRequest type satisfies the MappedNullable interface at compile time
@@ -19,21 +20,18 @@ var _ MappedNullable = &WritableWirelessLANRequest{}
// WritableWirelessLANRequest Adds support for custom fields and tags.
type WritableWirelessLANRequest struct {
- Ssid string `json:"ssid"`
- Description *string `json:"description,omitempty"`
- Group NullableInt32 `json:"group,omitempty"`
- // * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated
- Status *string `json:"status,omitempty"`
- Vlan NullableInt32 `json:"vlan,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise
- AuthType *string `json:"auth_type,omitempty"`
- // * `auto` - Auto * `tkip` - TKIP * `aes` - AES
- AuthCipher *string `json:"auth_cipher,omitempty"`
- AuthPsk *string `json:"auth_psk,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Ssid string `json:"ssid"`
+ Description *string `json:"description,omitempty"`
+ Group NullableInt32 `json:"group,omitempty"`
+ Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"`
+ Vlan NullableInt32 `json:"vlan,omitempty"`
+ Tenant NullableInt32 `json:"tenant,omitempty"`
+ AuthType *AuthenticationType1 `json:"auth_type,omitempty"`
+ AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"`
+ AuthPsk *string `json:"auth_psk,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -157,9 +155,9 @@ func (o *WritableWirelessLANRequest) UnsetGroup() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableWirelessLANRequest) GetStatus() string {
+func (o *WritableWirelessLANRequest) GetStatus() PatchedWritableWirelessLANRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret PatchedWritableWirelessLANRequestStatus
return ret
}
return *o.Status
@@ -167,7 +165,7 @@ func (o *WritableWirelessLANRequest) GetStatus() string {
// 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 *WritableWirelessLANRequest) GetStatusOk() (*string, bool) {
+func (o *WritableWirelessLANRequest) GetStatusOk() (*PatchedWritableWirelessLANRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -183,8 +181,8 @@ func (o *WritableWirelessLANRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritableWirelessLANRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given PatchedWritableWirelessLANRequestStatus and assigns it to the Status field.
+func (o *WritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessLANRequestStatus) {
o.Status = &v
}
@@ -275,9 +273,9 @@ func (o *WritableWirelessLANRequest) UnsetTenant() {
}
// GetAuthType returns the AuthType field value if set, zero value otherwise.
-func (o *WritableWirelessLANRequest) GetAuthType() string {
+func (o *WritableWirelessLANRequest) GetAuthType() AuthenticationType1 {
if o == nil || IsNil(o.AuthType) {
- var ret string
+ var ret AuthenticationType1
return ret
}
return *o.AuthType
@@ -285,7 +283,7 @@ func (o *WritableWirelessLANRequest) GetAuthType() string {
// 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 *WritableWirelessLANRequest) GetAuthTypeOk() (*string, bool) {
+func (o *WritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType1, bool) {
if o == nil || IsNil(o.AuthType) {
return nil, false
}
@@ -301,15 +299,15 @@ func (o *WritableWirelessLANRequest) HasAuthType() bool {
return false
}
-// SetAuthType gets a reference to the given string and assigns it to the AuthType field.
-func (o *WritableWirelessLANRequest) SetAuthType(v string) {
+// SetAuthType gets a reference to the given AuthenticationType1 and assigns it to the AuthType field.
+func (o *WritableWirelessLANRequest) SetAuthType(v AuthenticationType1) {
o.AuthType = &v
}
// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise.
-func (o *WritableWirelessLANRequest) GetAuthCipher() string {
+func (o *WritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher {
if o == nil || IsNil(o.AuthCipher) {
- var ret string
+ var ret AuthenticationCipher
return ret
}
return *o.AuthCipher
@@ -317,7 +315,7 @@ func (o *WritableWirelessLANRequest) GetAuthCipher() string {
// GetAuthCipherOk returns a tuple with the AuthCipher field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableWirelessLANRequest) GetAuthCipherOk() (*string, bool) {
+func (o *WritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher, bool) {
if o == nil || IsNil(o.AuthCipher) {
return nil, false
}
@@ -333,8 +331,8 @@ func (o *WritableWirelessLANRequest) HasAuthCipher() bool {
return false
}
-// SetAuthCipher gets a reference to the given string and assigns it to the AuthCipher field.
-func (o *WritableWirelessLANRequest) SetAuthCipher(v string) {
+// SetAuthCipher gets a reference to the given AuthenticationCipher and assigns it to the AuthCipher field.
+func (o *WritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher) {
o.AuthCipher = &v
}
@@ -518,10 +516,31 @@ func (o WritableWirelessLANRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableWirelessLANRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableWirelessLANRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "ssid",
+ }
+
+ 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)
+ }
+ }
+
varWritableWirelessLANRequest := _WritableWirelessLANRequest{}
- err = json.Unmarshal(bytes, &varWritableWirelessLANRequest)
+ err = json.Unmarshal(data, &varWritableWirelessLANRequest)
if err != nil {
return err
@@ -531,7 +550,7 @@ func (o *WritableWirelessLANRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "ssid")
delete(additionalProperties, "description")
delete(additionalProperties, "group")
diff --git a/model_writable_wireless_link_request.go b/model_writable_wireless_link_request.go
index a958b33304..7ad5cad9d5 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// 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 WritableWirelessLinkRequest type satisfies the MappedNullable interface at compile time
@@ -19,16 +20,13 @@ 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"`
- // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning
- Status *string `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise
- AuthType *string `json:"auth_type,omitempty"`
- // * `auto` - Auto * `tkip` - TKIP * `aes` - AES
- AuthCipher *string `json:"auth_cipher,omitempty"`
+ 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"`
@@ -139,9 +137,9 @@ func (o *WritableWirelessLinkRequest) SetSsid(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableWirelessLinkRequest) GetStatus() string {
+func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue {
if o == nil || IsNil(o.Status) {
- var ret string
+ var ret CableStatusValue
return ret
}
return *o.Status
@@ -149,7 +147,7 @@ func (o *WritableWirelessLinkRequest) GetStatus() string {
// 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() (*string, bool) {
+func (o *WritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -165,8 +163,8 @@ func (o *WritableWirelessLinkRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given string and assigns it to the Status field.
-func (o *WritableWirelessLinkRequest) SetStatus(v string) {
+// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field.
+func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue) {
o.Status = &v
}
@@ -214,9 +212,9 @@ func (o *WritableWirelessLinkRequest) UnsetTenant() {
}
// GetAuthType returns the AuthType field value if set, zero value otherwise.
-func (o *WritableWirelessLinkRequest) GetAuthType() string {
+func (o *WritableWirelessLinkRequest) GetAuthType() AuthenticationType1 {
if o == nil || IsNil(o.AuthType) {
- var ret string
+ var ret AuthenticationType1
return ret
}
return *o.AuthType
@@ -224,7 +222,7 @@ func (o *WritableWirelessLinkRequest) GetAuthType() string {
// 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 *WritableWirelessLinkRequest) GetAuthTypeOk() (*string, bool) {
+func (o *WritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType1, bool) {
if o == nil || IsNil(o.AuthType) {
return nil, false
}
@@ -240,15 +238,15 @@ func (o *WritableWirelessLinkRequest) HasAuthType() bool {
return false
}
-// SetAuthType gets a reference to the given string and assigns it to the AuthType field.
-func (o *WritableWirelessLinkRequest) SetAuthType(v string) {
+// SetAuthType gets a reference to the given AuthenticationType1 and assigns it to the AuthType field.
+func (o *WritableWirelessLinkRequest) SetAuthType(v AuthenticationType1) {
o.AuthType = &v
}
// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise.
-func (o *WritableWirelessLinkRequest) GetAuthCipher() string {
+func (o *WritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher {
if o == nil || IsNil(o.AuthCipher) {
- var ret string
+ var ret AuthenticationCipher
return ret
}
return *o.AuthCipher
@@ -256,7 +254,7 @@ func (o *WritableWirelessLinkRequest) GetAuthCipher() string {
// GetAuthCipherOk returns a tuple with the AuthCipher field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableWirelessLinkRequest) GetAuthCipherOk() (*string, bool) {
+func (o *WritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher, bool) {
if o == nil || IsNil(o.AuthCipher) {
return nil, false
}
@@ -272,8 +270,8 @@ func (o *WritableWirelessLinkRequest) HasAuthCipher() bool {
return false
}
-// SetAuthCipher gets a reference to the given string and assigns it to the AuthCipher field.
-func (o *WritableWirelessLinkRequest) SetAuthCipher(v string) {
+// SetAuthCipher gets a reference to the given AuthenticationCipher and assigns it to the AuthCipher field.
+func (o *WritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher) {
o.AuthCipher = &v
}
@@ -487,10 +485,32 @@ func (o WritableWirelessLinkRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *WritableWirelessLinkRequest) UnmarshalJSON(bytes []byte) (err error) {
+func (o *WritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "interface_a",
+ "interface_b",
+ }
+
+ 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)
+ }
+ }
+
varWritableWirelessLinkRequest := _WritableWirelessLinkRequest{}
- err = json.Unmarshal(bytes, &varWritableWirelessLinkRequest)
+ err = json.Unmarshal(data, &varWritableWirelessLinkRequest)
if err != nil {
return err
@@ -500,7 +520,7 @@ func (o *WritableWirelessLinkRequest) UnmarshalJSON(bytes []byte) (err error) {
additionalProperties := make(map[string]interface{})
- if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "interface_a")
delete(additionalProperties, "interface_b")
delete(additionalProperties, "ssid")
diff --git a/response.go b/response.go
index b34b98ef70..5de56b8d4d 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/scripts/fix-spec.sh b/scripts/fix-spec.sh
new file mode 100755
index 0000000000..5d8d28082b
--- /dev/null
+++ b/scripts/fix-spec.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+# Remove "null" item from nullable enums
+# (it could be more elegant, but it works for the current schema)
+sed -i '/^\s*- null$/d' api/openapi.yaml
diff --git a/scripts/generate-code.sh b/scripts/generate-code.sh
index b4e612bfd8..d44be6ed54 100755
--- a/scripts/generate-code.sh
+++ b/scripts/generate-code.sh
@@ -2,8 +2,16 @@
set -euo pipefail
-docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.0.1 generate \
+# Clean generated files
+for F in $(cat .openapi-generator/files) ; do
+ rm -f "${F}"
+done
+
+# Generate library
+docker run --rm --env JAVA_OPTS=-DmaxYamlCodePoints=9999999 -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.2.0 \
+ generate \
--config /local/.openapi-generator/config.yaml \
--input-spec /local/api/openapi.yaml \
--output /local \
+ --inline-schema-options RESOLVE_INLINE_ENUMS=true \
--http-user-agent go-netbox/$(cat api/netbox_version)
diff --git a/scripts/golint.sh b/scripts/golint.sh
deleted file mode 100755
index ae7c53f46d..0000000000
--- a/scripts/golint.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-# Verify that all files are correctly golint'd.
-set -e -o nounset -o pipefail
-counter=0
-while read -r line; do
- echo $line
- : $((counter++))
-done < <(golint ./...)
-
-if ((counter == 0)); then
- exit 0
-fi
-exit 1
diff --git a/scripts/license-check.sh b/scripts/license-check.sh
deleted file mode 100755
index 2aeca3f148..0000000000
--- a/scripts/license-check.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-
-# Verify that the correct license block is present in all Go source
-# files.
-IFS=$'\n' read -r -d '' -a EXPECTED < 0 else False
- logger = logging.getLogger(name)
- # logger.setLevel(logging.DEBUG)
- logger.setLevel(level_mapper[verbose])
- f = logging.Formatter(
- '%(asctime)s | %(name)s | [%(levelname)s] - %(message)s')
- if console is True:
- ch = logging.StreamHandler()
- ch.setLevel(logging.DEBUG)
- ch.setFormatter(f)
- logger.addHandler(ch)
- logger.info('Logger writing on console')
- if logfile is not None:
- fh = logging.FileHandler(logfile)
- fh.setLevel(logging.INFO)
- fh.setFormatter(f)
- logger.addHandler(fh)
- logger.info('Logger writing to %s log file' % logfile)
- logger.info('Succesfully initialized logger')
- return logger
-
-
-def cli_arguments():
- """
- Get cli arguments.
- :return: argparse.parser object
- """
- parser = argparse.ArgumentParser(
- description=('Modifications on openapi.json.'))
- parser.add_argument('-v',
- '--verbose',
- action='count',
- default=0,
- help='Increase output verbosity.')
- parser.add_argument('-o',
- '--output',
- default='api/openapi.json',
- help='Output file')
- parser.add_argument('input',
- nargs='?',
- default='api/openapi.json',
- help='Original input json file')
-
- return parser.parse_args()
-
-
-def complete_data(input_file, log):
- """
- Complete json data loaded from input file
- :return: json structure
- """
- try:
- f = open(input_file)
- except FileNotFoundError as e:
- print('Error: {}'.format(e))
- sys.exit(1)
-
- data = json.load(f)
- f.close()
-
- # Iterating over paths to add a default in responses for each verb
- # Add a default response for each verb of each paths
- # to get the return of netbox in case of failure
- verbs = ('get', 'delete', 'patch', 'post', 'put')
- missing_default = dict()
- missing_default['default'] = {
- 'description': '',
- 'schema': {
- 'additionalProperties': True,
- 'type': 'object'
- }
- }
-
- for path in data['paths']:
- for verb in data['paths'][path]:
- if verb in verbs:
- if 'default' not in data['paths'][path][verb]['responses']:
- log.info('Adding default in {} verb of {} path'.format(
- verb, path))
- data['paths'][path][verb]['responses'].update(
- missing_default)
- else:
- log.info('default defined in {} ({})'.format(verb, path))
- else:
- # If verb is not known stop here
- if verb != 'parameters':
- log.crit('Verb {} unknown.'.format(verb))
- sys.exit(1)
-
- # Adding the x-omitempty option to avoid sending empty parameters
- # as netbox will return an error
- modify_properties = dict()
- modify_properties['tags'] = {'x-omitempty': True}
- modify_properties['asns'] = {'x-omitempty': True}
-
- # Iterating over definitions to complete properties
- for definition in data['definitions']:
- def_properties = data['definitions'][definition]['properties']
- for def_property in def_properties:
- for prop in modify_properties:
- if def_property in prop:
- for k in modify_properties[prop]:
- if k not in def_properties[def_property]:
- log.info('Adding {} in {} property'.format(
- k, prop))
- def_properties[def_property].update(
- modify_properties[prop])
-
- return (data)
-
-
-def write_results(data, output_file, log):
- """
- Json dump data in output file
- """
- try:
- f = open(output_file, 'w')
- except FileNotFoundError as e:
- log.error('Error opening output file {} ({})'.format(output_file, e))
- sys.exit(1)
- except PermissionError as e:
- log.error('{}'.format(e))
- sys.exit(1)
-
- json.dump(data, f, indent=4)
- f.write('\n')
- f.close()
- log.info('Data written in {}'.format(output_file))
-
-
-def main():
- args = cli_arguments()
- # Get logger
- log = init_logger('openapi', args.verbose, logfile='/tmp/openapi.log')
-
- modified_data = complete_data(args.input, log)
- write_results(modified_data, args.output, log)
-
-
-if __name__ == '__main__':
- main()
diff --git a/test/api_extras_test.go b/test/api_extras_test.go
index cf837428a0..d062887924 100644
--- a/test/api_extras_test.go
+++ b/test/api_extras_test.go
@@ -836,6 +836,120 @@ func Test_netbox_ExtrasAPIService(t *testing.T) {
})
+ t.Run("Test ExtrasAPIService ExtrasEventRulesBulkDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesBulkDestroy(context.Background()).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test ExtrasAPIService ExtrasEventRulesBulkPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesBulkPartialUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test ExtrasAPIService ExtrasEventRulesBulkUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesBulkUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test ExtrasAPIService ExtrasEventRulesCreate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesCreate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test ExtrasAPIService ExtrasEventRulesDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesDestroy(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test ExtrasAPIService ExtrasEventRulesList", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesList(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test ExtrasAPIService ExtrasEventRulesPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesPartialUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test ExtrasAPIService ExtrasEventRulesRetrieve", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesRetrieve(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test ExtrasAPIService ExtrasEventRulesUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
t.Run("Test ExtrasAPIService ExtrasExportTemplatesBulkDestroy", func(t *testing.T) {
t.Skip("skip test") // remove to run test
diff --git a/test/api_ipam_test.go b/test/api_ipam_test.go
index 04402b38ba..490d52e36d 100644
--- a/test/api_ipam_test.go
+++ b/test/api_ipam_test.go
@@ -877,234 +877,6 @@ func Test_netbox_IpamAPIService(t *testing.T) {
})
- t.Run("Test IpamAPIService IpamL2vpnTerminationsBulkDestroy", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsBulkDestroy(context.Background()).Execute()
-
- require.Nil(t, err)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnTerminationsBulkPartialUpdate", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsBulkPartialUpdate(context.Background()).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnTerminationsBulkUpdate", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsBulkUpdate(context.Background()).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnTerminationsCreate", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsCreate(context.Background()).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnTerminationsDestroy", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- var id int32
-
- httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsDestroy(context.Background(), id).Execute()
-
- require.Nil(t, err)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnTerminationsList", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsList(context.Background()).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnTerminationsPartialUpdate", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- var id int32
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsPartialUpdate(context.Background(), id).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnTerminationsRetrieve", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- var id int32
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsRetrieve(context.Background(), id).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnTerminationsUpdate", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- var id int32
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsUpdate(context.Background(), id).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnsBulkDestroy", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- httpRes, err := apiClient.IpamAPI.IpamL2vpnsBulkDestroy(context.Background()).Execute()
-
- require.Nil(t, err)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnsBulkPartialUpdate", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsBulkPartialUpdate(context.Background()).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnsBulkUpdate", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsBulkUpdate(context.Background()).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnsCreate", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsCreate(context.Background()).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnsDestroy", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- var id int32
-
- httpRes, err := apiClient.IpamAPI.IpamL2vpnsDestroy(context.Background(), id).Execute()
-
- require.Nil(t, err)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnsList", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsList(context.Background()).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnsPartialUpdate", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- var id int32
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsPartialUpdate(context.Background(), id).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnsRetrieve", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- var id int32
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsRetrieve(context.Background(), id).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test IpamAPIService IpamL2vpnsUpdate", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- var id int32
-
- resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsUpdate(context.Background(), id).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
t.Run("Test IpamAPIService IpamPrefixesAvailableIpsCreate", func(t *testing.T) {
t.Skip("skip test") // remove to run test
diff --git a/test/api_virtualization_test.go b/test/api_virtualization_test.go
index d18f8e7d5a..dd2cbf69c3 100644
--- a/test/api_virtualization_test.go
+++ b/test/api_virtualization_test.go
@@ -479,6 +479,120 @@ func Test_netbox_VirtualizationAPIService(t *testing.T) {
})
+ t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksBulkDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksBulkDestroy(context.Background()).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksBulkPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksBulkPartialUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksBulkUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksBulkUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksCreate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksCreate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksDestroy(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksList", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksList(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksPartialUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksRetrieve", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksRetrieve(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesBulkDestroy", func(t *testing.T) {
t.Skip("skip test") // remove to run test
@@ -565,6 +679,20 @@ func Test_netbox_VirtualizationAPIService(t *testing.T) {
})
+ t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesRenderConfigCreate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesRenderConfigCreate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesRetrieve", func(t *testing.T) {
t.Skip("skip test") // remove to run test
diff --git a/test/api_vpn_test.go b/test/api_vpn_test.go
new file mode 100644
index 0000000000..e6767fc89d
--- /dev/null
+++ b/test/api_vpn_test.go
@@ -0,0 +1,1166 @@
+/*
+NetBox REST API
+
+Testing VpnAPIService
+
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech);
+
+package netbox
+
+import (
+ "context"
+ "testing"
+
+ openapiclient "github.com/netbox-community/go-netbox/v3"
+ "github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify/require"
+)
+
+func Test_netbox_VpnAPIService(t *testing.T) {
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+
+ t.Run("Test VpnAPIService VpnIkePoliciesBulkDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ httpRes, err := apiClient.VpnAPI.VpnIkePoliciesBulkDestroy(context.Background()).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkePoliciesBulkPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesBulkPartialUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkePoliciesBulkUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesBulkUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkePoliciesCreate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesCreate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkePoliciesDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ httpRes, err := apiClient.VpnAPI.VpnIkePoliciesDestroy(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkePoliciesList", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesList(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkePoliciesPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesPartialUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkePoliciesRetrieve", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesRetrieve(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkePoliciesUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkeProposalsBulkDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ httpRes, err := apiClient.VpnAPI.VpnIkeProposalsBulkDestroy(context.Background()).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkeProposalsBulkPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsBulkPartialUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkeProposalsBulkUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsBulkUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkeProposalsCreate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsCreate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkeProposalsDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ httpRes, err := apiClient.VpnAPI.VpnIkeProposalsDestroy(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkeProposalsList", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsList(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkeProposalsPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsPartialUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkeProposalsRetrieve", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsRetrieve(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIkeProposalsUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecPoliciesBulkDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesBulkDestroy(context.Background()).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecPoliciesBulkPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesBulkPartialUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecPoliciesBulkUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesBulkUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecPoliciesCreate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesCreate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecPoliciesDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesDestroy(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecPoliciesList", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesList(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecPoliciesPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesPartialUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecPoliciesRetrieve", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesRetrieve(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecPoliciesUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProfilesBulkDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesBulkDestroy(context.Background()).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProfilesBulkPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesBulkPartialUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProfilesBulkUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesBulkUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProfilesCreate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesCreate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProfilesDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesDestroy(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProfilesList", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesList(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProfilesPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesPartialUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProfilesRetrieve", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesRetrieve(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProfilesUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProposalsBulkDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsBulkDestroy(context.Background()).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProposalsBulkPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsBulkPartialUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProposalsBulkUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsBulkUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProposalsCreate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsCreate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProposalsDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsDestroy(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProposalsList", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsList(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProposalsPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsPartialUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProposalsRetrieve", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsRetrieve(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnIpsecProposalsUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnTerminationsBulkDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsBulkDestroy(context.Background()).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnTerminationsBulkPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsBulkPartialUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnTerminationsBulkUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsBulkUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnTerminationsCreate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsCreate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnTerminationsDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsDestroy(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnTerminationsList", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsList(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnTerminationsPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsPartialUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnTerminationsRetrieve", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsRetrieve(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnTerminationsUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnsBulkDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ httpRes, err := apiClient.VpnAPI.VpnL2vpnsBulkDestroy(context.Background()).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnsBulkPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsBulkPartialUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnsBulkUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsBulkUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnsCreate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsCreate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnsDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ httpRes, err := apiClient.VpnAPI.VpnL2vpnsDestroy(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnsList", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsList(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnsPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsPartialUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnsRetrieve", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsRetrieve(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnL2vpnsUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelGroupsBulkDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsBulkDestroy(context.Background()).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelGroupsBulkPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsBulkPartialUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelGroupsBulkUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsBulkUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelGroupsCreate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsCreate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelGroupsDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsDestroy(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelGroupsList", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsList(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelGroupsPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsPartialUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelGroupsRetrieve", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsRetrieve(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelGroupsUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelTerminationsBulkDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsBulkDestroy(context.Background()).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelTerminationsBulkPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsBulkPartialUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelTerminationsBulkUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsBulkUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelTerminationsCreate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsCreate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelTerminationsDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsDestroy(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelTerminationsList", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsList(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelTerminationsPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsPartialUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelTerminationsRetrieve", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsRetrieve(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelTerminationsUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelsBulkDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ httpRes, err := apiClient.VpnAPI.VpnTunnelsBulkDestroy(context.Background()).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelsBulkPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsBulkPartialUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelsBulkUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsBulkUpdate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelsCreate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsCreate(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelsDestroy", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ httpRes, err := apiClient.VpnAPI.VpnTunnelsDestroy(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelsList", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsList(context.Background()).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelsPartialUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsPartialUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelsRetrieve", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsRetrieve(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test VpnAPIService VpnTunnelsUpdate", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var id int32
+
+ resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsUpdate(context.Background(), id).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+}
diff --git a/utils.go b/utils.go
index 3b2167deb2..de4025a154 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.6.2 (3.6)
+API version: 3.7.0 (3.7)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.